Le Plan Copenhague
Le Plan Copenhague
Comment nous avons migré la plateforme 6play vers Le Cloud, sur AWS et Kubernetes.
À propos du livre
You'd be interested by an English translation? Take a look at The Copenhagen Initiative!
6play, la plateforme de replay et de VOD de M6 et d’autres chaînes du Groupe RTL, est hébergée dans Le Cloud ! Ou plutôt, selon le moment où vous lisez ceci, une partie de notre plateforme est hébergée dans Le Cloud.
Avant 2018, notre plateforme était exclusivement hébergée dans un data-centre parisien. Nous y louions une salle, des baies, des serveurs, des connexions réseau. Lorsqu’un disque cassait ou pour ajouter de la RAM à un serveur, un technicien se déplaçait jusqu’au data-centre...
En 2018, nous avons entamé notre migration vers Le Cloud : nous avons basculé la plus grosse partie de notre hébergement chez AWS. Nous utilisons à présent des services managés lorsque nous le pouvons et nos applications sont souvent déployées sous Kubernetes.
Ce livre raconte l’histoire de cette migration : comment avons-nous transformé notre hébergement ? Quels impacts sur nos projets ? Comment nous sommes-nous organisés ? Quels choix avons-nous effectué tout au long du processus ? Qu’avons-nous appris, qu’avons-nous fait évoluer ? Et peut-être même, un ou deux ans plus tard : que ferions-nous différemment si nous devions recommencer ?
Plus que « voici notre plateforme, elle est parfaite », nous allons nous concentrer sur « pourquoi » et « comment ».
Les chapitres actuellement bien avancés (pour les premiers) ou prévus (pour les derniers) sont :
- Introduction : pourquoi ce livre ?
- Notre plateforme, notre projet : tour d’horizon de notre plateforme et de nos applications, de notre contexte technique et de notre projet de migration.
- À la découverte du Cloud et de Kubernetes : pourquoi migrons-nous vers Le Cloud et quel fournisseur retenons-nous ? Comment travailler avec des conteneurs et quelles problématiques un orchestrateur résoudra-t-il ? Quel était notre premier planning de migration ?
- Le Plan Copenhague : notre idée YOLO pour acquérir rapidement de l’expérience sur une application déployée en production.
- Notre setup AWS : comptes, régions et gestion de droits. Infrastructure as Code avec Terraform.
- Notre setup Kubernetes : comment gérons-nous nos clusters, avec kops, et quels composants additionnels installons-nous pour les rendre pleinement fonctionnels ?
- Une première migration : nous migrons enfin notre première application, avec une chaîne de déploiement minimaliste et une approche sécurisante.
- Le début des problèmes : avec une application en production, nous rencontrons enfin une première série de problèmes et nous présenterons les solutions que nous avons développées.
- Une phase de stabilisation : quelles améliorations avons-nous apportées à notre hébergement, comment gérons nous le monitoring, l’alerting et le logging ? En somme, comment avons-nous évolué vers un hébergement réellement prod-ready ?
- Des projets Cloud Native : quel impact a Le Cloud (Kubernetes, services managés…) sur nos projets et nos équipes ?
- Migrons d'autres applications : quels choix avons-nous fait pour migrer d’autres applications plus complexes ? Quels problèmes avons-nous rencontré et comment les avons-nous résolus ?
- CI, CD et recettes : comment se passe l’intégration continue dans un contexte de conteneurs ? Comme déployons-nous nos applications sans douleur ?
- Suivi consommation / coûts : la possibilité de lancer n’importe quel type d’instance ou n’importe quel service est très agréable pour développer… Mais, au bout d’un moment, penchons-nous sur le coût de notre hébergement et sur les optimisations que nous avons mises en place.
- L'environnement de développement : nous avons vite vu que ce point n’allait pas être simple, que ce soit à cause de l’utilisation de services managés ou de conteneurs déployés sous Kubernetes…
La version publiée du livre sera bien sûr mise à jour, gratuitement, lorsque de nouveaux chapitres seront ajoutés ou en cas d’éventuelles corrections.
Table of Contents
-
1. Introduction
- 1.1 Contenu de ce livre
- 1.2 Pourquoi ?
- 1.3 Notre retour d’expérience
- 1.4 Transparence et confidentialité
- 1.5 Conventions d’écriture
- 1.6 À propos de l’auteur
-
2. Notre plateforme, notre projet
- 2.1 Nos applications
- 2.2 Une infrastructure vieillissante
- 2.3 Le futur en approche
- 2.4 L’équipe DevOps
- 2.5 Un cloud public, Kubernetes
- 2.6 C’était un peu flou !
- 2.7 En résumé
-
3. À la découverte du Cloud et de Kubernetes
- 3.1 Pourquoi « Le Cloud » ?
- 3.2 GCP, AWS, …
- 3.3 Kubernetes
- 3.4 À quel prix ?
- 3.5 Premier plan de migration
- 3.6 En résumé
-
4. Le Plan Copenhague
- 4.1 Atteindre la perfection ?
- 4.2 La KubeCon
- 4.3 YOLO!
- 4.4 Retour sur Terre
-
5. Notre setup AWS
- 5.1 Introduction
- 5.2 Régions, zones, HA
- 5.3 Des comptes AWS distincts
- 5.4 Identification et AssumeRole
- 5.5 IaaS et IaC
- 5.6 Le réseau
- 5.7 En résumé
-
6. Notre setup Kubernetes
- 6.1 Introduction
- 6.2 EKS
- 6.3 kops
- 6.4 Composants additionnels
- 6.5 En résumé
-
7. Une première migration
- 7.1 Introduction
- 7.2 Le plan
- 7.3 Une application simple
- 7.4 La CI/CD du pauvre
- 7.5 Sécuriser la bascule avec haproxy
- 7.6 Terminer la bascule ?
- 7.7 En résumé
-
8. Le début des problèmes
- 8.1 Introduction: en production, mais…
- 8.2 Nos outils de départ
- 8.3 Logging, monitoring et alerting
- 8.4 Quelques problèmes : des cas réels !
- 8.5 Quelques « préoccupations »
- 8.6 En résumé
-
9. Une première phase de stabilisation
- 9.1 Introduction
- 9.2 Le setup AWS
- 9.3 Cluster Kubernetes (kops)
- 9.4 Applications et leur infrastructure
- 9.5 Du monitoring, de l’alerting
- 9.6 La documentation
- 9.7 En résumé
-
10. Des projets Cloud Native
- 10.1 Introduction
- 10.2 Cloud Native ?
- 10.3 Comment ça se passe, en vrai ?
- 10.4 Le répertoire .cloud
- 10.5 Quelques exemples
- 10.6 Quels impacts ?
- 10.7 En résumé
-
11. Migrons toutes nos applications !
- 11.1 Introduction
- 11.2 Migrer des applications ?
- 11.3 Une API pour connaitre l’heure
- 11.4 Stockage d’images et génération de miniatures
- 11.5 Le collecteur d’événements
- 11.6 Notre API de catalogue
- 11.7 Les préférences utilisateurs
- 11.8 Le Front Web
- 11.9 Backoffices
- 11.10 C’est du boulot !
- 11.11 En résumé
- 12. TODO - Une seconde phase de stabilisation
- 13. TODO - CI, CD et recettes
- 14. TODO - Suivi consommation / coûts
- 15. TODO - L’environnement de développement
-
Annexes
- Remerciements
- Aidez-moi !
- Timeline
- Quelques lectures intéressantes
- Changelog
- Notes
Authors have earned$10,089,287writing, publishing and selling on Leanpub, earning 80% royalties while saving up to 25 million pounds of CO2 and up to 46,000 trees.
En savoir plus sur l'écriture avec Leanpub
Aucun risque ! Satisfait ou remboursé !
Durant les 45 jours suivant l'achat, vous pouvez obtenir un remboursement à 100% de la part de Leanpub, en moins de deux clics. Nous traitons les remboursements manuellement, un délai de quelques jours est nécessaire. Voir nos conditions générales.
Free Updates. DRM Free.
If you buy a Leanpub book, you get free updates for as long as the author updates the book! Many authors use Leanpub to publish their books in-progress, while they are writing them. All readers get free updates, regardless of when they bought the book or how much they paid (including free).
Most Leanpub books are available in PDF (for computers), EPUB (for phones and tablets) and MOBI (for Kindle). The formats that a book includes are shown at the top right corner of this page.
Finally, Leanpub books don't have any DRM copy-protection nonsense, so you can easily read them on any supported device.
Learn more about Leanpub's ebook formats and where to read them
Top Books
C++20
Rainer GrimmC++20 is the next big C++ standard after C++11. As C++11 did it, C++20 changes the way we program modern C++. This change is, in particular, due to the big four of C++20: ranges, coroutines, concepts, and modules.
The book is almost daily updated. These incremental updates ease my interaction with the proofreaders.
A Guide to Artificial Intelligence in Healthcare
Dr. Bertalan MeskoCan we stay human in the age of A.I.? To go even further, can we grow in humanity, can we shape a more humane, more equitable and sustainable healthcare? This e-book aims to prepare healthcare and medical professionals for the era of human-machine collaboration. Read our guide to understanding, anticipating and controlling artificial intelligence.
C++ Best Practices
Jason TurnerLevel up your C++, get the tools working for you, eliminate common problems, and move on to more exciting things!
Atomic Kotlin
Bruce Eckel and Svetlana IsakovaFor both beginning and experienced programmers! From the author of the multi-award-winning Thinking in C++ and Thinking in Java together with a member of the Kotlin language team comes a book that breaks the concepts into small, easy-to-digest "atoms," along with exercises supported by hints and solutions directly inside IntelliJ IDEA!
Sockets and Pipes
Type ClassesSockets and Pipes is not an introduction to Haskell; it is an introduction to writing software in Haskell. Using a handful of everyday Haskell libraries, this book walks through reading the HTTP specification and implementing it to create a web server.
Introducing EventStorming
Alberto BrandoliniThe deepest tutorial and explanation about EventStorming, straight from the inventor.
node-opcua by example
Etienne RossignonGet the best out of node-opcua through a set of documented examples by the author himself that will allow you to create stunning OPCUA Servers or Clients.
Ansible for DevOps
Jeff GeerlingAnsible is a simple, but powerful, server and configuration management tool. Learn to use Ansible effectively, whether you manage one server—or thousands.
Functional Design and Architecture
Alexander GraninSoftware Design in Functional Programming, Design Patterns and Practices, Methodologies and Application Architectures. How to build real software in Haskell with less efforts and low risks. The first complete source of knowledge.
Composing Software
Eric ElliottAll software design is composition: the act of breaking complex problems down into smaller problems and composing those solutions. Most developers have a limited understanding of compositional techniques. It's time for that to change.
Top Bundles
- #1
Software Architecture for Developers: Volumes 1 & 2 - Technical leadership and communication
2 Books
"Software Architecture for Developers" is a practical and pragmatic guide to modern, lightweight software architecture, specifically aimed at developers. You'll learn:The essence of software architecture.Why the software architecture role should include coding, coaching and collaboration.The things that you really need to think about before... - #2
All the Books of The Medical Futurist
6 Books
We put together the most popular books from The Medical Futurist to provide a clear picture about the major trends shaping the future of medicine and healthcare. Digital health technologies, artificial intelligence, the future of 20 medical specialties, big pharma, data privacy, digital health investments and how technology giants such as Amazon... - #3
PowerShell
3 Books
Buy every PowerShell book from Adam Bertram at a 20% discount! - #4
Cisco CCNA 200-301 Complet
4 Books
Ce lot comprend les quatre volumes du guide préparation à l'examen de certification Cisco CCNA 200-301. - #5
Linux Administration Complet
4 Books
Ce lot comprend les quatre volumes du Guide Linux Administration :Linux Administration, Volume 1, Administration fondamentale : Guide pratique de préparation aux examens de certification LPIC 1, Linux Essentials, RHCSA et LFCS. Administration fondamentale. Introduction à Linux. Le Shell. Traitement du texte. Arborescence de fichiers. Sécurité... - #6
Modern C++ by Nicolai Josuttis
2 Books
- #7
Django for Beginners/APIs/Professionals
3 Books
- #8
Learn Git, Bash, and Terraform the Hard Way
3 Books
Learn Git, Bash and Terraform using the Hard Way method.These technologies are essential tools in the DevOps armoury. These books walk you through their features and subtleties in a simple, gradual way that reinforces learning rather than baffling you with theory. - #9
Software Architecture and Beautiful APIs
2 Books
There is no better way to learn how to design good APIs than to look at many existing examples, complementing the Software Architecture theory on API design. - #10
Digital Future of Healthcare and Pharma
3 Books
These three popular e-books from The Medical Futurist describes how digital health technologies will shape the future of health, healthcare, medicine and pharma with exciting infographics in a digestible format.