Slide 1

Slide 1 text

No content

Slide 2

Slide 2 text

Gehirn Infrastructure Services Kohei YOSHIDA / yosida95

Slide 3

Slide 3 text

͓લͩΕΑ • ٢ాɹ߉ฏ / yosida95 (twitter, GitHub, Hatena) • Python, Go, Erlang <- New • ήώϧϯٕज़։ൃ෦ٕज़ہॴଐ • 2013.8 ඇৗۈ৬һ / 2014.4 ਖ਼৬һ

Slide 4

Slide 4 text

ຊ೔ͷςʔϚ • Gehirn Infrastructure Services ͱ͸ • Gehirn Infrastructure Services ͷ։ൃ • Gehirn Infrastructure Services ͷӡ༻

Slide 5

Slide 5 text

Gehirn Infrastructure Services ͱ͸

Slide 6

Slide 6 text

Gehirn Infrastructure Services • ࠓ݄1೔ΑΓ Public Preview Λ։࢝ • Ϩϯλϧαʔόʔ΍ DNS ϗεςΟϯάɺϝʔϧૹड ৴ API ͳͲ͔ΒͳΔҰ࿈ͷηΩϡΞͳΠϯϑϥαʔ Ϗε • https://www.gehirn.jp/gis/

Slide 7

Slide 7 text

Gehirn Infrastructure Services • Gehirn ID Center ʹΑΔγϯάϧαΠϯΦϯ • TOTP (Google Authenticator) / YubiKey Λ࢖ͬͨ ଞཁૉೝূ • ϓϩδΣΫτϕʔεͷϦιʔεͷڞ༗ɾڞಉ࡞ۀ

Slide 8

Slide 8 text

Gehirn RS2 PLUS • ηΩϡΞͰߴՄ༻ͳϨϯλϧαʔόʔαʔϏε • https://www.gehirn.jp/gis/rs2.html

Slide 9

Slide 9 text

Gehirn RS2 PLUS • αΠτ͝ͱͷ httpd ੾Γସ͑ (Apache, Nginx ·ͨ ͸ WSGI / FastCGI / HTTP Λαϙʔτͨ͠೚ҙͷ σʔϞϯ) • σʔϞϯϓϩηεͷࢮ׆؂ࢹͱࣗಈىಈ • Ϣʔβʔϓϩηεͷ໊લۭؒΛ෼཭ • ܭࢉϦιʔεΛݻఆׂΓ౰ͯ

Slide 10

Slide 10 text

Gehirn DNS • ϓϩάϥϚϒϧͳ DNS ϗεςΟϯάαʔϏε • https://www.gehirn.jp/gis/dns.html

Slide 11

Slide 11 text

Gehirn DNS • HTTP JSON API ʹΑΔϨίʔυฤू • Ϩίʔυ৘ใͷόʔδϣχϯά • ଞͷϨίʔυʹ௥ै͢ΔΤΠϦΞεػೳ • ϨίʔυΛࢦఆ࣌ࠁʹ੾Γସ͑ΔϚΠάϨʔγϣϯ

Slide 12

Slide 12 text

Gehirn MTA • smtpd ͔Βͩ͜Θͬͨϝʔϧૹड৴ API • https://www.gehirn.jp/gis/mta.html

Slide 13

Slide 13 text

Gehirn MTA • smtpd (MTA) Λ Go ݴޠͰϑϧεΫϥον • 20Λ௒͑Δ࢓༷Λඪ४αϙʔτ (RFC ϕʔε) • ϝʔϧ഑ૹ݁ՌͷτϥοΩϯάͱ௨஌ • ϝʔϧड৴ΛτϦΨʔʹͨ͠ HTTP Hook ΍ SMS ௨ ஌ɺεϚʔτϑΥϯϓογϡ ( Gehirn EDJ ࿈ܞ )

Slide 14

Slide 14 text

Gehirn EDJ • γϯϓϧͳΠϕϯτ௨஌αʔϏε • https://www.gehirn.jp/gis/edj.html

Slide 15

Slide 15 text

Gehirn EDJ • ήώϧϯ͔Βͷো֐৘ใ΍ϝϯςφϯε৘ใɺ Gehirn MTA ͷड৴ϝʔϧ΍ૹ৴ϝʔϧͷ഑ૹ݁Ռ Λ഑৴ • HTTP Hook / Twilio (SMS) / Pushover / Slack / IRC / Gehirn MTA Ͱड৴

Slide 16

Slide 16 text

Gehirn Infrastructure Services ͷߏ଄

Slide 17

Slide 17 text

Gehirn Infrastructure Services ͷߏ଄ DNS RS2 PLUS MTA EDJ HTTPS API Control Panel cURL Rabbit MQ

Slide 18

Slide 18 text

Gehirn Infrastructure Services ͷߏ଄ DNS RS2 PLUS MTA EDJ HTTPS API Control Panel cURL Rabbit MQ

Slide 19

Slide 19 text

