Google Compute Engine

Book description

Learn how to run large-scale, data-intensive workloads with Compute Engine, Google’s cloud platform. Written by Google engineers, this tutorial walks you through the details of this Infrastructure as a Service by showing you how to develop a project with it from beginning to end. You’ll learn best practices for using Compute Engine, with a focus on solving practical problems.

With programming examples written in Python and JavaScript, you’ll also learn how to use Compute Engine with Docker containers and other platforms, frameworks, tools, and services. Discover how this IaaS helps you gain unparalleled performance and scalability with Google’s advanced storage and computing technologies.

  • Access and manage Compute Engine resources with a web UI, command-line interface, or RESTful interface
  • Configure, customize, and work with Linux VM instances
  • Explore storage options: persistent disk, Cloud Storage, Cloud SQL (MySQL in the cloud), or Cloud Datastore NoSQL service
  • Use multiple private networks, and multiple instances on each network
  • Build, deploy, and test a simple but comprehensive cloud computing application step-by-step
  • Use Compute Engine with Docker, Node.js, ZeroMQ, Web Starter Kit, AngularJS, WebSocket, and D3.js

Table of contents

  1. Preface
    1. Contents of This Book
      1. What Each Chapter Covers
    2. Conventions Used in This Book
    3. Using Code Examples
    4. Safari® Books Online
    5. How to Contact Us
    6. Acknowledgments
  2. 1. Getting Started
    1. Creating a Compute Engine Project
      1. Enabling Billing
      2. Adding Team Members
    2. Compute Engine Resources
      1. Manage Compute Engine Resources
    3. Summary
    4. Up Next
  3. 2. Instances
    1. Creating an Instance Using the Developers Console
    2. Accessing an Instance Using the Developers Console
    3. Deleting an Instance Using the Developers Console
    4. Creating an Instance Using gcloud
      1. Instance Attributes
    5. Accessing an Instance Using gcloud
    6. Deleting an Instance Using gcloud
    7. Creating an Instance Programmatically
    8. Creating an Instance Using a Service Account
    9. Selecting an Access Mode
    10. Cleaning Up
    11. Summary
    12. Up Next
  4. 3. Storage: Persistent Disk
    1. Compute Engine Storage Options at a Glance
    2. Persistent Disk
      1. Persistent Disk Performance
      2. Create a Persistent Disk Using Developers Console
      3. Create a Persistent Disk Using gcloud
      4. Attaching/Detaching a PD to/from a Running VM
      5. Create a Persistent Disk Programmatically
      6. Persistent Disk Snapshots
    3. Summary
    4. Up Next
  5. 4. Storage: Cloud Storage
    1. Understanding BLOB Storage
    2. Getting Started
    3. Introducing gsutil
    4. Using Cloud Storage from Your Code
    5. Configuring Access Control
    6. Understanding ACLs
    7. Using Default Object ACLs
    8. Understanding Object Immutability
    9. Understanding Strong Consistency
    10. Summary
    11. Up Next
  6. 5. Storage: Cloud SQL and Cloud Datastore
    1. Cloud SQL
      1. Getting Started
      2. Creating Databases and Tables
      3. Running SQL Queries
    2. Cloud Datastore
      1. Getting Started
      2. Creating and Viewing Entities via the Developers Console
      3. Creating and Retrieving Entities Programmatically from a VM
    3. Bring Your Own Database
    4. Summary
    5. Up Next
  7. 6. Networking
    1. A Short Networking Primer
      1. Network Addresses and Routing
      2. Transport Control Protocol (TCP)
      3. The Domain Name System (DNS)
      4. Hypertext Transfer Protocol (HTTP)
      5. Load Balancing
      6. Firewalls
    2. Default Networking
    3. Configuring Firewall Rules
    4. Configuring Load Balancing
    5. Reserving External IP Addresses
    6. Configuring Networks
    7. Understanding Networking Costs
    8. Understanding Routing
    9. Selecting an Access Mode
    10. Summary
    11. Up Next
  8. 7. Advanced Topics
    1. Startup Scripts
      1. gcloud compute
      2. Literal-Value Approach
      3. Local-File Approach
      4. Cloud-Storage Approach
      5. Publicly Available Approach
      6. API Approach
    2. Custom Images
      1. Creating a Custom Image
      2. Using a Custom Image
    3. Metadata
      1. Metadata Server
      2. Metadata Entries
      3. Project Metadata
      4. Instance Metadata
      5. Data Formats
      6. Default Versus Custom
      7. Project-Level Custom Metadata
      8. Instance-Level Custom Metadata
      9. wait_for_change URL parameter
    4. Summary
    5. Up Next
  9. 8. A Complete Application
    1. Application Concept
      1. Requirements
    2. Application Information Flow
    3. Building Our App Step by Step
      1. Step 0: Create Your Development VM and Clone the Sample App
      2. Step 1: Create a Docker image for your app
      3. Step 2: Build the UI framework
      4. Step 3: Build the user interface
      5. Step 4: Implement the master
      6. Step 5: Implement the slave
      7. Step 6: Add our visualization
      8. Step 7: Deploy a cluster into production
    4. Conclusion
  10. Index

Product information

  • Title: Google Compute Engine
  • Author(s): Marc Cohen, Kathryn Hurley, Paul Newson
  • Release date: December 2014
  • Publisher(s): O'Reilly Media, Inc.
  • ISBN: 9781449361495