Galera with Docker
How Synchronous Replication and Linux
Containers mesh together
Linux.conf.au 2015
Raghavendra Prabhu
 raghavendra.d.prabhu@gmail.com
Percona  raghavendra.prabhu@percona.com
 randomsurfer  wnohang.net  rdprabhu  ronin13
Galera
Introduction
Galera
▶ Data-centric approach
▶ EVS
▶ Causality and Synchronous
▶ Latency
Raghavendra Prabhu (Percona) Galera with Docker 12 January, 2015 3 / 27
Containers!
Introduction
Containers
▶ Linux namespaces
♦ PID
♦ Network
♦ Mount
♦ User
▶ Cgroups
♦ Metrics
♦ Good fences make good neighbors!
Raghavendra Prabhu (Percona) Galera with Docker 12 January, 2015 5 / 27
Introduction
Containers
▶ Manipulation
♦ nsenter/setns
♦ unshare
♦ clone
▶ CRIU
- Migration and High Availability
Raghavendra Prabhu (Percona) Galera with Docker 12 January, 2015 6 / 27
The uptime whale!
Introduction
Docker
▶ Layers
▶ Volumes
▶ Storage
♦ Btrfs
♦ Device mapper
♦ Union mounts - OverlayFS
▶ Dockerfile and determinism
▶ Simplified networking
♦ Batteries included!
Raghavendra Prabhu (Percona) Galera with Docker 12 January, 2015 8 / 27
Symmetry in replication and
deployment
Introduction
Together
▶ Elastic requirements
▶ Fast scalability
▶ Packing for saturation
♦ Strategies/Filters/Metadata
♦ KSM
▶ Snapshot Transfer and COW
▶ Runtime instantiation
Raghavendra Prabhu (Percona) Galera with Docker 12 January, 2015 10 / 27
Introduction
Together :: Images
▶ Build and start
♦ Minimal
♦ Inheritance
♦ Extensibility
♦ Immutability
♦ Registry: go get!
▶ Minimal Assumptions
▶ Galera images
♦ http://github.com/percona/pxc-docker
♦ https://hub.docker.com/u/ronin/
Raghavendra Prabhu (Percona) Galera with Docker 12 January, 2015 11 / 27
Introduction
Together :: Networking
▶ Linking
▶ Dnsmasq
▶ Weave
▶ libswarm
▶ OVS
▶ Andromeda
Raghavendra Prabhu (Percona) Galera with Docker 12 January, 2015 12 / 27
Introduction
Together :: Networking :: Issues
▶ IP address and restart
▶ dhcpcd
▶ Socket interface
▶ Linking
♦ Patterns
▶ Kernel ABI
Raghavendra Prabhu (Percona) Galera with Docker 12 January, 2015 13 / 27
Introduction
Together :: Use cases
▶ Testing
- https://github.com/percona/pxc-docker/tree/master/chaos-
galera
▶ Benchmarking
▶ Production Deployment
▶ Rolling Upgrades
▶ Rapid Development
♦ https://github.com/percona/pxc-docker/tree/master/
docker-bld
Raghavendra Prabhu (Percona) Galera with Docker 12 January, 2015 14 / 27
Introduction
Together :: Patterns
▶ Systemd and Docker
▶ Packaging testing
▶ Management of process
♦ Supervisor pattern
Raghavendra Prabhu (Percona) Galera with Docker 12 January, 2015 15 / 27
Orchestration
Introduction
Orchestration
▶ Fig && Docker Compose
♦ Limitations
▶ Mesos and Docker swarm
▶ Flannel and Kubernates
Raghavendra Prabhu (Percona) Galera with Docker 12 January, 2015 17 / 27
Container deployment
Introduction
Deployment
▶ Amazon EC2
▶ Google Container Engine
▶ Azure
▶ DigitalOcean
▶ Joyent SmartCloud
▶ Virtual Machines
Raghavendra Prabhu (Percona) Galera with Docker 12 January, 2015 19 / 27
Who contains the containers?
Introduction
Environment
▶ Project Atomic: rpm-ostree
▶ Snappy
▶ CoreOS
▶ Apache Mesos
▶ Docker swarm
Raghavendra Prabhu (Percona) Galera with Docker 12 January, 2015 21 / 27
Introduction
Environment :: CoreOS
▶ Systemd integration
▶ etcd - Raft
▶ fleet
▶ Bootstrapping and voting
♦ Queues
♦ Test and Set
♦ TTL and Watch
♦ Sidekicks
Raghavendra Prabhu (Percona) Galera with Docker 12 January, 2015 22 / 27
Introduction
Others
▶ lxc/lxd
▶ systemd-nspawn
▶ Rocket
♦ App Container Specification
Raghavendra Prabhu (Percona) Galera with Docker 12 January, 2015 23 / 27
What you see is what
you get to attack
Introduction
Security
▶ sVirt
▶ seccomp
▶ Visibility: Namespaces
▶ Capabilities / Privileged
▶ Verifiability upto bare-metal
▶ Remote images
Raghavendra Prabhu (Percona) Galera with Docker 12 January, 2015 25 / 27
Introduction
About
▶ /me: Raghavendra Prabhu, Product Lead, Percona XtraDB
Cluster, Percona.
▶ Slides will be at slideshare.net/slidunder.
▶ About.me: raghavendra.prabhu
▶ Keybase.io: rdprabhu
▶ Presentation under CC BY-SA 4.0
Raghavendra Prabhu (Percona) Galera with Docker 12 January, 2015 26 / 27
Introduction
Image Credits
▶ https://commons.wikimedia.org/wiki/File:
Venice_galley,_rowing_alla_sensile2.jpg
▶ https://commons.wikimedia.org/wiki/File:ShippingContainerSFBay.jpg
▶ https://www.flickr.com/photos/stephanie_in_love/5412368995/
▶ http://en.wikipedia.org/wiki/Orchestra
▶ https://www.google.com/hostednews/getty/article/ALeqM5ht_B847adBMPN2_
8ivClssq937Eg?docId=164893212
▶ http://pixabay.com/en/container-port-hamburg-49538/
▶ https://i.ytimg.com/vi/Q5POuMHxW-0/maxresdefault.jpg
▶ https://upload.wikimedia.org/wikipedia/commons/e/e6/Order-3_heptakis_
heptagonal_tiling.png
Raghavendra Prabhu (Percona) Galera with Docker 12 January, 2015 27 / 27

