SlideShare a Scribd company logo
Docker Hamburg 
The upcoming talk will be presented in English
Data focused Docker 
clustering 
Marcus Hughes
What was HybridCluster? 
• Full stack LAMP platform 
• FreeBSD Chroot containers 
• ZFS 
• Auto scaling 
• Failover 
• “AwesomeProxy”
Docker 
• Containers! 
• Application level containerisation 
• Data in “volumes” 
• Lack of data portability
Docker containers are portable
Introduction to Flocker 
• Open source volume manager 
• Multi-node “cluster” 
• 0.1 Released on 13th August (0.2 due on 2nd)
Flocker
Proxy layer 
• Moving an application can be disruptive 
• Application port responds on any node 
• Routes reconfigured on migration
ZFS 
• Similarities to Docker containers 
• ZFS on Linux 
• Resilient 
• Continuous replication
Migration 
• Container stops 
• Volumes (ZFS dataset) is sent 
• Routes altered 
• Container re-started on new host 
0.2 
• Incremental send
Data Focused Docker Clustering. Docker Hamburg
Application configuration 
"version": 1 
"applications": 
"mongodb-volume-example": 
"image": "clusterhq/mongodb" 
"ports": 
- "internal": 27017 
"external": 27017 
"volume": 
"mountpoint": "/data/db"
Deployment configuration 
"version": 1 
"nodes": 
"172.16.255.250": ["mongodb-volume-example"] 
"172.16.255.251": []
Deployment configuration 
flocker-deploy deployment.yml application.yml
Demo 
Lets see what these configuration files do!
Real world uses 
• Moving applications to production 
• Replacing servers 
• Scalability 
Future 
• Clone datasets
The Future 
Ideas from our past and possible directions
Contribute! 
• GitHub https://github.com/ClusterHQ/flocker 
• Email Marcus@ClusterHQ.com
Questions?

More Related Content

PPTX
Kubernetes workshop
PDF
Kubernetes meetup - 2018-05-23
PPTX
Amazon Cloud Overview
PDF
Project Moby
PPTX
Containerization - The DevOps Revolution
PDF
Gluster: a SWOT Analysis
PPTX
Load Balancing Container with Nginx
PDF
Kubernetes dealing with storage and persistence
Kubernetes workshop
Kubernetes meetup - 2018-05-23
Amazon Cloud Overview
Project Moby
Containerization - The DevOps Revolution
Gluster: a SWOT Analysis
Load Balancing Container with Nginx
Kubernetes dealing with storage and persistence

What's hot (20)

PDF
GeoDistributed datacenter: the DNS way
PPT
Civil War: LXD vs Docker
ODP
Beyond Xen: A look into the Xen Cloud Platform
PDF
Automating Gluster @ Facebook - Shreyas Siravara
PDF
Heketi Functionality into Glusterd2
PDF
Kubernetes Workshop
PDF
Scalability and Performance of CNS 3.6
PDF
Kubernetes Webinar - Using ConfigMaps & Secrets
PPTX
Branch Management in Git Fusion
PDF
MesosCon EU 2017 - Criteo - Operating Mesos-based Infrastructures
PDF
Gluster as Native Storage for Containers - past, present and future
ODP
GlusterFS and Openstack Storage
PDF
WSO2Con EU 2016: Creating Microservices with WSO2 Microservices Framework fo...
PPTX
What’s the Deal with Containers, Anyway?
PDF
Максим Барышиков-«WoT: Geographically distributed cluster of clusters»
PDF
Kubernetes Webinar Series - Exploring Daemon Sets and Jobs
PDF
Getting started with kubernetes
ODP
Persistent Storage in Openshift using GlusterFS
PDF
Game DDOS Prevention
PDF
Why Choose Xen For Your Cloud?
GeoDistributed datacenter: the DNS way
Civil War: LXD vs Docker
Beyond Xen: A look into the Xen Cloud Platform
Automating Gluster @ Facebook - Shreyas Siravara
Heketi Functionality into Glusterd2
Kubernetes Workshop
Scalability and Performance of CNS 3.6
Kubernetes Webinar - Using ConfigMaps & Secrets
Branch Management in Git Fusion
MesosCon EU 2017 - Criteo - Operating Mesos-based Infrastructures
Gluster as Native Storage for Containers - past, present and future
GlusterFS and Openstack Storage
WSO2Con EU 2016: Creating Microservices with WSO2 Microservices Framework fo...
What’s the Deal with Containers, Anyway?
Максим Барышиков-«WoT: Geographically distributed cluster of clusters»
Kubernetes Webinar Series - Exploring Daemon Sets and Jobs
Getting started with kubernetes
Persistent Storage in Openshift using GlusterFS
Game DDOS Prevention
Why Choose Xen For Your Cloud?
Ad

