2© 2015 Pivotal Software, Inc. All rights reserved. 2© 2015 Pivotal Software, Inc. All rights reserved.
Lattice, Docker an...
3© 2015 Pivotal Software, Inc. All rights reserved.
The Tour…
 Diego
 Lattice
 Docker (and other image formats)
 Cloud...
4© 2015 Pivotal Software, Inc. All rights reserved.
What is Diego?
 Rewrite of the CF Runtime
 Goals:
– NATS  distribut...
5© Copyright 2013 Pivotal. All rights reserved.
Router
Failed Application Instances Replaced (DEA)
Blobstore
Cloud
Control...
6© Copyright 2015 Pivotal. All rights reserved.
Failed Application Instances Replaced (Diego)
Router
Blobstore
Cloud
Contr...
7© Copyright 2015 Pivotal. All rights reserved.
8© Copyright 2015 Pivotal. All rights reserved.
Containers and Container Images
 Docker is:
– Image format
– A runtime/in...
9© Copyright 2015 Pivotal. All rights reserved.
All that is in the Elastic Runtime
 Heavy-duty startup
 Bosh-lite still ...
10© Copyright 2015 Pivotal. All rights reserved.
Lattice
 Deployment options:
– Local
– Clusters: AWS, Digital Ocean, Goo...
11© 2015 Pivotal Software, Inc. All rights reserved.
12© Copyright 2015 Pivotal. All rights reserved. 12© Copyright 2013 Pivotal. All rights reserved.
Demo
13© Copyright 2015 Pivotal. All rights reserved.
Containers Alone Aren’t Enough…
14© Copyright 2015 Pivotal. All rights reserved.
Push Docker Images
ltc create
Docker Hub
16© Copyright 2015 Pivotal. All rights reserved.
Cloud Foundry Created Images
cf push
build
& run
+ =
17© Copyright 2015 Pivotal. All rights reserved.
Cloud Rocker
build
+
=
19© Copyright 2015 Pivotal. All rights reserved.
Cloud Rocker + Lattice
ltc create
build
+
=
20© Copyright 2015 Pivotal. All rights reserved. 20© Copyright 2013 Pivotal. All rights reserved.
Demo
22© Copyright 2015 Pivotal. All rights reserved.
In the Future…
+
=
ltc create
build
23© Copyright 2015 Pivotal. All rights reserved.
All Together
Cloud Rocker
rock add-buildpack
rock up
rock build
docker pu...
24© 2015 Pivotal Software, Inc. All rights reserved. 24© Copyright 2015 Pivotal. All rights reserved.
Thank You
@cdavisafc
25© Copyright 2015 Pivotal. All rights reserved.
References
 Diego: https://github.com/cloudfoundry-incubator/diego-desig...
Cloud Foundry Diego, Lattice, Docker and more
Cloud Foundry Diego, Lattice, Docker and more
Nächste SlideShare
Wird geladen in …5
×

Cloud Foundry Diego, Lattice, Docker and more

4.317 Aufrufe

Veröffentlicht am

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.

Veröffentlicht in: Software
0 Kommentare
11 Gefällt mir
Statistik
Notizen
  • Als Erste(r) kommentieren

Keine Downloads
Aufrufe
Aufrufe insgesamt
4.317
Auf SlideShare
0
Aus Einbettungen
0
Anzahl an Einbettungen
191
Aktionen
Geteilt
0
Downloads
146
Kommentare
0
Gefällt mir
11
Einbettungen 0
Keine Einbettungen

Keine Notizen für die Folie
  • The elastic runtime will keep the number of instances you’ve requested running by:
    DEAs constantly reporting their state
    Health manager constantly updating actual state model across all DEAs
    HM periodically requests desired state from the cloud controller
    When a difference is found, HM advises CC
    CC initiates deployment of a new instance
  • Cloud Foundry PaaS

  • Cloud Foundry PaaS

    An application runs in a DEA, which is a droplet execution agent. The Cloud Controller orchestrates the routing and lifecycle of all DEAs in the pool. Routers manage application traffic. Health Manager reports mismatched application states to the CC. A service gateway provides an interface for services (native or external). A messaging bus manages all system communication. Apps are accessed directly through the router while web and CLI clients (e.g., vmc, STS) access Cloud Controller via RESTful services.
  • Demo Lattice & XRay
    Deploy apps
    Scale apps
    Crash and app
    Stop a node
  • How do containers and PaaS work together?
     
    One of the capabilities of PaaS, is the orchestration and management of multiple virtual machines and/or containers that depend on each other and work with each other to provide an application that is built and run atop an infrastructure of choice.
    Pivotal has released experimental support for Docker containers (a running instance of a Docker image) in their Ops Manager to provide the ability to run multiple Docker images on a single VM.   The Diego project further enables enterprises to run 12-factor applications within Docker images as first-class applications so that they can leverage features such as load balancing, aggregate logging, service bindings, team management and refined event auditing that Pivotal CF provides.

    So how does Pivotal CF and Docker work together?
    Pivotal CF adds many enterprise-grade features for Docker containers, particularly around app health management, monitoring, and orchestration.
  • 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

    ×