Top Banner
Docker + Ceph = Happiness and happy = good Dan Elder Senior Engineer/Linux Services Manager [email protected]
14

Docker + Ceph = Happiness - SUSE · 3 Containerization Overview Massive resource consolidation (~ 5X). Rapid and consistent deployments. Bridge gap between developers and operations.

Nov 26, 2018

Download

Documents

LêKhánh
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Docker + Ceph = Happiness - SUSE · 3 Containerization Overview Massive resource consolidation (~ 5X). Rapid and consistent deployments. Bridge gap between developers and operations.

Docker + Ceph = Happinessand happy = good

Dan Elder

Senior Engineer/Linux Services Manager

[email protected]

Page 2: Docker + Ceph = Happiness - SUSE · 3 Containerization Overview Massive resource consolidation (~ 5X). Rapid and consistent deployments. Bridge gap between developers and operations.

2

Agenda

● Containerization Overview● 12 Factor Applications● Security Benefits of Docker● Ceph Overview● Why Docker and Ceph● CephFS● Winning

Page 3: Docker + Ceph = Happiness - SUSE · 3 Containerization Overview Massive resource consolidation (~ 5X). Rapid and consistent deployments. Bridge gap between developers and operations.

3

Containerization Overview

● Massive resource consolidation (~ 5X).● Rapid and consistent deployments.● Bridge gap between developers and operations.● End-to-end audit trail and security controls.● Standardized workload deployments● Docker is included an fully supported in SLE 12

Page 4: Docker + Ceph = Happiness - SUSE · 3 Containerization Overview Massive resource consolidation (~ 5X). Rapid and consistent deployments. Bridge gap between developers and operations.

4

Security Benefits of Docker

● No access to production (SSH, CLI, etc…)● Stateless environment mitigates against APT● Minimal images mean fewer attack vectors● Deployment methodology allows for rapid response● Full audit trail for entire lifecycle of deployment● Breaks down communication barriers (Dev, Ops, Sec)● Automation ensures consistency● AppArmor and/or SELinux to confine everything

Page 5: Docker + Ceph = Happiness - SUSE · 3 Containerization Overview Massive resource consolidation (~ 5X). Rapid and consistent deployments. Bridge gap between developers and operations.

5

12 Factor Applications

I. Codebase

One codebase tracked in revision control, many deploys

II. Dependencies

Explicitly declare and isolate dependencies

III. Config

Store config in the environment

IV. Backing Services

Treat backing services as attached resources

V. Build, release, run

Strictly separate build and run stages

Page 6: Docker + Ceph = Happiness - SUSE · 3 Containerization Overview Massive resource consolidation (~ 5X). Rapid and consistent deployments. Bridge gap between developers and operations.

6

12 Factor Applications (contd)

VI. Processes

Execute the app as one or more stateless processes

VII. Port binding

Export services via port binding

VIII. Concurrency

Scale out via the process model

IX. Disposability

Maximize robustness with fast startup and graceful shutdown

Page 7: Docker + Ceph = Happiness - SUSE · 3 Containerization Overview Massive resource consolidation (~ 5X). Rapid and consistent deployments. Bridge gap between developers and operations.

7

12 Factor Applications (contd)

X. Dev/prod parity

Keep development, staging, and production as similar as possible

XI. Logs

Treat logs as event streams

XII. Admin processes

Run admin/management tasks as one-off processes

https://12factor.net/

Page 8: Docker + Ceph = Happiness - SUSE · 3 Containerization Overview Massive resource consolidation (~ 5X). Rapid and consistent deployments. Bridge gap between developers and operations.

8

Ceph Overview

● Enterprise ready● Massively scalable● Open source● Commodity hardware● Large ecosystem● Storage Nodes● Monitor Nodes● Gateway Nodes

Page 9: Docker + Ceph = Happiness - SUSE · 3 Containerization Overview Massive resource consolidation (~ 5X). Rapid and consistent deployments. Bridge gap between developers and operations.

9

Ceph Overview

● Enterprise ready● Massively scalable● Open source● Commodity hardware● Large ecosystem● Storage Nodes● Monitor Nodes● Gateway Nodes

Page 10: Docker + Ceph = Happiness - SUSE · 3 Containerization Overview Massive resource consolidation (~ 5X). Rapid and consistent deployments. Bridge gap between developers and operations.

10

Why Docker and Ceph

● Stateless containers● Stateful data● Location independent access● Robust access protocols● Massively scalable● Open source● Great SUSE support

Page 11: Docker + Ceph = Happiness - SUSE · 3 Containerization Overview Massive resource consolidation (~ 5X). Rapid and consistent deployments. Bridge gap between developers and operations.

11

CephFS

● Accessible via FUSE or kernel● POSIX compliant● Failover MDS options● Performance considerations● Scalability considerations● Access from Docker hosts

Page 12: Docker + Ceph = Happiness - SUSE · 3 Containerization Overview Massive resource consolidation (~ 5X). Rapid and consistent deployments. Bridge gap between developers and operations.

12

Demo

● SES Cluster with:● 1 Admin node● 1 Calamari node● 3 OSD/MON Nodes● 1 MDS Node

● Docker● 1 Docker Host

Page 13: Docker + Ceph = Happiness - SUSE · 3 Containerization Overview Massive resource consolidation (~ 5X). Rapid and consistent deployments. Bridge gap between developers and operations.
Page 14: Docker + Ceph = Happiness - SUSE · 3 Containerization Overview Massive resource consolidation (~ 5X). Rapid and consistent deployments. Bridge gap between developers and operations.

14

Demo