Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Kubernetesを使ったブロックチェーンノード運用

 Kubernetesを使ったブロックチェーンノード運用

GuiltyMorishita

October 04, 2018
Tweet

More Decks by GuiltyMorishita

Other Decks in Technology

Transcript

  1. ,VCFSOFUFTΛ࢖ͬͨ
    ϒϩοΫνΣʔϯϊʔυӡ༻
    G I N C O
    E N G I N E E R M E E T U P
    M A S A T A K A M O R I S H I T A
    2 0 1 8 / 1 0 / 4 / T H U

    View full-size slide

  2. A B O U T M Y S E L F
    ©2018 Ginco, Inc.
    ࣗݾ঺հ
    Masataka Morishita
    @guiltymorishita
    ๛ڮٕज़ՊֶେֶɾେֶӃʹͯࣗવݴޠॲཧ "* %FFQ-FBSOJOHʹ͍ͭͯ
    ݚڀଔۀޙ͸גࣜձࣾΞΧπΩʹೖࣾ͠ Πϯϑϥ։ൃʹैࣄ
    ݱࡏ͸(JODPͷ$50Λ຿Ί ϒϩοΫνΣʔϯʹϑϧίϛοτ͍ͯ͠Δ

    View full-size slide

  3. ։ൃʹ͓͚Δͩ͜ΘΓ

    View full-size slide

  4. ΫϥΠΞϯτܕ΢ΥϨοτͷجຊΛ஧࣮ʹ
    ߴਫ४ͷηΩϡϦςΟͱ҆શੑ
    ֤σόΠεͷ
    தʹͷΈอ؅
    ̍ͭͷόοΫΞοϓΩʔͰ

    ෳ਺ͷ௨՟Λ؅ཧ
    ௨৴ͷ҉߸Խͱ
    ಠࣗͷೝূํࣜ
    ൿີ伴ͷ؅ཧํࣜ ΢ΥϨοτͷߏ଄ ௨৴ํࣜ

    View full-size slide

  5. ಠࣗͷݎ࿚ͳΠϯϑϥ
    Node
    શͯͷϒϩοΫνΣʔϯ
    ʹϊʔυΛࣗΒཱͯΔ
    Block Explorer
    ϒϩοΫΤΫεϓϩʔϥΛ
    ࣗ෼ୡͰ࡞Δ
    Scalability
    ߴ͍εέʔϥϏϦςΟΛ
    ֬อ

    View full-size slide

  6. ༷ʑͳ#MPDLDIBJO
    API
    ϒϩοΫΤΫεϓϩʔϥʹશͯґଘ
    ಺෦࢓༷͸ϒϥοΫϘοΫε
    ଞࣾͷϒϩοΫΤΫεϓϩʔϥΛ࢖͏৔߹
    Nodes
    Blockchain Explorer

    View full-size slide

  7. ։ൃલʹͲͷΑ͏ʹݕ౼͔ͨ͠
    શͯಠ࣮ࣗ૷ͨ͠৔߹
    Node
    ϊʔυͷঢ়ଶΛίϯτ
    ϩʔϧͰ͖Δ ੬ऑੑͷ
    ۓٸΞοϓσʔτͳͲ

    Block Explorer
    ୭ʹ΋ґଘ͠ͳ͍ɻ৴
    ͡Δͷ͸ϒϩοΫνΣʔ
    ϯͱݾͷΈ
    Scalability
    ΠϯϑϥΛಠࣗʹઃܭͯ͠
    εέʔϥϏϦςΟΛ֬อ
    ࡞ΔաఔͰରԠ͢Δϒ
    ϩοΫνΣʔϯͷ࢓༷
    Λৄࡉʹ೺ѲͰ͖Δ

    View full-size slide

  8. ϒϩοΫνΣʔϯ
    ϊʔυͱ͸

    View full-size slide

  9. ©2018 Ginco, Inc.
    ϒϩοΫνΣʔϯϊʔυͱ͸
    • ϒϩοΫνΣʔϯͷίΞ
    • ϒϩοΫνΣʔϯωοτϫʔΫΛߏ੒͢Δ

    ϓϩάϥϜ͕ಈ͍͍ͯΔίϯϐϡʔλͷ͜ͱ
    • CJUDPJOE FMFDUSVN HFUI FUD

    View full-size slide

  10. ©2018 Ginco, Inc.
    ϒϩοΫνΣʔϯϊʔυͷ໾ׂ
    • ωοτϫʔΫϧʔςΟϯά
    • ϒϩοΫνΣʔϯσʔλϕʔε
    • ϒϩοΫੜ੒
    • ΢ΥϨοτ

    View full-size slide

  11. ©2018 Ginco, Inc.
    ϑϧϊʔυ
    • ωοτϫʔΫϧʔςΟϯά
    • ϒϩοΫνΣʔϯσʔλϕʔε
    • ϒϩοΫੜ੒
    • ΢ΥϨοτ

    View full-size slide

  12. ©2018 Ginco, Inc.
    ϥΠτϊʔυ
    • ωοτϫʔΫϧʔςΟϯά
    • ܰྔͳϒϩοΫνΣʔϯσʔλϕʔε
    • ΢ΥϨοτ

    View full-size slide

  13. ϊʔυӡ༻ͷͨΊʹ
    ॏཁͳ͜ͱ

    View full-size slide

  14. ©2018 Ginco, Inc.
    ϊʔυӡ༻ͷͨΊʹॏཁͳ͜ͱ
    • σϓϩΠɾϝϯςφϯε
    • εέʔϦϯά
    • ϞχλϦϯά
    • Մ༻ੑͷ୲อ

    View full-size slide

  15. ©2018 Ginco, Inc.
    ,VCFSOFUFTͱ͸
    • ίϯςφΦʔέετϨʔγϣϯγεςϜ
    • ίϯςφͷσϓϩΠɺεέʔϦϯάɺૢ࡞Λ͢Δ
    ͨΊͷϓϥοτϑΥʔϜ

    View full-size slide

  16. ©2018 Ginco, Inc.
    ,VCFSOFUFTͱ͸
    • ίϯςφͷσϓϩΠɺεέʔϧɺ؅ཧΛࣗಈԽ
    • ۭ͖ϦιʔεΛܭࢉͯ͠ίϯςφΛ഑ஔ
    • ίϯςφͷόʔδϣϯ؅ཧ
    • ෆ۩߹͕͋ͬͯ΋ࣗಈͰίϯςφΛ࠶ىಈ
    • ίϯςφ಺ͷϦιʔεͷϞχλϦϯά΋༰қ

    View full-size slide

  17. ৄ͍͠࿩͸লུ

    View full-size slide

  18. ͲͷΑ͏ʹ࢖͍ͬͯΔ͔

    View full-size slide

  19. (JODPͷΞʔΩςΫνϟ

    View full-size slide

  20. ©2018 Ginco, Inc.
    ΞʔΩςΫνϟ
    $POUBJOFS3FHJTUPSZ
    ,VCFSOFUFT&OHJOF
    $MVTUFS

    View full-size slide

  21. ©2018 Ginco, Inc.
    ̑ͭͷ؀ڥ Ϋϥελ

    -JWFOFU
    4UBHJOH
    -JWFOFU
    1SPEVDUJPO
    5FTUOFU
    2"
    5FTUOFU
    %FWFMPQ
    -JWFOFU 5FTUOFU
    /PEF5FTU

    View full-size slide

  22. ©2018 Ginco, Inc.
    /PEF5FTU؀ڥ
    • αϯυϘοΫεతͳ؀ڥ
    • ৽͍͠ϒϩοΫνΣʔϯ͸·ͣ͸͜͜ʹཱͯΔ
    • ύϥϝʔλͷௐ੔΍"1*ͷڍಈͷ֬ೝͳͲΛ͢Δ
    • "1*͸ύϒϦοΫͰΠϯλʔϯੜͰ΋͙͢ࢼͤΔ

    View full-size slide

  23. ©2018 Ginco, Inc.
    %FWFMPQ؀ڥ
    • (JODPͷ։ൃ͸ओʹ͜͜Ͱߦ͏
    • ϊʔυ͸5FTUOFUʹͭͳ͕͍ͬͯΔ
    • /PEF5FTU؀ڥͰͷઃఆ͕ਖ਼͍͔͠Λ͔֬ΊΔ
    • %FWFMPQҎ্ͷ؀ڥ͸ϊʔυͷ"1*͸ެ։͠ͳ͍

    View full-size slide

  24. ©2018 Ginco, Inc.
    2"؀ڥ
    • ͋Δఔ౓ͷ։ൃ͕Ͱ͖ͨΒ͜͜Ͱ2"Λ͢Δ
    • ϊʔυ͸5FTUOFUʹͭͳ͕͍ͬͯΔ
    • ࢓༷௨Γʹಈ͍͍ͯΔ͔ݕূ୺຤Ͱࢼ͢

    View full-size slide

  25. ©2018 Ginco, Inc.
    4UBHJOH؀ڥ
    • 2"͕௨ͬͨΒ͜ͷ؀ڥʹ্͛Δ
    • ϊʔυ͸-JWFOFUʹͭͳ͕͍ͬͯΔ
    • 5FTUOFUͱ-JWFOFU͸࢓༷͕ҧ͏͜ͱ͕ଟʑ͋Δ
    ͷͰɺ͜ͷ؀ڥͰݕূΛ΋͏Ұ౓ߦ͏
    • ݕূ͢Δͨͼ͓͕͔͔ۚΔ

    View full-size slide

  26. ©2018 Ginco, Inc.
    1SPEVDUJPO؀ڥ
    • 4UBHJOHͰͷݕূ͕ऴΘͬͨΒ͜ͷ؀ڥ΁
    • ϊʔυ͸-JWFOFUʹͭͳ͕͍ͬͯΔ
    • ਃ੥͕௨ͬͨΒࣾ಺Ͱ΋͏Ұ౓ݕূͯ͠ϦϦʔε

    View full-size slide

  27. ©2018 Ginco, Inc.
    ̑ͭͷ؀ڥ Ϋϥελ

    -JWFOFU
    4UBHJOH
    -JWFOFU
    1SPEVDUJPO
    5FTUOFU
    2"
    5FTUOFU
    %FWFMPQ
    -JWFOFU 5FTUOFU
    /PEF5FTU

    View full-size slide

  28. ෳ਺؀ڥʹඞཁͳ͜ͱ

    View full-size slide

  29. ©2018 Ginco, Inc.
    *OGSBTUSVDUVSFBT$PEF
    • ϊʔυͷઃఆ͸શͯ%PDLFSpMFͰ؅ཧ
    • σϓϩΠ࣌ͷύϥϝʔλ͸,VCFSOFUFTͰ؅ཧ
    • ϒϩοΫνΣʔϯϊʔυͱ૬ੑ͕ྑ͍

    View full-size slide

  30. ©2018 Ginco, Inc.
    *OGSBTUSVDUVSFBT$PEF
    • (JUΛ4JOHMF4PVSDFPG5SVUIͱͯ͠$*$%͕
    ࣮ߦͰ͖Δ؀ڥΛ৺͕͚Δ (JU0QT

    • ௿ίετͰશͯίʔυ͔Β࠶ݱՄೳ

    View full-size slide

  31. ©2018 Ginco, Inc.
    ,VTUPNJ[F
    • ,VCFSOFUFT:".-ͷ؅ཧπʔϧ
    • ؀ڥม਺Ҏ֎ΛςϯϓϨԽͯ͠؅ཧͰ͖Δ
    • ςϯϓϨԽ͍͚ͨͩ͠ͳΒ)FMNΑΓγϯϓϧ

    View full-size slide

  32. ϞχλϦϯά

    View full-size slide

  33. ©2018 Ginco, Inc.
    ϞχλϦϯά
    • (,&ͳΒ4UBDLESJWFS.POJUPSJOH͕ศརʂ

    View full-size slide

  34. ©2018 Ginco, Inc.
    ϞχλϦϯά
    • (,&ͳΒ4UBDLESJWFS-PHHJOH΋ศརʂ
    • ඪ४ग़ྗΛࣗಈͰऩू
    • ΫΤϦ΋ՄೳͰΞϥʔτ΋ग़ͤΔ

    View full-size slide

  35. ©2018 Ginco, Inc.
    LTӡ༻ͷܽ఺
    • 4UBUFGVM4FUΛ࢖ͬͯΦʔτεέʔϧͤ͞Δͱ

    ۭͷσΟεΫׂ͕Γ౰ͯΒΕΔͷͰಉظ͕ඞཁ
    • 17$Λ($&ͷσΟεΫεφοϓγϣοτ͔Βׂ
    Γ౰ͯΒΕΕ͹ʜ

    View full-size slide

  36. ϊʔυӡ༻Ͱ
    ϋϚͬͨͱ͜Ζ

    View full-size slide

  37. ©2018 Ginco, Inc.
    HFUI͕ಉظ͞Εͳ͍໰୊
    • ϚγϯεϖοΫ͕଍Γͳ͍
    • ࠷৽ͷϊʔυʹ઀ଓ͞Εͳ͍

    View full-size slide

  38. ©2018 Ginco, Inc.
    ਪ঑εϖοΫ
    • .BTUFSJOH&UIFSFVNʹॻ͍ͯ͋Δ
    • $16DPSFT
    • 3".(#
    • 'BTU44%(#

    View full-size slide

  39. ©2018 Ginco, Inc.
    ਪ঑εϖοΫͰ଍ΓΔͷ͔໰୊
    • JYMBSHFͷεϖοΫ
    • $16DPSFT
    • 3".(#

    View full-size slide

  40. ©2018 Ginco, Inc.
    ࠷৽ͷϊʔυʹ઀ଓ͞Εͳ͍໰୊
    • ࠷৽ͷϊʔυͷ63-ΛͲ͔͜Ͱݟ͚ͭΔ
    • ىಈ࣌ʹCPPUOPEFTʹઃఆ͢Ε͹0,
    • ࠷৽ͷϊʔυΛԿݸ͔͓͚࣋ͬͯ͹

    ͋ͱ͸ͦͷϊʔυͷ63-Λ࢖͑ΔͷͰ҆৺

    View full-size slide

  41. ©2018 Ginco, Inc.
    ϥΠτϊʔυΛ࢖͍͔ͨͬͨ
    • ΢ΥϨοτ͔Βୟ͘"1*͸ૹۚͷΈͳͷͰ

    ϥΠτϊʔυͰ΋े෼
    • ϑϧϊʔυʹൺ΂ͯϦιʔε΋࡟ݮͰ͖Δ
    • ಉظ΋ૣ͍ͷͰεέʔϦϯά͕༰қ

    View full-size slide

  42. ©2018 Ginco, Inc.
    ϥΠτϊʔυ͸࢖͑ͳ͔ͬͨ
    • ϑϧϊʔυͱϥΠτϊʔυͰ"1*ͷ࢓༷͕ҧͬͨ
    • ϦϙδτϦ͕ҧ͏ͷͰόʔδϣϯ͕஗ΕΔ
    • HFUIͷMJHIUTZOD͸ಉظ͕ࢭ·Δ͜ͱ͕ଟ͍
    • ͦ΋ͦ΋·࣮ͩݧஈ֊ͬΆ͍

    View full-size slide

  43. Zilliqa Golang SDK
    IUUQTHJUIVCDPN
    (JODP*OD[JMMFBO

    View full-size slide

  44. ࣭໰͕͋Ε͹
    ؾܰʹ
    ࿩͔͚͍ͯͩ͘͠͞

    View full-size slide

  45. (JODPͰಇ͍ͯ͘ΕΔ஥ؒืूதʂ
    R E C R U I T M E N T
    8BOUFEMZ͔'BDFCPPL͔5XJUUFSͰ·ͣ͸ؾܰʹ࿈བྷ
    ࠾༻৬
    Ԡืํ๏
    J04 "OESPJE
    αʔόαΠυ Πϯϑϥ
    2"
    6* 69 ϏδϡΞϧ
    άϥϑΟοΫ
    ࠃ಺ւ֎ϚʔέςΟϯά
    Ϧαʔνϟʔ ਓࣄ
    όοΫΦϑΟε
    ΤϯδχΞ σβΠφʔ Ϗδωε

    View full-size slide