Virtual machines

Qwiklabs-Courses
31 Oct 202303:27

Summary

TLDRVirtualization technology allows multiple systems, known as Virtual Machines (VMs), to run on the same hardware, optimizing resource utilization. Google Cloud's Compute Engine enables users to create and manage VMs, offering flexibility in configuration and cost-effective options like preemptable and spot VMs. Billing is based on usage, with discounts for sustained use and committed use.

Takeaways

  • 💻 Virtualization technology allows multiple systems (Virtual Machines or VMs) to run on the same hardware, optimizing resource utilization.
  • 🌐 Google Cloud's Compute Engine is an infrastructure-as-a-service product that enables users to create and manage VMs on Google's infrastructure.
  • 💼 There are no upfront investments required for using Compute Engine, making it a flexible and cost-effective solution for running VMs.
  • 🚀 Compute Engine supports thousands of virtual CPUs on a system designed for speed and consistent performance.
  • 🖥️ Each VM in Compute Engine has the capabilities of a full-fledged operating system, allowing for extensive configuration options.
  • 🛠️ VM instances can be created through the Google Cloud Console, Google Cloud CLI, or through infrastructure automation tools like Terraform or the Compute Engine API.
  • 🔌 APIs (Application Programming Interfaces) are crucial for enabling communication between different software programs, and they play a significant role in managing VMs.
  • ⏱️ Compute Engine bills by the second with a one-minute minimum, and sustained use discounts automatically apply for VMs running over 25% of a month.
  • 💰 Committed use discounts are available for users who commit to using resources for one or three years, offering savings over on-demand prices.
  • 🏃‍♂️ Preemptable and spot VMs can significantly reduce costs for workloads that do not require immediate completion, such as batch jobs.
  • 🔄 Spot VMs offer more flexibility than preemptable VMs, with no maximum run time, although they can still be terminated if resources are needed elsewhere.

Q & A

  • What problem did virtualization technology solve for organizations?

    -Virtualization technology relieved the pressures of tightly binding specific computing hardware resources to specific applications, allowing multiple systems to run on the same hardware.

  • What are Virtual Machines (VMs)?

    -Virtual Machines (VMs) are systems that share the same pool of processing, storage, and networking resources, enabling organizations to run multiple applications simultaneously on a server efficiently and manageably.

  • What is Google Cloud's Compute Engine?

    -Compute Engine is Google Cloud's infrastructure as a service (IaaS) product that lets users create and run virtual machines on Google's infrastructure without upfront investments, offering fast and consistent performance.

  • How can a virtual machine be configured?

    -A virtual machine can be configured much like a physical server by specifying the amount of CPU power, memory, storage, and the operating system needed.

  • What tools can be used to create a virtual machine instance on Google Cloud?

    -A virtual machine instance can be created through the Google Cloud Console, the Google Cloud CLI command line interface, or using infrastructure automation tools such as Terraform or the Compute Engine API.

  • How does Compute Engine's billing work for virtual machines?

    -Compute Engine bills by the second with a one-minute minimum. Sustained use discounts start to apply automatically to virtual machines that run for more than 25% of a month, and additional discounts are applied for each incremental hour of use.

  • What are committed use discounts in Compute Engine?

    -Committed use discounts offer reduced prices when users commit to using resources for either a one-year or three-year period.

  • What are preemptable and spot VMs, and how do they differ from regular VMs?

    -Preemptable and spot VMs are types of virtual machines that can be terminated by Compute Engine if their resources are needed elsewhere. They offer cost savings but need to ensure jobs can be stopped and restarted without impact. Spot VMs offer more features than preemptable VMs, such as no maximum run time.

  • What is a key difference between preemptable and spot VMs?

    -A key difference is that preemptable VMs can only run for up to 24 hours at a time, whereas spot VMs do not have a maximum run time.

  • How can users choose the machine properties of their virtual machine instances on Compute Engine?

    -Users can choose the machine properties of their instances by selecting from predefined machine types or by creating custom machine types, specifying the number of virtual CPUs, operating system, and amount of memory.

Outlines

00:00

🌐 Virtualization and Compute Engine Overview

This paragraph introduces the concept of virtualization, which allows multiple systems (Virtual Machines or VMs) to run on the same hardware, optimizing resource utilization. It explains how VMs enable organizations to run multiple applications efficiently and manageably. Google Cloud's Compute Engine is highlighted as an infrastructure-as-a-service product that lets users create and manage VMs on Google's infrastructure. The paragraph also discusses the flexibility in configuring VMs, similar to physical servers, by specifying CPU power, memory, storage, and operating system. Additionally, it covers the billing model of Compute Engine, which bills by the second with a one-minute minimum and offers sustained use discounts for longer-running VMs. The paragraph concludes by mentioning the availability of preemptable and spot VMs for cost reduction in certain workloads, which can be terminated if resources are needed elsewhere.

