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

AWS・websocket初心者が Classic Load Balancerと 格闘したお話

AWS・websocket初心者が Classic Load Balancerと 格闘したお話

149d8a0e4a1ecdb637d38c51cf0e08b9?s=128

CyberMergina

July 19, 2017
Tweet

Transcript

  1. "84ɾXFCTPDLFUॳ৺ऀ͕ $MBTTJD-PBE#BMBODFSͱ ֨ಆ͓ͨ͠࿩ DZNFS

  2. ·ͣࣗݾ঺հ͔Βɾɾɾ

  3. $ZNFS ͠ʔΊΔʣ ग़਎ɿٶ࡚ݝٶ࡚ࢢ ݱࡏ஍ɿভೆʢݴ͍͍͚ͨͩʣ ϝΠϯɿ8&#ܥΤϯδχΞ ͓࢓ࣄɿ݄຤·Ͱࣗ୐ܯඋһ ϓϩάϥϛϯάྺɿ1)1+BWB4DSJQUΛ̑೥ 5XJUUFS(JUIVCɿ!$ZCFS.FSHJOB

  4. ʙ͓Αͦ̎೥લʙ

  5. ࣗࣾ੡඼ͷ৽ن։ൃ ݴޠ΍'8બఆ͸͓·͔ͤɺୠ͠ʜ ɾXFCTPDLFUΛ࢖͍͍ͨ ɾ"84Λ࢖͍͍ͨ

  6. ࣗࣾ੡඼ͷ৽ن։ൃ ݴޠ΍'8બఆ͸͓·͔ͤɺୠ͠ʜ ɾXFCTPDLFUΛ࢖͍͍ͨ ɾ"84Λ࢖͍͍ͨ Ͳͬͪ΋ܦݧແ͍ͧɾɾɾ

  7. ͦΜͳ࣌ͷڧ͍ຯํ UFSBUBJM ·͊ɺͳΜͱ͔ͳΔʂ

  8. ࣭໰ͨ͠΋ͷ w OHJOYͰϦόʔεϓϩΩγΛ࢖ͬͨࡍʹऔಘͨ͠*1ΞυϨε͕ʹ ͳ͍ͬͯΔ w OHJOYʷTPDLFUJPͰͷXFCTPDLFU௨৴࣌ͷ$034ରԠʹ͍ͭͯ w &-#഑Լͷ&$ͰOHJOYͷϦόʔεϓϩΩγΛ࢖͍ͬͯΔ؀ڥͷΈΞΫηε ݩ*1͕औಘͰ͖ͳ͍ w

    4BGBSJͰʮEJTQMBZqFYʯΛ࢖͍͍ͨ w 4ͷσΟϨΫτϦ͕XFCίϯιʔϧ্͔Β࡟আͰ͖ͳ͍ w "84Ͱઃఆ͍ͯ͠ΔಛఆͷυϝΠϯʹΞΫηεͰ͖ͳ͍ ʢ&33@&.15:@3&410/4&ʣ ɹɹɹଞ݅̕ɹɹɹ ͓ੈ࿩ʹͳΓ·ͨ͠ʂ
  9. &-#഑Լͷ&$Ͱ OHJOYͷϦόʔεϓϩΩγΛ ࢖͍ͬͯΔ؀ڥͷΈ ΞΫηεݩ*1͕औಘͰ͖ͳ͍

  10. ΍Γ͍ͨ͜ͱ Route 53 ELB(CLB) EC2 client 8FCαʔόʔ ൪ϙʔτ 8FCTPDLFUαʔόʔ ൪ϙʔτ

    8FCαʔόʔ ൪ϙʔτ
  11. ى͖ͨݱ৅ ΞΫηεݩͷ*1͕औΕͳ͍ʂ

  12. ΞΫηεݩͷ*1͕औΕͳ͍ʂ Route 53 ELB(CLB) EC2 client 999 999 SFNPUF@BEESɿ&-#ͷ*1 QSPYZ@BEE@Y@GPSXBSEFE@GPSɿΞΫηεݩͷ*1

  13. ΞΫηεݩͷ*1͕औΕͳ͍ʂ ᶃ &-#ͷϦεφʔͷϓϩτίϧΛʰ44-5$1ʱʹ͢Δ ɹˠϔομʔ৘ใ͕Πϯελϯε·Ͱ౉ΔΑ͏ʹͳΔ ᶄର৅ͷΠϯελϯεʹͯʮ1SPYZ1SPUPDPMʯΛ༗ޮʹ͢Δ ɹˠᶃͰ5$1ʹ͢Δ͜ͱͰɺΞΫηεݩͷ*1ΞυϨε͕ड͚औΕͳ ͘ͳΔ ɹˠ"84$-*Λ࢖ͬͯɺઃఆΛ༗ޮʹ͢Δ͜ͱʹΑͬͯड͚औΓՄ ೳʹͳΔ ɹ˞ݫີʹ͸ϔομʔ৘ใ͕௥Ճ͞Εɺͦ͜ʹ౉͞ΕΔ

    ᶅOHJOYͷTFSWFSઃఆ಺ͷMJTUFOʹzQSPYZ@QSPUPDPMzΛ௥ه͢ Δ
  14. ى͖ͨݱ৅̎ 5$1ͷϩʔυόϥϯγϯάΛ ௥Ճͨ͠ΒɺΤϥʔʜ

  15. 5$1ͷϩʔυόϥϯγϯάΛ௥Ճͨ͠Βɺ Τϥʔʜ ɾର৅ͷΠϯελϯεׂ͕Γ౰ͯΒΕ͍ͯΔ ɹ&-#ઃఆͷϦεφʔΛ֬ೝ ɹˠΠϯελϯεଆͷϙʔτ൪߸͕ॏෳ͍ͯ͠Δͱ/(

  16. Կނ͔ɾɾɾ

  17. ͝੩ௌ͋Γ͕ͱ͏͍͟͝·ͨ͠ʂ