More Related Content

PDF
Docker Container Checkpoint and Restore with CRIU
PDF
Advanced Git - Functionality and Features
PDF
Architectural caching patterns for kubernetes
PDF
Introducing docker
PDF
Docker in production service discovery with consul - road to opscon 2015
PDF
Docker primer and tips
PDF
Manuel Hurtado. Couchbase paradigma4oct
PDF
To Russia with Love: Deploying Kubernetes in Exotic Locations On Prem
Docker Container Checkpoint and Restore with CRIU
Advanced Git - Functionality and Features
Architectural caching patterns for kubernetes
Introducing docker
Docker in production service discovery with consul - road to opscon 2015
Docker primer and tips
Manuel Hurtado. Couchbase paradigma4oct
To Russia with Love: Deploying Kubernetes in Exotic Locations On Prem

What's hot (19)

PDF
Delivering Go.CD with Terraform and Docker
PPTX
Docker Demystified - Virtual VMs without the Fat
PDF
OSDC 2017 - Dr. Udo Seidel - VMwares (open source) Way of Container
PDF
Architectural caching patterns for kubernetes
PDF
REST in Peace. Long live gRPC!
PDF
Docker introduction
PDF
Terraforming your Infrastructure on GCP
ODP
Scaling and securing node.js apps
PDF
There is no container - Ori Pekelman
PDF
containerd and CRI
PPTX
[20200720]cloud native develoment - Nelson Lin
PDF
Nomad, l'orchestration made in Hashicorp - Bastien Cadiot
PDF
markedj: The best of markdown processor on JVM
PDF
Design Patterns para Microsserviços com MicroProfile
ODP
Persistent Storage in Openshift using GlusterFS
PPSX
From Zero to Hero - Nexinto
PDF
Advanced Task Scheduling with Amazon ECS (June 2017)
PDF
Dmytro Patkovskyi "Practical tips regarding build optimization for those who ...
PDF
Delivering Go.CD with Terraform and Docker
Docker Demystified - Virtual VMs without the Fat
OSDC 2017 - Dr. Udo Seidel - VMwares (open source) Way of Container
Architectural caching patterns for kubernetes
REST in Peace. Long live gRPC!
Docker introduction
Terraforming your Infrastructure on GCP
Scaling and securing node.js apps
There is no container - Ori Pekelman
containerd and CRI
[20200720]cloud native develoment - Nelson Lin
Nomad, l'orchestration made in Hashicorp - Bastien Cadiot
markedj: The best of markdown processor on JVM
Design Patterns para Microsserviços com MicroProfile
Persistent Storage in Openshift using GlusterFS
From Zero to Hero - Nexinto
Advanced Task Scheduling with Amazon ECS (June 2017)
Dmytro Patkovskyi "Practical tips regarding build optimization for those who ...
Ad

