day 2 operations with containers: myth vs reality...

23
© 2017 Mesosphere, Inc. All Rights Reserved. 1 Day 2 Operations with Containers: Myth vs Reality Sysdig CCWFS September 26, 2017 Elizabeth K. Joseph, @pleia2

Upload: others

Post on 20-May-2020

2 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Day 2 Operations with Containers: Myth vs Reality ...princessvespa.com/presentations/2017/Sysdig_CCWFS... · “Sysdig Monitor comes with built-in, first class support for Mesos,

© 2017 Mesosphere, Inc. All Rights Reserved. 1

Day 2 Operations with Containers: Myth vs Reality

Sysdig CCWFSSeptember 26, 2017

Elizabeth K. Joseph, @pleia2

Page 2: Day 2 Operations with Containers: Myth vs Reality ...princessvespa.com/presentations/2017/Sysdig_CCWFS... · “Sysdig Monitor comes with built-in, first class support for Mesos,

© 2017 Mesosphere, Inc. All Rights Reserved. 2

❏ Developer Advocate at Mesosphere❏ 15+ years working in open source

communities❏ 10+ years in Linux systems

administration and engineering roles❏ Founder of OpenSourceInfra.org❏ Author of The Official Ubuntu Book

and Common OpenStack Deployments

Elizabeth K. Joseph, Developer Advocate

Page 3: Day 2 Operations with Containers: Myth vs Reality ...princessvespa.com/presentations/2017/Sysdig_CCWFS... · “Sysdig Monitor comes with built-in, first class support for Mesos,

© 2017 Mesosphere, Inc. All Rights Reserved. 3

You no longer have a single server with everything running on it.

You have a multi-tier system with various layers and owners down the stack:

❏ Hardware❏ Network❏ Resource abstraction❏ Scheduler❏ Container❏ Virtual network❏ Application❏ ...

Containerized Systems 101

Page 4: Day 2 Operations with Containers: Myth vs Reality ...princessvespa.com/presentations/2017/Sysdig_CCWFS... · “Sysdig Monitor comes with built-in, first class support for Mesos,

© 2017 Mesosphere, Inc. All Rights Reserved. 4

Cloud-native scopes

Application

Container

Host + orchestration platform

Page 5: Day 2 Operations with Containers: Myth vs Reality ...princessvespa.com/presentations/2017/Sysdig_CCWFS... · “Sysdig Monitor comes with built-in, first class support for Mesos,

© 2017 Mesosphere, Inc. All Rights Reserved. 5

Cloud-native scopes

Your

app

here!

Containers

Page 6: Day 2 Operations with Containers: Myth vs Reality ...princessvespa.com/presentations/2017/Sysdig_CCWFS... · “Sysdig Monitor comes with built-in, first class support for Mesos,

6

Myth 1: Containers will solve all your problems!

CC BY-ND 2.0: https://www.flickr.com/photos/basecampbaker/22374753984/

Page 7: Day 2 Operations with Containers: Myth vs Reality ...princessvespa.com/presentations/2017/Sysdig_CCWFS... · “Sysdig Monitor comes with built-in, first class support for Mesos,

7

Reality: You still have to maintain it

CC BY 2.0: https://www.flickr.com/photos/pleia2/33598786390/

Page 8: Day 2 Operations with Containers: Myth vs Reality ...princessvespa.com/presentations/2017/Sysdig_CCWFS... · “Sysdig Monitor comes with built-in, first class support for Mesos,

© 2017 Mesosphere, Inc. All Rights Reserved. 8

- Cluster Upgrades- Cluster Resizing- Capacity Planning- User & Package Management- Networking Policies- Auditing- Backups & Disaster Recovery

- Debugging- Services- System

- Tracing- Chaos engineering

Maintenance & Troubleshooting

Page 9: Day 2 Operations with Containers: Myth vs Reality ...princessvespa.com/presentations/2017/Sysdig_CCWFS... · “Sysdig Monitor comes with built-in, first class support for Mesos,

9

Myth 2: Green fields!

CC BY 2.0: https://www.flickr.com/photos/31176607@N05/14289941411/

Page 10: Day 2 Operations with Containers: Myth vs Reality ...princessvespa.com/presentations/2017/Sysdig_CCWFS... · “Sysdig Monitor comes with built-in, first class support for Mesos,

10

Reality: A lot of legacy tooling, infrastructure

CC BY-ND 2.0: https://www.flickr.com/photos/curious_e/17108088858/

Page 11: Day 2 Operations with Containers: Myth vs Reality ...princessvespa.com/presentations/2017/Sysdig_CCWFS... · “Sysdig Monitor comes with built-in, first class support for Mesos,

© 2017 Mesosphere, Inc. All Rights Reserved. 11

Focus on standards-based implementations

Page 12: Day 2 Operations with Containers: Myth vs Reality ...princessvespa.com/presentations/2017/Sysdig_CCWFS... · “Sysdig Monitor comes with built-in, first class support for Mesos,

12

Myth 3: Everything is already automated!

