GlusterFS Container
Gluster Meetup June 2016,
Bangalore, India
Mohamed Ashiq Liyazudeen
Associate Software Engineer @redhat
@ IRC:ashiq on freenode,
github: github.com/MohamedAshiqrh,
mailto: ashiq333@gmail.com
Humble Devassy Chirammal
Senior Software Engineer @redhat
@ IRC : hchiramm on freenode,
github : github.com/humblec,
mailto : humble.devassy@gmail.com
website : humblec.com
Gluster Meetup June 2016,
Bangalore, India
Agenda
● GlusterFS
● Docker
● Why containers?
● GlusterFS Container
● Q&A
Gluster Meetup June 2016,
Bangalore, India
GlusterFS
● Open-source scale-out distributed file system.
● Aggregates various storage servers over
network interconnects into one large parallel
network file system.
● User space filesystem with no dedicated
metadata server that helps us achieve scalability.
Gluster Meetup June 2016,
Bangalore, India
Docker
● Docker offers a simple way to package an application
and its runtime dependencies into a single container.
● Docker Container uses shared kernel concept and are
much more efficient than hypervisors in system
resource terms.
● Docker is both a development tool and a runtime
environment.
Gluster Meetup June 2016,
Bangalore, India
Container Architecture
Source: Docker Inc.
Gluster Meetup June 2016,
Bangalore, India
Docker Concepts
● Docker Image is a static specification of what the
container should be in runtime, including the application
code inside the container and runtime configuration
settings. They are Read-only.
Gluster Meetup June 2016,
Bangalore, India
Docker Concepts
● Docker container always starts with an image and is
considered an instantiation of that image.
Gluster Meetup June 2016,
Bangalore, India
Why Container?
● Shared Kernel
● Environment Regardless
● Isolation
● Minimizes System Drift
● Shipping
● Cleaner updates and Manageable state change
● Storage Hyper-converged Environment Support
Gluster Meetup June 2016,
Bangalore, India
GlusterFS Container
● Systemd is used in GlusterFS container because
gluster needs to run more than one process in the
container.
● GlusterFS configuration is made persistent as
containers writable layer is not persistent in case of re-
spawn.
● Even though GlusterFS can operate on any networking
model, we prefer host networking (--net=host) of Docker
for better performance on storage network.
Gluster Meetup June 2016,
Bangalore, India
Steps Breakdown
● Pull the image
● Prepare the node for GlusterFS configuration
persistence(create directories /var/lib/glusterd,
/var/log/glusterfs and /etc/glusterfs).
● /var/lib/glusterd – volume management files
● /var/log/glusterfs – gluster log files
● /etc/glusterfs – glusterd management files
● GlusterFS prerequisites(like opening the required port).
● Start GlusterFS container.
Gluster Meetup June 2016,
Bangalore, India
GlusterFS Container
● # docker pull gluster/gluster-centos:gluster3u7_centos7
● # mkdir -p /etc/glusterfs /var/lib/glusterd
/var/log/glusterfs
● # modprobe dm_snapshot (in case of snapshot)
● # docker run --name gluster -d -v
/etc/glusterfs:/etc/glusterfs:z -v
/var/lib/glusterd:/var/lib/glusterd:z -v
/var/log/glusterfs:/var/log/glusterfs:z -v
/sys/fs/cgroup:/sys/fs/cgroup:ro --net=host
--privileged=true -v /dev:/dev gluster/gluster-
centos:gluster3u7_centos7
Gluster Meetup June 2016,
Bangalore, India
GlusterFS docker run
As seen before its a long command, lets check why all
the options are required.
● As Gluster needs to run more than one service in a
container, It needs systemd. For systemd to run in a
container “--privileged=true”.
● Host Networking (--net=host) of Docker for better
performance on storage network.
Gluster Meetup June 2016,
Bangalore, India
Network options
● Docker Network “none”, adds a container to a
container-specific network stack.
● Docker Network ”bridge”, represents the bridge network
(default docker0).
● Docker Network ”host”, adds a container on the hosts
network stack.
Gluster Meetup June 2016,
Bangalore, India
Persistence of Gluster configuration
● -v /etc/glusterfs:/etc/glusterfs:z -v
/var/lib/glusterd:/var/lib/glusterd:z -v
/var/log/glusterfs:/var/log/glusterfs:z
● The above ensures that the gluster configuration are
persistent, In the command.
● As we mention “:z” - SELinux labels are automatically
reset to svirt_sandbox_file_t so that the container can
interact with the Host directory.
Gluster Meetup June 2016,
Bangalore, India
Gluster Peer Probe
Gluster Meetup June 2016,
Bangalore, India
Trusted Storage Pool
Gluster Meetup June 2016,
Bangalore, India
References
● http://humblec.com/building-glusterfs-in-a-docker-container/
● http://humblec.com/gluster_containers_in_kubernetes_clust
● http://humblec.com/glusterfs-containers-docker-kubernetes-
● https://hub.docker.com/r/gluster/
● https://github.com/gluster/docker
● https://github.com/gluster/glusterfs-kubernetes-openshift
Gluster Meetup June 2016,
Bangalore, India
Thanks !
Q & A

