Slide 1

Slide 1 text

&$4'BSHBUFΛຊ൪౤ೖ ͯ͠ಘͨ൵تަަ Tashiro Kazuhiro 2019.03.20 JAWS-UG ίϯςφࢧ෦ #14 Cyberagent inc.

Slide 2

Slide 2 text

ࣗݾ঺հ Cyberagent inc. ˌ$BSSFS $ZCFS"HFOU৽ଔೖࣾ dήʔϜࣄۀ෦ ɹɹdٕज़ຊ෦։ൃج൫άϧʔϓ ɹɹdOPXٕज़ຊ෦0QFO4BB44UVEJP ˌ)PCCZ ݈߁ϥϯυɺમ౬ɺԹઘɺՈ෩࿊ ɹ

Slide 3

Slide 3 text

ࠓ೔࿩͢͜ͱ Cyberagent inc. 'BSHBUFɺຊ൪࢖ͬͯΈͨ ͋ɺͳ͔ͳ͔ࣂ͍ͳΒͤͳ͍

Slide 4

Slide 4 text

ࠓ೔࿩͢͜ͱ Cyberagent inc. ͍Ζ͍Ζ໰୊ʹग़ձ͏͚Ͳ 'BSHBUFͱ͏·͘΍͍͖͍͔ͬͯͨΒ͕Μ͹ͬͯΔΑ

Slide 5

Slide 5 text

ίϯςΫετڞ༗ɺ͠·͠ΐ͏͔ Cyberagent inc. ࣾ಺޲͚՝ܾۚࡁج൫ͷ։ൃ

Slide 6

Slide 6 text

ίϯςΫετڞ༗ɺ͠·͠ΐ͏͔ Cyberagent inc. ɾ"84 ɾ&$4'BSHBUF "VSPSB 4/4 424 4 ɾϚΠΫϩαʔϏεΞʔΩςΫνϟ ɾαʔόʔαΠυ,PUMJO ɾ4QSJOH#PPU ɾ%BUBEPHʢϝτϦΫε؂ࢹ "1. ϩάू໿ʣ

Slide 7

Slide 7 text

&$UZQFͱൺֱͨ͠&$4'BSHBUF Cyberagent inc.

Slide 8

Slide 8 text

&$UZQFͱൺֱͨ͠'BSHBUF Cyberagent inc. ɾϝϦοτ ɹͳΜͱ͍ͬͯ΋αʔόʔϨεɻ ɹ&$ͷ؅ཧ͠ͳ͍͍ͯ͘ʂʂ ɹ ɾσϝϦοτ ɹ&$ʹTTIͯ͠ίϯςφͷ༷ࢠΛݟΕͳ͍ɻ
 ɹىಈ͕஗͍ɻ ɹ'BSHBUFʹରԠ͍ͯ͠ͳ͍ػೳɾπʔϧ͕ଟ͍ɻ

Slide 9

Slide 9 text

ۤ͠ΜͩϙΠϯτ Cyberagent inc. ىಈ͕஗͍ ɹ&-#ϔϧενΣοΫʹ&$4λεΫ͕ࡴΒΕΔ TTIͰதʹೖΕͳ͍ ɹෆ۩߹͕ى͖ͨ࣌ʹ௚઀ௐࠪ͢Δ͜ͱ͕Ͱ͖ͳ͍ ɹϝϞϦϦʔΫͷௐ͕ࠪ೉͔ͬͨ͠

Slide 10

Slide 10 text

&-#ϔϧενΣοΫLJMMT&$4UBTL Cyberagent inc.

Slide 11

Slide 11 text

&-#ϔϧενΣοΫLJMMT&$4UBTL Cyberagent inc. ɾݱ৅ ͋Δ೔ಥવ&$4λεΫ্ཱ͕͕ͪΒͳ͘ͳͬͨɻ ͋Εɺੜ͖ࢮʹΛ܁Γฦͯ͠Δʁ VOIFBMUIZͳ&$4λεΫ͸εοͱఀࢭ͞Εɺॗʑͱ࠶ىಈΛ͠ɺ࠶ͼ ఀࢭ͞ΕΔ

Slide 12

Slide 12 text

&-#ϔϧενΣοΫLJMMT&$4UBTL Cyberagent inc. ɾ౰࣌ͷࢲͷ൓Ԡ ΞϓϦʹ໰୊͸ແ͍͸ͣɻɻ৴ڼ৺͕଍Γͳ͍͔Β͔ɻɻ

Slide 13

Slide 13 text

&-#ϔϧενΣοΫLJMMT&$4UBTL Cyberagent inc. ౰࣌ɺͭͷλεΫʹͭͷίϯςφͱ͍͏ߏ੒͔Βɺ αΠυΧʔΛ࢖͏ߏ੒ʹม͑ͨλΠϛϯάͩͬͨɻ ʢ͜Ε͕ىಈ࣌ؒΛେ෯ʹ஗ΒͤͨɻϦιʔεΛ৯͍߹͏ͷ͔ɻʣ container B container A Task A container A Task A ىಈ͕࣌ؒ஗͗ͯ͢&-#ʹVOIFBMUIZͱ൑அ͞Ε͍ͯΔʂ

