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

AWSで冗長化するときに知っておきたいあれこれについてまとめた

yasuo424
March 22, 2016

 AWSで冗長化するときに知っておきたいあれこれについてまとめた

yasuo424

March 22, 2016
Tweet

More Decks by yasuo424

Other Decks in Technology

Transcript

  1. Auto Scalingͷجຊతͳߏ੒ Elastic Load Balancing Amazon CloudWatch alarm Auto Scaling

    instance instance instance ᶃϦιʔεͷ؂ࢹ ᶄᮢ஋Λ௒͑ͨΒΞϥʔϜ ᶅAuto Scalingͷൃಈ ᶆ৽نΠϯελϯεͷ࡞੒
  2. εέʔϦϯάϙϦγʔͷύϥϝʔλ ߲໨໊ આ໌ ໊લ 4DBMJOH1PMJDZͷ໊લ ࣍ͷ৔߹ʹϙϦγʔΛ࣮ߦ 4DBMJOH1PMJDZΛ࣮ߦ͢Δ৚݅ $MPVE8BUDIͷ"MBSNͰઃఆ ΞΫγϣϯΛ࣮ߦ "VUP4DBMJOHάϧʔϓʹॴଐ͢ΔΠϯελϯεͷ૿ݮ਺ͷઃఆ

    ͦͷޙ଴ػ ଞͷεέʔϦϯάॲཧ͕࣮ߦ͞Ε͍ͯΔ৔߹ͷ଴ͪ࣌ؒ ߲໨໊ આ໌ ໊લ 4DBMPVUQPMJDZ ࣍ͷ৔߹ʹϙϦγʔΛ࣮ߦ $MPVE8BUDIͰඵؒ"VUP4DBMJOHάϧʔϓͷ$16ฏۉ஋ ͕Ҏ্ʹͳͬͨ৔߹ ΞΫγϣϯΛ࣮ߦ Πϯελϯε਺Λͭ૿΍͢ ͦͷޙ଴ػ ඵؒଞͷεέʔϦϯάΛ଴ͭ εέʔϧΞ΢τϙϦγʔઃఆྫ
  3. ΞϓϦέʔγϣϯͷσϓϩΠͲ͏͢Δͷʁ ύλʔϯ1: AMIʹࣄલʹσϓϩΠ Elastic Load Balancing instance instance instance instance

    Auto Scaling AMI AMI ৽͍͠όʔδϣϯͷΞϓϦΛσ ϓϩΠͨ͠EC2ΠϯελϯεΛ AMIʹͯ͠ىಈઃఆΛ࠶࡞੒ɺ Auto Scalingάϧʔϓʹઃఆ͠ ௚͠ɻ·ͨطଘͷΠϯελϯε ͸ݹ͍··ͳͷͰɺͦͪΒʹΞ ϓϦΛσϓϩΠ͢Δ͔ɺEC2Π ϯελϯεΛ1୆ͣͭऴྃͯ͠ AMI͔Βࣗಈىಈ
  4. ΞϓϦέʔγϣϯͷσϓϩΠͲ͏͢Δͷʁ ύλʔϯ2: ىಈΠϯελϯε͝ͱʹσϓϩΠ Elastic Load Balancing instance instance instance Auto

    Scaling AMI EC2Πϯελϯε͕Auto ScalingʹΑΓىಈ͠ ͨࡍʹΞϓϦͷσϓϩΠ΋ࣗಈతʹߦ͏ɻ ۩ମతʹ͸git΍S3౳ͷετϨʔδʹอଘ͞Ε ͍ͯΔ৽͍͠ΞϓϦΛऔಘ͢ΔΑ͏͋Β͔͡ ΊAMIʹεΫϦϓτΛ࡞੒ͯ͠อଘɻ
  5. ηογϣϯ৘ใ͸Ͳ͏͢Δͷʁ Elastic Load Balancing instance instance instance ηογϣϯ৘ใ ElastiCache ϩʔυόϥϯαʹΑͬͯΞΫη

    ε͍ͯ͠ΔΠϯελϯε͕มΘ Δ or εέʔϧΠϯ͞ΕͯΠϯε λϯε͕࡟আ͞Εͨ৔߹ɺηο γϣϯ৘ใ͕ࣦΘΕΔɻ ϝϞϦΩϟογϡ؅ཧ༻ͷσʔ λϕʔεΛ༻ҙ(ElastiCache)͠౷ ߹తʹηογϣϯ৘ใͳͲͷσʔ λΛ֨ೲ
  6. ෛՙ֬ೝํ๏ 1. yesίϚϯυ ZFTEFWOVMMͱ͔ʜ ZFTEFWOVMM ZFTEFWOVMMͭͷϓϩηεΛ࢖͏ ZFTEFWOVMM ZFTEFWOVMM 2. stressίϚϯυΛΠϯετʔϧͯ͠࢖͏

    TVEPZVNJOTUBMMTUSFTTZ 3. JmeterΛ࢖͏ ࢀߟ: http://dev.classmethod.jp/server-side/server/use-stress-tool-on-ec2/ ࢀߟ: http://www.techscore.com/tech/Java/ApacheJakarta/JMeter/index/