Viewers also liked (9)

PPTX
Brand setters: A creative view by symbians
PDF
All About Forklifts And Other Lifting Equipment For Dubai Businesses
PPTX
Kormákur lokahóf
PDF
Bren Starlight on Old Madras Road- Call 1800 3000 5245
PPTX
Proposal for PSEB
PPT
Salarpuria Divinity Mysore Road Bangalore
PPTX
Assignment 5B
PDF
Mahindra Windchimes Overview - Call on 1800 3000 5245
PDF
REVIVAL FLAMES
Brand setters: A creative view by symbians
All About Forklifts And Other Lifting Equipment For Dubai Businesses
Kormákur lokahóf
Bren Starlight on Old Madras Road- Call 1800 3000 5245
Proposal for PSEB
Salarpuria Divinity Mysore Road Bangalore
Assignment 5B
Mahindra Windchimes Overview - Call on 1800 3000 5245
REVIVAL FLAMES
Ad

Similar to Data Focused Docker Clustering. Docker Hamburg (20)

PDF
PDF
Docker from A to Z, including Swarm and OCCS
PDF
Docker in the Oracle Universe / WebLogic 12c / OFM 12c
PDF
Docker Containers Deep Dive
PPTX
Containers and Cloud: From LXC to Docker to Kubernetes
PPTX
SummerStudent17_HandsOn Data Cloud Computing.pptx
PDF
PPT
Develop with linux containers and docker
PPTX
PPTX
Intro to Docker November 2013
PPTX
Docker-Intro
PPT
2 Linux Container and Docker
PPTX
Docker.pptx
PDF
Service discovery in Docker environments
PPTX
Docker Presentation
PDF
Linux High Availability Overview - openSUSE.Asia Summit 2015
PDF
NoSQL on the move
PDF
Shipping NodeJS with Docker and CoreOS (No Notes)
Docker from A to Z, including Swarm and OCCS
Docker in the Oracle Universe / WebLogic 12c / OFM 12c
Docker Containers Deep Dive
Containers and Cloud: From LXC to Docker to Kubernetes
SummerStudent17_HandsOn Data Cloud Computing.pptx
Develop with linux containers and docker
Intro to Docker November 2013
Docker-Intro
2 Linux Container and Docker
Docker.pptx
Service discovery in Docker environments
Docker Presentation
Linux High Availability Overview - openSUSE.Asia Summit 2015
NoSQL on the move
Shipping NodeJS with Docker and CoreOS (No Notes)

Recently uploaded (20)

PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PPTX
TechTalks-8-2019-Service-Management-ITIL-Refresh-ITIL-4-Framework-Supports-Ou...
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
Mushroom cultivation and it's methods.pdf
PPT
Teaching material agriculture food technology
PPTX
TLE Review Electricity (Electricity).pptx
PDF
August Patch Tuesday
PDF
Network Security Unit 5.pdf for BCA BBA.
PDF
A comparative analysis of optical character recognition models for extracting...
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PDF
A comparative study of natural language inference in Swahili using monolingua...
PDF
Video forgery: An extensive analysis of inter-and intra-frame manipulation al...
PDF
Approach and Philosophy of On baking technology
PDF
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
PPTX
Tartificialntelligence_presentation.pptx
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PDF
Machine learning based COVID-19 study performance prediction
PDF
Encapsulation_ Review paper, used for researhc scholars
PDF
NewMind AI Weekly Chronicles - August'25-Week II
Mobile App Security Testing_ A Comprehensive Guide.pdf
TechTalks-8-2019-Service-Management-ITIL-Refresh-ITIL-4-Framework-Supports-Ou...
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
Mushroom cultivation and it's methods.pdf
Teaching material agriculture food technology
TLE Review Electricity (Electricity).pptx
August Patch Tuesday
Network Security Unit 5.pdf for BCA BBA.
A comparative analysis of optical character recognition models for extracting...
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
A comparative study of natural language inference in Swahili using monolingua...
Video forgery: An extensive analysis of inter-and intra-frame manipulation al...
Approach and Philosophy of On baking technology
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
Tartificialntelligence_presentation.pptx
Agricultural_Statistics_at_a_Glance_2022_0.pdf
Diabetes mellitus diagnosis method based random forest with bat algorithm
Machine learning based COVID-19 study performance prediction
Encapsulation_ Review paper, used for researhc scholars
NewMind AI Weekly Chronicles - August'25-Week II

