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

Navigating Google Cloud Platform

Navigating Google Cloud Platform

An introduction for all of GCP at I/O

Terrence Ryan

August 02, 2017
Tweet

More Decks by Terrence Ryan

Other Decks in Technology

Transcript

  1. Navigating Google Cloud Platform
    Your first week on GCP
    +Terrence Ryan
    @tpryan

    View full-size slide

  2. @tpryan
    Introduction

    View full-size slide

  3. @tpryan
    Who are you?

    View full-size slide

  4. @tpryan
    Help developers and sysadmins new
    to GCP identify the stuff they need
    Goal

    View full-size slide

  5. @tpryan
    (╯°□°)╯︵ ┻━┻

    View full-size slide

  6. @tpryan
    ● Computing
    ● Networking
    ● Storage
    ● Big data
    ● Administration
    ● Development
    ● Machine learning
    Agenda

    View full-size slide

  7. @tpryan
    Computing
    Doing things

    View full-size slide

  8. @tpryan
    Virtual machines Containers Serverless
    Computing

    View full-size slide

  9. @tpryan
    Virtual Machines
    ● 1 - 64 processors
    ● .6 - 416 GB (.9 - 6.5 GB per proc)
    ● Disk limits
    ­ 65 TB Persistent
    ­ 3 TB SSD
    ­ 208 RAM
    ● Preconfigured images
    ● Can build your own
    ● Spin up in 10s of seconds
    Compute Engine

    View full-size slide

  10. @tpryan
    Virtual Machines
    ● Prebuilt software images
    ● Single systems
    ● Groups of systems
    Cloud Launcher

    View full-size slide

  11. @tpryan
    Compute Engine Demo
    Kick the tires and launch a few VMs

    View full-size slide

  12. @tpryan
    Containers

    View full-size slide

  13. @tpryan
    Containers
    ● Managed Kubernetes
    Container Engine

    View full-size slide

  14. @tpryan
    Kuber-what-es?

    View full-size slide

  15. @tpryan
    Frontend
    10.0.0.1
    Public
    130.91.x.x1
    API
    10.0.0.2
    Public
    130.91.x.x2
    Data
    10.0.0.3
    Kubernetes
    ● Container Orchestration System
    ● Allows for running a large number of containers
    in production
    ● Organizing them into workloads
    ­ Microservices
    Scheduled jobs
    Batch jobs

    View full-size slide

  16. @tpryan
    DNS
    Server
    Logging
    Service
    Discovery
    Monitoring
    !
    Kubernetes

    View full-size slide

  17. @tpryan
    DNS
    Server
    Logging
    Service
    Discovery
    Monitoring
    !

    View full-size slide

  18. @tpryan
    Container Engine demo
    Launch a few services

    View full-size slide

  19. @tpryan
    ● Managed Kubernetes
    (Containers as a service)
    ● Smart defaults for
    ­ Monitoring
    ­ Logging
    ­ DNS
    ­ Service Discovery
    ● Auto scaling
    Container Engine
    ● Custom Runtime
    ­ Bring your own Dockerfile
    ● Autoscaling
    ● Given one endpoint per service
    App Engine flexible environment

    View full-size slide

  20. @tpryan
    ● Container image storage
    ● Works with
    Container Engine
    App Engine flexible
    Docker
    Container Registry
    ● Container building as service
    ● Integrates with Container Registry
    ● Integrated with build processes
    Container Builder

    View full-size slide

  21. @tpryan
    ● Languages
    ­ Java 8 / Servlet 3.1 /
    ­ Jetty 9
    ­ Python 2.7 & 3.5
    ­ Node.js
    ­ Ruby
    ­ PHP
    ­ Go
    ­ Open capabilities
    App Engine flexible runtime
    ● Languages
    ­ Python 2.7
    ­ Java 7
    ­ PHP 5.5
    ­ Go
    ● Constrained capabilities
    ● Incredibly rapid scale
    App Engine standard runtime
    ● Javascript / Node.js
    ● Respond to events
    Cloud functions

    View full-size slide

  22. @tpryan
    App Engine Load Demo
    Quick demo showing App Engine in comparison
    to Compute Engine

    View full-size slide

  23. @tpryan
    Networking
    Connecting things

    View full-size slide

  24. @tpryan
    ● Create custom private cloud networks
    ● Set up custom routes to your other non-Google
    locations
    Cloud Virtual Network
    ● Create a dedicated connection to Google
    ● Direct Peer to one of our local or regional
    Points of Presence
    Cloud Interconnect

    View full-size slide

  25. @tpryan
    ● Gateway to Gateway Only
    ● Can be used to connect to any IPSEC compliant
    gateway
    VPN
    ● Set up rules
    ● Apply rules to tags
    ● Apply tags to hosts
    Firewall

    View full-size slide

  26. @tpryan
    ● Activate through our
    load balancers
    ● Uses HTTP headers to
    determine cacheability
    CDN
    ● Manage DNS on Google’s network
    ● SLA promises 100% availability of
    our Authoritative Name Servers
    DNS
    ● HTTP
    ● SSL
    ● Internal
    ● Network
    Load Balancers

    View full-size slide

  27. @tpryan
    What if I need
    something you don’t
    offer?

    View full-size slide

  28. @tpryan
    ● Build by hand
    Compute Engine
    ● Prebuilt solutions for:
    ­ Barracuda
    ­ Brocade
    ­ Cloudflare
    ­ more...
    Cloud Launcher

    View full-size slide

  29. @tpryan
    Storage
    Keeping things

    View full-size slide

  30. @tpryan
    Files Databases Big Data
    Storage

    View full-size slide

  31. @tpryan
    File Storage
    ● One set of interfaces
    ● Several types
    ­ Multi-regional
    ­ Regional
    ­ Nearline
    ­ Coldline
    Cloud Storage

    View full-size slide

  32. @tpryan
    Public Content Processed Data Long Term Storage
    File Storage

    View full-size slide

  33. @tpryan
    Public Processed Long Term Storage
    Characteristics 99.95% availability
    Geo-redundant
    99.9% availability
    Data stored in a narrow
    geographic region
    99.0% availability
    30-day minimum storage duration
    99.0% availability
    90-day minimum storage duration
    Uses Cases Frequently accessed
    World Audience
    Website content
    Streaming video
    Gaming
    Mobile
    Accessed by your system
    But not by your customers
    Big Data sets for processing
    Backup
    Long tail multimedia
    Disaster recovery
    Compliance archives
    Storage Cost
    GB/month
    $.026 $.02 $.01 $.007
    Retrieval Cost
    GB
    $.01 $.05
    Storage Type Multi-region Regional Nearline Coldline

    View full-size slide

  34. @tpryan
    NoSQL
    Application data
    SQL

    View full-size slide

  35. @tpryan
    ● Traditional SQL Server
    ● Vertically scalable
    ● Managed backups
    ● Easy to setup replicas
    ● Types
    ­ MySQL
    ­ Postgres
    Cloud SQL
    ● Structured data
    ● Highly available
    ● Strongly consistent
    ● CAP theorem says impossible
    ● Globally distributed
    ● Horizontally scalable
    Cloud Spanner

    View full-size slide

  36. @tpryan
    ● Document based
    ● Indexable
    ● Giant
    Cloud Datastore
    ● Columnar
    ● Low latency
    ● Hbase API compatible
    ● Needs scale to be cost effective
    Cloud Bigtable

    View full-size slide

  37. @tpryan
    Databases Big data
    Storage
    Files

    View full-size slide

  38. @tpryan
    Where do you store
    Big Data?

    View full-size slide

  39. @tpryan
    Cloud
    Datastore
    Cloud
    SQL
    Cloud
    Spanner
    Cloud
    Bigtable
    Cloud
    Storage

    View full-size slide

  40. @tpryan
    Big Data
    ● Pipe in semi-structured data
    ● Analyze it quickly
    ● Use SQL to do it.
    BigQuery

    View full-size slide

  41. @tpryan
    BigQuery Demo
    Quick demo showing BigQuery

    View full-size slide

  42. @tpryan
    ● Messaging Bus
    ● Many to many
    Pub/Sub
    ● Managed service for data analysis
    ● Apache Beam
    Dataflow
    ● Managed Spark and
    Hadoop
    ● With Autoscaling
    DataProc

    View full-size slide

  43. @tpryan
    Cloud
    Datastore
    Cloud
    SQL
    Cloud
    Spanner
    Cloud
    Bigtable
    BigQuery
    Translation
    API
    Natural
    Language API
    Speech
    API
    Vision
    API
    Cloud
    Dataflow
    Compute
    Engine
    App
    Engine
    Container
    Engine
    Cloud
    Functions
    Cloud
    Pub/Sub
    Cloud
    Storage

    View full-size slide

  44. @tpryan
    What if I need
    something you don’t
    offer?

    View full-size slide

  45. @tpryan
    ● Build by hand
    Compute Engine
    ● Prebuilt solutions for:
    ­ Cassandra
    Redis
    Mongo
    CouchDB
    more...
    Cloud Launcher

    View full-size slide

  46. @tpryan
    Administration
    Operations

    View full-size slide

  47. @tpryan
    ● Cross Cloud Logging
    ­ GCP
    AWS
    On Prem possible
    Stackdriver Logging
    ● Cross Cloud Monitoring
    ­ GCP
    ­ AWS
    ● Alerts based off
    ­ Logs
    ­ Uptime checks
    ­ Built in or Custom Metrics
    Stackdriver Monitoring

    View full-size slide

  48. @tpryan
    Security
    ● Allow for group of resources
    ● Role based permissions
    ● Fine grained controls
    ● Vary from product to product
    Cloud IAM

    View full-size slide

  49. @tpryan
    ● Gcloud
    ● gsutil
    CLI
    ● SDK for most languages
    ● REST endpoints
    ● Functional equivalent to gcloud
    API
    ● Repeatable Complex
    deployments
    ● Configs
    ● Templates
    ● Disk Images
    ● Network setup
    ● more
    Deployment Manager

    View full-size slide

  50. @tpryan
    Development
    Code

    View full-size slide

  51. @tpryan
    ● Gcloud
    ● gsutil
    SDK
    ● IntelliJ
    ● Android Studio
    ● Powershell
    ● Visual Studio
    ● Eclipse
    Plugins
    ● Cloud Source Repository
    Others

    View full-size slide

  52. @tpryan
    Reporting
    ● Automatic
    ­ App Engine
    ­ Load Balancers
    ● Enabled through an SDK
    ­ Java
    ­ Node.js
    ­ Go
    ­ Ruby
    ­ Zipkin
    ● Links to logs
    Stackdriver Trace

    View full-size slide

  53. @tpryan
    Reporting
    ● Aggregate
    ● Logs or API
    ● Alerts
    Stackdriver Error Reporting

    View full-size slide

  54. @tpryan
    Debugging
    ● App Engine
    Java
    Python
    Node.js
    Ruby
    ● Compute Engine
    Java
    Python
    Go
    Stackdriver Debugging

    View full-size slide

  55. @tpryan
    Services
    API Manager

    View full-size slide

  56. @tpryan
    Using Models Creating Models Extending Models
    Machine Learning

    View full-size slide

  57. @tpryan
    Natural Language API
    ● Syntax Analysis
    ● Entity
    Recognition
    ● Sentiment
    Analysis
    ● Multi-Language
    Speech API
    ● Automatic
    Speech
    Recognition
    ● Streaming
    ● 80 languages
    Translation API
    ● Language
    Detection
    ● Translation
    ● Whole document
    Vision API
    ● Face Detection
    ● Label Detection
    ● Logo Detection
    ● OCR
    Machine Learning

    View full-size slide

  58. @tpryan
    Machine Learning
    ● Managed Tensor Flow
    Cloud ML Engine

    View full-size slide

  59. @tpryan
    What-flow?

    View full-size slide

  60. @tpryan
    Machine Learning
    ● Open Source ML Library
    ● Builds models
    ● Allows you to compute with variable
    levels of CPU/GPU power
    Tensor Flow

    View full-size slide

  61. @tpryan
    Machine Learning
    ● Managed Tensor Flow
    ● Self-tuning
    ● Portable
    Cloud ML Engine

    View full-size slide

  62. @tpryan
    Conclusions
    ┬─┬ ノ( ゜-゜ノ)

    View full-size slide

  63. @tpryan
    There’s a lot of stuff
    here

    View full-size slide

  64. @tpryan
    What’s next?
    Start a free trial
    cloud.google.com/free
    Stop by Dome Sandbox H

    View full-size slide

  65. Thank you!
    +Terrence Ryan
    @tpryan

    View full-size slide

  66. Thank you
    @tpryan

    View full-size slide

  67. @tpryan
    Connection Security Availability
    Networking

    View full-size slide

  68. @tpryan
    Reporting Security Configuration
    Administration

    View full-size slide

  69. @tpryan
    Coding Reporting Services
    Development

    View full-size slide

  70. @tpryan
    Development

    View full-size slide