Viewers also liked (18)

PPTX
Interaksi mengajar belajar
PDF
Acidic clusters - Review of contemporary ACID-compliant databases with synchr...
PPTX
mydreamtee - The #GREATNESS Collection
PDF
Jutsu or Dô: Open documentation: continuous process than a body
PPT
五個夢 笑容95
PPTX
Working from home - fun, facts and scares!
PDF
Reflexiones sobre la_revision_bilingue-_ultima_version-libre Rosa Luna
PPTX
The #GREATESS Collection - mydreamtee
PDF
Abordaje de reacciones adversas a fármacos antituberculosos
PDF
Corpus collapsum: Partition tolerance of Galera in a noisy high load environment
PPTX
5 use adverbs
PPTX
New spaper
PDF
Xtrabackup and FTWRL
PPTX
5 use adverbs of duration in sentences
PPT
Njutn i njutnovi zakoni
PPTX
1 give justification to a possible ending to a
PDF
MySQL-and-virtualization
PPT
20080618 Suivi Lecteurs Epsa
Interaksi mengajar belajar
Acidic clusters - Review of contemporary ACID-compliant databases with synchr...
mydreamtee - The #GREATNESS Collection
Jutsu or Dô: Open documentation: continuous process than a body
五個夢 笑容95
Working from home - fun, facts and scares!
Reflexiones sobre la_revision_bilingue-_ultima_version-libre Rosa Luna
The #GREATESS Collection - mydreamtee
Abordaje de reacciones adversas a fármacos antituberculosos
Corpus collapsum: Partition tolerance of Galera in a noisy high load environment
5 use adverbs
New spaper
Xtrabackup and FTWRL
5 use adverbs of duration in sentences
Njutn i njutnovi zakoni
1 give justification to a possible ending to a
MySQL-and-virtualization
20080618 Suivi Lecteurs Epsa
Ad

Similar to Galera with Docker: How Synchronous Replication and Linux Containers mesh together (20)

PDF
CoreOS automated MySQL Cluster Failover using Galera Cluster
PDF
“Containerizing” applications with Docker: Ecosystem and Tools
PDF
Clusternaut: Orchestrating Percona XtraDB Cluster with Kubernetes.
PDF
Docker_AGH_v0.1.3
PDF
Introduction to containers a practical session using core os and docker
PPTX
On Docker and its use for LHC at CERN
PDF
Docker-v3.pdf
PDF
Real-World Docker: 10 Things We've Learned
PDF
"Lightweight Virtualization with Linux Containers and Docker". Jerome Petazzo...
PDF
On Prem Container Cloud - Lessons Learned
PDF
Docker Tips And Tricks at the Docker Beijing Meetup
PPTX
Understanding docker ecosystem and vulnerabilities points
PDF
Beyond static configuration
PPTX
Containers and Docker
PDF
Using Docker with OpenStack - Hands On!
PPTX
Cont0519
PPTX
Docker 101 - all about Docker containers
PDF
Mesos on coreOS
PDF
Clusternaut: Orchestrating  Percona XtraDB Cluster with Kubernetes
CoreOS automated MySQL Cluster Failover using Galera Cluster
“Containerizing” applications with Docker: Ecosystem and Tools
Clusternaut: Orchestrating Percona XtraDB Cluster with Kubernetes.
Docker_AGH_v0.1.3
Introduction to containers a practical session using core os and docker
On Docker and its use for LHC at CERN
Docker-v3.pdf
Real-World Docker: 10 Things We've Learned
"Lightweight Virtualization with Linux Containers and Docker". Jerome Petazzo...
On Prem Container Cloud - Lessons Learned
Docker Tips And Tricks at the Docker Beijing Meetup
Understanding docker ecosystem and vulnerabilities points
Beyond static configuration
Containers and Docker
Using Docker with OpenStack - Hands On!
Cont0519
Docker 101 - all about Docker containers
Mesos on coreOS
Clusternaut: Orchestrating  Percona XtraDB Cluster with Kubernetes

