Slide 1

Slide 1 text

© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved. In Partnership with ECS×FargateͰ࣮ݱ͢Δ ӡ༻ίετ΄΅0ͳίϯςφӡ༻ͷ࢓૊Έ ίωώτגࣜձࣾ ӬҪউҰ࿠(shnagai) A - 7

Slide 2

Slide 2 text

ࣗݾ঺հ ӬҪউҰ࿠ ओͳ׆ಈ "84%FW%BZ͸ࡢ೥ʹҾ͖ଓ͖౓໨ ίωώτΤϯδχΞϒϩάIUUQTUFDIDPOOFIJUPDPNBSDIJWFBVUIPSOBHBJT ίωώτגࣜձࣾɹςΫϊϩδʔਪਐ(ɹ Πϯϑϥػցֶश !TIOBHBJ

Slide 3

Slide 3 text

"CPVUίωώτ ਓͷੜ׆ʹͳͯ͘͸ͳΒͳ͍΋ͷΛͭ͘Δ ࢲͨͪ͸ʮਓͷੜ׆ʹͳͯ͘͸ͳΒͳ͍΋ͷΛͭ͘ΔʯΛϛογϣϯʹ Ո଒ͷϥΠϑΠϕϯτʹ͓͚ΔҙࢥܾఆΛ*5ͷྗͰαϙʔτ͢ΔձࣾͰ͢

Slide 4

Slide 4 text

"CPVUϚϚϦ 2"ίϛϡχςΟ Ϣʔβʔ͕೰ΈΛ౤ߘɺ૬ஊ͋͠͏2"ػೳ ઐ໳ՈʹΑΔճ౴΋ظؒݶఆͰఏڙ ϝσΟΞ ೛৷ɾҭࣇͳͲͷهࣄΛXFCͱΞϓϦͰ഑৴ ৽ϚϚͷʮਓʹਓʯʹ͝ར༻͍͍͍ͨͩͯΔΞϓϦɺ৘ใϝσΟΞʮϚϚϦʯ 3ਓʹ1ਓ ৽ϚϚͷ ͕ར༻த! ※2 ΞϓϦձһ਺ 250ສਓ ϚϚ޲͚No.1ΞϓϦʹબग़ ※1 ʮୈ̔ճ݈߁ण໋Λͷ͹ͦ͏ʂΞϫʔυʯʹͯ ްੜ࿑ಇলࢠͲ΋Ոఉہ௕৆ ड৆ ※1 1,084ਓͷϚϚ͕બͿʮݱࡏ࢖͍ͬͯΔΞϓϦʯ ʹͯɺ5߲໨ (ଞͷϚϚʹΦεεϝ͍ͨ͠ɺೝ஌౓ɺར༻཰ɺརศੑɺ޷ײ౓) Ͱ ̍ҐΛ֫ಘ͠·ͨ͠ɻʮϚϚ޲͚No.1ΞϓϦʯ͸2019೥3݄Πϯςʔδௐ΂ɹௐࠪର৅ɿ೛৷தʙ2ࡀ0ϲ݄ͷࢠڙΛ࣋ͭঁੑʢn=1,084ʣΛநग़ ※2 2019೥ͷʮϚϚϦʯ಺ͷग़࢈༧ఆ೔Λઃఆͨ͠Ϣʔβʔ਺ͱɺްੜ࿑ಇলൃදʮਓޱಈଶ౷ܭʯͷग़ੜ਺͔Βࢉग़

Slide 5

Slide 5 text

w ೥ʹ౉Δ&$4ӡ༻Λӡ༻ෛՙඅ༻࡟ݮͷ؍఺͔ΒৼΓฦΓ·͢ w 'BSHBUFͷొ৔ͰมΘͬͨ&$4ӡ༻ w &$4λʔήοτ௥੻4FSWJDF"VUP4DBMMJOHΛ׆༻ͨ͠ಈతΩϟύϓϥ ࠓ೔͓࿩͢Δ͜ͱ

Slide 6

Slide 6 text

'BSHBUFΛ࢖ͬͯ&$4Ͱίϯςφӡ༻͢Δࡍʹ ໾ཱͭؾ෇͖ΛҰͭͰ΋ ࣋ͪؼ͍͚ͬͯͨͩΕ͹ͱࢥ͍ͬͯ·͢ɻ

Slide 7

