Tech-Circle #4: Consulハンズオン勉強会
ConsulʹίϯτϦϏϡʔτͨ͠@foostanTech-Circle #4: ConsulϋϯζΦϯษڧձ
View Slide
whoami@foostanhttps://twitter.com/foostanhttps://github.com/foostanWebܥاۀͷΠϯϑϥΤϯδχΞ (৽ଔ2)
bloghttp://fstn.hateblo.jp/
bloghttp://labs.gree.jp/blog/2014/12/11959/
Qiitahttp://qiita.com/foostan/items/a679ffcf3e20ff2f6032
ॕ Consul 0.5 ϦϦʔεhttps://hashicorp.com/blog/consul-0-5.html
• Automated Clustering via Atlas• Atlas Integration• Enhanced ACLs• Distributed Locking and N+1 Deploys by lock• Maintenance Modes• HTTP Health Checks• Ephemeral Keys• Session TTLs• Key Rotation• Support for multiple DNS recursorsWhat’s new?
Multiple DNS recursors{"recursor": "8.8.8.8"}{"recursors": ["8.8.8.8", "8.8.4.4"]}
https://github.com/hashicorp/consul/pull/448
ίϯτϦϏϡʔτͨ͠
Pull RequestΛग़͢
ฦ৴͕དྷΔ
خ͍͠‷( ŋŷŋ)و ̑̑ ŞƄŕ !
• ϨϏϡʔͯ͠Β͑ͨتͼ• ߩݙͰ͖ͨتͼ• ͦͷաఔͰಘΒΕֶͨͼ• Ϟνϕʔγϣϯͷ্• OSSʹର͢ΔҙࣝͷมԽPRΛग़ͯ͠ಘΒΕͨ͜ͱ
APIͯ͢GETͰड͚Δ -> όά͔͋ͬͨΒ҆શͷͨΊʹߋ৽ܥGETͰड͚ͳ͍मਖ਼PRΛૹͬͨhttps://github.com/hashicorp/consul/pull/640
ޙํޓͳ͘ͳΔ͔ΒϚʔδͰ͖ͳ͍ɺ͚ͩͱ /v2 ࡞Γ࢝Ί͔ͨΒͦͬͪͰऔΓࠐΉΑhttps://github.com/hashicorp/consul/pull/640
V2!
OSSʹର͢ΔҙࣝͷมԽ
ͨͩ͏͚ͩ
͔Β
ߩݙ͠Α͏ͱ͍͏ҙࣝ• ίϛϡχςΟͰൃݴ͢Δ• PRΛ͛Δ• ΑΓྑ͍͍ํΛߟ͑Δ• ར༻ํ๏Λ·ͱΊΔ/ڞ༗͢Δ• ײँ͢Δ
ؾʹͳͬͨ͜ͱΛίϛϡχςΟͰฉ͍ͯΈΔ
ؾʹͳͬͨ͜ͱΛίϛϡχςΟͰฉ͍ͯΈΔதͷਓ͕ஸೡʹڭ͑ͯ͘ΕΔ
Consulʹؔ࿈͢ΔπʔϧΛ࡞ͬͨ͜ͱΛΞϐʔϧͯ͠ΈΔ
Consulʹؔ࿈͢ΔπʔϧΛ࡞ͬͨ͜ͱΛΞϐʔϧͯ͠ΈΔதͷਓ͔Βҙݟ͕Β͑Δ
Consulʹؔ࿈͢ΔπʔϧΛ࡞ͬͨ͜ͱΛΞϐʔϧͯ͠ΈΔதͷਓ͔Β˒͕Β͑Δ
ྭΈʹͳΔ(ᐛ)
ίϛϡχςΟʹੵۃతʹࢀՃͯ͠ConsulΛΑΓྑ͍ͷʹʂ