More Related Content

PDF
Software-Defined Storage (SDS)
PDF
Fibre Channel 基礎講座
PDF
Project ACRN Device Passthrough Introduction
PPTX
Ibm spectrum scale fundamentals workshop for americas part 1 components archi...
PDF
Apresentando Virtualização de computadores (vmware)
PPT
Unit testing framework
PDF
Zabbixのパフォーマンスチューニング & インストール時の注意点
PDF
忙しい人のための Rocky Linux 入門〜Rocky LinuxはCentOSの後継者たり得るか?〜
Software-Defined Storage (SDS)
Fibre Channel 基礎講座
Project ACRN Device Passthrough Introduction
Ibm spectrum scale fundamentals workshop for americas part 1 components archi...
Apresentando Virtualização de computadores (vmware)
Unit testing framework
Zabbixのパフォーマンスチューニング & インストール時の注意点
忙しい人のための Rocky Linux 入門〜Rocky LinuxはCentOSの後継者たり得るか?〜

What's hot (20)

PPTX
Ibm spectrum scale fundamentals workshop for americas part 5 ess gnr-usecases...
PDF
ブルックスのいう銀の弾丸とは何か?
PDF
WebAssemblyのWeb以外のことぜんぶ話す
PDF
File systems for Embedded Linux
PPTX
Ibm spectrum scale fundamentals workshop for americas part 4 Replication, Str...
PDF
Hyper vを理解する
PDF
Webブラウザで動くOSSオフィスソフト、LibreOffice Onlineの中身に迫る / LibreOffice Online Implementa...
PDF
Browser_Stack_Intro
PPTX
Hyper-V を使おう
PPTX
Pynvme introduction
PDF
Ansible 入門 #01 (初心者向け)
PDF
Ceph Tech Talk: Ceph at DigitalOcean
PDF
Robot framework 을 이용한 기능 테스트 자동화
PDF
테스트자동화 성공전략
PDF
昨今のストレージ選定のポイントとCephStorageの特徴
PDF
IBM Spectrum Scale Best Practices for Genomics Medicine Workloads
PDF
VNF Integration and Support in CloudStack - Wei Zhou - ShapeBlue
PDF
Robot Framework Dos And Don'ts
PPTX
Testes Unitários
PPTX
Redis Indices (#RedisTLV)
Ibm spectrum scale fundamentals workshop for americas part 5 ess gnr-usecases...
ブルックスのいう銀の弾丸とは何か?
WebAssemblyのWeb以外のことぜんぶ話す
File systems for Embedded Linux
Ibm spectrum scale fundamentals workshop for americas part 4 Replication, Str...
Hyper vを理解する
Webブラウザで動くOSSオフィスソフト、LibreOffice Onlineの中身に迫る / LibreOffice Online Implementa...
Browser_Stack_Intro
Hyper-V を使おう
Pynvme introduction
Ansible 入門 #01 (初心者向け)
Ceph Tech Talk: Ceph at DigitalOcean
Robot framework 을 이용한 기능 테스트 자동화
테스트자동화 성공전략
昨今のストレージ選定のポイントとCephStorageの特徴
IBM Spectrum Scale Best Practices for Genomics Medicine Workloads
VNF Integration and Support in CloudStack - Wei Zhou - ShapeBlue
Robot Framework Dos And Don'ts
Testes Unitários
Redis Indices (#RedisTLV)
Ad

Viewers also liked (20)

PDF
Gluster Contenarized Storage for Cloud Applications
PDF
KVM Tuning @ eBay
ODP
Mastering kvm virtualization- A complete guide of KVM virtualization
ODP
Persistent Storage in Openshift using GlusterFS
PDF
Gluster Containerized Storage for Cloud Applications
PDF
Monitor PowerKVM using Ganglia, Nagios
PDF
One-click Hadoop Cluster Deployment on OpenPOWER Systems
PDF
Wanting distributed volumes - Experiences with ceph-docker
PDF
美团点评技术沙龙14:美团云对象存储系统
PDF
美团点评技术沙龙13-酒旅Hybrid架构体系及演进
PDF
美团点评技术沙龙13-前端工程化开发方案app-proto介绍
PDF
美团点评技术沙龙14美团云-Docker平台
PDF
美团点评技术沙龙13-点评Titans框架的设计和实践
PPTX
Optimizing VM images for OpenStack with KVM/QEMU
PDF
美团技术团队 - KVM性能优化
PDF
#Gophercon Talk by Smita Vijayakumar - Go's Context Library
PDF
QEMU Disk IO Which performs Better: Native or threads?
PDF
Performance Benchmarking of Clouds Evaluating OpenStack
PDF
Working at Exotel
PDF
美团点评沙龙12-LBS空间搜索架构的优化历程
Gluster Contenarized Storage for Cloud Applications
KVM Tuning @ eBay
Mastering kvm virtualization- A complete guide of KVM virtualization
Persistent Storage in Openshift using GlusterFS
Gluster Containerized Storage for Cloud Applications
Monitor PowerKVM using Ganglia, Nagios
One-click Hadoop Cluster Deployment on OpenPOWER Systems
Wanting distributed volumes - Experiences with ceph-docker
美团点评技术沙龙14:美团云对象存储系统
美团点评技术沙龙13-酒旅Hybrid架构体系及演进
美团点评技术沙龙13-前端工程化开发方案app-proto介绍
美团点评技术沙龙14美团云-Docker平台
美团点评技术沙龙13-点评Titans框架的设计和实践
Optimizing VM images for OpenStack with KVM/QEMU
美团技术团队 - KVM性能优化
#Gophercon Talk by Smita Vijayakumar - Go's Context Library
QEMU Disk IO Which performs Better: Native or threads?
Performance Benchmarking of Clouds Evaluating OpenStack
Working at Exotel
美团点评沙龙12-LBS空间搜索架构的优化历程
Ad

Similar to Gluster containers! (20)

PDF
Containarized Gluster Storage in Kubernetes
PDF
LasCon 2014 DevOoops
PDF
Java in containers
PDF
Introduction to Containers: From Docker to Kubernetes and everything in-between
PDF
All Things Containers - Docker, Kubernetes, Helm, Istio, GitOps and more
PDF
vBACD - Distributed Petabyte-Scale Cloud Storage with GlusterFS - 2/28
PDF
Containers - Portable, repeatable user-oriented application delivery. Build, ...
PDF
Gluster intro-tdose
ODP
Gluster intro-tdose
PDF
What's new in kubernetes 1.3?
PPTX
Mono Repo
PDF
Introduction to Docker storage, volume and image
ODP
Scale out backups-with_bareos_and_gluster
PDF
OSBConf 2015 | Scale out backups with bareos and gluster by niels de vos
PDF
Scale out backups-with_bareos_and_gluster
PPTX
Docker for PHP Developers - Jetbrains
PDF
Gluster fs architecture_&_roadmap_atin_punemeetup_2015
PDF
Introduction to Apache Airflow
ODP
GlusterFS and Openstack Storage
PPTX
Build optimization mechanisms in GitLab and Docker
Containarized Gluster Storage in Kubernetes
LasCon 2014 DevOoops
Java in containers
Introduction to Containers: From Docker to Kubernetes and everything in-between
All Things Containers - Docker, Kubernetes, Helm, Istio, GitOps and more
vBACD - Distributed Petabyte-Scale Cloud Storage with GlusterFS - 2/28
Containers - Portable, repeatable user-oriented application delivery. Build, ...
Gluster intro-tdose
Gluster intro-tdose
What's new in kubernetes 1.3?
Mono Repo
Introduction to Docker storage, volume and image
Scale out backups-with_bareos_and_gluster
OSBConf 2015 | Scale out backups with bareos and gluster by niels de vos
Scale out backups-with_bareos_and_gluster
Docker for PHP Developers - Jetbrains
Gluster fs architecture_&_roadmap_atin_punemeetup_2015
Introduction to Apache Airflow
GlusterFS and Openstack Storage
Build optimization mechanisms in GitLab and Docker

Recently uploaded (20)

PDF
UEFA_Carbon_Footprint_Calculator_Methology_2.0.pdf
PPTX
Measurement Uncertainty and Measurement System analysis
PDF
Exploratory_Data_Analysis_Fundamentals.pdf
PPTX
PRASUNET_20240614003_231416_0000[1].pptx
PDF
August 2025 - Top 10 Read Articles in Network Security & Its Applications
PPTX
CONTRACTS IN CONSTRUCTION PROJECTS: TYPES
PPTX
Amdahl’s law is explained in the above power point presentations
PDF
Computer System Architecture 3rd Edition-M Morris Mano.pdf
PDF
Cryptography and Network Security-Module-I.pdf
PPTX
Sorting and Hashing in Data Structures with Algorithms, Techniques, Implement...
PPTX
Module 8- Technological and Communication Skills.pptx
PDF
distributed database system" (DDBS) is often used to refer to both the distri...
PPTX
A Brief Introduction to IoT- Smart Objects: The "Things" in IoT
PDF
Unit I -OPERATING SYSTEMS_SRM_KATTANKULATHUR.pptx.pdf
PPTX
wireless networks, mobile computing.pptx
PPTX
Petroleum Refining & Petrochemicals.pptx
PPTX
CyberSecurity Mobile and Wireless Devices
PDF
Prof. Dr. KAYIHURA A. SILAS MUNYANEZA, PhD..pdf
PDF
Introduction to Power System StabilityPS
PDF
Design of Material Handling Equipment Lecture Note
UEFA_Carbon_Footprint_Calculator_Methology_2.0.pdf
Measurement Uncertainty and Measurement System analysis
Exploratory_Data_Analysis_Fundamentals.pdf
PRASUNET_20240614003_231416_0000[1].pptx
August 2025 - Top 10 Read Articles in Network Security & Its Applications
CONTRACTS IN CONSTRUCTION PROJECTS: TYPES
Amdahl’s law is explained in the above power point presentations
Computer System Architecture 3rd Edition-M Morris Mano.pdf
Cryptography and Network Security-Module-I.pdf
Sorting and Hashing in Data Structures with Algorithms, Techniques, Implement...
Module 8- Technological and Communication Skills.pptx
distributed database system" (DDBS) is often used to refer to both the distri...
A Brief Introduction to IoT- Smart Objects: The "Things" in IoT
Unit I -OPERATING SYSTEMS_SRM_KATTANKULATHUR.pptx.pdf
wireless networks, mobile computing.pptx
Petroleum Refining & Petrochemicals.pptx
CyberSecurity Mobile and Wireless Devices
Prof. Dr. KAYIHURA A. SILAS MUNYANEZA, PhD..pdf
Introduction to Power System StabilityPS
Design of Material Handling Equipment Lecture Note

Gluster containers!

  • 2. Gluster Meetup June 2016, Bangalore, India Mohamed Ashiq Liyazudeen Associate Software Engineer @redhat @ IRC:ashiq on freenode, github: github.com/MohamedAshiqrh, mailto: [email protected] Humble Devassy Chirammal Senior Software Engineer @redhat @ IRC : hchiramm on freenode, github : github.com/humblec, mailto : [email protected] website : humblec.com
  • 3. Gluster Meetup June 2016, Bangalore, India Agenda ● GlusterFS ● Docker ● Why containers? ● GlusterFS Container ● Q&A
  • 4. Gluster Meetup June 2016, Bangalore, India GlusterFS ● Open-source scale-out distributed file system. ● Aggregates various storage servers over network interconnects into one large parallel network file system. ● User space filesystem with no dedicated metadata server that helps us achieve scalability.
  • 5. Gluster Meetup June 2016, Bangalore, India Docker ● Docker offers a simple way to package an application and its runtime dependencies into a single container. ● Docker Container uses shared kernel concept and are much more efficient than hypervisors in system resource terms. ● Docker is both a development tool and a runtime environment.
  • 6. Gluster Meetup June 2016, Bangalore, India Container Architecture Source: Docker Inc.
  • 7. Gluster Meetup June 2016, Bangalore, India Docker Concepts ● Docker Image is a static specification of what the container should be in runtime, including the application code inside the container and runtime configuration settings. They are Read-only.
  • 8. Gluster Meetup June 2016, Bangalore, India Docker Concepts ● Docker container always starts with an image and is considered an instantiation of that image.
  • 9. Gluster Meetup June 2016, Bangalore, India Why Container? ● Shared Kernel ● Environment Regardless ● Isolation ● Minimizes System Drift ● Shipping ● Cleaner updates and Manageable state change ● Storage Hyper-converged Environment Support
  • 10. Gluster Meetup June 2016, Bangalore, India GlusterFS Container ● Systemd is used in GlusterFS container because gluster needs to run more than one process in the container. ● GlusterFS configuration is made persistent as containers writable layer is not persistent in case of re- spawn. ● Even though GlusterFS can operate on any networking model, we prefer host networking (--net=host) of Docker for better performance on storage network.
  • 11. Gluster Meetup June 2016, Bangalore, India Steps Breakdown ● Pull the image ● Prepare the node for GlusterFS configuration persistence(create directories /var/lib/glusterd, /var/log/glusterfs and /etc/glusterfs). ● /var/lib/glusterd – volume management files ● /var/log/glusterfs – gluster log files ● /etc/glusterfs – glusterd management files ● GlusterFS prerequisites(like opening the required port). ● Start GlusterFS container.
  • 12. Gluster Meetup June 2016, Bangalore, India GlusterFS Container ● # docker pull gluster/gluster-centos:gluster3u7_centos7 ● # mkdir -p /etc/glusterfs /var/lib/glusterd /var/log/glusterfs ● # modprobe dm_snapshot (in case of snapshot) ● # docker run --name gluster -d -v /etc/glusterfs:/etc/glusterfs:z -v /var/lib/glusterd:/var/lib/glusterd:z -v /var/log/glusterfs:/var/log/glusterfs:z -v /sys/fs/cgroup:/sys/fs/cgroup:ro --net=host --privileged=true -v /dev:/dev gluster/gluster- centos:gluster3u7_centos7
  • 13. Gluster Meetup June 2016, Bangalore, India GlusterFS docker run As seen before its a long command, lets check why all the options are required. ● As Gluster needs to run more than one service in a container, It needs systemd. For systemd to run in a container “--privileged=true”. ● Host Networking (--net=host) of Docker for better performance on storage network.
  • 14. Gluster Meetup June 2016, Bangalore, India Network options ● Docker Network “none”, adds a container to a container-specific network stack. ● Docker Network ”bridge”, represents the bridge network (default docker0). ● Docker Network ”host”, adds a container on the hosts network stack.
  • 15. Gluster Meetup June 2016, Bangalore, India Persistence of Gluster configuration ● -v /etc/glusterfs:/etc/glusterfs:z -v /var/lib/glusterd:/var/lib/glusterd:z -v /var/log/glusterfs:/var/log/glusterfs:z ● The above ensures that the gluster configuration are persistent, In the command. ● As we mention “:z” - SELinux labels are automatically reset to svirt_sandbox_file_t so that the container can interact with the Host directory.
  • 16. Gluster Meetup June 2016, Bangalore, India Gluster Peer Probe
  • 17. Gluster Meetup June 2016, Bangalore, India Trusted Storage Pool
  • 18. Gluster Meetup June 2016, Bangalore, India References ● http://humblec.com/building-glusterfs-in-a-docker-container/ ● http://humblec.com/gluster_containers_in_kubernetes_clust ● http://humblec.com/glusterfs-containers-docker-kubernetes- ● https://hub.docker.com/r/gluster/ ● https://github.com/gluster/docker ● https://github.com/gluster/glusterfs-kubernetes-openshift
  • 19. Gluster Meetup June 2016, Bangalore, India Thanks ! Q & A