[FEAT] 비동기 작업 유실 완화를 위한 Graceful Shutdown 적용#96
Closed
KoungQ wants to merge 2 commits into
Hidden character warning
The head ref may contain hidden characters: "feat/#89/\ube44\ub3d9\uae30-\uc791\uc5c5-\uc720\uc2e4-\uc644\ud654\ub97c-\uc704\ud55c-graceful-shutdown-\uc801\uc6a9"
Closed
Conversation
Member
Author
|
@coderabbitai review |
✅ Actions performedReview triggered.
|
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.
📌 제목
📢 요약
🔗 연관 이슈: Resolves #89
🚀 PR 유형
✅ PR 체크리스트
📜 기타
application-prod.yml에server.shutdown=graceful,spring.lifecycle.timeout-per-shutdown-phase=30s를 적용했습니다.application-prod.yml에 readiness/liveness probe를 활성화해/actuator/health/readiness,/actuator/health/liveness를 운영 헬스체크 경로로 사용할 수 있게 했습니다.Dockerfile은exec java ...형태로 수정해SIGTERM이 JVM에 직접 전달되도록 변경했습니다.docker-compose.yml의backend서비스에stop_grace_period: 45s를 추가해 앱의 30초 종료 대기 시간을 컨테이너 레벨에서 보장하도록 했습니다.prod프로필 기동으로 수행했습니다.SIGTERM전송 시 readiness가REFUSING_TRAFFIC으로 전환되고, 진행 중이던 15초 요청이200 OK로 완료된 뒤 프로세스가 종료되는 것을 확인했습니다./actuator/health/readiness를 기준으로 트래픽 드레이닝을 수행해야 합니다.