Slide 7 text

w ӡ༻ίετΛۃݶ·Ͱগͳͯ҆͘͠ఆՔಇͯ͠΄͍͠ w Ϋϥ΢υɺ֤छ4BB4ͷར༻ w ࣗݾճ෮ܕΞʔΩςΫνϟͷ࠾༻ ίϯςφɺϚωʔδυαʔϏε׆༻ w ͦΕʹ͔͔Δඅ༻͸গͳ͚Ε͹গͳ͍΄Ͳྑ͍ w ಉ͜͡ͱΛ΍ΔͷͰ͋Ε͹௿ίετͰग़དྷΔํ͕Ձ஋͸ߴ͍ αʔϏεӡ༻ͷཧ૝૾

Slide 8

Slide 8 text

w "84ϚωʔδυͳίϯςφͷΦʔέετϨʔγϣϯπʔϧ w ίϯςφͷϥΠϑαΠΫϧ؅ཧ εέδϡʔϦϯάɺηϧϑώʔϦϯά w "84ϚωʔδυͳͷͰΦʔέετϨʔγϣϯπʔϧࣗମͷӡ༻͕ෆཁ &$4ͱ͸

Slide 9

Slide 9 text

w ϝϯςφϯείετ͕௿͍ w ίϯτϩʔϧϓϨʔϯʹؔͯ͠͸΄΅ҙࣝ͢Δඞཁ͸ͳ͍ w ίϯςφΛͲ͏ಈ͔͔͢ʹ஫ྗग़དྷΔ w "84ͷϦιʔεͱϑϨϯυϦʔ w "-# *".ϩʔϧ $MPVE8BUDI&WFOUT 4UFQ'VODUJPOT w ίωώτ͸"84Ͱ΄΅શͯͷγεςϜΛ૊ΜͰ͍ΔͷͰ࿈ܞָ͕ͳͷ͸େࣄ w ֶशίετ΋௿Ί w αʔϏεɺλεΫఆٛɺΫϥελΛ࠷௿ݶ཈͑Ε͹ίϯςφӡ༻ग़དྷΔ w ࣗ༝౓͸௿͍͕ɺίϯςφӡ༻ʹ͋ͨΓઃఆ߲໨΍ߟྀࣄ߲͕গͳ͍ &$4ͷؾʹೖ͍ͬͯΔͱ͜Ζ

Slide 10

Slide 10 text

ίωώτͰͷ&$4ӡ༻ͷྺ࢙ 2017೥7݄ ECSຊ൪ӡ༻։࢝ DockerΛ࢖ͬͨίϯςφͷຊ൪ӡ༻։࢝ EC2όοΫΤϯυ 2017೥12݄ શαʔϏεΛECSԽ طଘαʔϏεͷҠߦ͕׬ྃ͠શαʔϏεΛECSͰӡ༻ EC2όοΫΤϯυ 2018೥10݄ Fargateຊ൪ಋೖ FargateΛຊ൪ӡ༻։࢝ ӡ༻ίετܹݮ͕ͩඅ༻Λ཈͑ΔͨΊʹ༷ʑͳ޻෉ 2020೥5݄ Fargate × λʔήοτ௥੻ ServiceAutoScalling FargateͷॊೈੑΛۦ࢖ͨ͠ಈతΩϟύϓϥΛ࣮ݱ ӡ༻ίετ΄΅0Ͱඅ༻΋࡟ݮ

Slide 11

Slide 11 text

w &$ࣗମͷӡ༻ w Α͠ͳʹ".*ߋ৽ w Α͠ͳʹ&$ϝϯςφϯεରԠ w Α͠ͳʹ&$Λ؂ࢹ w &$4ؔ࿈ͷӡ༻ w λεΫ਺Λࣄલʹݟӽͨ͠ΩϟύγςΟϓϥϯχϯά͕ඞཁ w Ͳͷ&$Ͱಈ͔͔͢ w λεΫͷ഑ஔ֬ೝ ແବͳ͘഑ஔ͞Ε͍ͯΔ͔ w खಈεέʔϧΞ΢τΠϯ w ΫϥελΛͲ͏૊Ή͔ &$4º&$ߏ੒͸Α͠ͳʹ&$ͷӡ༻ίετ͕ൃੜ

Slide 12

Slide 12 text