CC BY 2.0: https://www.flickr.com/photos/jelene/3053457705/

Page 13: Day 2 Operations with Containers: Myth vs Reality ...princessvespa.com/presentations/2017/Sysdig_CCWFS... · “Sysdig Monitor comes with built-in, first class support for Mesos,

13

Reality: You still need logging, metrics, monitoring

CC BY 2.0: https://www.flickr.com/photos/sylvar/3119015160/

Page 14: Day 2 Operations with Containers: Myth vs Reality ...princessvespa.com/presentations/2017/Sysdig_CCWFS... · “Sysdig Monitor comes with built-in, first class support for Mesos,

© 2017 Mesosphere, Inc. All Rights Reserved. 14

Metrics, Monitoring- Collecting metrics- Downstream processing

- Alerting- Dashboards- Storage (long-term retention)

Logging- Scopes (host, container, app)- Local vs. centralized

Logging, Metrics, Monitoring

Page 15: Day 2 Operations with Containers: Myth vs Reality ...princessvespa.com/presentations/2017/Sysdig_CCWFS... · “Sysdig Monitor comes with built-in, first class support for Mesos,

© 2017 Mesosphere, Inc. All Rights Reserved. 15

LOGGINGTOOLINGEXAMPLES(INTEGRATED)

● Centralized app logging with fluentd

● DC/OS

a. ELK stack log shipping

b. Splunk

● Graylog

● Loggly

● Papertrail

● Sumo Logic

Page 16: Day 2 Operations with Containers: Myth vs Reality ...princessvespa.com/presentations/2017/Sysdig_CCWFS... · “Sysdig Monitor comes with built-in, first class support for Mesos,

© 2017 Mesosphere, Inc. All Rights Reserved. 16

METRICSCONCEPTS

Page 17: Day 2 Operations with Containers: Myth vs Reality ...princessvespa.com/presentations/2017/Sysdig_CCWFS... · “Sysdig Monitor comes with built-in, first class support for Mesos,

© 2017 Mesosphere, Inc. All Rights Reserved. 17

INTEGRATEDMETRICSTOOLCHAIN

Page 18: Day 2 Operations with Containers: Myth vs Reality ...princessvespa.com/presentations/2017/Sysdig_CCWFS... · “Sysdig Monitor comes with built-in, first class support for Mesos,

© 2017 Mesosphere, Inc. All Rights Reserved. 18

“Sysdig Monitor comes with built-in, first class support for Mesos, Marathon, and DC/OS. In order to instrument your Mesos environment with Sysdig Monitor, you simply need to install the Sysdig agent container on each underlying host in your Mesos cluster.

Sysdig Monitor will automatically begin monitoring all of your hosts, apps, containers, and frameworks, and will also automatically connect to the Mesos and Marathon APIs to pull relevant metadata about your environment.”

https://support.sysdig.com/hc/en-us/articles/207886103-Sysdig-Install-Mesos-Marathon-DCOS-CLI-method-

Apache Mesos, Marathon & DC/OS + Sysdig example

Page 19: Day 2 Operations with Containers: Myth vs Reality ...princessvespa.com/presentations/2017/Sysdig_CCWFS... · “Sysdig Monitor comes with built-in, first class support for Mesos,

19

Myth 4: No more planning!

CC BY 2.0: https://www.flickr.com/photos/apreche/6857223299/

Page 20: Day 2 Operations with Containers: Myth vs Reality ...princessvespa.com/presentations/2017/Sysdig_CCWFS... · “Sysdig Monitor comes with built-in, first class support for Mesos,

20

Reality: You still need to plan

CC BY-ND 2.0: https://www.flickr.com/photos/tambako/4598642399/

Page 21: Day 2 Operations with Containers: Myth vs Reality ...princessvespa.com/presentations/2017/Sysdig_CCWFS... · “Sysdig Monitor comes with built-in, first class support for Mesos,

© 2017 Mesosphere, Inc. All Rights Reserved. 21

Things will go wrong.

These things can’t be an afterthought.

You must build time into your deployment and maintenance plans.

Planning

Page 22: Day 2 Operations with Containers: Myth vs Reality ...princessvespa.com/presentations/2017/Sysdig_CCWFS... · “Sysdig Monitor comes with built-in, first class support for Mesos,

© 2017 Mesosphere, Inc. All Rights Reserved. 22

Cloud-Native Infrastructure “Must Haves”

❏ A plan which considers:❏ Host❏ Container❏ Application

❏ Upgrade strategy❏ Backups❏ Disaster recovery❏ Metrics collection and monitoring❏ Centralized logging

Checklist

Page 23: Day 2 Operations with Containers: Myth vs Reality ...princessvespa.com/presentations/2017/Sysdig_CCWFS... · “Sysdig Monitor comes with built-in, first class support for Mesos,

© 2017 Mesosphere, Inc. All Rights Reserved. 23

Questions?

Elizabeth K. JosephTwitter: @pleia2

Email: [email protected]

@dcos

[email protected]

/dcos/dcos/examples/dcos/demos

chat.dcos.io