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
  2. A B O U T M Y S E L

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

  4. ΫϥΠΞϯτܕ΢ΥϨοτͷجຊΛ஧࣮ʹ ߴਫ४ͷηΩϡϦςΟͱ҆શੑ ֤σόΠεͷ தʹͷΈอ؅ ̍ͭͷόοΫΞοϓΩʔͰ
 ෳ਺ͷ௨՟Λ؅ཧ ௨৴ͷ҉߸Խͱ ಠࣗͷೝূํࣜ ൿີ伴ͷ؅ཧํࣜ ΢ΥϨοτͷߏ଄

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

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

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

    ͡Δͷ͸ϒϩοΫνΣʔ ϯͱݾͷΈ Scalability ΠϯϑϥΛಠࣗʹઃܭͯ͠ εέʔϥϏϦςΟΛ֬อ ࡞ΔաఔͰରԠ͢Δϒ ϩοΫνΣʔϯͷ࢓༷ Λৄࡉʹ೺ѲͰ͖Δ
  8. ϒϩοΫνΣʔϯ ϊʔυͱ͸

  9. ©2018 Ginco, Inc. ϒϩοΫνΣʔϯϊʔυͱ͸ • ϒϩοΫνΣʔϯͷίΞ • ϒϩοΫνΣʔϯωοτϫʔΫΛߏ੒͢Δ
 ϓϩάϥϜ͕ಈ͍͍ͯΔίϯϐϡʔλͷ͜ͱ •

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

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

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

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

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

    • Մ༻ੑͷ୲อ
  15. ,VCFSOFUFT

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

  17. ©2018 Ginco, Inc. ,VCFSOFUFTͱ͸ • ίϯςφͷσϓϩΠɺεέʔϧɺ؅ཧΛࣗಈԽ • ۭ͖ϦιʔεΛܭࢉͯ͠ίϯςφΛ഑ஔ • ίϯςφͷόʔδϣϯ؅ཧ

    • ෆ۩߹͕͋ͬͯ΋ࣗಈͰίϯςφΛ࠶ىಈ • ίϯςφ಺ͷϦιʔεͷϞχλϦϯά΋༰қ
  18. ৄ͍͠࿩͸লུ

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

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

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

  22. ©2018 Ginco, Inc. ̑ͭͷ؀ڥ Ϋϥελ -JWFOFU 4UBHJOH -JWFOFU 1SPEVDUJPO 5FTUOFU

    2" 5FTUOFU %FWFMPQ -JWFOFU 5FTUOFU /PEF5FTU
  23. ©2018 Ginco, Inc. /PEF5FTU؀ڥ • αϯυϘοΫεతͳ؀ڥ • ৽͍͠ϒϩοΫνΣʔϯ͸·ͣ͸͜͜ʹཱͯΔ • ύϥϝʔλͷௐ੔΍"1*ͷڍಈͷ֬ೝͳͲΛ͢Δ

    • "1*͸ύϒϦοΫͰΠϯλʔϯੜͰ΋͙͢ࢼͤΔ
  24. ©2018 Ginco, Inc. %FWFMPQ؀ڥ • (JODPͷ։ൃ͸ओʹ͜͜Ͱߦ͏ • ϊʔυ͸5FTUOFUʹͭͳ͕͍ͬͯΔ • /PEF5FTU؀ڥͰͷઃఆ͕ਖ਼͍͔͠Λ͔֬ΊΔ

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

  26. ©2018 Ginco, Inc. 4UBHJOH؀ڥ • 2"͕௨ͬͨΒ͜ͷ؀ڥʹ্͛Δ • ϊʔυ͸-JWFOFUʹͭͳ͕͍ͬͯΔ • 5FTUOFUͱ-JWFOFU͸࢓༷͕ҧ͏͜ͱ͕ଟʑ͋Δ

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

  28. ©2018 Ginco, Inc. ̑ͭͷ؀ڥ Ϋϥελ -JWFOFU 4UBHJOH -JWFOFU 1SPEVDUJPO 5FTUOFU

    2" 5FTUOFU %FWFMPQ -JWFOFU 5FTUOFU /PEF5FTU
  29. ෳ਺؀ڥʹඞཁͳ͜ͱ

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

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

    ௿ίετͰશͯίʔυ͔Β࠶ݱՄೳ
  32. ©2018 Ginco, Inc. ,VTUPNJ[F • ,VCFSOFUFT:".-ͷ؅ཧπʔϧ • ؀ڥม਺Ҏ֎ΛςϯϓϨԽͯ͠؅ཧͰ͖Δ • ςϯϓϨԽ͍͚ͨͩ͠ͳΒ)FMNΑΓγϯϓϧ

  33. ϞχλϦϯά

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

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

  36. ܽ఺

  37. ©2018 Ginco, Inc. LTӡ༻ͷܽ఺ • 4UBUFGVM4FUΛ࢖ͬͯΦʔτεέʔϧͤ͞Δͱ
 ۭͷσΟεΫׂ͕Γ౰ͯΒΕΔͷͰಉظ͕ඞཁ • 17$Λ($&ͷσΟεΫεφοϓγϣοτ͔Βׂ Γ౰ͯΒΕΕ͹ʜ

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

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

  40. ©2018 Ginco, Inc. ਪ঑εϖοΫ • .BTUFSJOH&UIFSFVNʹॻ͍ͯ͋Δ • $16 DPSFT •

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

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


    ͋ͱ͸ͦͷϊʔυͷ63-Λ࢖͑ΔͷͰ҆৺
  43. ©2018 Ginco, Inc. ϥΠτϊʔυΛ࢖͍͔ͨͬͨ • ΢ΥϨοτ͔Βୟ͘"1*͸ૹۚͷΈͳͷͰ
 ϥΠτϊʔυͰ΋े෼ • ϑϧϊʔυʹൺ΂ͯϦιʔε΋࡟ݮͰ͖Δ •

    ಉظ΋ૣ͍ͷͰεέʔϦϯά͕༰қ
  44. ©2018 Ginco, Inc. ϥΠτϊʔυ͸࢖͑ͳ͔ͬͨ • ϑϧϊʔυͱϥΠτϊʔυͰ"1*ͷ࢓༷͕ҧͬͨ • ϦϙδτϦ͕ҧ͏ͷͰόʔδϣϯ͕஗ΕΔ • HFUIͷMJHIUTZOD͸ಉظ͕ࢭ·Δ͜ͱ͕ଟ͍

    • ͦ΋ͦ΋·࣮ͩݧஈ֊ͬΆ͍
  45. Zilliqa Golang SDK IUUQTHJUIVCDPN (JODP*OD[JMMFBO

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

  47. (JODPͰಇ͍ͯ͘ΕΔ஥ؒืूதʂ R E C R U I T M E

    N T 8BOUFEMZ͔'BDFCPPL͔5XJUUFSͰ·ͣ͸ؾܰʹ࿈བྷ ࠾༻৬ Ԡืํ๏ J04 "OESPJE  αʔόαΠυ Πϯϑϥ  2" 6* 69 ϏδϡΞϧ  άϥϑΟοΫ ࠃ಺ւ֎ϚʔέςΟϯά  Ϧαʔνϟʔ ਓࣄ  όοΫΦϑΟε ΤϯδχΞ σβΠφʔ Ϗδωε