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

AWS上に構築し数年経過したシステムの見直しポイント Developers.IO 2019 i...

Hiroyuki Kaji
October 19, 2019

AWS上に構築し数年経過したシステムの見直しポイント Developers.IO 2019 in Sapporo

2019/10/19 Developers.IO 2019 in Sapporo での発表資料となります。

Hiroyuki Kaji

October 19, 2019
Tweet

More Decks by Hiroyuki Kaji

Other Decks in Technology

Transcript

  1. "NB[PO-JOVY΁ͷҠߦϝϦοτ  w 17Πϯελϯε͔Β)7.Πϯελϯε΁Ҡߦ w )%% TUBOEBSE ˠ44% HQ 

    w ৽ੈ୅Πϯελϯε ND ར༻Մೳ ߹ΘͤͯҎԼΛ࢖͏ͱศརʹɾɾɾ w 44. "844ZTUFNT.BOBHFS ͷ"HFOUΠϯετʔϧࡁΈ w $MPVEXBUDI"HFOUߋ৽ʢϝϞϦɺσΟεΫ࢖༻཰औಘʣ
  2. "QQMJDBUJPO-PBE#BMBODFSʢ"-#ʣҠߦϝϦοτ  w $-# w ࣌ؒ͋ͨΓͷྉۚ σʔλసૹྔʹԠͯ͡՝ۚ w "-# w

    ࣌ؒ͋ͨΓͷྉۚ ΩϟύγςΟʔϢχοτ -$6 ʹΑΔྉۚͰ՝ۚ w $-#Ͱσʔλసૹྔ͕ଟ͍৔߹͸ɺ"-#ʹมߋ͢Δ͚ͩͰίε τϝϦοτͷՄೳੑ͋Γ w ΩϟύγςΟʔϢχοτ -$6 ͸$MPVEXBUDIͰݟੵ
  3. "NB[PO%-.  w ର৅αʔϏε w "NB[PO&#4 w ྉۚ w ແྉ

    w ผ్&#4΍εφοϓγϣοτͷྉۚ͸ൃੜ
  4. "84#BDLVQ  w ର৅αʔϏε w "NB[PO&#4 w "NB[PO3%4 "VSPSBҎ֎ 

    w "NB[PO%ZOBNP%# w "NB[PO&'4 w "NB[PO4UPSBHF(BUFXBZ
  5. "84#BDLVQ  λΠϓ ΢ΥʔϜετϨʔδ ίʔϧυετϨʔδ ಛهࣄ߲ "NB[PO&'4'JMF 4ZTUFN#BDLVQ QFS(# .POUI

    QFS(# .POUI ಠࣗͷྉۚମܥ "NB[PO&#47PMVNF 4OBQTIPU QFS(# .POUI  "NB[PO4ʹର͢Δ"NB[PO&#4 εφοϓγϣοτͷֹۚ "NB[PO3%4 %BUBCBTF4OBQTIPU QFS(# .POUI  %#εφοϓγϣοτ͸Ұ཯͜ͷֹۚ "NB[PO%ZOBNP%# 5BCMF#BDLVQ QFS(# .POUI  ΦϯσϚϯυόοΫΞοϓͷྉۚ "844UPSBHF (BUFXBZ7PMVNF #BDLVQ QFS(# .POUI  "NB[PO4ʹର͢Δ"NB[PO&#4 εφοϓγϣοτͷֹۚ
  6. 5SVTUFE"EWJTPSίετ࠷దԽ  w "NB[PO&$ϦβʔϒυΠϯελϯεͷ࠷దԽ w ௿Քಇ཰ͷ"NB[PO&$Πϯελϯε w ΞΠυϧঢ়ଶͷϩʔυόϥϯαʔ w ࢖༻཰ͷ௿͍"NB[PO&#47PMVNFT

    w ؔ࿈෇͚ΒΕ͍ͯͳ͍&MBTUJD*1ΞυϨε w "NB[PO3%4ͷΞΠυϧঢ়ଶͷ%#Πϯελϯε w "NB[PO3PVUFϨΠςϯγʔϦιʔεϨίʔυηοτ w "NB[PO&$3FTFSWFE*OTUBODF-FBTF&YQJSBUJPO w ࢖༻཰ͷ௿͍"NB[PO3FETIJGUΫϥελʔ
  7. 5SVTUFE"EWJTPSηΩϡϦςΟ  w ηΩϡϦςΟάϧʔϓr੍ݶ͞Εͳ͍ಛఆͷϙʔτ w ηΩϡϦςΟάϧʔϓrແ੍ݶΞΫηε w *".6TF w "NB[PO4όέοτͷΞΫηεڐՄ

    w ϧʔτΞΧ΢ϯτͰͷ.'" w *".ύεϫʔυϙϦγʔ w "NB[PO3%4ηΩϡϦςΟάϧʔϓͷΞΫηεϦ εΫ w "84$MPVE5SBJMϩάه࿥ w "NB[PO3PVUF.9͓Αͼ41'ͷϦιʔε Ϩίʔυηοτ w &-#ϦεφʔͷηΩϡϦςΟ w &-#ηΩϡϦςΟάϧʔϓ w *".ূ໌ॻετΞ಺ͷ$MPVE'SPOUಠࣗ 44-ূ໌ॻ w ΦϦδϯαʔόʔͷ$MPVE'SPOU44-ূ໌ॻ w *".ΞΫηεΩʔͷߋ৽ w ެ։͞ΕͨΞΫηεΩʔ w "NB[PO&#4ύϒϦοΫεφοϓγϣοτ w "NB[PO3%4ύϒϦοΫεφοϓγϣοτ
  8. 5SVTUFE"EWJTPS଱ো֐ੑ  w "NB[PO&#44OBQTIPUT w "NB[PO&$"WBJMBCJMJUZ;POF#BMBODF w ϩʔυόϥϯαʔͷ࠷దԽ w 71/τϯωϧ৑௕ੑ

    w "VUP4DBMJOHάϧʔϓͷϦιʔε w "NB[PO3%4όοΫΞοϓ w "NB[PO3%4Ϛϧν"; w "VUP4DBMJOHάϧʔϓͷϔϧενΣοΫ w "NB[PO4όέοτϩΪϯά w "NB[PO3PVUFωʔϜαʔόʔͷσϦήʔγϣϯ w "NB[PO3PVUFߴ55-ϦιʔεϨίʔυηοτ w "NB[PO3PVUFϑΣΠϧΦʔόʔϦιʔεϨίʔυηο τ w "NB[PO3PVUFͷ࡟আ͞ΕͨϔϧενΣοΫ w &-#$POOFDUJPO%SBJOJOH w &-#Ϋϩεκʔϯෛՙ෼ࢄ w "NB[PO4όέοτͷόʔδϣχϯά w "84%JSFDU$POOFDU઀ଓͷ৑௕ੑ w "84%JSFDU$POOFDUϩέʔγϣϯͷ৑௕ੑ w "84%JSFDU$POOFDUԾ૝ΠϯλʔϑΣΠεͷ৑௕ੑ w "NB[PO"VSPSB%#ΠϯελϯεΞΫηγϏϦςΟ w &$8JOEPXTΠϯελϯε༻ͷ&$$POpHαʔϏ ε w &$8JOEPXTΠϯελϯεͷ17υϥΠόόʔδϣϯ
  9. 5SVTUFE"EWJTPSύϑΥʔϚϯε  w ߴՔಇ཰ͷ"NB[PO&$Πϯελϯε w "NB[PO&#4ͷϓϩϏδϣϯυ*014 44% ϘϦϡʔϜͷΞλονϝϯτઃఆ w &$ηΩϡϦςΟάϧʔϓͷϧʔϧ਺ͷաଟ

    w Πϯελϯεʹద༻͞ΕΔ&$ηΩϡϦςΟάϧʔϓͷϧʔϧͷ਺ͷաଟ w "NB[PO3PVUFΤΠϦΞεϦιʔεϨίʔυηοτ w ࢖༻཰͕ߴա͗Δ"NB[PO&#4ϚάωςΟοΫϘϦϡʔϜ w "NB[PO$MPVE'SPOUίϯςϯπ഑৴ͷ࠷దԽ w $MPVE'SPOUϔομʔͷసૹͱΩϟογϡώοτ཰ w "NB[PO&$͔Β&#4΁ͷεϧʔϓοτ࠷దԽ w $MPVE'SPOU୅ସυϝΠϯ໊
  10. "848"'.BOBHFE3VMFʢҰ෦Λൈਮʣ  ϕϯμ ϧʔϧ໊ ༻్ Ձ֨ ' '3VMFTGPS"848"'#PU 1SPUFDUJPO3VMFT ࣗಈԽ͞Εͨ߈ܸ͔ΒอޢϘοτอޢϧʔϧ͸"848"'ͷͨΊͷύʔτφʔ͕؅ཧ͢ΔϧʔϧͰɺ੬

    ऑੑεΩϟφʔɺ΢ΣϒεΫϨʔύʔɺ%%P4πʔϧɺϑΥʔϥϜεύϜπʔϧͳͲͷଟذʹΘͨΔѱ ҙ͋ΔϘοτͷಈ͖Λ৯͍ࢭΊ·͢ɻ ݄  ສSFR ' '3VMFTGPS"848"' $PNNPO7VMOFSBCJMJUJFTBOE &YQPTVSFT $7& Α͋͘Δ੬ऑੑͱ๫࿐ $7& ͔Βอޢɻ"848"'ͷ$7&ϧʔϧ͸ɺ࣍ͷγεςϜΛλʔήοτͱ͢ ΔΑ͘஌ΒΕͨ$7&ʹର͢ΔอޢΛ͠·͢"QBDIFɺ"QBDIF4USVUTɺ#BTIɺ&MBTUJDTFBSDIɺ**4ɺ +#PTTɺ+41ɺ+BWBɺ+PPNMBɺ.Z42-ɺ/PEFKTɺ1)1ɺ1)1.Z"ENJOɺ1FSMɺ3VCZ0O3BJMTɺ 8PSE1SFTTɻ ݄  ສSFR ' '3VMFTGPS"848"'8FC FYQMPJUT08"413VMFT ΢Σϒͷऑ఺Λอޢɻ'΢Σϒ͸"848"'ʹର͢Δ08"41ϧʔϧΛ׆༻͠ɺ08"41τοϓ  ࠷΋ॏେͳ΢ΣϒΞϓϦέʔγϣϯϦεΫτοϓ ʹؚ·ΕΔ΢Σϒ߈ܸʹରͯ͠อޢ͠·͢ɻ͜ Εʹ͸42-Jɺ944ɺίϚϯυΠϯδΣΫγϣϯɺ/P42-JΠϯδΣΫγϣϯɺܦ࿏τϥόʔαϧɺ༧ଌ తϦιʔεͳͲ͕͋Γ·͢ɻ ݄  ສSFR $4$ $ZCFS4FDVSJUZ$MPVE.BOBHFE 3VMFTGPS"848"' ೔ຊͷαΠόʔηΩϡϦςΟΫϥ΢υࣾͷϚωʔδυϧʔϧͰ͢ɻαΠόʔڴҖΠϯςϦδΣϯεΛ࢖༻ ͯ͠࠷৽ͷڴҖΞϥʔτΛؚΉΑ͏ʹఆظతʹߋ৽͞ΕΔϧʔϧηοτΛఏڙ͠·͢ɻ͜ΕΒͷϧʔϧη οτ͸ɺ08"41ͷτοϓ8FCΞϓϦέʔγϣϯڴҖϦετʹؚ·ΕΔ΋ͷ͢΂ͯΛؚΊɺ੬ऑੑΛ ܰݮ͠·͢ɻ1$*%44ͳͲͷηΩϡϦςΟن֨ʹ४ڌ͢ΔͨΊʹ8FCΞϓϦέʔγϣϯͷηΩϡϦςΟ ཁ݅Λຬͨ͢͜ͱ͕Ͱ͖·͢ɻίʔυΠϯδΣΫγϣϯٕज़ʢ42-Jɺ/P42-Jɺ04ίϚϯυͳͲʣɺ 944ɺσΟϨΫτϦτϥόʔαϧɺ͓Αͼ"QBDIF4USVUT"QBDIF5PNDBU0SBDMF8FC-PHJD 8PSE1SFTTͳͲͷςΫϊϩδΛ࢖༻ͨ͠8FCΞϓϦέʔγϣϯʹؔ͢Δط஌ͷΤΫεϓϩΠτͳͲͷҰ ൠతͳ੬ऑੑΛඪతͱ͢Δ؅ཧϧʔϧ͕ଟ਺ؚ·Ε͍ͯ·͢%SVQBM+PPNMBʂͦͯ͠.BMJDJPVT#PUT ͷϧʔϧηοτͱͳΓ·͢ɻ ݄  ສSFR
  11. "8444.ύϥϝʔλετΞͱ4FDSFUT.BOBHFSͷྉۚ  4ZTUFNT.BOBHFSύϥϝʔλετΞ w ελϯμʔυ͸ແྉɻ w εϧʔϓοτ্ݶΛ૿Ճ΍ɺΞυόϯεύϥϝʔλͷ৔߹͸༗ྉɻ ճͷ"1* ίʔϧ͋ͨΓ64%ɻ w

    ·ͨɺ҉߸Խʹར༻͞ΕΔ,.4ʹͯ$., ΧελϚʔϚελʔΩʔɻϢʔβଆͰੜ੒͠ ͨΩʔ Λར༻͢Δ৔߹ɺ,.4ͷ"1*ݺͼग़͠ྉ͕ۚඞཁɻ 4FDSFUT.BOBHFS w ༗ྉɻγʔΫϨοτ݅͋ͨΓ64%݄ɻ ճͷ"1*ίʔϧ͋ͨΓ64%ɻ w ߋʹύϥϝʔλετΞͱಉ༷ɺ,.4ͷ҉߸Խʹ$.,Λར༻͢Δ৔߹ɺ,.4ͷ"1*ݺͼग़ ͠ྉ͕ۚඞཁʢ೔ؒͷτϥΠΞϧظؒ͋Γɻʣ