Conversation
부하테스트 시 EC2를 헤더 기반 인증(loadtest 프로파일)으로 띄우기 위해 SPRING_PROFILES_ACTIVE를 변수화하여 .env로 주입. - variables.tf: spring_profiles_active (기본 prod) - main.tf: env_content에 SPRING_PROFILES_ACTIVE 추가 - tfvars.example: prod,loadtest 토글 안내
- 터미널에 전체 요약(p95/처리량) + 핵심 지표(성공률/정원 정합성) 강조 출력 - 실행 결과를 loadtest/results/*.json 으로 저장 (단일 vs 다중 비교용) - results 덤프는 .gitignore 처리 (필요한 것만 수동 add)
- setResponseCallback(expectedStatuses(200,400)): 정원참 등 비즈니스 거절(400)을 정상으로 취급 -> http_req_failed는 실제 실패(5xx)만 집계 - 경합 스크립트: confirm 400을 capacity_full로 정확히 분류 (confirm 에러가 HTML로 내려와 body 파싱 불가 -> HTTP 상태로 판정)
- summaryTrendStats에 p(99) 추가 (기본 통계엔 p99 없음) - highlight의 지표 접근을 null-safe 처리
- 요청 단계별(apply/try/confirm) 태그 부여 - 5xx/네트워크 오류를 단계별 카운터로 집계 -> 실패 위치 파악 - 요약에 "5xx 발생 단계" 표시 (http_req_failed를 단계별로 분해) - README: 서버 로그 grep으로 실패 원인 확정 + 시계열/무릎 분석 가이드
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
❤️ 기능 설명
스크립트를 보강합니다.
연결된 issue
연결된 issue를 자동으로 닫기 위해 아래 {이슈넘버}를 입력해주세요.
close #{}
✅ 체크리스트