Pro Yearly is on sale from $80 to $50! »

CoreOS 運用の所感

CoreOS 運用の所感

CoreOS Meetup Tokyo #1 での発表資料。
etcd, fleet オフにして使ってるので期待した内容ではないかもですが...
http://coreos-meetup-tokyo.connpass.com/event/12596/

32f2e5ddb187baa2abac66d7e8b283fe?s=128

Seigo Uchida

April 09, 2015
Tweet

Transcript

  1. @spesnova CoreOSӡ༻ͷॴײ

  2. @spesnova

  3. Favorites &

  4. None
  5. Dockerಛूॻ͖·ͨ͠ 2015/04/23 ൃച

  6. Dockerಛूͷ໨࣍ 1. ੒Γཱ͔ͪΒֶͿجຊͱશମ૾ 2. ࣮ઓ౤ೖʹ޲͚ͯ཈͓͖͍͑ͯͨצॴ 3. ຊ൪ӡ༻Λݟਾ͑ͨΠϝʔδͷ࡞Γํ 4. Capistrano, Swarm

    ʹΑΔΦʔέετϨʔγϣϯͷ࣮ફ 5. ίϯςφͷCIɺϞχλϦϯάɺϩάɺϗετͷϝϯςφϯε
  7. ࠓ೔ͷ࿩ CoreOS ӡ༻ͷॴײ ஌ݟͱ͍͏΄Ͳཷ·ͬͯͳ͍…

  8. ࠓͷ CoreOS ӡ༻ํ๏

  9. Ͳ͜Ͱ࢖ͬͯΔ͔ • CoreOS on EC2 • ը૾ϦαΠζίϯςφͷϗετʹ • ࣍͸ Elasticsearch

    ΫϥελͰ
  10. σϓϩΠ • ৽͍͠ EC2 Πϯελϯε౤Լ • cloud-config Ͱίϯςφىಈ • ELB

    ഑ԼΛϒϧʔάϦʔϯ
  11. CoreOS on EC2 Λىಈ IUUQRJJUBDPNTQFTOPWBJUFNTCEDFFBFE

  12. ϩά • journal Λશ෦ logentries ʹૹΔ • fluend ίϯςφ࢖ͬͯ΋Α͍ͱࢥ͏ IUUQRJJUBDPNTQFTOPWBJUFNT⒎CDFEEBC

  13. ϞχλϦϯά

  14. etcd,fleet ͸ࠓͷͱ͜ΖΦϑ ·ͣ͸ etcd,fleet Ҏ֎ͷ஌ݟΛஷΊΔ

  15. ͳͥ etcd,fleet ࢖Θͳ͍ʁ etcd,fleet ࢖͏ = μΠφϛοΫΦʔέετϨʔγϣϯ => ϦιʔεϚωδϝϯτͲ͏͢Δʁ =>

    μΠφϛοΫϧʔςΟϯά͸? => ͦͷଞॾʑμΠφϛοΫʹ
  16. μΠφϛοΫΦʔέετϨʔγϣϯ • fleet ͸ϦιʔεϚωδϝϯτ͠ͳ͍ • ॾʑ etcd ͷ҆ఆӡ༻͕લఏ • ϝϦοτ΋େ͖͍

    => Ops ଆʹ΋ͨΒ͞ΕΔෳࡶੑ => Ͳ͏ϋϯυϦϯά͢Δ͔໛ࡧத
  17. ࣗಈΞοϓσʔτ΋ࠓ͸Φϑ ࣗಈΞοϓσʔτͰશ୆ϦϒʔτࠔΔ => locksmith ͕ඞཁ => etcd ͕ඞཁ => etcd

    ͷ҆ఆӡ༻͕લఏ৚݅
  18. खಈͰΞοϓσʔτ IUUQRJJUBDPNTQFTOPWBJUFNTFGBEDBFDDFF

  19. CoreOS ӡ༻ॴײ

  20. etcd,fleetΦϑͰ΋ϝϦοτ͸͋Δ • ϗετϚγϯߏஙλεΫ͕΄΅ͳ͍ • AMI ম͘ඞཁ͢Βͳ͘ͳͬͨ • ηΩϡϦςΟରԠָ͕ • CoreOS

    ىಈ଎͍ • ίϯςφͱϗετͷ෼཭͕ਐΜͩ
  21. ྫ: GHOST ରԠ • alpha ͱ beta ʹΞοϓσʔτ͘Δ • 1೔஗ΕͰ

    stable ʹΞοϓσʔτ͘Δ • ࠷৽όʔδϣϯͰ EC2 ౤Լͯ͠ϒϧʔάϦʔϯ • ·ͨ͸ ELB ͔Β֎ͯ͠ΞοϓσʔτͱϦϒʔτ
  22. ૺ۰ͨ͠໰୊ • CoreOS ͕ EC2 ͰΫϥογϡ #204 • CoreOS Ξοϓσʔτதʹ

    btrfs ىҼͰ Disk latency ΊͬͪΌ্͕Δ #259, #263 • Outband traffic ʹ໰୊͋Γɺίϯςφ಺ͷαʔϏε͕ ໊લղܾͰ͖ͳ͍ #297
  23. CoreOS channel બͼ • alpha ͸඼࣭తʹ alpha ͱ͍͏ҙຯ͡Όͳ͍ • Ξοϓσʔτ͕དྷΔස౓Λද͢

    • alpha ͸਺೔ຖɺbeta ͸1,2िؒ͝ͱ, stable ͸ 1ϲ݄ຖ • stable ͕ग़ͨ໰୊͕ alpha, beta ͷॱͰ௚Δ • alpha ͸க໋తͳΞοϓσʔτ΋དྷΔͷͰආ͚Δ • stable ͕ stable ʹͳΔ·Ͱ͸ beta ͕ྑ͍?
  24. Tips: CoreOS ͷόʔδϣχϯά ࠷ॳͷϏϧυ͔Βܦͬͨ೔਺Λࢦ͢ ɹ࠷ॳͷϏϧυ͸ 2013 ೥ 07 ݄ 01

  25. ΍Γ͍ͨ͜ͱ

  26. Ops ͕ϘτϧωοΫͰεϐʔυײམͱͨ͘͠ͳ͍

  27. ηϧϑαʔϏεԽ Dev ͱ Ops ͕Ұॹʹ Chef Ϩγϐॻ͘ Ops ͕ Chef

    Λద༻ Dev ͕ Dockerfile ॻ͘ɺΠϝʔδΛϏϧυ Dev ͕ίϯςφΛσϓϩΠ
  28. Dev, OpsΛྑ͍ҙຯͰ෼཭͢Δ Dev owns the containers Ops owns the platform

  29. Ops behind the API Dev owns the containers Ops owns

    the platform
  30. Ͳ͏͢Δ͔ݕ౼த • μΠφϛοΫΦʔέετϨʔγϣϯඞཁ • k8s ࢖͏? • Heroku tokyo region

    ଴ͪ? • flynn, deis, latice Ͱ OSS PaaSʁ • ECS? GKE ʹ೚ͤΔʁ • Hashicorp ੡…ʁ • Swarmʁ
  31. ·ͱΊ

  32. ·ͱΊ • etcd,fleet ΦϑͰ΋ϝϦοτ͋Δ • όά΋͋Δ • Ops behind the

    API ʹνϟϨϯδ • ҙݟަ׵ɾϊ΢ϋ΢ڞ༗͠·͠ΐ͏