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

DevOps in a Serverless World, best practices and tools

DevOps in a Serverless World, best practices and tools

You might think that moving to Serverless is going to hinder your ability to manage your apps but instead if you adopt the right approach, implement the right objectives, Serverless can instead be a wonderful opportunity to align business goals and development agility.

The presentation covers some SRE (Site Reliabity Engineering) practices such as SLOs and error budget and discusses how Google Cloud Functions, App Engine, and Cloud Run offer both the productivity of Serverless and the observability for proper DevOps.

Alexis MP

May 17, 2019
Tweet

Other Decks in Technology

Transcript

  1. @alexismp
    DevOps et Serverless
    Utopie ou opportunité?
    ALEXIS MOUSSINE-POUCHKINE
    DEVELOPER ADVOCATE
    GOOGLE CLOUD
    @ALEXISMP

    View full-size slide

  2. @alexismp
    Serverless
    Operational
    Model
    No Server Management
    Fully Managed Security
    Pay only for usage
    Programming
    Model
    Service-based Open
    Auto-scale
    Event-driven

    View full-size slide

  3. @alexismp
    Survey !
    Serverless is about deploying :
    1/ Functions, obviously!
    2/ Applications, otherwise it’s just glue code...
    3/ Containers ! (because Kubernetes)

    View full-size slide

  4. @alexismp
    Serverless?

    View full-size slide

  5. @alexismp
    Serverless

    View full-size slide

  6. @alexismp
    Serverless
    No-Ops

    View full-size slide

  7. @alexismp
    Serverless
    No-Ops

    View full-size slide

  8. @alexismp
    Serverless!

    View full-size slide

  9. @alexismp
    01
    Challenges
    Monitoring
    Serverless

    View full-size slide

  10. @alexismp
    agent
    Instances
    Requests
    queue
    event
    pub/sub

    View full-size slide

  11. @alexismp
    cloud.google.com
    Functions
    Cloud Functions
    Cloud Services
    Emit events
    Writes back
    Invokes other services
    Other Services
    Containers
    Applications

    View full-size slide

  12. @alexismp
    Serverless Postcard

    View full-size slide

  13. @alexismp
    02
    Learning from
    Google SRE

    View full-size slide

  14. class SRE implements DevOps
    Site Reliability Engineering

    View full-size slide

  15. SRE
    1,000,000,000 users
    2500

    View full-size slide

  16. Blameless post-mortems
    Incident Management
    CI/CD
    SLI / SLO
    Testing
    Actionable Alerting
    Error Budget
    ...

    View full-size slide

  17. S
    ervice
    L
    evel
    I
    ndicator
    SLO
    SLA
    Does this impact my
    customer, my business?

    View full-size slide

  18. SLI
    S
    ervice
    L
    evel
    O
    bjective
    SLA
    = error budget
    100 % -

    View full-size slide

  19. Versioning
    Multiple versions, all active

    View full-size slide

  20. Canary
    Blue/Green
    Release with flexibility and confidence

    View full-size slide

  21. @alexismp
    cloud.google.com
    Application
    Version
    Service
    Version
    Instance Instance
    Service
    Version Version
    Instance Instance
    Functions
    Containers
    Applications
    App Engine

    View full-size slide

  22. @alexismp
    pic-a-daily.appspot.com

    View full-size slide

  23. @alexismp
    Event-driven logic
    Data storage
    User facing
    Frontend
    Web + API
    Admin app
    Picture files
    Picture metadata &
    most frequent tags
    Vision API annotations:
    Labels, color, filtering
    Via Pub/sub
    Compute most
    popular tags
    pic-a-daily.appspot.com

    View full-size slide

  24. @alexismp
    cloud.google.com
    Containers
    Everything at Google runs in containers
    ● Gmail, Web Search, Maps, ...
    ● MapReduce, batch, ...
    ● GFS, Colossus, ...
    ● Even GCP’s VMs run in containers!
    2 billion containers per week

    View full-size slide

  25. @alexismp
    cloud.google.com
    Functions
    Container to
    production
    in seconds
    One DevX
    Fully-managed
    or GKE
    Containers (can too be serverless)
    Applications
    Cloud Run
    Natively
    serverless

    View full-size slide

  26. @alexismp
    Serverless Compute on Google
    Cloud
    App Engine
    Apps
    Cloud Run
    Containers
    Cloud Functions
    Functions
    NEW!

    View full-size slide

  27. @alexismp
    cloud.google.com
    Serverless Compute on Google
    Cloud
    App Engine
    Cloud Functions Cloud Run
    Apps
    Functions Containers
    NEW!
    Cloud Scheduler
    Cloud Pub/Sub Cloud Tasks

    View full-size slide

  28. @alexismp
    Survey !
    Serverless is about deploying :
    1/ Functions, obviously!
    2/ Applications, otherwise it’s just glue code...
    3/ Containers ! (because Kubernetes)

    View full-size slide

  29. @alexismp
    Deploy anything:
    Functions or Apps
    or Containers !

    View full-size slide

  30. @alexismp
    Tools
    @alexismp
    Metrics
    Logs
    Error Reports
    Events
    Incidents
    Traces

    View full-size slide

  31. @alexismp
    Logging
    Distributed tracing
    across services
    Analysis reports
    Continuous profiling
    CPU and memory costs
    down to the function level
    Real-time Log Analysis
    Centralized and fully-managed
    Traces Profiler

    View full-size slide

  32. @alexismp
    Error Reporting
    Real-time exception
    monitoring & alerting
    Understand
    application errors
    Inspect state of
    running application
    Live snapshots
    Logpoints
    Debugger

    View full-size slide

  33. @alexismp
    Recap
    NoOps is no better term vs.
    Serverless
    Serverless and microservices come
    with unique Ops challenges
    Class SRE implements DevOps
    Tools require opinionated runtimes
    @alexismp

    View full-size slide

  34. @alexismp
    landing.google.com/sre/books

    View full-size slide

  35. @alexismp
    SREs vs. DevOps
    goo.gl/Po28UK

    View full-size slide

  36. @alexismp
    Thank you.
    @alexismp
    ALEXIS MOUSSINE-POUCHKINE
    cloud.google.com

    View full-size slide