More from Raghavendra Prabhu (19)

PDF
Orchestrating Cassandra with Kubernetes Operator and PaaSTA
PDF
Orchestrating Cassandra with Kubernetes
PDF
Cassandra Operator with Yelp PaaSTA
PDF
Safe and Fast Automation on AWS for Fun and Profit
PDF
Orchestrating Cassandra with Kubernetes: Challenges and Opportunities
PDF
Pass Elk: CAP Theorem since 90s and Beyond
PDF
Cassandra in Docker at Yelp: Opportunities and Challenges
PDF
Taskerman: A Distributed Cluster Task Manager
PDF
Taskerman - a distributed cluster task manager
PDF
NUMA and Java Databases
PDF
Linux NUMA & Databases: Perils and Opportunities
PPTX
Securing databases with systemd for containers and services
PDF
Corpus collapsum: Partition tolerance testing of Galera with Docker and NetEm
PDF
Dock'em: Distributed Systems Testing with NetEm and Docker
PDF
Corpus collapsum: Partition tolerance of Galera put to test
PDF
Running virtualized Galera instances for fun and profit
PDF
ACIDic Clusters: Review of current relation databases with synchronous replic...
PDF
Percona XtraDB Cluster before every release: Glimpse into CI testing
PDF
Feed me more: MySQL Memory analysed
Orchestrating Cassandra with Kubernetes Operator and PaaSTA
Orchestrating Cassandra with Kubernetes
Cassandra Operator with Yelp PaaSTA
Safe and Fast Automation on AWS for Fun and Profit
Orchestrating Cassandra with Kubernetes: Challenges and Opportunities
Pass Elk: CAP Theorem since 90s and Beyond
Cassandra in Docker at Yelp: Opportunities and Challenges
Taskerman: A Distributed Cluster Task Manager
Taskerman - a distributed cluster task manager
NUMA and Java Databases
Linux NUMA & Databases: Perils and Opportunities
Securing databases with systemd for containers and services
Corpus collapsum: Partition tolerance testing of Galera with Docker and NetEm
Dock'em: Distributed Systems Testing with NetEm and Docker
Corpus collapsum: Partition tolerance of Galera put to test
Running virtualized Galera instances for fun and profit
ACIDic Clusters: Review of current relation databases with synchronous replic...
Percona XtraDB Cluster before every release: Glimpse into CI testing
Feed me more: MySQL Memory analysed

Recently uploaded (20)

