Repository navigation
feat(perf): 팬미팅 점검이 EC2 perf.env를 읽고 행사 번호를 인자로 받게 함 - #240
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.
프리뷰
EC2에서 측정 뒤 점검을 행사 번호만 주고 돌립니다. DB 접속 정보는 EC2의 perf 앱 설정
/opt/restless/perf.env에서 읽습니다.변경 사항
fanmeeting-check.shDB_HOST가 비어 있으면PERF_ENV_FILE(기본/opt/restless/perf.env)에서 DB 정보를 읽음. 한 줄씩 읽고source하지 않음. 비밀번호는 출력하지 않고 지금처럼MYSQL_PWD로만 넘김. 결과를 메신저·보고서에 붙여넣을 때 퍼지지 않게 DB 호스트도 찍지 않고 DB 이름만 표시EVENT_ID→EVENT_FILEINVARIANTS_SQL기본값을 레포의harness/fanmeeting-invariants.sql로SUMMARY_PATH는 행사 하나일 때만(여러 개면 거부)fanmeeting.md: EC2 사용법, 변수 표영향 도메인과 불변식
perf/scenarios/팬미팅 측정 도구만 변경했습니다(앱 코드, 테스트, 시드 변경 없음). 불변식 SQL과 판정은 그대로입니다.fanmeeting-s1.sh는 지금처럼 환경 변수로 호출하며 동작이 같습니다.테스트
로컬 MySQL 8.4 컨테이너(
perf-restless, 추첨이 끝난 행사 6개)와 가짜perf.env(PERF_ENV_FILE로 지정)로 확인했습니다. mysql 클라이언트가 없는 환경이라mysql:8.4컨테이너 대체 경로도 같이 탔습니다.fanmeeting-check.sh 4 5: 종료 0. 불변식 15개 0, 행사 4(응모 900, 선발 300/100, 주문 400)·5(응모 721) 차례로 출력. 출력에 비밀번호·DB 호스트 없음EVENT_FILE+SUMMARY_PATH): 201 = APPLIED 종료 0, 불일치 종료 1, 연결 오류·5xx 범위 안 차이 종료 0. 이전과 같음perf-가 아닌 DB, 해석 못 하는DB_URL, 설정 파일도DB_HOST도 없음DB_HOST를 직접 주면 설정 파일을 무시함(prod 호스트가 적힌 파일을 줘도 직접 준 값으로 통과)bash -n,git diff --check계약·문서 변경
perf/scenarios/fanmeeting.md만 변경했습니다. API 계약 변경은 없습니다남은 위험
fanmeeting-check.sh 4 5로 처음 확인합니다perf.env형식(DB_URL=jdbc:mysql://host:port/db)이 바뀌면 읽지 못하고 종료 2로 멈춥니다.perf-ec2.sh와 같은 가정입니다Closes #239