Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Compute at Google - An Insider's View

Compute at Google - An Insider's View

from Google Cloud Platform Live 2014
YouTube video: https://www.youtube.com/watch?v=zZdoL5d7KC8

Kazunori Sato

April 24, 2014
Tweet

More Decks by Kazunori Sato

Other Decks in Technology

Transcript

  1. How Google builds applications How that’s reflected in the Cloud

    Platform 1 2 3 What that means for you as a public cloud user Agenda
  2. Images by Connie Zhou • 100,000+ Devices • MTBF of

    10 years = 1 failure per hour Failure is the norm
  3. • Plan for failure instead of reacting • Software +

    Best Practices + Platforms • Investments at all layers The (Google) Solution
  4. Storage Cloud Storage Cloud SQL Cloud Datastore Compute Compute Engine

    App Engine App Services BigQuery Cloud Endpoints Google Cloud Platform
  5. The Google Cloud Platform is built on the internal Google

    Platform We are continually exposing more of that internal platform The toolbox at Google is the toolbox you get with the Cloud Platform. Image: "Toolbox" florianric CC-BY-2.0 http://www.flickr.com/photos/florianric/7263382550/ The Platform
  6. Declarative Management Reproducible Deployment • State what you want •

    System makes it happen • Idempotency • Reproduce any compute environment • Staging/dev/test environments mirror production • Automated build, test and deploy Avoiding Snowflakes
  7. From the cluster to across the globe Managed QoS, SDN

    pioneers High Capacity Load Balancing Network
  8. Common data formats and API Mechanisms Monitoring and alerting Configuration

    Automated build, testing and lifecycle management Services and Glue
  9. Example pricing: n1-standard-1 Virtual Machines • More use = Lower

    Price • Automatic • No upfront payments • No lock-in • No complex planning -53%
  10. Sustained Use Discounts April 1 April 15 April 30 100%

    use, 30% discount 50% use 10% discount VM1 VM2
  11. Persistent Disk • Simple, Low Pricing • Predictable Performance •

    Streamlined Operations • Security and Data Consistency $0.04/GB I/O included; scales with size burst capability
  12. App Engine Drastically simplified pricing. Highlights: instance hours dedicated memcache

    datastore writes Many services, including SNI SSL and PageSpeed are now offered to all applications at no extra cost. 37.5% 50% 33%
  13. cloud.google.com/cloud-dns • Google’s DNS infrastructure • Command Line and API

    access • Low latency worldwide serving Announcing: Google Cloud DNS
  14. • Fully managed memcache solution • 1 GB rated at

    10K ops/s (small values) • $0.06/GB/hr Dedicated Memcache 10+ terabytes
  15. • Flexibility of Compute Engine • Access to native resources,

    machine types • Auto-management of App Engine • High Availability • Image updates, security patches • Access to all Managed Services • Co-location with other services • Developer productivity Virtualized hardware Abstracted computing power IaaS Infrastructure-as-a-Service PaaS Platform-as-a-Service Managed VMs Managed VMs
  16. VM VM Replica Pools In Preview Template image metadata bash

    cmds Replica Pool Service VM create/destroy Resource View Load Balancer
  17. In Preview Deployment Managed VMs Disks Network Load balancer Autoscaler

    Template name: template-a modules: virtualMachineModule: type: REPLICA_POOL replicaPoolModule: numReplicas: 4 replicaPoolParams: v1beta1: machineType: n1-standard-1 zone: us-central2-a disksToCreate: ... networkInterfaces: ... Deployment Manager
  18. Manage your infrastructure Flexibility Agility Google Compute Engine Your Code

    Compute as a spectrum Your Code Replica Pools Provisioning and health checking
  19. Manage your infrastructure Flexibility Agility Google Compute Engine Your Code

    Compute as a spectrum Replica Pools Provisioning and health checking Managed VMs OS management, deployments, logging and monitoring Your Code Your Code
  20. Manage your infrastructure Flexibility Agility Google Compute Engine Your Code

    Compute as a spectrum Replica Pools Provisioning and health checking Managed VMs OS management, deployments, logging and monitoring Your Code Your Code App Engine Managed Runtimes Manage your serving stack Your Code
  21. Managed VMs Demo Sudoku Example 5 1 7 3 9

    3 9 8 8 2 3 6 5 7 3 4 8 7 7 5 1 3 9 7 2 8 8 5 1 8 4 9 4 6 7 9 3 8 4 1
  22. ?

  23. application: compute-demo version: 1 runtime: python27 api_version: 1 threadsafe: yes

    handlers: - url: /favicon\.ico static_files: favicon.ico upload: favicon\.ico - url: .* script: main.APP libraries: - name: webapp2 version: "2.5.2" - name: jinja2 version: latest app.yaml application: compute-demo version: 1 module: solver runtime: python27 vm: true api_version: 1 threadsafe: yes handlers: - url: .* script: main_solver.APP libraries: - name: webapp2 version: "2.5.2" manual_scaling: instances: 42 vm_settings: machine_type: n1-standard-1 apt_get_install: python-opencv backend.yaml
  24. We’ve learned a lot -- and we’re happy to share

    Iaas or PaaS is a false choice We’re only getting started! 1 2 3 Summary http://developers.google.com/cloud/managed-vms
  25. The Cloud, Today + Flexibility + Control + Open /

    Familiar - “plumbing” - BYO Management + Productivity + Auto-managed - Opinionated / Cliffs - Lock-in IaaS PaaS
  26. create/ destroy VM VM Replica Pools Replica Pool actuator VM

    Resource View Template image metadata bash cmds Auto-Scaler controller +1/-1 CPU stats Load Balancer