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

ニフティ社内ISUCON開催への道のり - NIFTY Tech Day 2023

ニフティ社内ISUCON開催への道のり - NIFTY Tech Day 2023

ニフティ株式会社

November 27, 2023
Tweet

More Decks by ニフティ株式会社

Other Decks in Programming

Transcript

  1. Copyright ©NIFTY Corporation All Rights Reserved.
    χϑςΟࣾ಺ISUCON


    ։࠵·ͰͷಓͷΓ
    ձһγεςϜάϧʔϓɹୈೋ։ൃνʔϜ
    ্ݪ ௚ر

    View full-size slide

  2. Copyright © NIFTY Corporation All Rights Reserved.
    ࣗݾ঺հ
    2
    χϑςΟגࣜձࣾ


    ձһγεςϜάϧʔϓ


    ୈೋ։ൃνʔϜ


    ্ݪ ௚ر


    χϑςΟχϡʔεͷ։ൃɾӡ༻
    @Penpen7


    (GitHub)

    View full-size slide

  3. Copyright ©NIFTY Corporation All Rights Reserved.
    ISUCONͱ͸ʁ

    View full-size slide

  4. Copyright © NIFTY Corporation All Rights Reserved.
    ISUCONͱ͸ʁ
    4
    ● ݶΒΕͨϦιʔεɾ࣌ؒͷதͰWebαʔϏεΛͲΕ͚ͩߴ଎ԽͰ͖͔ͨΛ
    νʔϜؒͰڝ͍߹͏ίϯςετ


    ● ࢀՃऀ͸ಈ࡞͕஗͍WebΞϓϦέʔγϣϯ͕༩͑ΒΕɺઃఆΛ࠷దԽͨ͠
    ΓɺίʔυΛվળͨ͠Γͯ͠ߴ଎Խ͢Δ


    ● ύϑΥʔϚϯενϡʔχϯάεΩϧΛ਎ʹ͚ͭΔ͜ͱ͕Ͱ͖Δ


    ● LINEϠϑʔגࣜձ͕ࣾओ࠵͓ͯ͠Γɺ༏উ͢Ε͹100ສԁ֫ಘͰ͖Δ


    ● ʮISUCONʯ͸ɺLINEϠϑʔגࣜձࣾͷ঎ඪ·ͨ͸ొ࿥঎ඪͰ͢ɻ

    View full-size slide

  5. Copyright © NIFTY Corporation All Rights Reserved.
    ISUCONͰ͸ԿΛ΍Δͷ͔ʁ
    5
    ● 8࣌ؒͰ಺෦࣮૷Λมߋ͠ಈ࡞Λߴ଎ʹ͍ͯ͘͠


    ○ ͨͩ͠ɺwebΞϓϦέʔγϣϯͷϖʔδͷݟͨ໨͸ม͑ͳ͍


    ● σʔλϕʔε


    ○ ΠϯσοΫεΛ͸Δ


    ○ ෆཁͳσʔλΛݮΒ͢


    ● ΞϓϦέʔγϣϯ


    ○ Ωϟογϡ͢Δ


    ○ ΫΤϦνϡʔχϯά(N+1໰୊ͷղফͳͲ)


    ● શମ


    ○ ϩά͔ΒϘτϧωοΫͷղੳ


    ○ CI/CD؀ڥͷ੔උ

    View full-size slide

  6. Copyright © NIFTY Corporation All Rights Reserved.
    ੈͷதͰ͸ࣾ಺ISUCON͕։࠵͞Ε͍ͯΔ
    6
    NTTίϛϡχέʔγϣϯζגࣜձࣾ
    ※ https://developer.ntt.com/ja/blog/31e9fb86-7309-4145-a72b-0ea5f17e3f5a


    ※ https://bit-labs.nri.co.jp/report_007.html


    גࣜձࣾ໺ଜ૯߹ݚڀॴ

    View full-size slide

  7. Copyright ©NIFTY Corporation All Rights Reserved.
    χϑςΟͷࣾ಺ISUCON

    View full-size slide

  8. Copyright © NIFTY Corporation All Rights Reserved.
    χϑςΟͷࣾ಺ISUCON
    8
    ● ΤϯδχΞҭ੒Λ໨తͱͯ͠2023೥8݄ʹॳ։࠵


    ● ࠲ֶͱϋϯζΦϯΛ૊Έ߹ΘͤͨϫʔΫγϣοϓܗࣜͰ։࠵


    ○ ύϑΥʔϚϯενϡʔχϯά΁ͷεΩϧࠩ΍ISUCONະܦݧऀ͕ଟ͍͜
    ͱΛՃຯ͠ɺڝٕܗࣜ͸அ೦


    ● ଟ͘ͷΤϯδχΞʹࢀՃͯ͠΋Β͏ͨΊʹΦϓτΞ΢τܗࣜͱͨ͠


    ○ શһࢀՃલఏͰܽ੮ऀͷΈ࿈བྷͯ͠΋Β͏


    ● ݁Ռɺ94໊ͷଟ͘ͷΤϯδχΞ͕ࢀՃ

    View full-size slide

  9. Copyright © NIFTY Corporation All Rights Reserved.
    λΠϜεέδϡʔϧ
    9
    ࠲ֶ


    (1࣌ؒ)
    ߴ଎ͳwebαʔϏεͷҙٛ
    νϡʔχϯάͷجૅ
    ϞχλϦϯάͷجૅ
    ϋϯζΦϯ


    (3࣌ؒ)


    ͓୊ൃද(private-isu)ɾॾ஫ҙ
    ϫʔΫϩʔυͷ෼ੳɾϘτϧωοΫͷൃݟ
    σʔλϕʔενϡʔχϯά
    webαʔόͷνϡʔχϯά

    View full-size slide

  10. Copyright © NIFTY Corporation All Rights Reserved.
    λΠϜεέδϡʔϧ
    10
    ࠲ֶ


    (1࣌ؒ)
    ߴ଎ͳwebαʔϏεͷҙٛ
    νϡʔχϯάͷجૅ
    ϞχλϦϯάͷجૅ
    ϋϯζΦϯ


    (3࣌ؒ)


    ͓୊ൃද(private-isu)ɾॾ஫ҙ
    ϫʔΫϩʔυͷ෼ੳɾϘτϧωοΫͷൃݟ
    σʔλϕʔενϡʔχϯά
    webαʔόͷνϡʔχϯά

    View full-size slide

  11. Copyright © NIFTY Corporation All Rights Reserved.
    վળର৅ͷwebΞϓϦέʔγϣϯ
    11
    ● pixivגࣜձࣾͷࣾ಺ISUCONͰ࢖༻͞Εͨ
    private-isuΛ࢖༻


    ○ GitHub - catatsuy/private-isu: ࣾ಺ISUCON


    ● ൺֱత೉қ౓͕௿͘ॳ৺ऀ޲͚


    ● isucogramͱ͍͏Ծ૝ͷࣸਅڞ༗SNSͰɺࣸਅ౤
    ߘػೳ΍ίϝϯτػೳ͕͋Δ

    View full-size slide

  12. Copyright © NIFTY Corporation All Rights Reserved.
    ϋϯζΦϯͰ࢖͏αʔόʔ
    12
    ● αʔόʔ2୆ͣͭࢀՃऀશһʹఏڙ͠νϡʔχϯάͯ͠΋Β͏


    ○ ΞϓϦέʔγϣϯαʔόʔ1୆(νϡʔχϯάର৅)


    ○ ϕϯνϚʔΫαʔόʔ1୆


    ● ࢀՃऀ͕αʔόʔʹϩάΠϯͰ͖Ε͹͙͢ʹύϑΥʔϚϯενϡʔχϯά
    Λָ͠ΊΔঢ়ଶʹͨ͠


    ○ αʔόʔઃఆɺπʔϧಋೖɺαʔόʔ্ཱͪ͛ͳͲඞཁͳ४උ͸ӡӦଆ
    Ͱ࣮ࢪ


    ○ ssh͕͏·͘Ͱ͖ͳ͍͜ͱ΋ݟӽͯ͠ɺAWSͷηογϣϯϚωʔδϟʔ
    ܦ༝Ͱ΋αʔόʔʹϩάΠϯͰ͖ΔΑ͏ʹͨ͠

    View full-size slide

  13. Copyright © NIFTY Corporation All Rights Reserved.
    ϋϯζΦϯͷྲྀΕ
    13

    View full-size slide

  14. Copyright © NIFTY Corporation All Rights Reserved.
    ϋϯζΦϯͷ࣮ࡍͷ༷ࢠ
    14

    View full-size slide

  15. Copyright © NIFTY Corporation All Rights Reserved.
    ࢀՃऀ͔Βͷײ૝
    15
    ● ۩ମతͳ਺஋ͱͯ͠είΞվળ͕ݟΒΕΔͷ͸໘ന͔ͬͨɻ


    ● ͜ͷ௕࣌ؒͰɺڧ੍Ͱ͸ͳ͘͜Ε΄ͲͷࢀՃऀΛूΊΒΕΔ͜ͱʹײಈ͠
    ·ͨ͠ɻࣗ෼͸ΤϯδχΞͱͯ͠ͷ஌ࣝʹૄ͍΄͏ͳͷͰ͕͢ɺઆ໌΋ஸ
    ೡͰͱͯ΋ָ͘͠ɺΘ͔Γ΍͔ͬͨ͢Ͱ͢ɻ


    ● ීஈ৮Βͳ͍ٕज़ͷษڧ͕Ͱ͖·ͨ͠ɻ୲౰γεςϜͷDBͷεϩʔΫΤϦ
    ΛݟͯΈΑ͏ͱࢥ͍·ͨ͠ɻ


    ● ४උ͋Γ͕ͱ͏͍͟͝·ͨ͠ʂΊͪΌΊͪΌָ͔ͬͨ͠Ͱ͢ɻ

    View full-size slide

  16. Copyright © NIFTY Corporation All Rights Reserved.
    ࢀՃऀ͔Βͷײ૝
    16
    ● ۩ମతͳ਺஋ͱͯ͠είΞվળ͕ݟΒΕΔͷ͸໘ന͔ͬͨɻ


    ● ͜ͷ௕࣌ؒͰɺڧ੍Ͱ͸ͳ͘͜Ε΄ͲͷࢀՃऀΛूΊΒΕΔ͜ͱʹײಈ͠
    ·ͨ͠ɻࣗ෼͸ΤϯδχΞͱͯ͠ͷ஌ࣝʹૄ͍΄͏ͳͷͰ͕͢ɺઆ໌΋ஸ
    ೡͰͱͯ΋ָ͘͠ɺΘ͔Γ΍͔ͬͨ͢Ͱ͢ɻ


    ● ීஈ৮Βͳ͍ٕज़ͷษڧ͕Ͱ͖·ͨ͠ɻ୲౰γεςϜͷDBͷεϩʔΫΤϦ
    ΛݟͯΈΑ͏ͱࢥ͍·ͨ͠ɻ


    ● ४උ͋Γ͕ͱ͏͍͟͝·ͨ͠ʂΊͪΌΊͪΌָ͔ͬͨ͠Ͱ͢ɻ
    👍 ޷ҙతͳײ૝͕ଟ͔ͬͨ

    View full-size slide

  17. Copyright ©NIFTY Corporation All Rights Reserved.
    ࣾ಺ISUCONͷཪଆ(ӡӦ)

    View full-size slide

  18. Copyright © NIFTY Corporation All Rights Reserved.
    ӡӦνʔϜ
    18
    ্ݪ ௚ر খদ ༐و ۽୩ ఩ྑ ٶຊ ୡ໼ ઒্ ྙਓ
    ࢿྉ࡞੒


    ղઆ(࠲ֶ)


    εέδϡʔϧ؅ཧ


    Πϯϑϥઃܭɾߏங
    ཱҊ ࢿྉ࡞੒


    ղઆ(ϋϯζΦϯ)


    ࢿྉ࡞੒


    ղઆ(࠲ֶ)


    ࣄલͷίετ༧ଌ


    ࢿྉ࡞੒


    ղઆ(ϋϯζΦϯ)

    ϋϯζΦϯ୊ࡐܾΊ


    View full-size slide

  19. Copyright © NIFTY Corporation All Rights Reserved.
    ४උεέδϡʔϧ
    19
    ✊ ΩοΫΦϑ


    🤔 ΞΠσΟΞͩ͠
    🖋 ࢿྉࣥච
    🧰 Πϯϑϥݕ౼ɾઃܭɾ࣮૷
    2023/04 05 06 07 08
    👀 ࢿྉϨϏϡʔ


    ✅ ಈ࡞νΣοΫ


    🎉 ։࠵

    View full-size slide

  20. Copyright © NIFTY Corporation All Rights Reserved.
    αʔόʔୡʹඞཁͳཁ݅
    20
    ● ໿200୆ͷEC2ΠϯελϯεΛىಈ͢Δඞཁ͕͋Δ


    ○ ໿100ਓͷࢀՃऀʹͦΕͧΕ2୆഑෍


    ● ඞཁͳઃఆΛ͋Β͔͡Ίαʔόʹద༻͢Δඞཁ͕͋Δ


    ○ ϩάղੳʹඞཁͳίϚϯυͷΠϯετʔϧ


    ○ ࣾ಺ͷ౿Έ୆αʔόʔͱͷૄ௨ઃఆ


    ○ Python࣮૷΁ͷมߋ

    View full-size slide

  21. Copyright © NIFTY Corporation All Rights Reserved.
    αʔόʔͷߏஙํ๏Λߟ͑Δ
    21
    ํ๏I ํ๏II ํ๏III
    AMIԽͷํ๏ - ඞཁͳઃఆΛϢʔβʔσʔλʹࢦ
    ఆ͠αʔόΛىಈɺAMIԽ͢Δ


    EC2 Image BuilderΛ࢖ͬͯࣗಈ
    తʹAMIΛ࡞੒͢Δ


    αʔόʔىಈํ๏ TerraformͰ200୆αʔ
    όʔΛىಈͯ͠1୆ͣͭઃఆ
    ΛਓͷखͰೖΕ͍ͯ͘
    ࡞੒ͨ͠AMI͔ΒTerraformΛ
    ࢖ͬͯ200୆αʔόΛىಈ͢Δ
    ࡞੒ͨ͠AMI͔ΒTerraformΛ
    ࢖ͬͯ200୆αʔόΛىಈ͢Δ
    ϝϦοτ ɾͳ͠


    (ਓͷԹ͔ΈΛײ͡ΒΕΔ)
    ɾઃఆΛೖΕΔͨΊʹαʔόʔʹ
    ϩάΠϯ͢Δඞཁ͕ͳ͍
    ɾAMIͷ࡞੒·ͰࣗಈԽͰ͖Δͷ
    Ͱָ
    σϝϦοτ ɾ͕͔͔࣌ؒΔ


    ɾർΕΔ


    ɾϛε͕ى͖ͯ΋ؾ͚ͮͳ
    ͍
    ɾαʔόʔͷAMIԽ͸खಈͰߦ͏
    ඞཁ͕͋Δ


    ɾϢʔβʔσʔλͰΤϥʔ͕ى͖
    ͯ΋ؾ͚ͮͳ͍
    ɾEC2 Image Builderͷ࢖͍ํΛ
    ஌Δඞཁ͕͋Δ


    ɾYAMLͷهड़ʹ׳ΕΔඞཁ͕͋
    Δ


    ɾAMI͕׬੒͢Δ·Ͱʹ͕͔࣌ؒ
    ͔Δ

    View full-size slide

  22. Copyright © NIFTY Corporation All Rights Reserved.
    ࣗಈͰAMIΛ࡞੒͢ΔαʔϏε
    22

    View full-size slide

  23. Copyright © NIFTY Corporation All Rights Reserved.
    ࣗಈͰAMIΛ࡞੒͢ΔαʔϏε
    23
    👍 ͓ئ͍ͨ͠Β


    উखʹAMIΛ࡞ͬͯ͘ΕΔ

    View full-size slide

  24. Copyright © NIFTY Corporation All Rights Reserved.
    Πϯϑϥߏ੒
    24

    View full-size slide

  25. Copyright © NIFTY Corporation All Rights Reserved.
    EC2 Image Builderͱ͸ʁ
    25
    ● AWS͕ఏڙ͢ΔΠϝʔδ࡞੒ɾςετɾ഑෍αʔϏε


    ○ EC2Πϯελϯε޲͚ͷOSΠϝʔδ(AMI)


    ● ݩͱͳΔAMIʹඞཁͳઃఆɾιϑτ΢ΣΞΛՃ͑ͯࣗಈతʹAMIԽ
    ͯ͘͠ΕΔ


    ● ͦͷଞɺςετ΍σϓϩΠ΋ࣗಈతʹߦͬͯ͘ΕΔ


    ● ௥Ճඅ༻ͳ͠Ͱ࢖༻Ͱ͖Δ


    ○ ੜ੒෺Ͱ͋ΔAMIͳͲͷඅ༻͸ผ్͔͔Δ

    View full-size slide

  26. Copyright © NIFTY Corporation All Rights Reserved.
    EC2 Image Builderͱ͸ʁ
    26
    τϦΨʔ Ϗϧυ ςετ ഑෍
    ύΠϓϥΠϯ
    ιʔεAMI


    (ࡐྉ)
    ΧελϜAMI


    (׬੒඼)

    View full-size slide

  27. Copyright © NIFTY Corporation All Rights Reserved.
    ɹ τϦΨʔઃఆ
    27
    ● ࣮ߦܖػΛͲ͏͢Δ͔ઃఆ


    ● खಈ࣮ߦ


    ○ ίϯιʔϧ্͔ΒϘλϯΛԡԼ


    ○ AWS CLI͔ΒίϚϯυ࣮ߦ


    ● εέδϡʔϧ࣮ߦ


    ○ cronࣜͰ࣮ߦ͍ͨ͠λΠϛϯάΛهड़
    τϦΨʔ Ϗϧυ ςετ ഑෍

    View full-size slide

  28. Copyright © NIFTY Corporation All Rights Reserved.
    Ϗϧυ
    28
    ● ιʔεͱͳΔAMIΛ΋ͱʹɺඞཁͳιϑτ΢ΣΞɺઃఆΛՃ
    ͑ɺΧελϜAMIΛ࡞੒͢Δ޻ఔ
    τϦΨʔ Ϗϧυ ςετ ഑෍

    View full-size slide

  29. Copyright © NIFTY Corporation All Rights Reserved.
    Ϗϧυઃఆ
    29
    ΠϯϑϥετϥΫνϟઃఆ


    AMIΛ࡞੒͢ΔͨΊʹىಈ͢ΔEC2Πϯελϯε
    ͷઃఆ
    Ϩγϐ
    ιʔεAMI


    ݩʹͳΔAMIΛࢦఆ
    Ϗϧυίϯϙʔωϯτ


    YAMLܗࣜͰ࣮ߦ͍ͨ͠ίϚϯυΛهड़
    τϦΨʔ Ϗϧυ ςετ ഑෍

    View full-size slide

  30. Copyright © NIFTY Corporation All Rights Reserved.
    Ϗϧυίϯϙʔωϯτ
    30
    ● ࣮ߦ͍ͨ͠ίϚϯυΛYAMLͰهड़͢Δ
    τϦΨʔ Ϗϧυ ςετ ഑෍
    name: install_sl # コンポーネント名(スペースは入れられないので_をいれる)


    description: install sl


    schemaVersion: 1.0


    phases:


    - name: build # buildを指定


    steps:


    - name: install_sl # スペースは入れられない


    action: ExecuteBash # bashで実行


    inputs:


    commands:


    - sudo apt update


    - sudo apt install sl # slコマンドをインストール

    View full-size slide

  31. Copyright © NIFTY Corporation All Rights Reserved.
    ΠϯϑϥετϥΫνϟઃఆ
    31
    ● Ϗϧυ࣌ʹىಈ͢ΔEC2Πϯελϯεͷઃఆ
    τϦΨʔ Ϗϧυ ςετ ഑෍

    View full-size slide

  32. Copyright © NIFTY Corporation All Rights Reserved.
    Ϩγϐ
    32
    τϦΨʔ Ϗϧυ ςετ ഑෍

    View full-size slide

  33. Copyright © NIFTY Corporation All Rights Reserved.
    ΠϯϑϥετϥΫνϟઃఆͰࠔͬͨϙΠϯτ
    33
    ● AMI࡞੒ͷͨΊʹىಈ͢ΔEC2Πϯελϯεͷઃఆʹ஫ҙ͕ඞཁ


    ○ ॲཧ͕ਐ·ͣɺλΠϜΞ΢τͯ͠ऴΘΔͷͰͱͯ΋ࠔΔ


    ● SSM Agent͕AWSͷ֤छαʔϏεͱૄ௨Ͱ͖Δඞཁ͕͋Δ


    ○ ύϒϦοΫαϒωοτʹஔ͘৔߹


    ■ αϒωοτʹࣗಈύϒϦοΫIPΛ෇༩͢ΔΑ͏ઃఆ


    ○ ϓϥΠϕʔταϒωοτʹஔ͘৔߹


    ■ VPCΤϯυϙΠϯτͷઃஔ


    ● imagebuilder, ssm, ssmmessages, ec2messages


    ■ NAT GatewayͷઃஔɺϧʔςΟϯάઃఆ


    ○ ผ్ηΩϡϦςΟάϧʔϓͷઃఆ΋ඞཁ

    View full-size slide

  34. Copyright © NIFTY Corporation All Rights Reserved.
    ςετ
    34
    ● Ϗϧυ޻ఔͰ࡞੒ͨ͠ΧελϜAMIΛςετ͢Δ޻ఔ


    ● ΧελϜAMI͔ΒΠϯελϯεΛىಈ͠ɺίϚϯυΛ࣮ߦ͢Δ
    τϦΨʔ Ϗϧυ ςετ ഑෍

    View full-size slide

  35. Copyright © NIFTY Corporation All Rights Reserved.
    Copyright © NIFTY Corporation All Rights Reserved.
    ςετઃఆ
    Copyright © NIFTY Corporation All Rights Reserved. 35
    ΠϯϑϥετϥΫνϟઃఆ


    AMIΛςετ͢ΔͨΊʹىಈ͢ΔEC2Πϯελϯεͷઃఆ


    (Ϗϧυͱڞ௨)
    Ϩγϐ


    (Ϗϧυͱڞ௨)
    ςετίϯϙʔωϯτ


    YAMLܗࣜͰ࣮ߦ͍ͨ͠ίϚϯυΛهड़
    35
    τϦΨʔ Ϗϧυ ςετ ഑෍

    View full-size slide

  36. Copyright © NIFTY Corporation All Rights Reserved.
    Copyright © NIFTY Corporation All Rights Reserved.
    ςετίϯϙʔωϯτ
    Copyright © NIFTY Corporation All Rights Reserved. 36
    ● ςετ͍ͨ͠ίϚϯυΛهड़͢Δ
    36
    τϦΨʔ Ϗϧυ ςετ ഑෍
    name: install_sl # 半角スペースの代わりに_を入れる


    description: install sl


    schemaVersion: 1.0


    - name: test # testを入れるとテストしてくれる


    steps:


    - name: run_sl # 半角スペースの代わりに_を入れる


    action: ExecuteBash # bashで実行


    inputs:


    commands:


    - which sl # slコマンドの存在を確認

    View full-size slide

  37. Copyright © NIFTY Corporation All Rights Reserved.
    Copyright © NIFTY Corporation All Rights Reserved.
    ഑෍
    Copyright © NIFTY Corporation All Rights Reserved. 37
    ● Ϗϧυ޻ఔͰ࡞੒ͨ͠ΧελϜAMIΛ

    ࢦఆͨ͠ΞΧ΢ϯτɾϦʔδϣϯʹ഑ஔ͢Δ޻ఔ
    37
    τϦΨʔ Ϗϧυ ςετ ഑෍

    View full-size slide

  38. Copyright © NIFTY Corporation All Rights Reserved.
    Copyright © NIFTY Corporation All Rights Reserved.
    Copyright © NIFTY Corporation All Rights Reserved.
    ഑෍ઃఆ
    Copyright © NIFTY Corporation All Rights Reserved. 38
    ● ग़ྗ͢ΔΧελϜAMIͷ໊শɾ഑෍ઌ(ϦʔδϣϯɾΞΧ΢ϯτ)Λ
    ࢦఆ͢Δ
    Copyright © NIFTY Corporation All Rights Reserved. 38
    38
    τϦΨʔ Ϗϧυ ςετ ഑෍

    View full-size slide

  39. Copyright © NIFTY Corporation All Rights Reserved.
    Copyright © NIFTY Corporation All Rights Reserved.
    ύΠϓϥΠϯΛ࣮ߦͯ͠ΈΔ
    Copyright © NIFTY Corporation All Rights Reserved. 39
    ● ύΠϓϥΠϯΛ࣮ߦ͢ΔΛΫϦοΫ͠ɺ։࢝͢Δ
    39
    τϦΨʔ Ϗϧυ ςετ ഑෍

    View full-size slide

  40. Copyright © NIFTY Corporation All Rights Reserved.
    ύΠϓϥΠϯΛ࣮ߦͯ͠ΈΔ
    40
    ● Πϝʔδͷεςʔλε͕࡞੒தʹมΘΔ
    τϦΨʔ Ϗϧυ ςετ ഑෍

    View full-size slide

  41. Copyright © NIFTY Corporation All Rights Reserved.
    ύΠϓϥΠϯΛ࣮ߦͯ͠ΈΔ
    41
    ● ॱ൪ʹεςοϓ͕ਐΜͰ͍͘
    τϦΨʔ Ϗϧυ ςετ ഑෍

    View full-size slide

  42. Copyright © NIFTY Corporation All Rights Reserved.
    ύΠϓϥΠϯΛ࣮ߦͯ͠ΈΔ
    42
    ● Ϗϧυத͸EC2Πϯελϯε͕ىಈ͠ɺίϚϯυ͕࣮ߦ͞ΕΔ
    τϦΨʔ Ϗϧυ ςετ ഑෍

    View full-size slide

  43. Copyright © NIFTY Corporation All Rights Reserved.
    ύΠϓϥΠϯΛ࣮ߦͯ͠ΈΔ
    43
    ● ׬ྃ͢Δͱɺࢦఆͨ͠ΞΧ΢ϯτɾϦʔδϣϯʹAMI͕࡞੒͞ΕΔ
    τϦΨʔ Ϗϧυ ςετ ഑෍

    View full-size slide

  44. Copyright © NIFTY Corporation All Rights Reserved.
    AMI͔ΒEC2ΠϯελϯεΛىಈͯ͠ΈΔ
    44
    ● slίϚϯυͰػؔं͕૸Γग़͢ʂ

    View full-size slide

  45. Copyright © NIFTY Corporation All Rights Reserved.
    EC2 Image Builderͷશମ૾
    45
    τϦΨʔ Ϗϧυ ςετ ഑෍
    ύΠϓϥΠϯ
    ιʔεAMI


    (ࡐྉ)
    ΧελϜAMI


    (׬੒඼)

    View full-size slide

  46. Copyright © NIFTY Corporation All Rights Reserved.
    EC2 Image Builderͷྑ͍ͱ͜Ζ
    46
    ● AMIͷ࡞੒ΛࣗಈͰ΍ͬͯ͘ΕΔ


    ○ ϘλϯΛԡ͚ͩ͢Ͱશ෦΍ͬͯ͘ΕΔ


    ○ ԿΛͯ͠΄͍͔͠ͷઃఆ͸ඞཁ


    ● AMIͷςετ΋ࣗಈͰ΍ͬͯ͘ΕΔ


    ○ ຊ౰ʹίϚϯυ࣮ߦͰ͖ΔΜͩΖ͏͔ʁ଍Γͳ͍ઃఆ͸ͳ͍ΜͩΖ͏
    ͔ʁͱ͍͏ෆ͕҆ͳ͘ͳͬͨ


    ● AWS Black Belt Online Seminarͷࢿྉ͕ஸೡ


    ○ ࠔͬͨ͜ͱ͕͋Ε͹ݟͯΈΑ͏


    ● TerraformͰ؅ཧՄೳ


    ○ ίʔυͰશͯͷઃఆΛ؅ཧͰ͖Δ

    View full-size slide

  47. Copyright © NIFTY Corporation All Rights Reserved.
    ౰೔ͷӡӦͷରԠ
    47
    ● े෼ʹݕূΛߦͳ͍ͬͯͨͨΊɺΠϕϯτͷਐߦ͕ࢭ·ΔΑ͏ͳେ͖ͳ໰
    ୊͕ى͖Δ͜ͱ͸ͳ͔ͬͨ


    ○ Terraform΍EC2 Image BuilderΛ࢖ͬͯAMIΛ࡞੒͍ͯͨͨ͠Ίɺ
    ͏·͘ಈ͘ঢ়ଶΛ؆୯ʹ࠶ݱͰ͖ͨɻ


    ● ௚લͷࢀՃऀ௥ՃʹରԠ


    ○ TerraformͷcountΛ࢖ͬͯΠϯελϯεΛෳ਺࡞ΔΑ͏ʹ͍ͯͨ͠ͷ
    Ͱɺ਺ࣈΛ૿΍͚ͩ͢Ͱ͙͢ʹରԠͰ͖ͨ


    ● ϩʔΧϧPCͷ؀ڥཁҼͰsshͰ͖ͳ͍ࢀՃऀ͕਺ਓ͍ͨ


    ○ AWSͷίϯιʔϧ͔ΒηογϣϯϚωʔδϟܦ༝ͰϩάΠϯ͢ΔΑ͏

    View full-size slide

  48. Copyright ©NIFTY Corporation All Rights Reserved.
    ·ͱΊ

    View full-size slide

  49. Copyright © NIFTY Corporation All Rights Reserved.
    ·ͱΊ
    49
    ● ISUCON͸ݶΒΕͨϦιʔεɾ࣌ؒͷதͰwebαʔϏεΛͲΕ͚ͩߴ଎Խ
    Ͱ͖͔ͨΛνʔϜؒͰڝ͍߹͏ίϯςετ


    ○ ύϑΥʔϚϯενϡʔχϯάͱ͸Կֶ͔Ϳ͜ͱ͕Ͱ͖Δ


    ● 2023೥8݄ʹχϑςΟͷࣾ಺ISUCONΛॳΊͯ։࠵


    ○ ڝٕܗࣜͰ͸ͳ͘࠲ֶ+ϋϯζΦϯܗࣜʹΞϨϯδ


    ○ ࢀՃऀ͔Β͸ʮ஌͕ࣝਂ·ͬͨʯͳͲͷ޷ҙతͳҙݟΛ௖͍ͨ


    ● ӡӦ໘Ͱ͸େ͖ͳ໰୊͕ى͜Δ͜ͱͳ͘ແࣄऴྃͰ͖ͨ


    ○ Terraform΍EC2 Image BuilderΛ׆༻ͨ͠


    ● ࣍ճ͸࡞໰Λߦ͍ɺڝٕܗࣜͰ։࠵͍ͨ͠

    View full-size slide