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

Gotanda.rb#48 ECS on Fargateでのハマりポイント

Hiroki Tanaka
November 25, 2020

Gotanda.rb#48 ECS on Fargateでのハマりポイント

Gotanda.rb#48でLT発表した『ECS on Fargateでのハマりポイント』です。

Hiroki Tanaka

November 25, 2020
Tweet

More Decks by Hiroki Tanaka

Other Decks in Technology

Transcript

  1. ࠓ೔࿩͢͜ͱɾ࿩͞ͳ͍͜ͱ ʲ࿩͢͜ͱʳ - nginx+unicorn+RailsΛECS on FargateͰӡ༻͠Α͏ͱࢥͬͨ ࡍʹϋϚͬͨ͜ͱ - nginx+unicornؒͷHTTP௨৴ɾSocket௨৴ͷҧ͍ -

    unicornͷΞϓϦέʔγϣϯϩάΛCloudWatch Logsʹग़ྗ͢Δํ๏ ʲ࿩͞ͳ͍͜ͱʳ - RailsͷΞϓϦέʔγϣϯαʔόͷҧ͍ →puma/Webrick/unicornͳͲ - puma/Webrick/unicornͷجຊతͳ࢖͍ํ
  2. ECS on FargateͷϝϦοτ - FargateΛར༻͢Ε͹ɺ৭ʑͳ͜ͱ͕AWSଆʹΞ΢τ ιʔεग़དྷΔͷͰӡ༻ෛՙ͕௿͍ɻ - EC2ΠϯελϯεͷϓϩϏδϣχϯά΍؅ཧɻ - ੬ऑੑରԠͷͨΊͷύον౰ͯ΍OSΞοϓσʔτ

    - EC2Πϯελϯε্ͷ֤ϛυϧ΢ΣΞͷΞοϓσʔτ - ֤ϛυϧ΢ΣΞͷόʔδϣϯ੔߹ੑ؅ཧ…etc - ঢ়ଶҟৗ͕ൃੜͨ͠EC2Πϯελϯεͷ࠶ىಈ΍ೖΕସ͑ɻ - ϗετϨϕϧͷεέʔϦϯά؅ཧɻ
  3. ϋϚΓᶄɿCloudWatch Logsʹϩάग़ྗ - RailsΞϓϦʹ໰୊͕ى͖ͨ৔߹ɺCloudWatch Logs ܦ༝ͰΞϓϦϩάΛ֬ೝ͢Δඞཁ͕͋Δɻ - ECS on EC2Ͱ͸SSHग़དྷ͠ίϯςφʹΞΫηεग़དྷΔͨΊ

    ϩάϑΝΠϧΛ௚઀֬ೝग़དྷΔ͕ɺFargate͸SSHग़དྷͳ͍ͨ Ί௚઀ࢀর͕ग़དྷͳ͍ɻ - ͜ΕΛߟྀ͍ͯ͠ͳ͔ͬͨͨΊɺRailsͷΤϥʔ͕ൃੜͨ͠ࡍ ʹϩάΛ֬ೝͰ͖ͣʹࠔͬͨɻ