w &$ࣗମͷӡ༻ w Α͠ͳʹ".*ߋ৽ w Α͠ͳʹ&$ϝϯςφϯεରԠ w Α͠ͳʹ&$Λ؂ࢹ w &$4ؔ࿈ͷӡ༻ w λεΫ਺Λࣄલʹݟӽͨ͠ΩϟύγςΟϓϥϯχϯά͕ඞཁ w λεΫͷ഑ஔ֬ೝ ແବͳ͘഑ஔ͞Ε͍ͯΔ͔ w खಈεέʔϧΞ΢τΠϯ w ΫϥελΛͲ͏૊Ή͔ &$4º&$ߏ੒͸Α͠ͳʹ&$ͷӡ༻ίετ͕ൃੜ ҰͭҰͭ͸͍ܰ ͕ੵΈॏͳΔͱେ͖ͳӡ༻ίετʹ

Slide 13

Slide 13 text

w λεΫΛಈ͔͢ج൫ͷ&$ͱλεΫࣗମͷεέʔϧΛߟྀ͢Δ ඞཁ͕͋Δ w ग़དྷͳ͘͸ͳ͍͕ෳࡶͳ࢓૊ΈΛࣗલͰӡ༻͠ͳ͚Ε͹ͳΒͳ͍ w &$4$MVTUFS"VUP4DBMJOH͕ղܾͯ͘͠ΕΔ͔΋ IUUQTBXTBNB[PODPNKQBCPVUBXTXIBUTOFXBNB[POFDTDMVTUFSBVUPTDBMJOHOPXBWBJMBCMF w ӡ༻ίετඅ༻ϐʔΫτϥϑΟοΫΛࡹ͚ΔϦιʔεΛࣄલ ʹ༻ҙ w গ਺ͷΠϯϑϥͱ8FCΤϯδχΞͰαʔϏεӡ༻ w ෳࡶͳ࢓૊ΈΛಋೖͨ͠ࡍͷӡ༻ίετ͸େ͖͍ &$4º&$ߏ੒͸Φʔτεέʔϧ͕ෳࡶ

Slide 14

Slide 14 text

'BSHBUFͷొ৔

Slide 15

Slide 15 text

w "84Ϛωʔδυͳίϯςφ޲͚ίϯϐϡʔςΟϯάΤϯδϯ w &$ෆཁ w ॊೈͳϦιʔεͱैྔ՝ۚ w .FNʙ W$16ʙͷൣғͰॊೈʹׂΓ౰ͯ w ࢖ͬͨ෼͚ͩैྔ՝ۚ 'BSHBUFͱ͸

Slide 16

Slide 16 text

'BSHBUFͷొ৔ͰϦιʔεׂ౰ͷߟ͑ํ͕มΘͬͨ

Slide 17

Slide 17 text

w &$ࣗମͷӡ༻ w Α͠ͳʹ".*ߋ৽ w Α͠ͳʹ&$ϝϯςφϯεରԠ w Α͠ͳʹ&$Λ؂ࢹ w &$4ؔ࿈ͷӡ༻ w λεΫ਺Λࣄલʹݟӽͨ͠ΩϟύγςΟϓϥϯχϯά͕ඞཁ w λεΫͷ഑ஔ֬ೝ ແବͳ͘഑ஔ͞Ε͍ͯΔ͔ w खಈεέʔϧΞ΢τΠϯ w ΫϥελΛͲ͏૊Ή͔ 'BSHBUFͷొ৔Ͱ&$4ͷӡ༻͕େ෯ʹָʹͳͬͨ ͦ΋ͦ΋EC2͕ෆཁʹ ͢΂ͯϦιʔεׂΓ౰ͯͷ໰୊

Slide 18

Slide 18 text

w 3*Ͱ&$ˠ'BSHBUF 4BWJOHT1MBOTͳ͠ ͩͱ໿ഒͷඅ༻ w &$όοΫΤϯυ࣌୅ͱಉ͡λεΫ਺Ͱ'BSHBUFʹҠߦ w ౦ژϦʔδϣϯରԠޙ਺ϲ݄Ͱ·ͩࣄྫ΋ͳ͔ͬͨͷͰ҆શʹ IUUQTUFDIDPOOFIJUPDPNFOUSZ w අ༻ΛԼ͛ΔͨΊʹλεΫ਺ΛݮΒ͍ͯͬͨ͠ w &$όοΫΤϯυ࣌୅σϓϩΠ༻ʹ֬อ͞ΕͨϦιʔε෼ΛঃʑʹݮΒ͢ w αʔϏεӡ༻ʹ໰୊ͷͳ͍λεΫ਺ΛݟۃΊΔ &$͔Βղ์͞Ε͕ͨඅ༻͕ߴ͍

