ALL ABOUT? 3 Pets vs Cattle Pets are individuals that you give names and when they get ill you nurse them back to health. Cattle are anonymous, identical to other cattle you assign numbers and when they get ill → next one. http://www.theregister.co.uk/2013/03/18/servers_pets_or_cattle_cern/
ALL-IN WITH CATTLE APPROACH 4 Pets vs Cattle • scale out on commodity hardware • elasticity • 'cheap' & 'simple' • R U on pager duty? Just sleep through! • social ≫ technology challenge • where the f#@k is my app? http://www.theregister.co.uk/2013/03/18/servers_pets_or_cattle_cern/
10 • Remember the location, that is IP:PORT of each app across re-launches throughout the cluster • Potentially exclude unhealthy hosts • Others/related • strong consistency vs. highly available (or: the CAP theorem strikes, again) • how about load balancing?
12 Name Consistency Language Options etcd strong Go sidekick+client registration Eureka eventual Java client registration Consul strong Go auto | Traefik Mesos-DNS strong Go auto | Traefik (Marathon) SkyDNS strong Go client registration Weave-DNS strong Go auto Zookeeper strong Java client registration http://programmableinfrastructure.com/components/service-discovery/
DISTRIBUTED OPERATING SYSTEM 16 • kernel (Apache Mesos, written in C++) scales to 10,000 of nodes • fault-tolerant in all components, rolling upgrades throughout • containers first class citizens (LXC, Docker) • local OS per node (+container enabled) • scheduling (long-lived, batch) • service discovery, monitoring, logging, debugging
• Run stateless services such as Web servers, app servers (via Marathon) and stateful services like Crate, Kafka, HDFS, Cassandra, ArangoDB etc. together on one cluster • Dynamic partitioning of your cluster, depending on your needs (business requirements) • Increased utilization (10% → 80% an more)
24 • @mhausenblas • mhausenblas.info • @mesosphere • mesosphere.io/product Kudos for material in this talk go out to: The folks who wrote 'Docker in Production' and my colleagues from p24e.io http://shop.oreilly.com/product/9781939902184.do http://p24e.io