Slide 14

Slide 14 text

&-#ϔϧενΣοΫLJMMT&$4UBTL Cyberagent inc. ɾॿ͚सɿ✨ϔϧενΣοΫͷ༛༧ظؒ✨ &$4ͷαʔϏεઃఆͰมߋՄೳɻ

Slide 15

Slide 15 text

&-#ϔϧενΣοΫLJMMT&$4UBTL Cyberagent inc. ҟৗͳঢ়ଶͷ&$4λεΫ͸εοͱఀࢭ͞Εɺॗʑͱ࠶ىಈΛ͠ɺ࠶ͼ ఀࢭ͞ΕΔ ɾࠔͬͨڍಈ΍ҟৗ͕ى͖Δͷ͸ී௨ɻͦΕΛݕ஌Ͱ͖ͳ͍ͷ͕໰୊ ɾʮϔϧενΣοΫʹΑΔఀࢭʯΛݕ஌͢Δํ๏͸͍Ζ͍Ζ͋Δɻ $MPVE8BUDI&WFOU %BUBEPH.POJUPST

Slide 16

Slide 16 text

&-#ϔϧενΣοΫLJMMT&$4UBTL Cyberagent inc. %BUBEPHͩͱϔϧενΣοΫࣦഊΠϕϯτΛऔಘɾΞϥʔτઃఆΛ͢ Δͷ͕ͱͯ΋ָɻ

Slide 17

Slide 17 text

'BSHBUF͸TTIϩάΠϯͰ͖ͳ͍ Cyberagent inc.

Slide 18

Slide 18 text

'BSHBUF͸TTIϩάΠϯͰ͖ͳ͍ Cyberagent inc. ɾલఏ ͦ΋ͦ΋ίϯςφʹTTI͢΂͖͡Όͳ͍ɻ TTIϩάΠϯͯ͠ΦϖϛεɺΛ๷͍͗ͨɻ ίϯςφ͕Ͳ͜Ͱಈ͍͍ͯΔ͔ɺͱ͔೺Ѳ͓͖ͯͨ͘͠ͳ͍ɻ ϩάɾϝτϦΫεऩू͸पลαʔϏεΛ࢖͏΂͖ɻ

Slide 19

Slide 19 text

'BSHBUF͸TTIϩάΠϯͰ͖ͳ͍ Cyberagent inc. ͱ͸͍͑ɺෆ۩߹͕ى͖ͨͱ͖ʹ΍Γ ׳Εͨํ๏ΛऔΓͨ͘ͳΔͷ͕ਓͷੑɻɻ

Slide 20

Slide 20 text

'BSHBUF͸TTIϩάΠϯͰ͖ͳ͍ Cyberagent inc. ɾϝϞϦϦʔΫͷݪҼௐࠪͰۤ͠Ή ϝϞϦϦʔΫͯ͠ΔώʔϓμϯϓΛͱΓ͍ͨɻ KTUBU΋KDNE΋KNBQ΋ϩʔΧϧͷ+7.ʹର͔ͯ͠͠࢖͑ͳ͍ɻ ͳΒ7JTVBM7.ͷ3FNPUF+.9઀ଓΛ࢖͓͏͔ͳ

Slide 21

Slide 21 text

'BSHBUF͸TTIϩάΠϯͰ͖ͳ͍ Cyberagent inc. ɾ3FNPUF+.9ɺ.BMGPSNFE63-&YDFQUJPOͰ٧Ήɻ ɾಉࢤɺଟ਺ɻ GBSHBUFKNYFSSPS ɹhttps://forums.aws.amazon.com/thread.jspa?threadID=268676 ɾͳΒMPDBM؀ڥͰ࠶ݱͤͯ͞த਎ݟͨΔΘɻ ɾ͋ΕɺMPDBM͡Ό࠶ݱ͠ͳ͍ͳʔɻ ɾͳΒPO&$Ͱ࠶ݱͤͯ͞த਎ݟͨΔΘɻ ɾ͋ΕɺPO&$Ͱ͸࠶ݱ͠ͳ͍ʁ ɾ͋Εɺͳʹ΍ͬͯͨΜ͚ͩͬɺԶɻ

Slide 22

Slide 22 text

'BSHBUF͸TTIϩάΠϯͰ͖ͳ͍ Cyberagent inc. ɾٹͬͯ͘Εͨͷ͸✨4QSJOH#PPU"DUVBUPS✨ "DUVBUPS͸γεςϜͷ༷ʑͳঢ়ଶΛ֬ೝ͢ΔͨΊͷΤϯυϙΠϯτ Λఏڙͯ͘͠ΕΔɻ ͨͱ͑͹FOW IUUQUSBDF CFBOT MPHHFST NFUSJDT IFBQEVNQ DVSMIUUQYYYYYYYYYBDUVBUPSIFBQEVNQPYYYIQSPG

