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$9,886,858writing, 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++ Best Practices
Jason TurnerLevel up your C++, get the tools working for you, eliminate common problems, and move on to more exciting things!
OpenIntro Statistics
David Diez, Christopher Barr, Mine Cetinkaya-Rundel, and OpenIntroA complete foundation for Statistics, also serving as a foundation for Data Science.
Leanpub revenue supports OpenIntro (US-based nonprofit) so we can provide free desk copies to teachers interested in using OpenIntro Statistics in the classroom and expand the project to support free textbooks in other subjects.
More resources: openintro.org.
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.
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!
R Programming for Data Science
Roger D. PengThis book brings the fundamentals of R programming to you, using the same material developed as part of the industry-leading Johns Hopkins Data Science Specialization. The skills taught in this book will lay the foundation for you to begin your journey learning data science. Printed copies of this book are available through Lulu.
I am a Software Engineer and I am in Charge
Alexis Monville and Michael DoyleI am a Software Engineer and I am in Charge is a real-world, practical book that helps you increase your impact and satisfaction at work no matter who you work with.
In the book, we will follow Sandrine, a fictional character who learns to think in a new way enabling her to take a different course of action.
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.
Invest In Digital Health - The Medical Futurist's Guide
Dr. Bertalan MeskoArtificial Intelligence and Digital Health are booming. In this book, we explain why now it's a good time to invest in Digital Health and give recommendations on where to invest by looking at the top 24 technological trends we find the most promising.
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.
The Hundred-Page Machine Learning Book
Andriy BurkovEverything you really need to know in Machine Learning in a hundred pages.
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
CCIE Service Provider Ultimate Study Bundle
2 Books
Piotr Jablonski, Lukasz Bromirski, and Nick Russo have joined forces to deliver the only CCIE Service Provider training resource you'll ever need. This bundle contains a detailed and challenging collection of workbook labs, plus an extensively detailed technical reference guide. All of us have earned the CCIE Service Provider certification... - #3
The Future of Digital Health
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 and how technology giants such as Amazon or Google want to conquer... - #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
Modern Management Made Easy
3 Books
Read all three Modern Management Made Easy books. Learn to manage yourself, lead and serve others, and lead the organization. - #6
CCDE Practical Studies (All labs)
3 Books
CCDE lab - #7
Modern C++ by Nicolai Josuttis
2 Books
- #8
"The C++ Standard Library" and "Concurrency with Modern C++"
2 Books
Get my books "The C++ Standard Library" and "Concurrency with Modern C++" in a bundle. The first book gives you the details you should know about the C++ standard library; the second one dives deeper into concurrency with modern C++. In sum, you get more than 600 pages full of modern C++ and about 250 source files presenting the standard library... - #9
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é... - #10
Advanced Product Management
3 Books
Get The Art of Strategy, Product Discovery and Lean Product Management with a 20% discount.