Data Focused Docker Clustering. Docker Hamburg

Editor's Notes

  • #2: Berlin specific stuff – After the 8 months in production maybe we can help with some of the issues encountered
  • #3: Introduction - English only - Name, About ClusterHQ and HybridCluster
  • #4: What We Learnt From HybridCluster - What was HybridCluster - Commercial Product - Pro - Containers over VMs (Lightweight [1]) - Reference IBM research paper (July 21st) - ZFS (supporters of openzfs project) Knew people would like containers and still believe this “All enterprises will use containers” [5] Lack of public documentation This portability would be more useful in general rather than limited to LAMP
  • #5: Lets talk Docker Docker - Extremely portable ... but! - Lack of Data Management in Docker - Volumes Caught out eye because containers! Originally based off of LXC and now have own containerisation engine, libContainer Quickly spawn an application (seconds), almost nil boot
  • #6: Docker captures the application very well. Makes it easy to provision a new instance elsewhere using “Docker run” as long as you don’t intent to carry over the state. We believe you should be able to carry over the state also. Welcome, Flocker.
  • #7: Flocker handled the data of your cluster. Define “cluster”. A group of servers running the same software (Flocker). - Luke described as “homogeneous”. - one node can be in your office, one on digitalocean, one AWS … irrelevant - servers be able to stand in for each other in the even of a failure - One server can fill in for another, more examples at end 0.2 introduces a couple of important features which are explained further
  • #8: We feel like we’re able to pick up on the portability where Docker left off. Using technologies before I mentions we can capture the volumes and make them equally as portable. ZFS Proxy – next slide
  • #9: Moving data means you need to be careful about inbound connections being routed correctly A port will route to the correct destination (where the docker container is live) When a container is migrated, the route to the port is altered to the new master Future, pause connections when a migration is happening and resume upon completion with the new route (NOT in this version).
  • #10: Contrary to belief, ZFS is stable (in citations) Luke liked ZFS to Docker containers Lightweight Portable Supporters of ZFSonLinux project. We employee two developers, one from the original FreeBSD implementation, and another Linux dev. We used ZFS on FreeBSD for HybridCluster and it worked very well. Self healing Pools are great, explain datasets Docker community seems to have this love for Btrfs. Richard Yao made an article about advantages of ZFS (Cite 2). Now supported by Debian. Continuous replication, can take snapshots up until a point in time and send them. (In 0.1.1 this is useful, explain on next slide).
  • #11: What happens when we want to move a container from server A to B? - Stop container - Replicate data with ZFS send/receive - Future - Snapshot, send data, stop container, send remaining data (due for 0.2) Future (undefined) Currently Geard manages router HybridCluster had a PythonProxy which is much more configurable Pause TCP connections Unleash upon completion
  • #12: All this together we have 3 layers Network Proxy Containers ZFS (local storage) When a migration happens the container is started (downloaded from repo if necessary) and dataset copied Routes recreated User requests handled by ALL nodes in the cluster
  • #13: Main thing to start with here, is like Docker… Flocker is split into a node and a CLI. You can run the CLI locally and connect to production flocker nodes. “fig style” application configuration. - Ties application components together - Makes it easy to spawn a full application and all services together Run through each stage of the configuration Coming in 0.2 Environment variables The main feature of Flocker however is to cluster the nodes together.
  • #14: So the deployment configuration is where magic happens. This defines which application gets defined on which of the generic servers. It’s a super simple configuration, and explain moving from one node to another is just changing the value of the node
  • #15: Super simple one line! Put all this together and have one line which handles your application deployment - routes Containers Datasets
  • #16: Follow notes in notes.txt at /home/clusterhq/deployments
  • #17: Moving from dev to staging to production Replace server by moving application to another node, removing old node, and maybe adding a new one? LAMP example, all on one node, it gets busy and you want a dedicated MySQL server, easily moved with Flocker The ability to clone configurations, the containers and their associated data. Useful for Dev environments Disposable applications for testing etc, maybe CI?
  • #18: Failover Continuous replication - point in time restore? Generic RPM so can be easily installed on existing systems Python proxy for holding requests More application configuration options - Env variables coming soon (0.2) - Building Dockerfiles? Many possibilities, it’s important you contribute Clone data
  • #19: Give it a try! Vargant image Tutorial on next slide We always need contributors Give us your thoughts What seems bad? What would you like to see? What direction do you think we should head Fork and contribute code