Explain The Concept Of Compute Engine.

A configurable compute tool or service, Compute Engine, allows users to run and create digital machines over the infrastructure of Google. A VM or Virtual Machine may be created that matches your requirements. Pre-defined kinds of machines are ready-to-go and pre-built Virtual Machines (VMs) configurations with precise quantities of memory and vCPU to initiate executing applications swiftly. Also, Virtual Machines are created with the optimum amount of memory and CPU for user’s tasks or workloads with customized machine types.  

It enables users to customize their infrastructure to suit their workloads. Users can also move their workloads to larger or smaller custom machine type instances or a predetermined config using the start/ stop feature when your needs alter.

What Are The Machine Types In Compute Engine?

Machine types in Compute Engine are curated and grouped by families for varied tasks or workloads. Also, you may select from accelerator-optimized, compute-optimized, memory-optimized, and general-purpose families.

Accelerator-Optimized Machines

These are optimized for computing workloads of higher performance, including High-Performance Computing (HPC), Massive Parallelized Computations, and Machine Learning (ML).

Compute-Optimized Machines

These are suggested for ultra-high performance tasks or workloads, including, single-threaded apps, video transcoding, gaming, Electronic Design Automation (EDA), and High-Performance Computing (HPC).

Memory-Optimized Machines

These are suggested for ultra-higher memory tasks or workloads, including large in-memory databases (Ex.- SAP HANA) and in-memory analytics. 

General-Purpose Machines 

These are being used for low-cost day-to-day computing and for a regulated performance/ price over a diverse variety of virtual machine geometries. Development environments, virtual desktops, microservices, media-streaming, cache, databases, back-office apps, application serving, and web serving are among the use cases that perfectly suit here.

Working Mechanism 

A container image, a boot disk snapshot, or a boot disk image may all be used to generate a Virtual Machine instance. The image may be a custom image or a public operating system (OS) image. 

You may choose which zone the VM or virtual machine should be generated based on where your customers are located. The firewall blocks all internet traffic by default, but you may allow HTTP(s) traffic when necessary.

Besides, you may back up your Compute Engine workloads using snapshot scheduling (weekly, daily, or hourly) as a professional standard. Live migration is enabled by default on Compute Engine, allowing you to maintain your virtual machine instances operating while hardware or software updates are made. 

Instead of rebooting your VMs, your active instances are transferred to the same zone's another host. 

Compute Engine Interaction

Many methods are available for interacting with Compute Engine, including the console, a REST API, and CLI. The console is a simple-to-use graphical interface while being cluttered with UI actions. Once initiated with the ssh option of the console, the gcloud CLI tool is available on every Compute Engine VM. Whenever you require establishing a connection directly using SSH or another method, you may install the gcloud tools over any Compute Engine Virtual Machine. Furthermore, a REST API is available for managing Compute Engine Virtual Machines.

Availability of Compute Engine

Compute Engine provides automatic failover to certain other zones or regions in the case of High Availability (HA) failures. Managed instance groups (MIGs) automate the replication of instances from a pre-defined image to keep them running. Also, they offer auto-healing health checks with apps. 

When a program on a virtual machine doesn't respond, the auto healer reconstructs it for you. Regional MIGs allow you to distribute application load over several zones. This replication protects zone failures. MIGs use load balancing services to spread traffic throughout the entire group's instances.

Autoscaling in Compute Engine allows you to remove or add VM instances through a managed instance group depending on the load's decreases or increases. Autoscaling allows your applications to handle increases smoothly in traffic while also lowering costs if resource usage is low. 

You specify the autoscaling policy, which determines automatic scaling depending on requests each second, CPU utilization, measured load, or certain other metrics. 

Predictive autoscaling, a new Active Assist feature that assists in improving response times for your apps– Once you activate predictive autoscaling, Compute Engine estimates prospective load depending on the history of your Managed Instance Group (MIG) and scales it out ahead of time to ensure that additional instances are prepared to assist whenever the load occurs. 

An autoscale could only expand a group with a reactive approach without predictive autoscaling, depending on the load's observed changes in live time. 

When predictive autoscaling is activated, the autoscaler uses both historical and real-time data to cover both presents and predicted load. Therefore, predictive autoscaling is appropriate for applications with extensive startup times and workloads that fluctuate reliably weekly or daily.


Compute Engine families usually meet every application use case, from digital native apps to legacy enterprise apps. In addition to databases and websites, numerous use cases are served by Compute Engine. 

Also, you may Migrate for Compute Engine to migrate your current infrastructure to Google Cloud, allowing you to execute ruffled workloads in the cloud in moments than in days or days. A seamless transition to Google Cloud is possible with Windows, Oracle, or VMware applications. Obtain your own license and use the licensed images provided or use Sole-tenant nodes to execute Windows apps.


Popular Posts