Repository navigation
feat(fanmeeting): 부하 측정에 게릴라 오픈 시나리오(G) 추가 - #237
Merged
Merged
Conversation
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.
프리뷰
게릴라 오픈(
opens_at_public=false) 행사의 오픈 순간을 재는 시나리오 G를 추가합니다. 오픈 시각을 모르는 회원들이 상세를 새로고침하다가 OPEN이 보이는 순간 응모하므로, 오픈 전 새로고침 폭주 위에 응모 몰림이 얹히는 상황입니다. 기존 A·B·C에는 오픈 전 상세 조회 부하가 없었습니다.변경 사항
fanmeeting-apply.jsSCENARIO=G추가 (기본START_OFFSET=-60s,POLL_MIN=1s,POLL_MAX=3s,OPEN_WAIT=120s)WINDOW_CLOSED0에 더해, 상세 조회 오류(5xx·연결·기타) 0, OPEN을 끝내 못 본 회원(fm_never_saw_open) 0fm_detail_duration), 오픈 시각부터 OPEN을 처음 본 때까지(fm_open_seen_after_ms), 오픈 기준 응모 시각 분포(기존 구간 집계)guerrilla) 확인. 숨겨져 있지 않으면 경고apply()로 묶음. 동작은 같고 판정도 그대로입니다(아래 회귀 확인)fanmeeting-s1.sh:GUERRILLA,PREOPEN,POLL_MIN,POLL_MAX,OPEN_WAIT추가.GUERRILLA=true면OPENS_AT_PUBLIC=false로 행사를 만들고 A·B 대신apply-G단계. 조건과 한 장 요약에 G 결과를 표시fanmeeting-metrics.sh: 요약에 톰캣 동시 연결(tomcat_connections_current_connections, 유지 연결 포함)과 한도(max_connections)를 추가. 새로고침이 연결 한도(기본 8,192)에 얼마나 다가가는지 보려는 것fanmeeting.md: 시나리오 표, s1·k6 변수 표, 측정 순서(G 행), 요약 항목영향 도메인과 불변식
perf/scenarios/팬미팅 측정 도구만 변경했습니다(앱 코드, 테스트, 시드 변경 없음). 측정 뒤 INV-FM 점검은 지금과 같습니다.테스트
실서버에는 요청하지 않았습니다. 로컬 가짜 서버(오픈 시각에 상태가 OPEN으로 바뀌고, 오픈 전 응모는 409)와 Docker k6 2.4.0으로 확인했습니다.
1초 205명·12초 94명(새로고침 간격만큼 퍼짐), OPEN을 본 시각 p95 1.6초fm_detail_server_errorfm_busy,fm_appliedOPEN_WAIT=5s): 종료 99,fm_never_saw_open300,fm_requests,fm_appliedfanmeeting-s1.sh끝까지(GUERRILLA=true PARTICIPANTS=300 PREOPEN=15s POLL_MIN=1s POLL_MAX=2s CLOSE_PARTICIPANTS=0): 종료 0apply-G-dashboard.html,result-dashboard.html생성tomcat connections 501/8192 (keep-alive 500)표시 확인bash -n(s1, metrics),git diff --check계약·문서 변경
perf/scenarios/fanmeeting.md만 변경했습니다. API 계약 변경은 없습니다남은 위험
Closes #236