Skip to content

[Test] OpenSQL HA 실시간 관측과 k6 원격 지표 대조 - #447

Merged
Gimini-3 merged 8 commits into
developfrom
test/446
Oct 8, 2026
Merged

Gimini-3 merged 8 commits into
developfrom
test/446

Conversation

@Gimini-3

@Gimini-3 Gimini-3 commented Oct 8, 2026 •

Copy link
Copy Markdown
Contributor

Closes #446

목적

장애 시연의 앱 A/B·Patroni DB 3대·k6 결과를 별도 관측 VM에서 같은 시간축에 수집합니다. 요청 ID 원장과 DB 대조는 여전히 정합성 판정 기준입니다.

변경

  • 태그 없는 k6 결과별 Counter(201·500·503·기타 실패·결과 불명)와 JSONL/Remote Write 병행 출력
  • 사설 수신 URL 제한, 실행 ID별 마지막 Counter와 안전 원장 합계 대조, stale marker
  • DB 호스트의 metrics-only 게이트웨이로 Patroni GET /metrics만 전달하고 관측 VM의 무인증 관리 REST 접근을 차단
  • GCP 현재 상태·관측 VM·접근 경계·합성 Remote Write 실행을 목적별 비식별 문서로 기록

검증

  • Python 관련 회귀 22/22, Bash·JS 구문, k6 2.3.0 inspect 최종 통과
  • Prometheus: 앱 2/2·Patroni 3/3 UP, primary 역할 지표 1/3
  • Grafana: 무인증 401, 관리자 인증 200, loopback 전용
  • 합성 k6 1회: 안전 이벤트 2건, 201 Counter 예상/관측 1/1, JSONL 태그 0/5
  • 외부에서 관측 VM 22·3000·9090 연결 불가; 부하 VM 9090 접근 가능, 앱 VM 접근 불가
  • Prometheus active target 5/5: 앱 8081 2대·DB 지표 전용 18008 3대. 관측 VM→Patroni 관리 8008 차단 3/3, LB health 2/2

한계

만료 전 시험 JWT가 없어 실제 HA probe HTTP 쓰기나 장애 주입은 이번 PR에서 실행하지 않았습니다. 마지막 Counter 일치는 중간 시계열 공백이나 DB RPO를 보증하지 않습니다. OpenProxy·etcd 자체 시계열 패널은 후속 범위입니다. 초기에는 관측 VM에서 8008 관리 포트가 열렸고, 허용 규칙 삭제 뒤에도 기존 VPC 내부 허용 때문에 3/3 OPEN이었습니다. 명시적 출처별 DENY로 수정했으며, 기존 다른 내부 VM의 Patroni 8008 접근 정책 전체는 이번 PR에서 변경하지 않았습니다. 초기 테스트 탐색·k6 inspect 입력 오류와 재실행 결과도 문서에 보존했습니다.

@coderabbitai

coderabbitai Bot commented Oct 8, 2026 •

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration
  • Configuration used: Repository: DocGrid/docgrid/.coderabbit.yaml
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: ea9c7211-5fc5-4894-81aa-f81513a712f8
  • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@Gimini-3
Gimini-3 merged commit 9ba3e51 into develop Oct 8, 2026
1 check passed
@Gimini-3 Gimini-3 self-assigned this Oct 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Test] OpenSQL HA 실시간 관측 경로와 k6 결과 대조

1 participant