Using LXC on Production

Embed Size (px)

DESCRIPTION

第4回 コンテナ型仮想化の情報交換会@東京 2014.9.6

Citation preview

  • 1. Using LXC on Production4 2014.9.6Isao SHIMIZU@isaoshimizu

2. http://alpha.mixi.co.jp/entry/2014/12171/2 3. Isao SHIMIZU! !42011mixiFedorasystemdOpenStackLXC!:20032011 SIerWeb!GolangCoreOSAWS3 4. 4 5. LXC5 6. mixi6 7. KVMKernel-based Virtual Machine7 8. KVM KVM CobblerIP virt-install, Kickstart! 8 9. KVM OS 9 10. KVM IO OS BIOSIntel VTAMD-V10 11. OpenStack11 12. OpenStack 2013 VersionGrizzly 2013.01 PaaSGizmo Chef MySQLRedisJenkins Horizon 12 13. mixi13 14. LXCLinux Containers14 15. LXC KVM LXC Kernel LinuxCon Japan 2013LXC 15 16. LXC KVM Kernel KVMCPUIO init 16 17. LXC17https://github.com/lxc/lxc 18. LXC18https://github.com/lxc/lxc 19. KVMLXC19 20. LXC 0.8.02012.11.110.9.02013.4.5 1.0.020142 0.9.0 templatesFedoraLXC Fedora 20 21. !20131021 22. 22 23. DockerLXC23 24. Docker 0.6.x1.2.0 AUFS Docker Registry Go! IP IPmacvlan taggedVLAN 24 25. 25 26. trailer26 27. trailer Ruby LXC IPMACARM Trailerfile27 28. trailer28 29. trailertrailer pulltrailer start(1)(2)ARMAPIIPMACARMAPIDHCP(3)IPMACmacvlan bridgeinitsystemd(4)trailer startssh1029 30. trailertrailer stop(1)LXC30 31. trailertrailer startChefknife-solotrailer snapshotyamlrootfs.gztarballtrailer archivetrailer push31 32. LXCReverse Proxy (mod_proxy)VarnishQ4M (Job Queue)Application Server (mod_perl)Tokyo TyrantMemcached32 33. LXC33 34. PIDkernel.threads-maxkernel.pid_maxvm.max_map_count/etc/security/limits.d/90-nproc.conf unlimited File DescriptorTCP/IPKernelKernelsysctlecho34 35. 35 36. trailer36 37. VagrantFedora 19Fedora 19kernel-3.9.5-301.fc19.x86_64lxc-0.9.0-2.fc19.x86_6437 38. 38 39. OpenStackLXC - mixi Engineers' Bloghttp://alpha.mixi.co.jp/entry/2014/12171/LXC http://gihyo.jp/admin/serial/01/linux_containersLxc - SlideSharehttp://www.slideshare.net/enakai/lxc-8300191LXC - Linux Containershttps://linuxcontainers.org/jp/LXC(Linux Container)http://events.linuxfoundation.org/sites/events/files/cojp13_feng.pdfDockerhttp://www.slideshare.net/enakai/docker-34668707GitHub - lxc/lxchttps://github.com/lxc/lxc39