Chapter 9. Compute Engine: virtual machines

 

This chapter covers

  • What are virtual machines (VMs)?
  • Using persistent storage with virtual machines
  • How auto-scaling works
  • Spreading traffic across multiple machines with a load balancer
  • Compute Engine’s pricing structure

As you’ve learned, virtual machines are chopped-up pieces of a single physical system that are shared between several people. This isn’t a new idea—even 10 years ago this was how virtual private servers were sold—but the idea certainly has gotten more advanced with Cloud hosting platforms like Google Cloud Platform and Amazon Web Services. For example, it’s now possible to decouple the virtual machine from the physical machine, so physical machines can be taken offline for maintenance while the virtual machine is live-migrated elsewhere, all without any downtime or significant changes in performance.

Advances like these enable even more neat features like automatic scaling, where the hosting provider can automatically provision more or fewer virtual machines based on incoming traffic or CPU usage, but these features sometimes can be tricky to understand and configure. To make things less tricky, the goal of this chapter is to get you comfortable with virtual machines, explain some of their interesting performance characteristics (particularly those that might seem counterintuitive), and walk you through the more advanced features (like automatic scaling).

9.1. Launching your first (or second) VM

9.2. Block storage with Persistent Disks

9.3. Instance groups and dynamic resources

9.4. Ephemeral computing with preemptible VMs

9.5. Load balancing

9.6. Cloud CDN

9.7. Understanding pricing

9.8. When should I use GCE?

Summary

sitemap