Mindmap

Keywords

💡Virtualization

Virtualization is a technology that allows multiple systems, known as Virtual Machines (VMs), to run on the same physical hardware. It is a form of resource optimization that enables efficient use of computing resources by sharing processing, storage, and networking capabilities among multiple applications. In the video, virtualization is highlighted as a solution to the pressures of tightly binding specific hardware resources to applications, thus enhancing flexibility and efficiency.

💡Virtual Machines (VMs)

Virtual Machines, or VMs, are systems that operate on the same hardware as other systems but are isolated from each other. Each VM has its own operating system and can be configured independently, making it function similarly to a physical server. The script mentions that VMs enable organizations to run multiple applications simultaneously on a server, which is crucial for efficient resource management and application deployment.

💡Compute Engine

Google Cloud's Compute Engine is an infrastructure-as-a-service product that allows users to create and run virtual machines on Google's infrastructure. It is highlighted in the script as a platform that eliminates the need for upfront investments and supports the operation of thousands of virtual CPUs. Compute Engine is central to the video's theme of optimizing computing resources through virtualization.

💡Resource Optimization

Resource optimization is the process of making the most efficient use of available resources. In the context of the video, virtualization technology is used to optimize computing resources by allowing multiple systems to share the same hardware. This concept is integral to the discussion of how virtualization alleviates the pressures faced by organizations in managing their computing hardware.

💡Google Cloud Console

The Google Cloud Console is a web-based tool mentioned in the script that enables users to manage Google Cloud projects, resources, and the Google Cloud CLI command line interface. It is used for creating virtual machine instances, demonstrating its role in the process of virtualization and resource management on Google Cloud.

💡API (Application Programming Interface)

An API, or Application Programming Interface, is a set of instructions that allows different software programs to communicate with each other. In the script, the API is mentioned in relation to the Google Cloud Console and the Compute Engine API, emphasizing its importance in automating infrastructure tasks and enabling interaction between various components of the Google Cloud platform.

💡Preemptable VMs

Preemptable VMs, as discussed in the script, are a type of virtual machine that can be terminated by Compute Engine if its resources are needed elsewhere. They offer significant cost savings, potentially up to 90%, for workloads that do not require immediate completion, such as batch jobs. This concept is relevant to the video's theme of cost-effective resource management.

💡Spot VMs

Spot VMs are similar to preemptable VMs but offer more flexibility. Unlike preemptable VMs, which can only run for up to 24 hours, spot VMs do not have a maximum run time. They are highlighted in the script as a cost-effective option for running jobs that can be interrupted and resumed without significant impact, aligning with the video's focus on optimizing resource use.

💡Sustained Use Discounts

Sustained use discounts are automatically applied to virtual machines that run for more than 25% of a month, as mentioned in the script. This pricing model incentivizes long-term use of resources and is part of the broader discussion on how Compute Engine manages costs and resource allocation.

💡Committed Use Discounts

Committed use discounts are offered by Compute Engine when users commit to using resources for a one-year or three-year period. This concept is introduced in the script as a way to obtain discounts over on-demand prices, demonstrating another method of optimizing costs in resource management.

💡Machine Properties

Machine properties refer to the specific characteristics of a virtual machine, such as the number of virtual CPUs, the operating system, and the amount of memory. The script mentions that users can choose these properties for their instances, either through predefined machine types or by creating custom machine types, emphasizing the flexibility in configuring virtual machines to meet specific needs.

Highlights

Traditionally, computing hardware resources were tightly bound to specific applications due to technological pressures.

Virtualization technology helps relieve these pressures by allowing multiple systems to run on the same hardware.

Virtual Machines (VMs) are systems that share a pool of processing, storage, and networking resources.

VMs enable efficient and manageable operation of multiple applications on a server.

Google Cloud's Compute Engine is an infrastructure-as-a-service product for creating and running virtual machines.

Compute Engine requires no upfront investments and supports thousands of virtual CPUs.

Each virtual machine in Compute Engine contains the functionality of a full-fledged operating system.

Virtual machine instances can be configured like physical servers with specified CPU power, memory, storage, and operating system.

VM instances can be created through the Google Cloud Console, CLI, or infrastructure automation tools like Terraform.