PDF
BIO-INSPIRED ARCHITECTURE FOR PARSIMONIOUS CONVERSATIONAL INTELLIGENCE : THE ...
PDF
Design Guidelines and solutions for Plastics parts
PPT
Total quality management ppt for engineering students
PPTX
Feature types and data preprocessing steps
PDF
UNIT no 1 INTRODUCTION TO DBMS NOTES.pdf
PDF
737-MAX_SRG.pdf student reference guides
PPTX
Software Engineering and software moduleing
PDF
Human-AI Collaboration: Balancing Agentic AI and Autonomy in Hybrid Systems
PDF
distributed database system" (DDBS) is often used to refer to both the distri...
PPTX
Module 8- Technological and Communication Skills.pptx
PPTX
Current and future trends in Computer Vision.pptx
PDF
Improvement effect of pyrolyzed agro-food biochar on the properties of.pdf
PPTX
communication and presentation skills 01
PDF
null (2) bgfbg bfgb bfgb fbfg bfbgf b.pdf
PPTX
tack Data Structure with Array and Linked List Implementation, Push and Pop O...
PPTX
Management Information system : MIS-e-Business Systems.pptx
PDF
A SYSTEMATIC REVIEW OF APPLICATIONS IN FRAUD DETECTION
PDF
Soil Improvement Techniques Note - Rabbi
PPTX
CyberSecurity Mobile and Wireless Devices
PPTX
Information Storage and Retrieval Techniques Unit III
BIO-INSPIRED ARCHITECTURE FOR PARSIMONIOUS CONVERSATIONAL INTELLIGENCE : THE ...
Design Guidelines and solutions for Plastics parts
Total quality management ppt for engineering students
Feature types and data preprocessing steps
UNIT no 1 INTRODUCTION TO DBMS NOTES.pdf
737-MAX_SRG.pdf student reference guides
Software Engineering and software moduleing
Human-AI Collaboration: Balancing Agentic AI and Autonomy in Hybrid Systems
distributed database system" (DDBS) is often used to refer to both the distri...
Module 8- Technological and Communication Skills.pptx
Current and future trends in Computer Vision.pptx
Improvement effect of pyrolyzed agro-food biochar on the properties of.pdf
communication and presentation skills 01
null (2) bgfbg bfgb bfgb fbfg bfbgf b.pdf
tack Data Structure with Array and Linked List Implementation, Push and Pop O...
Management Information system : MIS-e-Business Systems.pptx
A SYSTEMATIC REVIEW OF APPLICATIONS IN FRAUD DETECTION
Soil Improvement Techniques Note - Rabbi
CyberSecurity Mobile and Wireless Devices
Information Storage and Retrieval Techniques Unit III