Slide 19

Slide 19 text

'BSHBUFº$PNQVUF4BWJOHT1MBOTͷొ৔ w 4BWJOHT1MBOTͷొ৔Ͱ'BSHBUF΋গ҆͘͠࢖͑ΔΑ͏ʹͳͬ ͨ w શֹલ෷͍ͰΦϯσϚϯυͷ0''Ͱར༻Մೳ w ࣄલʹར༻૝ఆֹΛίϛοτͯ͠લ෷͍͢ΔελΠϧ w Ϛωʔδυίϯιʔϧͷ੥ٻˠਪ঑ࣄ߲Ͱར༻ঢ়گʹΑΔݟੵΓՄ w 'BSHBUFར༻ͷ Λίϛοτͯ͠લ෷͍͢ΔΑ͏ͳ࢖͍ํΛ͍ͯ͠Δ

Slide 20

Slide 20 text

'BSHBUF4QPUͷొ৔ w ΦϯσϚϯυՁ͔֨Β࠷େ0''Ͱར༻Մೳ w 4QPUλΠϓͳͷͰڧ੍தஅ͋Γ w ۭ͖Ωϟύ͕ͳ͍ͱ෼લʹ௨஌͠தஅ w εςʔδϯά؀ڥ΍தஅͯ͠΋͍͍όονॲཧʹར༻ w ҆ఆՔಇ͕Ұ൪େࣄͳͷͰຊ൪ͷ΢Σϒʹ͸࢖͍ͬͯͳ͍

Slide 21

Slide 21 text

&$ͱ'BSHBUFͷྉۚൺֱ 1࣌ؒ͋ͨΓͷඅ༻ൺֱ ($/hour) ap-northeast-1 ΦϯσϚϯυ RI / Compute Savings Plans ׂҾ཰ EC2 C5.large 0.107 0.063 શֹલ෷͍ 41% Fargate 2vCPU mem4G 0.12324 0.0961272 શֹલ෷͍ 22% Fargate - EC2 0.01624 0.0331272 EC2RI→FargateSV ໿$24/month * ୆਺෼ߴ͍ EC2RI→Fargate ໿$45/month * ୆਺෼ߴ͍ ※SVͳ͠

Slide 22

Slide 22 text

w $16࢖༻཰ͷ͖͍͠஋Ͱൃಈ͢ΔΦʔτεέʔϧ w εέʔϧΞ΢τΠϯ࣌ͷଞλεΫ΁ͷߟྀෆཁʹͳͬͨͷͰ࠾༻ w ىಈʹT͘Β͍ͷόοϑΝ͕ඞཁͳͷͰॠؒతͳεύΠΫʹऑ͍ʜ ఆৗతͳλεΫ਺ݮΒͨ͠෼ͷεύΠΫରࡦ͸ΦʔτεέʔϧͰ

Slide 23

Slide 23 text

'BSHBUFӡ༻Ͱײ͍ͯͨ͡՝୊ w ΦʔτεέʔϦϯά͕௥͍͔ͭͳ͍ w ͔ͤͬ͘'BSHBUFԽͯ͠Φʔτεέʔϧग़དྷΔΑ͏ʹͳͬͨ w ϐʔΫ࣌ؒʹϨΠςϯγҧ൓Ξϥʔτ͕ग़࢝Ίͨ ຖ൩ώϠώϠ w ݟΔͱΦʔτεέʔϧൃಈͯ͠Δ͕ॳಈʹ௥͍͍͍ͭͯͳ͍ w $16τϦΨͷTఔͷىಈόοϑΝͩͱͪΐͬͱ஗͍ w අ༻͕&$࣌୅ͱൺ΂Δͱߴࢭ·Γ͍ͯͨ͠ w λεΫ਺ΛݮΒͯ͠ɺ4BWJOHT1MBOTΛ࢖ͬͯ΋·ͩߴ͍ w ಉ͡αʔϏεΛӡ༻͢ΔͳΒඅ༻͸গͳ͍ͷ͕ਖ਼ٛͰ͢ΑͶ

