The Copenhagen Initiative
The Copenhagen Initiative
How we migrated the 6play VOD platform to The Cloud, on AWS & Kubernetes.
About the Book
6play, the replay and VOD platform of M6 and other RTL Group channels, is hosted in The Cloud! Or rather, depending on when you read this, part of our platform is hosted in The Cloud.
Before 2018, our platform was hosted in a Parisian data center. There, we rented a room, racks, servers, network connections. When a disk broke or to add RAM to a server, a technician would drive to the data center...
In 2018, we started our migration to The Cloud: we switched most of our hosting to AWS. We now use managed services when we can and our applications are often deployed under Kubernetes.
This book tells the story of this migration: how did we transform our hosting? What impact did it have on our projects? How did we organize ourselves? What choices did we make throughout the process? What did we learn, what did we make evolve? And maybe even, one or two years later: what would we do differently if we had to do it all over again?
More than "this is our platform, it's perfect", we will focus on "why" and "how".
The first chapters have already been translated from French to English, you will get them right away when buying the book:
- Introduction: why this book?
- Our platform, our project: an overview of our platform and applications, our technical background and our migration project.
- Discovering the Cloud and Kubernetes: why are we migrating to The Cloud and which provider are we choosing? How do we work with containers and what issues will an orchestrator solve? What was our first migration plan?
- The Copenhagen Initiative: our YOLO idea to quickly gain experience on an application deployed in production.
- Our AWS setup: accounts, regions and rights management. Infrastructure as Code with Terraform.
- Our Kubernetes setup: how do we manage our clusters, with kops, and what additional components do we install to make them fully functional?
- A first migration: we are finally migrating our first application, with a minimalist deployment chain and a safe approach.
The following chapters have been written, in French, and will be translated soon:
- The beginning of the problems: with an application in production, we finally encounter a first set of problems and we will present the solutions we have developed.
- A stabilization phase: what improvements have we made to our hosting, how do we manage monitoring, alerting and logging? In short, how have we evolved towards truly prod-ready hosting?
- Cloud Native Cloud: what impact does The Cloud (Kubernetes, managed services...) have on our projects and our teams?
- Migrating other applications: what choices have we made to migrate other more complex applications? What problems did we encounter and how did we solve them?
The last chapters have not been written yet (not even in French). They will be published when I'm done with them, which may be in many months:
- A second stabilization phase: with almost all our applications deployed in The Cloud, we encountered another set of problems. And we made a lot of improvements to our new hosting!
- CI, CDs and previews: how does continuous integration work for containers? How do we deploy our applications painlessly?
- Consumption/cost tracking: the ability to launch any type of instance or service is very nice when we code... But after a while, let's look at the cost of our hosting and the optimizations we have put in place.
- The development environment: we quickly saw that this point was not going to be simple, because we use managed services and deploy containers to Kubernetes...
The published version of the book will of course be updated, free of charge, when these chapters are added or in case of corrections.
Team package (6 books)
Get six copies of "The Copenhagen Initiative": one for each person on your team.
Enterprise package (50 books)
Get fifty copies of "The Copenhagen Initiative": one for each person at your company.
- 1.1 Contents of this book
- 1.2 Why?
- 1.3 Our experience feedback
- 1.4 Transparency and Confidentiality
- 1.5 Writing Conventions
- 1.6 About the author
2. Our platform, our project
- 2.1 Our applications
- 2.2 6play: frontend, back and videos
- 2.3 An aging infrastructure
- 2.4 The future is coming
- 2.5 The DevOps team
- 2.6 A public cloud, Kubernetes
- 2.7 It was a bit fuzzy!
- 2.8 In summary
3. Discovering The Cloud and Kubernetes
- 3.1 Why “The Cloud”?
- 3.2 GCP, AWS, …
- 3.3 Kubernetes
- 3.4 Kubernetes on GCP and AWS?
- 3.5 At what cost?
- 3.6 First Migration Plan
- 3.7 In summary
4. The Copenhagen Initiative
- 4.1 Achieving perfection?
- 4.2 KubeCon 2018
- 4.3 YOLO!
- 4.4 Back down to Earth
5. Our AWS setup
- 5.1 Introduction
- 5.2 Regions, zones, HA
- 5.3 Separate AWS accounts
- 5.4 Identification and AssumeRole
- 5.5 The principle: SSO, identification and roles
- 5.6 IaaS and IaC
- 5.7 The network
- 5.8 In summary
6. Our Kubernetes setup
- 6.1 Introduction
- 6.2 EKS
- 6.3 kops
- 6.4 A first cluster
- 6.5 Additional components
- 6.6 Auto-scaling of pods
- 6.7 System Metrics
- 6.8 In summary
7. A first migration
- 7.1 Introduction
- 7.2 The plan
- 7.3 A simple application
- 7.4 The poor’s man CI/CD
- 7.5 Securing the switchover with haproxy
- 7.6 Finish the switchover?
- 7.7 In summary
8. The beginning of the problems
- 8.1 Introduction: in production, but…
- 8.2 Our starting tools
- 8.3 Logging, monitoring and alerting
- 8.4 Some problems: real cases!
- 8.5 Nodes that restart whenever
- 8.6 A lack of audit
- 8.7 Some “concerns”
- 8.8 Working in / with The Cloud
- 8.9 In summary
9. A first phase of stabilization
- 9.1 Introduction
- 9.2 The AWS setup
- 9.3 Tags for AWS resources
- 9.4 Cluster Kubernetes (kops)
- 9.5 Applications and their infrastructure
- 9.6 Monitoring, alerting
- 9.7 The documentation
- 9.8 In summary
10. Cloud Native projects
- 10.1 Introduction
- 10.2 Cloud Native?
- 10.3 How is it really going?
- 10.4 The .cloud directory
- 10.5 Some examples
- 10.6 What impacts?
- 10.7 In summary
11. Let’s migrate all our applications!
- 11.1 Introduction
- 11.2 Migrating applications?
- 11.3 An API to know the time
- 11.4 Image storage and thumbnail generation
- 11.5 The Events Collector
- 11.6 Our Catalog API
- 11.7 User Preferences
- 11.8 The Web Front
- 11.9 Backoffices
- 11.10 It’s a lot of work!
- 11.11 In summary
- 12. TODO - A second phase of stabilization
- 13. TODO - CI, CD and previews
- 14. TODO - Tracking consumption and costs
- 15. TODO - The development environment
- Help me!
- Some interesting reading
The Leanpub 45-day 100% Happiness Guarantee
Within 45 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.
See full terms
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.
C++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 HealthcareDr. Bertalan Mesko
Can 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 PracticesJason Turner
Level up your C++, get the tools working for you, eliminate common problems, and move on to more exciting things!
Atomic KotlinBruce Eckel and Svetlana Isakova
For 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 PipesType Classes
Sockets 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 EventStormingAlberto Brandolini
The deepest tutorial and explanation about EventStorming, straight from the inventor.
node-opcua by exampleEtienne Rossignon
Get 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 DevOpsJeff Geerling
Ansible 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 ArchitectureAlexander Granin
Software 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 SoftwareEric Elliott
All 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.
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...
All the Books of The Medical Futurist
6 BooksWe 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 BooksBuy every PowerShell book from Adam Bertram at a 20% discount!
Cisco CCNA 200-301 Complet
4 BooksCe lot comprend les quatre volumes du guide préparation à l'examen de certification Cisco CCNA 200-301.
Linux Administration Complet
4 BooksCe 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é...
Modern C++ by Nicolai Josuttis
Django for Beginners/APIs/Professionals
Learn Git, Bash, and Terraform the Hard Way
3 BooksLearn 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.
Software Architecture and Beautiful APIs
2 BooksThere 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.
Digital Future of Healthcare and Pharma
3 BooksThese 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.