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

Introduction au FinOps avec Google Cloud

Introduction au FinOps avec Google Cloud

Vidéo Youtube : https://www.youtube.com/watch?v=CKJ2JbhSqQs&list=PLdVDu8iO6zrMurVwGrFR23uw5OtGh4vFx&index=1
Joué à la Best-Of-Technozaure avec Zenika
https://www.eventbrite.fr/e/billets-best-of-technozaure-4-par-et-pour-des-passionnes-de-tech-592457485287

"FinOps" est un nouveau mot-clé apparu courant 2020 qui ne cesse de prendre de l'ampleur sur Linkedin au côtés de "Cloud" ou "SRE".

Mais c'est quoi le FinOps? (D'ailleurs, on dit peut-être la FinOps en 🇫🇷 😅 ?) Est-ce lié au fait que les devs peuvent tout déployer n'importe comment sans regarder le coût engendré ? Est-ce une nouvelle organisation dans l'entreprise ? Et toi, peux-tu devenir certifié "FinOps" ?

Quelles sont les mécanismes disponibles en standard avec un Cloud Provider comme Google Cloud ? Peut-on facilement profiter de ces optimisations ?

En retraçant le chemin du Cloud et en étudiant la FinOps Foundation, fondation fille de la Linux Foundation, découvre ce qui se cache derrière ce buzzword! 💸

Julien Landuré

May 11, 2023
Tweet

More Decks by Julien Landuré

Other Decks in Programming

