Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Cloud Foundry Diego, Lattice, Docker and more

4,659 views

Published on

Colorado Cloud Foundry Meetup
May 19, 2015
Lattice and Docker with Cornelia Davis

Starting with a comparison of the current core runtime of the Cloud Foundry Elastic Runtime, to the new Diego rewrite, we take a tour through how linux containers can run a variety of image formats, including Docker. We talk about one way that you can get the Diego functionality in Lattice, a container scheduler that runs on a laptop or as a cluster in the cloud. We talk about ways of creating container images including Cloud Rocker and we draw it all together with a bunch of demos.

Abstract from the meetup:
What is Lattice (www.lattice.cf)?

Lattice is an open source project for running containerized workloads on a cluster. A Lattice cluster is comprised of a number of Lattice Cells (VMs that run containers) and a Lattice Coordinator that monitors the Cells.

Lattice includes built-in http load-balancing, a cluster scheduler, log aggregation with log streaming and health management.

Lattice containers are described as long-running processes or temporary tasks. Lattice includes support for Linux Containers expressed either as Docker Images or by composing applications as binary code on top of a root file system. Lattice's container pluggability will enable other backends such as Windows or Rocket in the future.

Published in: Software
  • Be the first to comment

Cloud Foundry Diego, Lattice, Docker and more

  1. 1. 2© 2015 Pivotal Software, Inc. All rights reserved. 2© 2015 Pivotal Software, Inc. All rights reserved. Lattice, Docker and More Denver Cloud Foundry Meetup Cornelia Davis, Director, Platform Engineering, Cloud Foundry  @cdavisafc May 19 2015
  2. 2. 3© 2015 Pivotal Software, Inc. All rights reserved. The Tour…  Diego  Lattice  Docker (and other image formats)  Cloud Rocker
  3. 3. 4© 2015 Pivotal Software, Inc. All rights reserved. What is Diego?  Rewrite of the CF Runtime  Goals: – NATS  distributed, shared memory (etcd) – Support for different container image formats – Superior workload scheduling  ... which enables: – Windows support – Placement pools – cf ssh – TCP routing – container to container messaging
  4. 4. 5© Copyright 2013 Pivotal. All rights reserved. Router Failed Application Instances Replaced (DEA) Blobstore Cloud Controller Health Manager Actual StateDesired State Messaging (NATS) DEA DEA DEA Pivotal CF Elastic Runtime
  5. 5. 6© Copyright 2015 Pivotal. All rights reserved. Failed Application Instances Replaced (Diego) Router Blobstore Cloud Controller etcd Cell Cell Cell Pivotal Cloud Foundry Elastic Runtime Access App DB Service credentialscreds Converger & Auctioneer Desired State credscreds Actual State
  6. 6. 7© Copyright 2015 Pivotal. All rights reserved.
  7. 7. 8© Copyright 2015 Pivotal. All rights reserved. Containers and Container Images  Docker is: – Image format – A runtime/interpreter for Docker images leveraging linux container support  Garden is a runtime/interpreter, leveraging linux container support, for: – Droplets (linux containers) – Docker images (linux containers) – .Net applications (windows “containers”)  Windows cells installed via msi Cell App App App App Cell App App App App Cell App App App App
  8. 8. 9© Copyright 2015 Pivotal. All rights reserved. All that is in the Elastic Runtime  Heavy-duty startup  Bosh-lite still complex Pivotal CF Elastic Runtime Dynamic Router OAuth 2.0 Server (UAA) Health Manager Application Execution (DEA) Warden Build Packs Login Server Cloud Controller Blob Store Message Bus(NATS) Sys Log ServiceBrokers Collector Loggregator ROUTING AUTHENTICATION APP LIFECYCLE APP STORAGE & EXECUTION MESSAGING METRICS & LOGGING Pivotal CF OpsManager/BOSH
  9. 9. 10© Copyright 2015 Pivotal. All rights reserved. Lattice  Deployment options: – Local – Clusters: AWS, Digital Ocean, Google Cloud, Openstack  Developer accessibility  Demonstrate docker (and similar) support  Part of app lifecycle – developer support Pivotal CF Elastic Runtime Dynamic Router OAuth 2.0 Server (UAA) Diego Health Application Execution (Diego) Garden Login Server Cloud Controller Blob Store Message Bus(NATS) Sys Log ServiceBrokers Collector Loggregator ROUTING AUTHENTICATION APP LIFECYCLE APP STORAGE & EXECUTION MESSAGING METRICS & LOGGING Pivotal CF OpsManager/BOSH
  10. 10. 11© 2015 Pivotal Software, Inc. All rights reserved.
  11. 11. 12© Copyright 2015 Pivotal. All rights reserved. 12© Copyright 2013 Pivotal. All rights reserved. Demo
  12. 12. 13© Copyright 2015 Pivotal. All rights reserved. Containers Alone Aren’t Enough…
  13. 13. 14© Copyright 2015 Pivotal. All rights reserved. Push Docker Images ltc create Docker Hub
  14. 14. 16© Copyright 2015 Pivotal. All rights reserved. Cloud Foundry Created Images cf push build & run + =
  15. 15. 17© Copyright 2015 Pivotal. All rights reserved. Cloud Rocker build + =
  16. 16. 19© Copyright 2015 Pivotal. All rights reserved. Cloud Rocker + Lattice ltc create build + =
  17. 17. 20© Copyright 2015 Pivotal. All rights reserved. 20© Copyright 2013 Pivotal. All rights reserved. Demo
  18. 18. 22© Copyright 2015 Pivotal. All rights reserved. In the Future… + = ltc create build
  19. 19. 23© Copyright 2015 Pivotal. All rights reserved. All Together Cloud Rocker rock add-buildpack rock up rock build docker push ltc CLI ltc target ltc create ... ltc scale Docker Hub CellCellCellCellCellBrain Router Logging Receptor etcd …
  20. 20. 24© 2015 Pivotal Software, Inc. All rights reserved. 24© Copyright 2015 Pivotal. All rights reserved. Thank You @cdavisafc
  21. 21. 25© Copyright 2015 Pivotal. All rights reserved. References  Diego: https://github.com/cloudfoundry-incubator/diego-design-notes  lattice.cf  Cloud rocker: https://github.com/CloudCredo/cloudrocker  Xray: https://github.com/pivotal-cf-experimental/xray

×