Galera with Docker: How Synchronous Replication and Linux Containers mesh together

  • 1. Galera with Docker How Synchronous Replication and Linux Containers mesh together Linux.conf.au 2015 Raghavendra Prabhu  raghavendra.d.prabhu@gmail.com Percona  raghavendra.prabhu@percona.com  randomsurfer  wnohang.net  rdprabhu  ronin13
  • 3. Introduction Galera ▶ Data-centric approach ▶ EVS ▶ Causality and Synchronous ▶ Latency Raghavendra Prabhu (Percona) Galera with Docker 12 January, 2015 3 / 27
  • 5. Introduction Containers ▶ Linux namespaces ♦ PID ♦ Network ♦ Mount ♦ User ▶ Cgroups ♦ Metrics ♦ Good fences make good neighbors! Raghavendra Prabhu (Percona) Galera with Docker 12 January, 2015 5 / 27
  • 6. Introduction Containers ▶ Manipulation ♦ nsenter/setns ♦ unshare ♦ clone ▶ CRIU - Migration and High Availability Raghavendra Prabhu (Percona) Galera with Docker 12 January, 2015 6 / 27
  • 8. Introduction Docker ▶ Layers ▶ Volumes ▶ Storage ♦ Btrfs ♦ Device mapper ♦ Union mounts - OverlayFS ▶ Dockerfile and determinism ▶ Simplified networking ♦ Batteries included! Raghavendra Prabhu (Percona) Galera with Docker 12 January, 2015 8 / 27
  • 9. Symmetry in replication and deployment
  • 10. Introduction Together ▶ Elastic requirements ▶ Fast scalability ▶ Packing for saturation ♦ Strategies/Filters/Metadata ♦ KSM ▶ Snapshot Transfer and COW ▶ Runtime instantiation Raghavendra Prabhu (Percona) Galera with Docker 12 January, 2015 10 / 27
  • 11. Introduction Together :: Images ▶ Build and start ♦ Minimal ♦ Inheritance ♦ Extensibility ♦ Immutability ♦ Registry: go get! ▶ Minimal Assumptions ▶ Galera images ♦ http://github.com/percona/pxc-docker ♦ https://hub.docker.com/u/ronin/ Raghavendra Prabhu (Percona) Galera with Docker 12 January, 2015 11 / 27
  • 12. Introduction Together :: Networking ▶ Linking ▶ Dnsmasq ▶ Weave ▶ libswarm ▶ OVS ▶ Andromeda Raghavendra Prabhu (Percona) Galera with Docker 12 January, 2015 12 / 27
  • 13. Introduction Together :: Networking :: Issues ▶ IP address and restart ▶ dhcpcd ▶ Socket interface ▶ Linking ♦ Patterns ▶ Kernel ABI Raghavendra Prabhu (Percona) Galera with Docker 12 January, 2015 13 / 27
  • 14. Introduction Together :: Use cases ▶ Testing - https://github.com/percona/pxc-docker/tree/master/chaos- galera ▶ Benchmarking ▶ Production Deployment ▶ Rolling Upgrades ▶ Rapid Development ♦ https://github.com/percona/pxc-docker/tree/master/ docker-bld Raghavendra Prabhu (Percona) Galera with Docker 12 January, 2015 14 / 27
  • 15. Introduction Together :: Patterns ▶ Systemd and Docker ▶ Packaging testing ▶ Management of process ♦ Supervisor pattern Raghavendra Prabhu (Percona) Galera with Docker 12 January, 2015 15 / 27
  • 17. Introduction Orchestration ▶ Fig && Docker Compose ♦ Limitations ▶ Mesos and Docker swarm ▶ Flannel and Kubernates Raghavendra Prabhu (Percona) Galera with Docker 12 January, 2015 17 / 27
  • 19. Introduction Deployment ▶ Amazon EC2 ▶ Google Container Engine ▶ Azure ▶ DigitalOcean ▶ Joyent SmartCloud ▶ Virtual Machines Raghavendra Prabhu (Percona) Galera with Docker 12 January, 2015 19 / 27
  • 20. Who contains the containers?
  • 21. Introduction Environment ▶ Project Atomic: rpm-ostree ▶ Snappy ▶ CoreOS ▶ Apache Mesos ▶ Docker swarm Raghavendra Prabhu (Percona) Galera with Docker 12 January, 2015 21 / 27
  • 22. Introduction Environment :: CoreOS ▶ Systemd integration ▶ etcd - Raft ▶ fleet ▶ Bootstrapping and voting ♦ Queues ♦ Test and Set ♦ TTL and Watch ♦ Sidekicks Raghavendra Prabhu (Percona) Galera with Docker 12 January, 2015 22 / 27
  • 23. Introduction Others ▶ lxc/lxd ▶ systemd-nspawn ▶ Rocket ♦ App Container Specification Raghavendra Prabhu (Percona) Galera with Docker 12 January, 2015 23 / 27
  • 24. What you see is what you get to attack
  • 25. Introduction Security ▶ sVirt ▶ seccomp ▶ Visibility: Namespaces ▶ Capabilities / Privileged ▶ Verifiability upto bare-metal ▶ Remote images Raghavendra Prabhu (Percona) Galera with Docker 12 January, 2015 25 / 27
  • 26. Introduction About ▶ /me: Raghavendra Prabhu, Product Lead, Percona XtraDB Cluster, Percona. ▶ Slides will be at slideshare.net/slidunder. ▶ About.me: raghavendra.prabhu ▶ Keybase.io: rdprabhu ▶ Presentation under CC BY-SA 4.0 Raghavendra Prabhu (Percona) Galera with Docker 12 January, 2015 26 / 27
  • 27. Introduction Image Credits ▶ https://commons.wikimedia.org/wiki/File: Venice_galley,_rowing_alla_sensile2.jpg ▶ https://commons.wikimedia.org/wiki/File:ShippingContainerSFBay.jpg ▶ https://www.flickr.com/photos/stephanie_in_love/5412368995/ ▶ http://en.wikipedia.org/wiki/Orchestra ▶ https://www.google.com/hostednews/getty/article/ALeqM5ht_B847adBMPN2_ 8ivClssq937Eg?docId=164893212 ▶ http://pixabay.com/en/container-port-hamburg-49538/ ▶ https://i.ytimg.com/vi/Q5POuMHxW-0/maxresdefault.jpg ▶ https://upload.wikimedia.org/wikipedia/commons/e/e6/Order-3_heptakis_ heptagonal_tiling.png Raghavendra Prabhu (Percona) Galera with Docker 12 January, 2015 27 / 27