backup strategies for stateful containers in...
TRANSCRIPT
![Page 1: Backup strategies for Stateful Containers in OpenShiftpeople.redhat.com/ndevos/talks/2017-09-OSBConf/2017-09-Backup... · Backup strategies for Stateful Containers in OpenShift Using](https://reader030.vdocument.in/reader030/viewer/2022040201/5e478c22c5171a293b668d2f/html5/thumbnails/1.jpg)
Backup strategies for StatefulContainers in OpenShiftUsing Gluster based Container-Native StorageNiels de VosSenior Software EngineerRed Hat Storage
![Page 2: Backup strategies for Stateful Containers in OpenShiftpeople.redhat.com/ndevos/talks/2017-09-OSBConf/2017-09-Backup... · Backup strategies for Stateful Containers in OpenShift Using](https://reader030.vdocument.in/reader030/viewer/2022040201/5e478c22c5171a293b668d2f/html5/thumbnails/2.jpg)
Self-Service
Multi-language
Automation
Collaboration
Seamless
Standards-based
Web-scale
Open Source
Enterprise Grade
Secure
Critical features for both Dev and Ops
![Page 3: Backup strategies for Stateful Containers in OpenShiftpeople.redhat.com/ndevos/talks/2017-09-OSBConf/2017-09-Backup... · Backup strategies for Stateful Containers in OpenShift Using](https://reader030.vdocument.in/reader030/viewer/2022040201/5e478c22c5171a293b668d2f/html5/thumbnails/3.jpg)
10,000 foot overview
INFRA
![Page 4: Backup strategies for Stateful Containers in OpenShiftpeople.redhat.com/ndevos/talks/2017-09-OSBConf/2017-09-Backup... · Backup strategies for Stateful Containers in OpenShift Using](https://reader030.vdocument.in/reader030/viewer/2022040201/5e478c22c5171a293b668d2f/html5/thumbnails/4.jpg)
JBOSS EAPJBOSS DATA GRID
JBOSS DATA VIRTUALIZATION
JBOSS AM-QJBOSS BRMSJBOSS BPMJBOSS FUSE
RED HAT MOBILE3 Scale
Container
BusinessAutomation
Container
Integration
Container
Data &Storage
Container
Web &Mobile
Traditional, Stateful, and Microservices-based Apps
OpenShift Application Lifecycle Management(CI/CD)
Build Automation Deployment Automation
Service Catalog(Language Runtimes, Middleware, Databases)
Self-Service
Infrastructure Automation & Cockpit
Networking Storage Registry Logs & Metrics Security
Container Orchestration & Cluster Management(kubernetes)
Container Runtime & Packaging(Docker)
Enterprise Container Host
Red Hat Enterprise LinuxAtomic Host
![Page 5: Backup strategies for Stateful Containers in OpenShiftpeople.redhat.com/ndevos/talks/2017-09-OSBConf/2017-09-Backup... · Backup strategies for Stateful Containers in OpenShift Using](https://reader030.vdocument.in/reader030/viewer/2022040201/5e478c22c5171a293b668d2f/html5/thumbnails/5.jpg)
CONTAINER
MODERN APPLICATIONS DRIVE A MODERN DATA ARCHITECTURE
CONTAINER PLATFORM
CONTAINER CONTAINER CONTAINER CONTAINER CONTAINER CONTAINER
µSVC µSVC µSVC µSVC µSVC µSVCµSVC
Container ReadyData and Storage
![Page 6: Backup strategies for Stateful Containers in OpenShiftpeople.redhat.com/ndevos/talks/2017-09-OSBConf/2017-09-Backup... · Backup strategies for Stateful Containers in OpenShift Using](https://reader030.vdocument.in/reader030/viewer/2022040201/5e478c22c5171a293b668d2f/html5/thumbnails/6.jpg)
STORAGE INNOVATION FORCONTAINERIZED APPLICATIONS
AUTOMATED CONFIGURATION
SINGLE CONTROL PANEL
CHOICE OF PERSISTENT STORAGE
Ceph RBD
Amazon EBS
Azure Disk
GCE Disk
iSCSI
NFS
GlusterFS
![Page 7: Backup strategies for Stateful Containers in OpenShiftpeople.redhat.com/ndevos/talks/2017-09-OSBConf/2017-09-Backup... · Backup strategies for Stateful Containers in OpenShift Using](https://reader030.vdocument.in/reader030/viewer/2022040201/5e478c22c5171a293b668d2f/html5/thumbnails/7.jpg)
MySQL Container
CONTAINER READY STORAGE
CONTAINER NODE 1
CONTAINER NODE 2
CONTAINER NODE 1
CONTAINER NODE 3
NGINX Container
NGINX Container
NGINX Container
![Page 8: Backup strategies for Stateful Containers in OpenShiftpeople.redhat.com/ndevos/talks/2017-09-OSBConf/2017-09-Backup... · Backup strategies for Stateful Containers in OpenShift Using](https://reader030.vdocument.in/reader030/viewer/2022040201/5e478c22c5171a293b668d2f/html5/thumbnails/8.jpg)
OPENSHIFT NODE 2
CONTAINER-NATIVE STORAGE
Co-Locate Storage and Apps
Dynamic Provisioning
Managed by OpenShift
Infrastructure-Agnostic
OPENSHIFT NODE 3
OPENSHIFT NODE 1
RHGS Container RHGS Container
OPENSHIFT NODE 4
MASTERAPP Container APP Container
APP CONTAINER
RHGS Container
![Page 9: Backup strategies for Stateful Containers in OpenShiftpeople.redhat.com/ndevos/talks/2017-09-OSBConf/2017-09-Backup... · Backup strategies for Stateful Containers in OpenShift Using](https://reader030.vdocument.in/reader030/viewer/2022040201/5e478c22c5171a293b668d2f/html5/thumbnails/9.jpg)
CONTAINER-NATIVE STORAGE ON OPENSHIFT
INFRA
![Page 10: Backup strategies for Stateful Containers in OpenShiftpeople.redhat.com/ndevos/talks/2017-09-OSBConf/2017-09-Backup... · Backup strategies for Stateful Containers in OpenShift Using](https://reader030.vdocument.in/reader030/viewer/2022040201/5e478c22c5171a293b668d2f/html5/thumbnails/10.jpg)
CONTAINER-NATIVE STORAGE ON OPENSHIFT
POD
CONTAINERIZED RED HAT GLUSTER STORAGE
RHEL HOST OS
RED HATGLUSTER POD
GLUSTER VOLUMES
PHYSICAL DISKHOST NETWORK
![Page 11: Backup strategies for Stateful Containers in OpenShiftpeople.redhat.com/ndevos/talks/2017-09-OSBConf/2017-09-Backup... · Backup strategies for Stateful Containers in OpenShift Using](https://reader030.vdocument.in/reader030/viewer/2022040201/5e478c22c5171a293b668d2f/html5/thumbnails/11.jpg)
CONTAINER-NATIVE STORAGE ON OPENSHIFT
POD
RHGS POD
RHGS POD
RHGS POD RHGS POD
INFRAPOD
INFRA
HEKETIRESTFUL GLUSTERFS
MANAGEMENT
RED HATHEKETI POD
REST API
GLUSTERFS PODS
![Page 12: Backup strategies for Stateful Containers in OpenShiftpeople.redhat.com/ndevos/talks/2017-09-OSBConf/2017-09-Backup... · Backup strategies for Stateful Containers in OpenShift Using](https://reader030.vdocument.in/reader030/viewer/2022040201/5e478c22c5171a293b668d2f/html5/thumbnails/12.jpg)
CONTAINER-NATIVE STORAGE ON OPENSHIFT
POD
RHGS POD
RHGS POD
RHGS POD RHGS POD
INFRAPOD
INFRAPERSISTENT
VOLUME CLAIM
1.)
![Page 13: Backup strategies for Stateful Containers in OpenShiftpeople.redhat.com/ndevos/talks/2017-09-OSBConf/2017-09-Backup... · Backup strategies for Stateful Containers in OpenShift Using](https://reader030.vdocument.in/reader030/viewer/2022040201/5e478c22c5171a293b668d2f/html5/thumbnails/13.jpg)
CONTAINER-NATIVE STORAGE ON OPENSHIFT
POD
RHGS POD
RHGS POD
RHGS POD RHGS POD
INFRAPOD
INFRAPERSISTENT
VOLUME CLAIM2.)
1.)
![Page 14: Backup strategies for Stateful Containers in OpenShiftpeople.redhat.com/ndevos/talks/2017-09-OSBConf/2017-09-Backup... · Backup strategies for Stateful Containers in OpenShift Using](https://reader030.vdocument.in/reader030/viewer/2022040201/5e478c22c5171a293b668d2f/html5/thumbnails/14.jpg)
CONTAINER-NATIVE STORAGE ON OPENSHIFT
POD
RHGS POD
RHGS POD
RHGS POD RHGS POD
INFRAPOD
INFRA
GLUSTER VOLUME
PERSISTENT VOLUME CLAIM
2.)
3.)
1.)
![Page 15: Backup strategies for Stateful Containers in OpenShiftpeople.redhat.com/ndevos/talks/2017-09-OSBConf/2017-09-Backup... · Backup strategies for Stateful Containers in OpenShift Using](https://reader030.vdocument.in/reader030/viewer/2022040201/5e478c22c5171a293b668d2f/html5/thumbnails/15.jpg)
CONTAINER-NATIVE STORAGE ON OPENSHIFT
POD
RHGS POD
RHGS POD
RHGS POD RHGS POD
INFRAPOD
INFRA
GLUSTER VOLUME
PERSISTENT VOLUME CLAIM
PERSISTENT VOLUME
PERSISTENT VOLUME
4.)
2.)
3.)
4.)
1.)
![Page 16: Backup strategies for Stateful Containers in OpenShiftpeople.redhat.com/ndevos/talks/2017-09-OSBConf/2017-09-Backup... · Backup strategies for Stateful Containers in OpenShift Using](https://reader030.vdocument.in/reader030/viewer/2022040201/5e478c22c5171a293b668d2f/html5/thumbnails/16.jpg)
Current available Backup Strategies
❖ Not integrated in the admin or user view of OpenShift
❖ Runs separately (most often) outside of OpenShift
❖ Might need special precautions for maintaining application data consistency
❖ Configuration and interactions directly on the storage environment
![Page 17: Backup strategies for Stateful Containers in OpenShiftpeople.redhat.com/ndevos/talks/2017-09-OSBConf/2017-09-Backup... · Backup strategies for Stateful Containers in OpenShift Using](https://reader030.vdocument.in/reader030/viewer/2022040201/5e478c22c5171a293b668d2f/html5/thumbnails/17.jpg)
GLUSTER SNAPSHOTS AND GEO-REPLICATION
Site A Site B
Asynchronous ReplicationGLUSTER VOLUME
read-writeGLUSTER VOLUME
read-only
CURRENT FILE SYSTEM
CURRENT FILE SYSTEM
CURRENT FILE SYSTEMSNAPSHOTSNAPSHOT
A B C D A B C D A B C D B D+ E1 E2
BEFORE SNAPSHOT AFTER SNAPSHOT AFTER MODIFICATIONS
DeletedData
ModifiedData New Data
![Page 18: Backup strategies for Stateful Containers in OpenShiftpeople.redhat.com/ndevos/talks/2017-09-OSBConf/2017-09-Backup... · Backup strategies for Stateful Containers in OpenShift Using](https://reader030.vdocument.in/reader030/viewer/2022040201/5e478c22c5171a293b668d2f/html5/thumbnails/18.jpg)
Potential future backup enhancements
❖ Snapshots of Persistent Volumes through Kubernetes
❖ Promotion of snapshots to new Persistent Volumes
❖ Container with backup application binds the Persistent Volume
❖ Opens the road for User-Self-Service to do backup and restores
❖ Can run completely inside OpenShift
![Page 19: Backup strategies for Stateful Containers in OpenShiftpeople.redhat.com/ndevos/talks/2017-09-OSBConf/2017-09-Backup... · Backup strategies for Stateful Containers in OpenShift Using](https://reader030.vdocument.in/reader030/viewer/2022040201/5e478c22c5171a293b668d2f/html5/thumbnails/19.jpg)
PERSISTENT VOLUME SNAPSHOTS
Site A
Create Snapshot Snapshot Details
Site A
Promote Snapshot to PVPersistent Volume Persistent Volume
Perform Backup
Site B
PERSISTENT STORAGEread-write
![Page 20: Backup strategies for Stateful Containers in OpenShiftpeople.redhat.com/ndevos/talks/2017-09-OSBConf/2017-09-Backup... · Backup strategies for Stateful Containers in OpenShift Using](https://reader030.vdocument.in/reader030/viewer/2022040201/5e478c22c5171a293b668d2f/html5/thumbnails/20.jpg)
THANK YOU
plus.google.com/+RedHat
linkedin.com/company/red-hat
youtube.com/user/RedHatVideos
facebook.com/redhatinc
twitter.com/RedHatNews