Transcript

  1. 💻 + 🚀 + ☁ = 💸
    Introduction au FinOps
    avec Google Cloud

    View full-size slide

  2. Julien Landuré
    Cloud Practice Leader
    GDG & DevFest Nantes Organizer
    GDE Cloud
    jlandure.dev
    @jlandure

    View full-size slide

  3. Back to the future

    View full-size slide

  4. 5 stratégies de
    déploiement
    Rehost
    Replatform
    Refactor
    Rebuild
    Replace

    View full-size slide

  5. IaaS SaaS
    PaaS
    Servers
    VM instances
    Clusters
    Cluster management
    Serverless, autoscaling
    Google Cloud Platform products and services
    Compute
    Engine
    Kubernetes
    Engine
    Cloud Run Cloud
    Functions
    App Engine
    Compute Spectrum

    View full-size slide

  6. Proprietary + Confidential
    IaaS
    Pay for what
    they allocate
    PaaS
    Pay for what
    they use
    Payment models

    View full-size slide

  7. Ce qui existe en standard…
    “Pay-as-you-go” model

    View full-size slide

  8. VM World
    Virtual machine
    Kernel
    Dependencies
    Application Code
    Hardware +
    hypervisor
    Dedicated server
    Kernel
    Dependencies
    Application Code
    Hardware
    Container
    Kernel +
    Container Runtime
    Dependencies
    Application Code
    Hardware
    Deployment ~mins (sec)
    Portable
    Very Efficient
    Deployment ~months
    Not portable
    Low utilization
    Deployment ~days (mins)
    Hypervisor specific
    Low isolation, Tied to OS

    View full-size slide

  9. Container World (Kubernetes)
    Virtual machine
    Kernel
    Dependencies
    Application Code
    Hardware +
    hypervisor
    Dedicated server
    Kernel
    Dependencies
    Application Code
    Hardware
    Container
    Kernel +
    Container Runtime
    Dependencies
    Application Code
    Hardware
    Deployment ~mins (sec)
    Portable
    Very Efficient
    Deployment ~months
    Not portable
    Low utilization
    Deployment ~days (mins)
    Hypervisor specific
    Low isolation, Tied to OS
    Master
    Nodes

    View full-size slide

  10. Proprietary + Confidential
    Google Compute products are billed per-second

    View full-size slide

  11. Per VM max:
    ● 416 vCPUs, 12 TB of RAM, GPUs, TPUs
    ● Independently configurable, including disk!
    Start quickly, ~20 seconds to user code running
    Pre-built images, or create your own
    ● Debian, CentOS, CoreOS, Ubuntu, RHEL, SUSE
    ● Windows Server Datacenter: 2008, 2012 R2, 2016 , 2019
    What is Compute Engine?

    View full-size slide

  12. Disk
    Persistent Disk
    ● Network based
    ● Configure size (to 64 TB)
    ● Disk or SSD
    ● Independent of VM
    ○ Global Snapshots
    ○ Multi-VM RO mount
    ● Larger disks ==
    more throughput
    Local SSD
    ● Lowest latency
    ● 375 GB per disk (up to 8)
    ● Tied to VM lifecycle

    View full-size slide

  13. GCE
    Machine Types

    View full-size slide

  14. Custom Machine feature
    ● Flexible configurations
    ● Create a machine type with 1 vCPU and up to 96
    vCPUs
    ● Extended Memory enables higher Mem:vCPU
    ratios
    ● Sizing recommendation
    // CREATE INSTANCE WITH 6 vCPUs and 5 GB MEMORY
    gcloud compute instances create my-vm --custom-cpu 6
    --custom-memory 5
    Config your own custom machine, with average 19% savings

    View full-size slide

  15. Preemptible / Spot VMs
    Short lived, low cost virtual machines.
    ● Can run up to 24 hours
    ● Might be preempted at any time with
    30 seconds notification
    ● Much lower price (up to 80% cheaper)
    than regular instances
    ● Offers the same machine types and options as regular
    VM instances
    ● Best for running non-urgent fault-tolerant jobs or
    short-lived tasks, like genomics, media transcoding, etc.

    View full-size slide

  16. Managed instance groups (MIGs)
    ● Instance group can be resized
    ● Manager ensures all instances are RUNNING
    ● Typically used with autoscaler
    ● Can be single zone or regional
    ● Supports autohealing
    A collection of identical VM instances that you control as a single
    entity, using an instance template.

    View full-size slide

  17. Usage Level (%
    of month)
    % at which
    incremental is
    charged
    0% - 25%
    100% of base rate
    25% - 50% 80% of base rate
    50% - 75% 60% of base rate
    75% - 100% 40% of base rate
    Up to 30% net discount for instances that run the entire month.
    Sustained use discounts

    View full-size slide

  18. Ce qui existe en standard…
    “Pay-as-you-use” model

    View full-size slide

  19. Serverless
    Deploy and scale applications fast and securely in a fully
    managed environment
    No Infra
    Management
    Auto-scaling

    View full-size slide

  20. Pay per use
    CPU / Memory / Requests 100ms
    Pay per use

    View full-size slide

  21. Cloud Run – Billable container instance time

    View full-size slide

  22. Ce qui existe en standard…
    Pour mesurer et comprendre

    View full-size slide

  23. Google Cloud Pricing Calculator
    Search for product you are interested
    in
    Estimate
    Instances
    cloud.google.com/products/calculator

    View full-size slide

  24. Billing tools help to budget and monitor usage
    Budgets Alerts Reports Quotas

    View full-size slide

  25. Ce qui existe en standard…
    Free tiers

    View full-size slide

  26. Free
    tier
    https://cloud.google.com/free

    View full-size slide

  27. Point d’étape

    View full-size slide

  28. FinOps
    https:/
    /www.finops.org

    View full-size slide

  29. FinOps Principles by FinOps Foundation - FinOps Foundation under the ccby4.0 license

    View full-size slide

  30. 🌐 Identified FinOps practitioners

    View full-size slide

  31. 📝 Definition
    L'approche FinOps, contraction des termes de finance et d’opérations,
    vise au monitoring et à l’optimisation des coûts en matière de cloud
    computing. Il est question, dans le même esprit que la stratégie
    DevOps, d’encourager la coopération et l’assimilation des moyens IT
    par les métiers. De ce fait, les pratiques FinOps ajoutent une dimension
    financière dans la gestion des coûts du Cloud.

    View full-size slide

  32. DevOps
    ❌ a standard
    ❌ a certification
    ❌ a goal
    ✅ a culture
    ✅ a philosophy
    ✅ a journey

    View full-size slide

  33. 1. Teams need to collaborate
    2. Everyone takes ownership for their cloud usage
    3. A centralized team drives FinOps
    4. Reports should be accessible and timely
    5. Decisions are driven by business value of cloud
    6. Take advantage of the variable cost model of the cloud.
    📌 Key principles in FinOps

    View full-size slide

  34. Cloud FinOps is an evolving cloud financial
    management discipline and cultural practice that:
    to collaborate on data-driven spending decisions
    enables organizations to get maximum business value
    by helping engineering, finance and business teams
    FinOps.org
    FinOps Principles by FinOps Foundation - FinOps Foundation under the ccby4.0 license

    View full-size slide

  35. FinOps Principles by FinOps Foundation - FinOps Foundation under the ccby4.0 license

    View full-size slide

  36. 💬 Ecosystem

    View full-size slide

  37. 💰 25 Premier Members & 51 general members

    View full-size slide

  38. 💪 Upskilling

    View full-size slide

  39. 👤 FinOps Personas

    View full-size slide

  40. 42
    FinOps Principles by FinOps Foundation - FinOps Foundation under the ccby4.0 license
    🎓 Training & Certification

    View full-size slide

  41. 43
    💚 Community

    View full-size slide

  42. 💡 Capabilities
    Accelerate / State of DevOps Report

    View full-size slide

  43. ⚙ Domain & Capabilities

    View full-size slide

  44. 🚧 Tooling

    View full-size slide

  45. 💡 Examples of measurement

    View full-size slide

  46. ⚡ What is the difference between forecasted
    spend and actual spend?

    View full-size slide

  47. 🎁 Percentage of commitment-based discounts
    that are estimated to go unused each month

    View full-size slide

  48. Comment l’appliquer au
    monde Google Cloud ?

    View full-size slide

  49. Des leviers disponibles
    Solutions de stockage
    Utiliser les différentes classes de
    stockage, designer le stockage
    Ressources préemptibles
    Utiliser la surcapacité de l'infrastructure
    Google
    Ressources orphelines / inutilisées
    Supprimer les ressources inutilisées (instances,
    disk, snapshots, IPs, etc.)
    Planification
    Allumer / éteindre les ressources
    en fonction de leur plage
    d'utilisation
    Redimensionnement
    Choisir les bons types d’instances de
    l’utilisation réelle du système
    Engagement de ressources
    Engagement en matière de consommation de
    services & campagne globale de réduction
    Architecture
    Revoir l'architecture pour utiliser
    les services les plus efficaces
    Optimisation
    BigQuery Analysis
    Optimisation des coûts
    des requêtes

    View full-size slide

  50. Oui d’accord et ?

    View full-size slide

  51. Exemple 1 : Firebase

    View full-size slide

  52. Exemple 2 : GKE

    View full-size slide

  53. Exemple 3 : CUD

    View full-size slide

  54. 💡 Committed Use Discounts (CUDs)
    Spend-based CUDs
    Exemple: $50/hour spend in Cloud SQL
    (PgSQL) dans us-central1
    Services pris en charge : Cloud SQL,
    Cloud Spanner, Cloud Run, Google
    Cloud VMware Engine, Google
    Kubernetes Engine (Mode Autopilot
    Resource-based CUDs
    Ex: 50 vCPU pour N2D dans
    us-central1
    Services pris en charge : Compute
    Engine, Dataproc, Google
    Kubernetes Engine (Standard)

    View full-size slide

  55. Réserver un engagement de
    3 ans pour économiser
    $164,160 sur ce projet

    View full-size slide

  56. Exemple 4 : Cloud Native Dev

    View full-size slide

  57. Développer en
    respectant les
    Cloud Patterns

    View full-size slide

  58. ● 👍 Un sujet tendance avec de vrais concepts
    ● 🔐 Démarche essentielle comme le SRE ou la Securité
    ● 💪 Une culture “FinOps” à diffuser
    ○ Autoscaling de 0 à N – par env (hors-prod / prod)
    ○ Respect de 12-Factors côté dev
    ○ Profiter au maximum du pricing model du Serverless
    ○ Choisir le bon outil pour faire la bonne chose
    ○ Observer, mesurer et maîtriser son architecture
    ○ Savoir quand se “commit” et sur quelle durée
    Les points à retenir

    View full-size slide

  59. 💚 #GreenIT

    View full-size slide

  60. https:/
    /greensoftware.foundation

    View full-size slide

  61. 🙌 Merci !
    jlandure.dev
    @jlandure
    Introduction au FinOps avec Google Cloud ☁

    View full-size slide