Slide 24

Slide 24 text

͔ͤͬ͘'BSHBUFΛ࢖͍ͬͯΔͷ͔ͩΒ ΋ͬͱ͏·͘εέʔϦϯά͕ग़དྷͳ͍΋ͷ͔

Slide 25

Slide 25 text

ΩϟύγςΟϓϥϯχϯάʹର͢Δߟ͑ํͷมԽ w ϐʔΫτϥϑΟοΫΛ҆શʹࡹ͚ΔΩϟύγςΟΛ༻ҙ w ҆શͳαʔϏεӡ༻ͷͨΊʹ༨෼ͳඅ༻Λࢧ෷͏ w &$όοΫΤϯυͰ΋'BSHBUF࢖ͬͯ΋͜ͷߟ͑ͰαʔϏεӡ༻͍ͯͨ͠ 25 50 75 100 0࣌ 3࣌ 6࣌ 9࣌ 12࣌ 15࣌ 18࣌ 21࣌ 24࣌ ΩϟύγςΟ ར༻Ωϟύ

Slide 26

Slide 26 text

ΩϟύγςΟϓϥϯχϯάʹର͢Δߟ͑ํͷมԽ w ैྔ՝ۚΛ׆͔ͨ͠ಈతͳΩϟύγςΟίϯτϩʔϧ΁ w Ϣʔβ͕ଟ͍࣌ʹ͸ଟ͘ͷϦιʔεΛߏ͑গͳ͘ͳͬͨΒϦιʔεΛ࠷খԽ w ඞཁͳϦιʔεΛඞཁͳ͚࣌ͩ༻ҙͦ͠ͷରՁΛࢧ෷͏ͷ͕Ϋϥ΢υͷݪ఺ 25 50 75 100 0࣌ 3࣌ 6࣌ 9࣌ 12࣌ 15࣌ 18࣌ 21࣌ 24࣌ ΩϟύγςΟ ར༻Ωϟύ

Slide 27

Slide 27 text

ΩϟύγςΟϓϥϯχϯάʹର͢Δߟ͑ํͷมԽ w ैྔ՝ۚΛ׆͔ͨ͠ಈతͳΩϟύγςΟίϯτϩʔϧ΁ w Ϣʔβ͕ଟ͍࣌ʹ͸ଟ͘ͷϦιʔεΛߏ͑গͳ͘ͳͬͨΒϦιʔεΛ࠷খԽ w ඞཁͳϦιʔεΛඞཁͳ͚࣌ͩ༻ҙͦ͠ͷରՁΛࢧ෷͏ͷ͕Ϋϥ΢υͷݪ఺ 25 50 75 100 0࣌ 3࣌ 6࣌ 9࣌ 12࣌ 15࣌ 18࣌ 21࣌ 24࣌ ΩϟύγςΟ ར༻Ωϟύ &$4Ͱ࣮ݱ͍ͨ͠

Slide 28

Slide 28 text

&$4λʔήοτ௥੻4FSWJDF"VUP4DBMMJOH w &$4ଆͰλεΫඞཁ਺Λಈతʹίϯτϩʔϧͯ͘͠ΕΔػೳ w &$44FSWJDFͷฏۉ$16࢖༻཰ w &$44FSWJDFͷฏۉϝϞϦ࢖༻཰ w &$44FSWJDFʹඥͮ͘"-#ͷλεΫ͋ͨΓͷϦΫΤετ਺ w ͜Ε·Ͱ΋εύΠΫରࡦʹ࢖͍ͬͯͨ w εέʔϧΞ΢τ༻ʹฏۉ$16࢖༻཰τϦΨͰൃಈ

Slide 29

Slide 29 text

ฏۉ$16࢖༻཰Λ௥੻͢Δ4FSWJDF"VUP4DBMMJOHڍಈ λεΫඞཁ਺: 10 CPU࢖༻཰39%

Slide 30

Slide 30 text

ฏۉ$16࢖༻཰Λ௥੻͢Δ4FSWJDF"VUP4DBMMJOHڍಈ λεΫඞཁ਺: 10 CPU࢖༻཰39% ϦΫΤετ਺૿ CPU࢖༻཰55%

Slide 31

Slide 31 text

