LXD System Containers [en]

LXD System Containers [en]

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

6e15b56fcb16fae0747810827be8ce8f?s=128

Christoph Lühr

March 07, 2017
Tweet

Transcript

  1. 2.
  2. 3.
  3. 11.
  4. 12.
  5. 15.
  6. 17.
  7. 34.

    LXD

  8. 36.

    Features • Images • Instant Snapshots • Remotes, Transfer •

    Space efficient • Disc- / Ram- / CPU Efficiency!
  9. 64.
  10. 67.

    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; } }
  11. 68.

    NginX Proxy HTTP Requests LXD Host LXD Container A NGINX

    HTTP Proxy Apache / PHP LXD Container B Apache / PHP
  12. 71.
  13. 72.

    Deployment Strategy blue-green LXD Host LXD Container A NGINX HTTP

    Proxy Apache / PHP LXD Container B Apache / PHP Testing
  14. 73.

    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; } }
  15. 74.

    Deployment Strategy blue-green LXD Host LXD Container B NGINX HTTP

    Proxy Apache / PHP LXD Container A Destroyed
  16. 77.

    Features • VPCs: Networking / Bridges / ... • cgroups

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