Slide 23

Slide 23 text

'BSHBUF͸TTIϩάΠϯͰ͖ͳ͍ Cyberagent inc. ɾIFBQEVNQ͑͞ͱΕΕ͹ͬͪ͜ͷ΋ͷɻ ࠓճ͸ʢͨ·ͨ·ʣ؆୯ʹ൜ਓ͕ಛఆͰ͖ͨɻ %BUBEPHͱ4QSJOH8FCGMVY͕ڞ๳͓ͯ͠࿙Β͍ͯͨ͠͠ɻ ˞%BUBEPHͱ8FCGMVYΛݸผͰ࢖͍ͬͯͨ৔߹͸໰୊͸ى͖ͯ·ͤ Μɻ࢖͍ํɺίʔυͷॻ͖ํ͕ݪҼͰ͋ΔՄೳੑ͸େ͍ʹ͋Γ·͢ɻ

Slide 24

Slide 24 text

'BSHBUF͸TTIϩάΠϯͰ͖ͳ͍ Cyberagent inc. †अಓ† TTIEΛίϯςφʹΠϯετʔϧ͢Δ ͋͘·ͰௐࠪΛ͢Δͱ͖͚ͩɺɺɺ ࠷ޙͷ࠷ޙɺԿʹ΋པΕͳ͘ͳͬͨͱ͖ʹ͕͢Δɻ ɾVCVOUVʹTTIEΠϯετʔϧ͢Δྫ https://docs.docker.com/engine/examples/running_ssh_service/

Slide 25

Slide 25 text

·ͱΊ Cyberagent inc.

Slide 26

Slide 26 text

·ͱΊ Cyberagent inc. ͋ͬͨΓ·͑ͷ͜ͱ͚ͩͲɺɺ ɾϚΠΫϩαʔϏεɺαʔόʔϨεɺίϯςφӡ༻ গ਺ʢछྨʣͷ෺ཧαʔόʔɺ7.ӡ༻࣌ʹ௨༻ͯͨ͠΍Γํɾπʔϧ͕ ಉ͡Α͏ʹՁ஋ΛൃشͰ͖Δͱ͸ݶΒͳ͍ɻ ɾ͍ΖΜͳπʔϧʹॿ͚ͯ΋Β͍ͳ͕ΒγεςϜΛ࡞Δ ΋͸΍ϩάऩूɾϝτϦΫε؂ࢹπʔϧͳͲͳͲ͸ඞਢɻ
 ݕূ࣌ɺ։ൃ࣌͸Αͯ͘΋ຊ൪ӡ༻ɾҟৗൃੜ࣌Λઓ͍͵͚Δঢ়ଶʹͳͬ ͍ͯΔ͔ʁ

Slide 27

Slide 27 text

·ͱΊ Cyberagent inc. ͍Ζ͍Ζݴ͚ͬͨͲɺ'BSHBUF޷͖Ͱ͢ɻ पลπʔϧͷαϙʔτ֦ॆɾ৽ػೳͷ௥ՃΛ ৺͔Βظ଴͓ͯ͠Γ·͢

Slide 28

Slide 28 text

৽ػೳͱ͍͑͹ɻɻ Cyberagent inc. ͜Ε͸͢͹Β͍͠ʂʂ

Slide 29

Slide 29 text

4JNQMZͷ&$4λεΫߏ੒ྫ Cyberagent inc. ίϯςφͷىಈॱେࣄʂʂ Credit Card Service Master Datadog SNS Publisher ܾࡁ࣮ߦ τϥϯβΫγϣϯ؅ཧ 4/4΁ͷ1VCMJTI ར༻ऀଆαʔϏε ͷ৘ใऔಘ $SFEJU$BSEίϯςφ͸4FSWJDF.BTUFSίϯςφͱ4/4 1VCMJTIFSίϯςφʹґଘ͍ͯ͠Δɻઌʹىಈ͍ͯͯ͠ཉ͍͠ɻ 4JNQMZΫϨδοτΧʔυܾࡁ5BTL

Slide 30

Slide 30 text

5XFFUʹ͸ଓ͖͕ɻɻɻ Cyberagent inc.

Slide 31

Slide 31 text

Ųōŕ Cyberagent inc. ݱ࣌఺ͰରԠ͍ͯ͠ΔىಈϞʔυ͸ "EC2"Ͱ͢ɻ

Slide 32

Slide 32 text

'BSHBUF Cyberagent inc. Fargate͸...?

Slide 33

Slide 33 text

5IBOLZPV Cyberagent inc. ͓͠·͍ɻ