ฏۉ$16࢖༻཰Λ௥੻͢Δ4FSWJDF"VUP4DBMMJOHڍಈ λεΫඞཁ਺: 10 CPU࢖༻཰39% λεΫඞཁ਺: 15 CPU࢖༻཰38.5% ϦΫΤετ਺૿ CPU࢖༻཰55%

Slide 32

Slide 32 text

ฏۉ$16࢖༻཰Λ௥੻͢Δ4FSWJDF"VUP4DBMMJOHڍಈ λεΫඞཁ਺: 10 CPU࢖༻཰39% λεΫඞཁ਺: 15 CPU࢖༻཰38.5% ϦΫΤετ਺૿ CPU࢖༻཰55% ϦΫΤετ਺ݮ CPU࢖༻཰20%

Slide 33

Slide 33 text

ฏۉ$16࢖༻཰Λ௥੻͢Δ4FSWJDF"VUP4DBMMJOHڍಈ λεΫඞཁ਺: 10 CPU࢖༻཰39% λεΫඞཁ਺: 15 CPU࢖༻཰38.5% ϦΫΤετ਺૿ CPU࢖༻཰55% CPU࢖༻཰Λࢦఆ஋ʹऩଋ͢ΔΑ͏ʹ λεΫ਺Λίϯτϩʔϧ ϦΫΤετ਺ݮ CPU࢖༻཰20% λεΫඞཁ਺: 5 CPU࢖༻཰30% ※࠷௿਺·ͰεέʔϧΠϯ

Slide 34

Slide 34 text

&$4λʔήοτ௥੻4FSWJDF"VUP4DBMMJOHͷڍಈ w ͖͍͠஋Λ௒͑ͨ࣌ʹεέʔϧΞ΢τ͢Δػೳͱଊ͍͑ͯͨ ͕ w ࣮͸ɺ͖͍͠஋ʹऩଋ͢ΔͨΊʹεέʔϧΠϯΞ΢τ͢Δػ ೳͩͬͨ

Slide 35

Slide 35 text

&$4λʔήοτ௥੻4FSWJDF"VUP4DBMMJOHͷڍಈ w ͖͍͠஋Λ௒͑ͨ࣌ʹεέʔϧΞ΢τ͢Δػೳͱଊ͍͑ͯͨ ͕ w ࣮͸ɺ͖͍͠஋ʹऩଋ͢ΔͨΊʹεέʔϧΠϯΞ΢τ͢Δػ ೳͩͬͨ ˠಈతͳΩϟύϓϥΛ࣮ݱग़དྷΔػೳͩͱ͍͏ؾ͖ͮ

Slide 36

Slide 36 text

&$4λʔήοτ௥੻4FSWJDF"VUP4DBMMJOHͷཪଆͷ࢓૊Έ w $MPVE8BUDI"MBSN͕ηοτ͞ΕͯͦΕΛݩʹεέʔϧ൑ఆ w ʲεέʔϧΞ΢τ൑ఆʳ෼ؒ࿈ଓ͖͍͠஋ҧ൓ w ʲεέʔϧΠϯ൑ఆʳ෼ؒ࿈ଓ͖͍͠஋ʹऩଋ w εέʔϧΠϯ·Ͱͯ͘͠ΕΕ͹අ༻ͷ՝୊Λղܾग़དྷΔ w ैྔ՝ۚΛ࠷େʹ׆͔ͨ͢Ίʹ໷ؒ͸࠷௿ݶͷϦιʔεͰΧόʔ

Slide 37

Slide 37 text

&$4λʔήοτ௥੻4FSWJDF"VUP4DBMMJOHͷઃఆͷצॴ w εέʔϧΠϯ·Ͱߟ͑Δ࣌͸͖͍͠஋͸গ͠ΏΔΊʹ͢Δ w αʔϏεͷੑ࣭ʹΑΔ͕ɺ$16Ҏ্ͩͱεύΠΫʹ଱͑Εͳ͍͔΋ w ίωώτͰ͍͏ͱ͍ͩͿΏΔΊͰ΋අ༻࡟ݮʹΠϯύΫτ͕ग़͍ͯΔ w ಋೖ࣌͸ෛՙࢼݧ΋͘͠͸ΏΔ͍͖͍͠஋͔ΒڍಈΛ֬ೝ

Slide 38

Slide 38 text

