Test ‐ Chaos Monkey - dnwls16071/Backend_Study_TIL GitHub Wiki

📚 카오스 엔지니어링 툴

  • 프로덕션 환경, 분산 시스템 환경에서 불확실성을 파악하고 해결 방안을 모색하는데 사용하는 툴

📚 Chaos Monkey

spring.profiles.active=chaos-monkey
management.endpoint.chaosmonkey.enabled=true
management.endpoints.web.exposure.include=health,info,chaosmonkey

📚 응답 지연 이슈 재현 방법

  • Repository Watcher 활성화
chaos.monkey.watcher.repository=true
  • Chaos Monkey 활성화
http post localhost:8080/actuator/chaosmonkey/enable
  • Chaos Monkey 활성화 확인
http localhost:8080/actuator/chaosmonkey/status
  • Chaos Money Watcher 확인
http localhost:8080/actuator/chaosmonkey/watchers
  • Chaos Monkey 지연 공격 설정
http POST localhost:8080/actuator/chaosmonkey/assaults level=3 latencyRangeStart=2000 latencyRangeEnd=5000 latencyActive=true