Compute Engine bills by the second with a one-minute minimum and offers sustained use discounts.

Compute Engine applies a discount for every incremental hour of use.

Committed use discounts are offered for resources used over a one-year or three-year period.

Preemptable and spot VMs can reduce costs by up to 90% for workloads that do not require immediate completion.

Preemptable VMs can be terminated if resources are needed elsewhere, unlike ordinary Compute Engine VMs.

Spot VMs offer more features than preemptable VMs, such as no maximum run time.

Spot VMs and preemptable VMs have the same pricing despite their differences.

Users can choose machine properties of instances in Compute Engine, such as virtual CPUs, operating system, and memory.

Transcripts

play00:00

Traditionally, various technological pressures

play00:03

compelled many organizations

play00:04

to tightly bind specific computing hardware resources

play00:07

to specific applications.

play00:09

Virtualization, technology relieved these pressures.

play00:13

Virtualization is a form of

play00:16

resource optimization that lets

play00:18

multiple systems run on the same hardware.

play00:20

These systems are called Virtual Machines or VMs.

play00:24

This means that they share the same pool of processing,

play00:27

storage, and networking resources.

play00:30

VMs enable organizations to run multiple applications at

play00:34

the same time on a server in

play00:35

a way that is efficient and manageable.

play00:38

Compute engine is Google Cloud's infrastructure

play00:41

as a service product,

play00:42

that lets users create and run

play00:43

virtual machines on Google infrastructure.

play00:46

There are no upfront investments,

play00:48

and thousands of virtual CPUs can run on a system

play00:51

that's designed to be fast

play00:52

and to offer consistent performance.

play00:54

Each virtual machine contains the power and

play00:57

functionality of a full fledged operating system.

play01:00

This means a virtual machine can be configured much like

play01:02

a physical server by specifying

play01:04

the amount of CPU power and memory needed,

play01:07

the amount and type of storage needed,

play01:10

and the operating system.

play01:12

A virtual machine instance can be

play01:14

created through the Google Cloud Console,

play01:16

which is a web based tool

play01:18

to manage Google Cloud projects,

play01:19

resources and Google Cloud CLI command line interface by

play01:24

using infrastructure automation tools such

play01:26

as Terraform or the Compute Engine API.

play01:29

An API or application programming interface,

play01:33

is a set of instructions that allows

play01:34

different software programs to

play01:36

communicate with each other.

play01:37

We'll learn about API's in

play01:39

more detail later in this course.

play01:41

When you use virtual machines,

play01:44

compute engine bills by the second with

play01:46

a one minute minimum and sustained use discounts

play01:49

start to apply automatically to

play01:50

virtual machines the longer they run,

play01:53

for each VM that runs for more than 25% of a month.

play01:57

Compute engine automatically applies

play01:59

a discount for every incremental hour of use.

play02:02

Compute engine also offers committed use discounts.

play02:06

This means that when committing to use

play02:08

resources for either a one year or three year period,

play02:11

discounts are offered over

play02:12

the on demand prices

play02:14

and then there are preemptable and spot VMs.

play02:18

Let's say that a workload doesn't require

play02:21

a human to sit and wait for it to finish,

play02:23

such as a batch job analyzing a large dataset.

play02:27

Costs can be reduced in some cases by

play02:30

up to 90% by choosing

play02:32

preemptable or spot VMs to run the job.

play02:35

A preemptable or spot VM is different from

play02:38

an ordinary compute engine VM in only one respect.

play02:41

Compute engine has permission to terminate

play02:43

a VM if its resources are needed elsewhere.

play02:46

Although savings are possible

play02:48

with preemptable or spot VMs,

play02:50

it needs to be ensured that a job can be

play02:52

stopped and restarted without impact.

play02:55

Spot VMs differ from

play02:57

preemptible VMs by offering more features.

play03:00

For example, preemptable VMs can

play03:02

only run for up to 24 hours at a time,

play03:05

but spot VMs don't have a maximum run time.

play03:08

However, the pricing is currently the same for both.

play03:11

Finally, Compute Engine lets users

play03:14

choose the machine properties of their instances,

play03:17

like the number of virtual CPUs,

play03:19

the operating system, and the amount of

play03:21

memory by using a set of predefined machine types,

play03:24

or by creating custom machine types.

Rate This

5.0 / 5 (0 votes)

相关标签
VirtualizationResource OptimizationGoogle CloudCompute EngineVirtual MachinesInfrastructure as a ServiceAPICost EfficiencyPreemptable VMsCustom Machine Types
您是否需要英文摘要?