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

LXD System Containers [en]

LXD System Containers [en]

Berlin PHP User Group @bephpug, March 7th, 2017

Christoph Lühr

March 07, 2017
Tweet

More Decks by Christoph Lühr

Other Decks in Technology

Transcript

  1. LXD

  2. Features • Images • Instant Snapshots • Remotes, Transfer •

    Space efficient • Disc- / Ram- / CPU Efficiency!
  3. server { listen 80; server_name www.website.de; location / { proxy_pass

    http://10.1.1.264:80; client_max_body_size 100M; proxy_connect_timeout 300; proxy_send_timeout 300; proxy_read_timeout 300; send_timeout 300; } }
  4. NginX Proxy HTTP Requests LXD Host LXD Container A NGINX

    HTTP Proxy Apache / PHP LXD Container B Apache / PHP
  5. Deployment Strategy blue-green LXD Host LXD Container A NGINX HTTP

    Proxy Apache / PHP LXD Container B Apache / PHP Testing
  6. server { listen 80; server_name www.website.de; set $host_blue 10.31.1.199; set

    $host_green 10.31.1.4; set $upstream $host_green; # default! if ($http_x_debug = "green") { set $upstream $host_green; } if ($http_x_debug = "blue") { set $upstream $host_blue; } location / { proxy_pass http://$upstream:80; } }
  7. Deployment Strategy blue-green LXD Host LXD Container B NGINX HTTP

    Proxy Apache / PHP LXD Container A Destroyed
  8. Features • VPCs: Networking / Bridges / ... • cgroups

    (...): Limiting Ressources • Live (State) Migration (experimental) • Nesting: Docker within LXD Containers • Setup: Modern Kernel Features required • OpenStack: Nodes