Konstantin Nazarov: "Building a PaaS with Docker, Consul and Python" [RUS]

Опубликовано: 17 Июнь 2026
на канале: IT-Events
1,223
23

Konstantin Nazarov / Russia. Moscow / SRE / Tarantool

Konstantin Nazarov is an infrastructure engineer in Tarantool team. In the past was a system programmer and a fan of Common Lisp. Minimalist and adept of iterative approach to everything.

++++++++++++++++

Building a PaaS with Docker, Consul and Python

Speech in Russian + simultaneous translation into English
I'm currently single-handedly building a Database-As-A-Service platform. And the problem of where and how to run database instances has been successfully solved in favor of Docker. But there still remain 2 problems: how to link containers on different hosts across the network and how to orchestrate a large pool of running instances.
You may find lots of different IaaS offerings and schedulers like Mesos and Kubernetes on the market, but all of them have a steep learning curve. Plus they don't handle stateful and non-SOA services very well.
In this talk I'll be walking you over how one can build a simple PaaS based on Docker, consul and a custom orchestration service in Python. My experience in building such system shows that it can be reproduced by the effort of one developer.
A list of topics I will cover:
Consul as a reliable distributed storage
Connecting containers between hosts without an overlay network
Allocating IP addresses and maintaining their pool in Consul KV
Correctly registering services and health checks
How to approach writing basic orchestrator based on gevent + writing trivial admin UI for it
Adding failover, scaling and service reallocation to the orchestrator
Delayed tasks (backup, analytics, etc...)
Monitoring the system (Consul + Prometheus)
Almost all code of the system, including ansible playbooks, is available on GitHub.

++++++++++++++++

Linux Piter 2016
http://it-sobytie.ru/events/6997

Follow us
Vk: https://vk.com/linuxpiter
Facebook:   / 655735254527244  
Twitter:   / linuxpiter  

#LinuxPiter

++++++++++++++++

Organizers:

IT-Events:
http://it-events.com

IT-Dominanta:
http://www.it-dominanta.ru

++++++++++++++++

General Sponsors

DELL EMC:
http://russia.emc.com

++++++++++++++++
Sponsors
Virtuozzo: https://virtuozzo.com
Luxoft: http://www.luxoft.ru/