&$4λʔήοτ௥੻4FSWJDF"VUP4DBMMJOHͷઃఆ஋ ߲໨ ಺༰ ίωώτͰͷઃఆ஋ λʔήοτ஋ ௥੻ͨ͠ϝτϦΫεͰͷ͖͍͠஋ (ฏۉCPU/ฏۉϝϞϦ/λεΫ͋ͨΓͷreq਺) αʔϏεͷੑ࣭ʹΑΓ ݕূ͠ͳ͕Βద੾ͳᮢ஋ΛೖΕΔ εέʔϧΞ΢τ Ϋʔϧμ΢ϯظؒ εέʔϧΞ΢τͨ͠ޙͷ଴ػ࣌ؒ (͜ͷؒ͸࿈ଓͰεέʔϧΞ΢τ͸ൃಈ͠ͳ͍) 60s (ෛՙ࣌͸ຖ෼εέʔϧΞ΢τ) εέʔϧΠϯ Ϋʔϧμ΢ϯظؒ εέʔϧΠϯͨ͠ޙͷ଴ػ࣌ؒ (͜ͷؒ͸࿈ଓͰεέʔϧΠϯ͸ൃಈ͠ͳ͍) 900s (Ώͬ͘Γॖୀͯ͠΄͍͠ͷͰ) εέʔϧΠϯͷແޮԽ On/OffͰεέʔϧΠϯΛߦ͏͔Ͳ͏͔ ࠓճͷ໨తͩͱOff

Slide 39

Slide 39 text

՝୊ʹରͯ͠ͲΜͳ݁Ռʹͳ͔ͬͨ

Slide 40

Slide 40 text

࠶ܝ 'BSHBUFӡ༻Ͱײ͍ͯͨ͡՝୊ w ΦʔτεέʔϦϯά͕௥͍͔ͭͳ͍ w ϐʔΫ࣌ʹϨΠςϯγҧ൓Ξϥʔτ͕ग़࢝Ίͨ ຖ൩ώϠώϠ w ݟΔͱΦʔτεέʔϧൃಈͯ͠Δ͕ॳಈʹ௥͍͍͍ͭͯͳ͍ w අ༻͕&$࣌୅ͱൺ΂Δͱߴࢭ·Γ͍ͯͨ͠ w λεΫ਺ΛݮΒͯ͠ɺ4BWJOHT1MBOTΛ࢖ͬͯ΋·ͩߴ͍ w ಉ͡αʔϏεΛӡ༻͢ΔͳΒඅ༻͸গͳ͍ͷ͕ਖ਼ٛͰ͢ΑͶ

Slide 41

Slide 41 text

ϐʔΫલͷ༨༟Λ࣋ͬͨεέʔϧΞ΢τΛ࣮ݱ w ϐʔΫ࣌ʹͨ·ʹग़͍ͯͨϨΠςϯγΞϥʔτ͕ͳ͘ͳͬͨ w ࣄલʹे෼ͳλεΫΛߏ͑ΔͷͰ'BSHBUFىಈ͕஗͍ӨڹΛड͚ͳ͍

Slide 42

Slide 42 text

'BSHBUFͷඅ༻͕ݮ w ෛՙʹԠͨ͡ಈతͳεέʔϦϯάͰฏۉλεΫىಈ਺͕ w ϐʔΫ࣌ؒʹൺ΂ͯՋͳ࣌ؒͷํ͕ଟ͍ͷͰλεΫ਺ͷ࠷దԽʹ੒ޭ w ݻఆ஋࣌୅ΑΓ΋҆ఆՔಇ͔ͭίετ࡟ݮΛ࣮ݱ

Slide 43

Slide 43 text

ݱࡏͷ&$4º'BSHBUFӡ༻ w 'BSHBUFԽ͍ͯ͠ΔαʔϏε͸΄΅ϝϯςෆཁͰӡ༻ w 'BSHBUFΤʔδΣϯτͷWରԠ͸͋ΔͷͰͰ͸ͳ͍ w ϐʔΫ࣌ؒଳͷεέʔϧ΋Ξϥʔτͳ͘উखʹ΍ͬͯ͘ΕͯΔײ͡ w අ༻΋'BSHBUFಋೖ࣌ʹൺ΂ͯେ෯ʹ࡟ݮ w ฏۉλεΫՔಇ਺͕Լ͕ͬͨͷͰैྔ՝ۚͷԸܙΛͦͷ··ड͚Δ w 4BWJOHT1MBOTͰׂҾͷԸܙΛड͚Δ w εςʔδϯά΍Ұ෦ͷόονͰ͸'BSHBUF4QPUͰେ෯ͳίετΧοτ

