Skip to content

fix: 배포 헬스체크를 로그 기반 완료 신호 감지 방식으로 변경 (prod)#199

Merged
unam98 merged 1 commit into
mainfrom
fix/prod-deploy-healthcheck
Jul 24, 2026
Merged

fix: 배포 헬스체크를 로그 기반 완료 신호 감지 방식으로 변경 (prod)#199
unam98 merged 1 commit into
mainfrom
fix/prod-deploy-healthcheck

Conversation

@unam98

@unam98 unam98 commented Jul 24, 2026

Copy link
Copy Markdown
Collaborator

작업 배경

  • prod가 쓰는 main 브랜치의 deploy.sh가 여전히 고정 타임아웃(15초+10회x10초) 기반 헬스체크를 쓰고 있었음
  • dev 환경에서 OTel 에이전트를 붙이며 부팅 시간이 늘어나 실제로 성공한 배포를 실패로 오판하는 사고가 있었고, 같은 스크립트를 쓰는 prod도 동일한 버그를 그대로 갖고 있는 상태였음

변경 사항

영역 내용
scripts/deploy.sh 고정 초 카운팅 대신 kill -0 $PID(프로세스 생존 확인) + 로그의 Started ServerApplication 신호 감지로 성공/실패 판단 로직 교체

영향 범위

  • prod 배포 스크립트만 변경, 애플리케이션 코드/런타임 동작에는 영향 없음
  • appspec.ymlAfterInstall 훅 타임아웃(300초)은 main/dev 동일하여 별도 조정 불필요
  • 이 diff는 dev 브랜치(PR fix: 배포 헬스체크를 로그 기반 완료 신호 감지 방식으로 변경 #196)에서 이미 검증된 변경사항을 그대로 cherry-pick한 것 — OTel 에이전트, Redis 설정 등 dev의 다른 변경사항은 포함하지 않음

Test Plan

🤖 Generated with Claude Code

고정 타임아웃(15초+10회x10초)으로 성공/실패를 판단하던 방식이
OTel 에이전트 부팅 시간 증가로 성공한 배포를 실패로 오판하는
문제가 있어, 프로세스 생존 여부(kill -0)와 로그의
"Started ServerApplication" 신호 감지로 대체.

dev 브랜치(PR #196)에서 이미 검증된 수정을 prod가 쓰는
main 브랜치에도 반영.
@unam98 unam98 self-assigned this Jul 24, 2026
@coderabbitai

coderabbitai Bot commented Jul 24, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 86b5d44b-ba62-4512-9b57-488855c80f79

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/prod-deploy-healthcheck

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.

@unam98
unam98 merged commit ce52d63 into main Jul 24, 2026
2 checks passed
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.

2 participants