Repository navigation
fix(cost): add restart policy to mc-cost-optimizer-db - #90
Merged
Merged
Conversation
mc-cost-optimizer-db had no restart policy (default: no), so it was not brought back after a host reboot while the dependent cost services (restart: on-failure) kept crash-looping on UnknownHostException. Align with other DB services in the file by using restart: always.
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.
문제
서버 재가동 후
mc-cost-optimizer-db만 다시 올라오지 않았습니다.conf/docker/docker-compose.yaml의mc-cost-optimizer-db에restart설정이 없어 기본값no가 적용됩니다.restart: on-failure)는UnknownHostException: mc-cost-optimizer-db로 재시작을 반복하고, BE는 unhealthy 상태가 되어/api/costopti/be/invoice/getInvoice등이 실패했습니다.변경
mc-cost-optimizer-db에restart: always추가 (같은 파일의 다른 DB 서비스와 동일)반영
기존 컨테이너는 재생성해야 적용됩니다:
docker compose up -d mc-cost-optimizer-db(데이터 볼륨 유지, 이미지 12.3.2 동일)또는
docker update --restart always mc-cost-optimizer-db