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

WordPressをEFSを利用してスケール可能にしてみた

kawaji
October 20, 2018
8

 WordPressをEFSを利用してスケール可能にしてみた

kawaji

October 20, 2018
Tweet

More Decks by kawaji

Transcript

  1. 8PSE1SFTTΛ&'4Λར༻͠
    ͯεέʔϧՄೳʹͯ͠Έͨ

    View full-size slide

  2. w ॴଐ

    ༗ݶձࣾεΫϥονιϑτ
    w ໊લ

    ઒࿏ོٛʢ͔Θ͡Α͔ͨ͠ʣ
    w "84ྺ

    ̔೥
    w ޷͖ͳ"84αʔϏε

    3PVUFɺ&$4QPU'MFFU"1*
    ࣗݾ঺հ

    View full-size slide

  3. w झຯ

    όεέοτϘʔϧ

    όϨʔϘʔϧ
    w ମௐ

    ක͕௧͍ɾɾɾ
    w ؤு͍ͬͯΔ͜ͱ

    μΠΤοτ
    ࣗݾ঺հ

    View full-size slide

  4. ̎ϲ݄Ͱ̎̌Ωϩ૫ͤΔͨΊ
    ʹඞཁͩͬͨ̏ͭͷ͜ͱ

    View full-size slide

  5. w ୹ظؒͰ͋Δ͜ͱ

    ˠ௕ظϓϥϯͰ͸ؒʹ߹Θͳ͍
    w ݟकͬͯ͘ΕΔਓ

    ˠҰਓͰͰ͖ΔͳΒͱ͏ͷੲʹ૫͍ͤͯΔ
    w ͓ۚ

    ˠ౒ྗ͕ۤखͳͷͰ࢓ํͳ͓ۚ͘Λ࢖ͬͯඞ
    ཁͳ౒ྗΛ؇࿨ͨ͠ɻ

    View full-size slide

  6. ར༻ͨ͠αʔϏε

    View full-size slide

  7. ৯ࣄ಺༰ͷՄࢹԽ

    View full-size slide

  8. 8PSE1SFTTΛ&'4Λར༻͠
    ͯεέʔϧՄೳʹͯ͠Έͨ
    ʢ࿩໭Γ·͢ʣ
    Կ͔͔͋ͬͯΒͰ͸஗͍ͷͰࣄલʹߟ͓͑ͯ͜͏

    View full-size slide

  9. w ୹ظؒͰ͋Δ͜ͱ

    ˠߴෛՙঢ়ଶ͕Ұ࣌తʹൃੜ͢Δঢ়ଶ
    w ݟकͬͯ͘ΕΔਓ

    ˠ$MPVE8BUDI͕ෛՙͷঢ়ଶΛݟͯ͘Ε͍ͯ
    Δ
    w ͓ۚ

    ˠߴෛՙ࣌ͷΈʹൃੜ͢Δैྔ՝ۚͰτϥ
    ϑΟοΫΛ͞͹͘
    ॊೈͳεέʔϧͱ͸

    View full-size slide

  10. &$Y୆͔Βεέʔϧͤ͞Δ·Ͱ
    &$ʹ8PSE1SFTTNZTRMಉډ

    View full-size slide

  11. &$Y୆͔Βεέʔϧͤ͞Δ·Ͱ
    NZTRMΛ3%4΁Ҡߦ
    3%4 NZTRM

    &$

    View full-size slide

  12. &$Y୆͔Βεέʔϧͤ͞Δ·Ͱ
    3%4ʹεϨʔϒΛ༻ҙͯ͠ো֐ʹඋ͑Δ
    3%4 NZTRM

    &$

    View full-size slide

  13. &$Y୆͔Βεέʔϧͤ͞Δ·Ͱ
    3%4ʹϦʔυϨϓϦΧΛ༻ҙͯ͠ෛՙରࡦ
    3%4 NZTRM

    &$

    View full-size slide

  14. &$Y୆͔Βεέʔϧͤ͞Δ·Ͱ
    "-#Λલʹஔ͖&$΁ϦΫΤετΛৼΓ෼͚Δ
    3%4 NZTRM

    &$YO୆
    "-#

    View full-size slide

  15. &$Y୆͔Βεέʔϧͤ͞Δ·Ͱ
    Ұݟ׬੒͍ͯ͠ΔΑ͏ʹݟ͑·͕͢ɾɾɾ
    3%4 NZTRM

    &$YO୆
    "-#

    View full-size slide

  16. &$Y୆͔Βεέʔϧͤ͞Δ·Ͱ
    Ұݟ׬੒͍ͯ͠ΔΑ͏ʹݟ͑·͕͢ɾɾɾ
    3%4 NZTRM

    &$YO୆
    "-#

    View full-size slide

  17. &$Y୆͔Βεέʔϧͤ͞Δ·Ͱ
    8PSE1SFTT͸σϑΥϧτઃఆͩͱ
    ը૾ɾϓϥάΠϯ͕ϩʔΧϧʹอଘ͞Ε͍ͯ·͢
    3%4 NZTRM

    &$YO୆
    "-#
    ը૾ ϓϥάΠϯ

    View full-size slide

  18. &$Y୆͔Βεέʔϧͤ͞Δ·Ͱ
    ͜ͷը૾ɾϓϥάΠϯΛ&'4ʹஔ͘͜
    ͱͰҰݩ؅ཧͰ͖·͢
    3%4 NZTRM

    &$YO୆
    "-#
    ը૾
    ϓϥάΠϯ
    &'4
    Ұݩ؅ཧͰ͖·͕͢4΁ը૾ϦιʔεΛೖΕͯ͘ΕΔϓϥάΠϯ࢖͏
    ΄͏͕ϥϯχϯάίετ҆ՁͰ͢

    View full-size slide

  19. &$Y୆͔Βεέʔϧͤ͞Δ·Ͱ
    ͦ΋ͦ΋8PSE1SFTTࣗମશͯΛ&'4ʹ഑ஔ͢Δ͜ͱ
    Ͱ&$ʹ͸BQBDIFPSOHJOY͚ͩೖΕ͓͚ͯ͹ྑ͍
    3%4 NZTRM

    &$YO୆
    "-#
    8PSE1SFTTΛશͯ֨ೲ
    &'4
    8PSE1SFTTͷόʔδϣϯΞοϓ࣌ʹ&$Λ͢΂ͯೖΕସ͑Δख͔ؒΒͷղ์

    View full-size slide

  20. &'4ͱ͸
    w ͜Ε·Ͱͷ"84ʹ͸ଘࡏ͠ͳ͔ͬͨಉ࣌ʹෳ
    ਺୆ͷ&$͔Βར༻Ͱ͖ΔετϨʔδɻ

    ʢ͸୆͔Β͔͠ಉ࣌ʹར༻Ͱ͖ͳ͍ʣ
    w αΠδϯά͕ෆཁͰඞཁͳ͚ͩೖΕΔ͜ͱ͕
    Մೳɻ
    w ৑௕Խߏ੒ͱͯ͠͸ඪ४ͰϚϧν";ʹରԠ
    w ैདྷߦ͍ͬͯͨ/'4αʔόʔߏங͕ෆཁ
    ʹʂʂ

    View full-size slide

  21. &'4ͱͷൺֱ
    &'4 1*014
    ΦϖϨʔγϣϯ͋ͨΓͷ
    ϨΠςϯγʔ
    Ұ؏ͯ͠௿͍ Ұ؏ͯ͠࠷΋௿͍
    εϧʔϓοτεέʔϧ ਺(#ඵ
    (#ඵ
    ϘϦϡʔϜ͋ͨΓ

    σʔλͷՄ༻ੑ଱ٱੑ ෳ਺ͷ";ʹ৑௕Խͯ͠อଘ
    ୯Ұͷ";ʹ৑௕Խͯ͠อ

    ΞΫηε
    ෳ਺";ͷ࠷େ਺ઍͷ&$Π
    ϯελϯε͔ΒϑΝΠϧγ
    εςϜ΁ಉ࣌ΞΫηε
    ୯Ұ";ͷ୯Ұ&$Πϯε
    λϯε͔ΒϑΝΠϧγες
    Ϝ΁ઐ༗ΞΫηε

    View full-size slide

  22. ܭଌ݁Ռ
    3FRVFTUTQFSTFDPOE NFBO

    &$3%4 <TFD>
    &$&'43%4 <TFD>
    "-#&$Y&'43%4 <TFD>
    $MPVE'SPOU"-#&$Y
    &'43%4
    <TFD>

    View full-size slide

  23. ܭଌ݁Ռ
    3FRVFTUTQFSTFDPOE NFBO

    &$3%4 <TFD>
    &$&'43%4 <TFD>
    "-#&$Y&'43%4 <TFD>
    $MPVE'SPOU"-#&$Y
    &'43%4
    <TFD>
    $MPVE'SPOU࠷ߴͩ
    ͳʂʂ

    View full-size slide

  24. ஫ҙ
    ࠓճͷܭଌ݁Ռ͸"84΁
    ਃ੥ͤͣʹߦͬͨͨΊ
    ΤϥʔͰฦ͞ΕͨΓ
    ΞΫηε؇࿨͞ΕͨΓ͍ͯ͠Δ
    Մೳੑ͕ߴ͍Ͱ͢

    View full-size slide