Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Dan Callahan - Fire your supervisord: running P...

Dan Callahan - Fire your supervisord: running Python apps on CoreOS

CoreOS is a new Linux distribution that makes it easy to deploy applications on dynamically scaled clusters of computers, and which has recently been embraced by infrastructure providers like DigitalOcean, Rackspace, and Google Compute Engine. Come learn how to package and deploy a Python application on this new, Docker-based platform.

https://us.pycon.org/2015/schedule/presentation/334/

PyCon 2015

April 18, 2015
Tweet

More Decks by PyCon 2015

Other Decks in Programming

Transcript

  1. Technology in CoreOS 1. FastPatch (Updates) 2. Docker / rkt

    (Containers) 3. Etcd (Consensus) 4. Fleet / Kubernetes (Scheduling) All Free / Open Source Software
  2. CoreOS is Minimal 140 MB compressed No Python, Perl, Ruby,

    or JavaScript No package manager No compiler
  3. Systemd Unit Files [ U n i t ] D

    e s c r i p t i o n = M y A p p A f t e r = d o c k e r . s e r v i c e R e q u i r e s = d o c k e r . s e r v i c e [ S e r v i c e ] E x e c S t a r t P r e = - / u s r / b i n / d o c k e r k i l l m y - a p p - % i E x e c S t a r t P r e = - / u s r / b i n / d o c k e r r m m y - a p p - % i E x e c S t a r t = / u s r / b i n / d o c k e r r u n - r m - - n a m e m y - a p p - % i - p 8 0 : 8 0 8 0 c a l l a h a d / m y - a p p E x e c S t o p = / u s r / b i n / d o c k e r s t o p m y - a p p - % i [ X - F l e e t ] C o n f l i c t s = m y - a p p @ * . s e r v i c e
  4. X-Fleet attributes C o n f l i c t

    s M a c h i n e O f M a c h i n e I D M a c h i n e M e t a d a t a G l o b a l
  5. We used 1. An OS with automatic, atomic, whole-system updates.

    2. Portable, isolated containers for our applications. 3. Multiple servers in a coordinated cluster. 4. A scheduler to distribute jobs across machines.
  6. Many supported platforms Local VMs (Vagrant) Azure, EC2, GCE, RackSpace

    DigitalOcean $40 credit on DigitalOcean: “SAMMYLOVESPYCON”