Slide 44

Slide 44 text

&$4º&$ͷίϯϏ΋༻్ʹΑͬͯ࢖͍ͬͯΔ w DSPO༻్ͷίϯςφ͸&$όοΫΤϯυͰಈ͔͍ͯ͠Δ w DSPOతͳεέδϡʔϧىಈ͕ඞཁͳ΋ͷ͸ىಈ଎౓ʹར͕͋ΔͷͰ&$ w %PDLFSϨΠϠΩϟογϡΛ࢖͑ΔͷͰQVMM଎͍ىಈ଎͍

Slide 45

Slide 45 text

·ͱΊ ΞʔΩςΫνϟ/߲໨ ӡ༻ίετ අ༻ ϙΠϯτ EC2όοΫΤϯυ ˚ લड़ͷEC2ӡ༻ ˕ Reserved,SpotInstanceΛར༻ Φʔτεέʔϧ͕ෳࡶͳͷͰɺϐ ʔΫτϥϑΟοΫ*਺ഒʹ଱͑͏ ΔΫϥελ(EC2)Λ༻ҙ Fargate ˕ ˚ SavingsPlansΛར༻ λεΫ਺ݮΒ͠EC2όοΫΤϯυ ͱಉ͘͡Β͍ͷඅ༻ײ RI,Spotͱൺֱ͢Δͱߴ͍ͷͰɺϐ ʔΫτϥϑΟοΫʹ଱͑͏ΔΑ͏ λεΫݮΒ͢+Φʔτεέʔϧ(஗ ͍ͱ͍͏՝୊ײ) Fargate × λʔήοτ௥੻ ServiceAutoScalling ˕ ˕ λεΫ਺੍ޚΛECSʹҕ೚ɻ ฏۉతͳλεΫ਺ͷ࡟ݮʹ੒ޭ͠ අ༻ѹॖ

Slide 46

Slide 46 text

·ͱΊ ΞʔΩςΫνϟ/߲໨ ӡ༻ίετ අ༻ ϙΠϯτ EC2όοΫΤϯυ ˚ લड़ͷEC2ӡ༻ ˕ Reserved,SpotInstanceΛར༻ Φʔτεέʔϧ͕ෳࡶͳͷͰɺϐ ʔΫτϥϑΟοΫ*਺ഒʹ଱͑͏ ΔΫϥελ(EC2)Λ༻ҙ Fargate ˕ ˚ SavingsPlansΛར༻ λεΫ਺ݮΒ͠EC2όοΫΤϯυ ͱಉ͘͡Β͍ͷඅ༻ײ RI,Spotͱൺֱ͢Δͱߴ͍ͷͰɺϐ ʔΫτϥϑΟοΫʹ଱͑͏ΔΑ͏ λεΫݮΒ͢+Φʔτεέʔϧ(஗ ͍ͱ͍͏՝୊ײ) Fargate × λʔήοτ௥੻ ServiceAutoScalling ˕ ˕ λεΫ਺੍ޚΛECSʹҕ೚ɻ ฏۉతͳλεΫ਺ͷ࡟ݮʹ੒ޭ͠ අ༻ѹॖ 'BSHBUFͷϝϦοτΛ׆༻ͯ͠ ӡ༻ෛՙΛۃྗ௿͘ίϯςφӡ༻͢Δ͜ͱ͕ &$4Λબ୒͢ΔڧΈͩͱߟ͍͑ͯΔ

Slide 47

Slide 47 text

ίωώτͰ͸ΤϯδχΞੵۃ࠾༻தͰ͢ʂ ڵຯ͕͋Δํɺ΋ͬͱ࿩Λฉ͍ͯΈ͍ͨͱࢥ͏ํ͕͍·ͨ͠Β 8BOUFEMZܦ༝΋͘͠͸ ɹɹ!TIOBHBJ·Ͱ͝࿈བྷ͍ͩ͘͞ ͍͞͝ʹએ఻

Slide 48

Slide 48 text

Thank you! © 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved. In Partnership with ίωώτגࣜձࣾ ӬҪউҰ࿠(shnagai)