Gehirn Infrastructure Services ͷߏ଄ DNS RS2 PLUS MTA EDJ HTTPS API Control Panel cURL Rabbit MQ ೝূ ೝՄ ϧʔςΟϯά ґଘղܾ

Slide 20

Slide 20 text

Gehirn Infrastructure Services ͷߏ଄ DNS RS2 PLUS MTA EDJ HTTPS API Control Panel cURL Rabbit MQ ೝূ ೝՄ ϧʔςΟϯά ґଘղܾ

Slide 21

Slide 21 text

Gehirn Infrastructure Services ͷߏ଄ DNS RS2 PLUS MTA EDJ HTTPS API Control Panel cURL Rabbit MQ ೝূ ೝՄ ϧʔςΟϯά ґଘղܾ

Slide 22

Slide 22 text

Gehirn Infrastructure Services ͷ։ൃ

Slide 23

Slide 23 text

։ൃମ੍ • ੴ৿େو / ୅දऔక໾ࣾ௕ • ίϯτϩʔϧύωϧ࣮૷ • Gehirn RS2 PLUS ΞʔΩ ςΫνϟઃܭ

Slide 24

Slide 24 text

։ൃମ੍ • ߙ୩ਸࢤ / ઐ຿औక໾ • ίϯτϩʔϧύωϧσβΠ ϯ

Slide 25

Slide 25 text

։ൃମ੍ • দԼ૱࢙ / ٕज़ہ • ίϯτϩʔϧύωϧ࣮૷

Slide 26

Slide 26 text

։ൃମ੍ • ٢ా߉ฏ / ٕज़ہ • όοΫΤϯυΞϓϦέʔ γϣϯ։ൃ

Slide 27

Slide 27 text

։ൃͷྲྀΕ • GitHub Λத৺ʹͨ͠։ൃ • Issue • Pull Request • Milestone • CircleCI Λ࢖ͬͨܧଓςετͱࣗಈσϓϩΠ

Slide 28

Slide 28 text

։ൃͷྲྀΕ • Slack Λ࢖ͬͨίϛϡχέʔγϣϯ • #infrastruct - ։ൃνʔϜͷίϛϡχέʔγϣϯ • #gis-trial - ࣾ಺ར༻ऀʹΑΔ࣭໰ɾ໰୊ใࠂ • #nagios - ϞχλϦϯάͱো֐௨஌

Slide 29

Slide 29 text

Gehirn Infrastructure Services ͷӡ༻

Slide 30

Slide 30 text

ΦϖϨʔγϣϯ • ؅ཧऀ༻ API ͷఏڙ • ίϯιʔϧΞΫηεΛ൐͏ΦϖϨʔγϣϯΛഉআ • ਓؒʹΑΔσʔλϕʔε΁ͷΞΫηε΍ฤू΋ഉআ

Slide 31

Slide 31 text

؂ࢹ • Nagios / munin ʹΑΓো֐΍ͦͷ௃ީΛݕ஌ • Sentry (https://getsentry.com/) ʹΑΔΞϓϦέʔ γϣϯΤϥʔͷݕ஌ͱ؅ཧ (ݕূத)

Slide 32

Slide 32 text

·ͱΊ

Slide 33

Slide 33 text

·ͱΊ • ηΩϡΞͰߴՄ༻ͳΠϯϑϥαʔϏε • ϓϩδΣΫτϕʔεͰͷϦιʔεڞ༗ͱڞಉ࡞ۀ • ࣾ௕΍ઐ຿Λ࢝Ίͱ͢Δ4ਓͰ։ൃ • GitHub Λத৺ͱͨ͠։ൃ • CircleCI Λ࢖ͬͨܧଓςετͱࣗಈσϓϩΠ

Slide 34

Slide 34 text

·ͱΊ • Nagios ΍ Munin Λ࢖ͬͨো֐ݕ஌ • Sentry Λ࢖ͬͨΞϓϦέʔγϣϯΤϥʔͷ؂ࢹ • ؅ཧऀ༻ API ʹΑΔΦϖϨʔγϣϯͰॏେͳਓతϛ εͷݪҼΛഉআ

Slide 35

Slide 35 text

ࠓ೔࿩͞ͳ͔ͬͨ͜ͱ • SMTP ؔ࿈࢓༷ͷ͍Ζ͍Ζ • Go ݴޠʹΑΔαʔϏε։ൃ • OpenID Connect / OAuth 2.0 • XML ʹΑΔ API ͷఆٛͱ RPC ϧʔςΟϯά • Pingdom ͱ Pagerduty ΛݸਓతʹධՁத

Slide 36

Slide 36 text

See Also… • Gehirn News γϦʔζ GWS • http://news.gehirn.jp/dev/615/ • http://news.gehirn.jp/dev/624/ • http://news.gehirn.jp/dev/632/

Slide 37

Slide 37 text

See Also… • http://yosida95.hatenablog.com/entry/ 2015/04/01/173000 • https://speakerdeck.com/yosida95/2015- dot-03-dot-11-gunosy-dot-go