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

Before Chaos Engineering

Before Chaos Engineering

Hazumi Ichijo

May 20, 2019
Tweet

More Decks by Hazumi Ichijo

Other Decks in Programming

Transcript

  1. ©2019 Wantedly, Inc. Chaos Engineeringͷ खલͷ࿩ golang.tokyo #24 May 20,

    2019 - Hazumi Ichijo (rerost/hazumirr) ΞϓϦέʔγϣϯΤϯδχΞ͚ͩͰͰ͖Δ͜ͱ
  2. ©2019 Wantedly, Inc. 1. ఆৗঢ়ଶʹ͓͚ΔৼΔ෣͍ͷԾઆΛཱͯΔ 2. ࣮ੈքͷࣄ৅͸ଟ༷Ͱ͋Δ 3. ຊ൪؀ڥͰݕূΛ࣮ߦ͢Δ 4.

    ܧଓతʹ࣮ߦ͢ΔݕূͷࣗಈԽ 5. ӨڹൣғΛہॴԽ͢Δ https://principlesofchaos.org/?lang=JAcontent# Ͳ͏͍ͬͨ͜ͱΛߦ͏͔
  3. ©2019 Wantedly, Inc. 1. ఆৗঢ়ଶʹ͓͚ΔৼΔ෣͍ͷԾઆΛཱͯΔ 2. ࣮ੈքͷࣄ৅͸ଟ༷Ͱ͋Δ 3. ຊ൪؀ڥͰݕূΛ࣮ߦ͢Δ 4.

    ܧଓతʹ࣮ߦ͢ΔݕূͷࣗಈԽ 5. ӨڹൣғΛہॴԽ͢Δ https://principlesofchaos.org/?lang=JAcontent# 43&ͱͷڠྗ΍૊৫త ͳରԠ͕ඞཁ Ͳ͏͍ͬͨ͜ͱΛߦ͏͔
  4. ©2019 Wantedly, Inc. 1. 1ඵؒͷಈը࠶ੜ਺ͳͲ 2. APIͷϨεϙϯε଎౓ͳͲ 1. ఆৗঢ়ଶʹ͓͚ΔৼΔ෣͍ͷԾઆΛཱͯΔ =>

    ͦΕΛकΔͨΊͷ΋ͷ͕ॏཁɻͦͷ֬ೝ͕Ͱ͖Ε͹͋Δఔ౓҆৺ ྫ: AWS͕region͝ͱμ΢ϯͨ͠ࡍɺଞͷregionʹfail over͢ΔͳͲ ྫ
  5. ©2019 Wantedly, Inc. 1. Πϯελϯε͕μ΢ϯ͢Δ 2. DB͕٧·ΔɾΞΫηεͰ͖ͳ͘ͳΔɹ 3. ґଘ͢ΔଞͷαʔϏε͕ෆ҆ఆʹͳΔ etc…

    2. ࣮ੈքͷࣄ৅͸ଟ༷Ͱ͋Δ => ͜͏͍ͬͨཁૉΛೖΕΒΕΔΑ͏ʹ͢Δ = Fault Injection
  6. ©2019 Wantedly, Inc. ࣗ෼ͷαʔϏε  ൪୆Λฦ͢  ஗͘ͳΔ  ઃఆ͍ͯ͠ΔλΠϜΞ΢

    τΑΓϨεϙϯε͕஗͍ JOUFSDFQUPS 4FSWJDF" 4FSWJDF# Fault Injectionͱͦͷ֬ೝ
  7. ©2019 Wantedly, Inc. ࣗ෼ͷαʔϏε  ൪୆Λฦ͢  ஗͘ͳΔ  ઃఆ͍ͯ͠ΔλΠϜΞ΢

    τΑΓϨεϙϯε͕஗͍ JOUFSDFQUPS 4FSWJDF" 4FSWJDF# { "interval": 1, "slow_response_option": { "enable": true, "time": 5 }, "server_error_option": { "enable": true } } Fault Injectionͱͦͷ֬ೝ
  8. ©2019 Wantedly, Inc. ࣗ෼ͷαʔϏε  ൪୆Λฦ͢  ஗͘ͳΔ  ઃఆ͍ͯ͠ΔλΠϜΞ΢

    τΑΓϨεϙϯε͕஗͍ JOUFSDFQUPS 4FSWJDF" 4FSWJDF# Fault Injectionͱͦͷ֬ೝ
  9. ©2019 Wantedly, Inc. 4FSWJDF" 4FSWJDF# $MPVE1VC4VC  ॏෳ഑৴Λ͢Δ  1VCMJTIͨ͠ॱ൪Ͱ഑৴͠ͳ͍

    1VCMJTI 4VCTDSJCF ϥΠϒϥϦ͕ߦ͏ͷͰ JOUFSDFQUPSΛڬΊͳ͍ Fault Injectionͱͦͷ֬ೝ
  10. ©2019 Wantedly, Inc. 4FSWJDF" 4FSWJDF# $MPVE1VC4VC 1VCMJTI 4VCTDSJCF 1SPYZ 1SPYZ

     ॏෳ഑৴Λ͢Δ  1VCMJTIͨ͠ॱ൪Ͱ഑৴͠ͳ͍ Fault Injectionͱͦͷ֬ೝ