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 des matières
-
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. Suivi consommation / couts
- 14.1 Introduction
- 14.2 Les couts, dans notre contexte
- 14.3 Un peu de théorie et premiers pas
- 14.4 Des améliorations que nous avons réalisées
- 14.5 D’autres pistes pour l’avenir ?
- 14.6 En résumé
-
15. L’environnement de développement
- 15.1 Introduction
- 15.2 De quoi partions-nous ?
- 15.3 Pendant notre migration…
- 15.4 Et après ?
- 15.5 En résumé
- 16. TODO - Nous avons terminé notre migration !
-
Annexes
- Remerciements
- Aidez-moi !
- Timeline
- Quelques lectures intéressantes
- Changelog
- Notes
Aucun risque ! Satisfait ou remboursé !
Durant les 60 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.
80% Royalties. Earn $16 on a $20 book.
We pay 80% royalties. That's not a typo: you earn $16 on a $20 sale. If we sell 5000 non-refunded copies of your book or course for $20, you'll earn $80,000.
(Yes, some authors have already earned much more than that on Leanpub.)
In fact, authors have earned$12,307,240writing, publishing and selling on Leanpub.
Learn more about writing on Leanpub
Mises à jour gratuit. Sans DRM.
Si vous achetez un livre Leanpub, vous obtenez des mises à jour gratuit tant que l'auteur met à jour le livre ! De nombreux auteurs utilisent Leanpub pour publier leurs livres en cours, lorsqu'ils les écrivent. Tous les lecteurs obtiennent les mises à jour gratuites, quel que soit le moment où ils ont acheté le livre ou combien ils ont payé (même s'ils étaient gratuits).
La plupart des livres Leanpub sont disponibles en format PDF (pour les ordinateurs) et EPUB (pour les téléphones, les tablettes, et les Kindles). Les formats inclus sont affichés dans le coin droit supérieur de cette page.
Finalement, les livres Leanpub n'ont pas de DRM, d'abord vous pouvez toujour les lire facilement sur n'importe quel appareil pris en charge.
En savoir plus sur les formats des livres ebook de Leanpub et où les lire
Top Books
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.
Personal Finance
Jason AndersonThis textbook provides an in-depth analysis on personal finance that is both practical and straightforward in its approach. It has been written in such a way that the readers can gain knowledge without getting overwhelmed by the technical terms. Suitable for both beginners and advanced learners.
Getting to Know IntelliJ IDEA
Trisha Gee and Helen ScottIf we treat our IDE as a text editor, we are doing ourselves a disservice. Using a combination of tutorials and a questions-and-answers approach, Getting to Know IntelliJ IDEA will help you find ways to use IntelliJ IDEA that enable you to work comfortably and productively as a professional developer.
C++20 - The Complete Guide
Nicolai M. JosuttisAll new language and library features of C++20 (for those who know previous C++ versions).
The book presents all new language and library features of C++20. Learn how this impacts day-to-day programming, to benefit in practice, to combine new features, and to avoid all new traps.
Buy early, pay less, free updates.
Other books:
Mastering STM32 - Second Edition
Carmine NovielloWith more than 1200 microcontrollers, STM32 is probably the most complete ARM Cortex-M platform on the market. This book aims to be the most complete guide around introducing the reader to this exciting MCU portfolio from ST Microelectronics and its official CubeHAL and STM32CubeIDE development environment.
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.
Machine Learning Q and AI
Sebastian Raschka, PhDHave you recently completed a machine learning or deep learning course and wondered what to learn next? With 30 questions and answers on key concepts in machine learning and AI, this book provides bite-sized bits of knowledge for your journey to becoming a machine learning expert.
Stats One
William FooteThe Rails 7 Way
Obie Fernandez, Lucas Dohmen, and Tom Henrik AadlandThe Rails™ 7 Way is the comprehensive, authoritative reference guide for professionals delivering production-quality code using modern Ruby on Rails. It illuminates the entire Rails 7 API, its most powerful idioms, design approaches, and libraries. Building on the previous editions, this edition has been heavily refactored and updated.
Gradual Modularization for Ruby and Rails
Stephan HagemannGet yourself a new tool to manage your Rails application and your growing engineering organization! Prevent the ball-of-mud (and fix it!). Go for microservices or SOA if it makes sense not just because you don't have any other tool. Do all this through a low-overhead tool: packages. Enable better conversations to make practical changes today.
Top Bundles
- #1
Software Architecture
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
1500 QUIZ COMMENTATI (3 libri)
3 Books
Tre libri dei QUIZ MMG Commentati al prezzo di DUE! I QUIZ dei concorsi ufficiali di Medicina Generale relativi agli anni: 2000-2001-2003-2012-2013-2014-2015-2016-2017-2018-2019-2020-2021 +100 inediti Raccolti in unico bundle per aiutarvi nello studio e nella preparazione al concorso. All'interno di ogni libro i quiz sono stati suddivisi per... - #4
Pattern-Oriented Memory Forensics and Malware Detection
2 Books
This training bundle for security engineers and researchers, malware and memory forensics analysts includes two accelerated training courses for Windows memory dump analysis using WinDbg. It is also useful for technical support and escalation engineers who analyze memory dumps from complex software environments and need to check for possible... - #5
Practical FP in Scala + Functional event-driven architecture
2 Books
Practical FP in Scala (A hands-on approach) & Functional event-driven architecture, aka FEDA, (Powered by Scala 3), together as a bundle! The content of PFP in Scala is a requirement to understand FEDA so why not take advantage of this bundle!? - #6
Modern C++ Collection
3 Books
Get All about Modern C++C++ Standard Library, including C++20Concurrency with Modern C++, including C++20C++20Each book has about 200 complete code examples. Updates are included. When I update one of the books, you immediately get the updated bundle. You can expect significant updates to each new C++ standard (C++23, C++26, .. ) and also... - #7
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é... - #9
Development and Deployment of Multiplayer Online Games, Part ARCH. Architecture (Vol. I-III)
3 Books
What's the Big Idea? The idea behind this book is to summarize the body of knowledge that already exists on multiplayer games but is not available in one single place.And quite a fewof the issues discussed within this series (planned as three nine volumes ~300 pages each), while known in the industry, have not been published at all (except for... - #10
Growing Agile: The Complete Coach's Guide
7 Books
Growing Agile: Coach's Guide Series This bundle provides a collection of training and workshop plans for a variety of agile topics. The series is aimed at agile coaches, trainers and ScrumMasters who often find themselves needing to help teams understand agile concepts. Each book in the series provides the plans, slides, handouts and activity...