fix(docker): mc-infra-connector에 metadb postgres depends_on 추가 - #91
Merged
Merged
Conversation
… Wave 1 실패 수정) - mc-infra-connector가 mc-infra-connector-postgres(healthy)에 의존하도록 depends_on 추가 - .env.setup에 누락된 MC_INFRA_CONNECTOR_POSTGRES_HOST_PORT(6433) 추가
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.
문제
클린 설치 시
installAll.shWave 1에서 기동 실패원인
mc-infra-connector-postgres로 분리됨mc-infra-connector에depends_on이 없음installAll.sh의 Wave는 대표 서비스만 나열하고 나머지는 depends_on 체인으로 기동된다고 가정함 → Wave 1에서 postgres가 기동되지 않음mc-infra-connector-postgres:5432를 찾지 못해 exit 2 재시작 루프에 빠지고, infra-manager가 readyz 대기 끝에 unhealthy가 되어 Wave 1 실패추가로
.env.setup에MC_INFRA_CONNECTOR_POSTGRES_HOST_PORT가 없어 포트가:5432로 풀리면서 postgres가 호스트의 랜덤 포트에 노출되던 문제도 함께 수정함변경
conf/docker/docker-compose.yaml:mc-infra-connector에depends_on: mc-infra-connector-postgres (condition: service_healthy)추가. postgres에는 기존pg_isreadyhealthcheck가 있음conf/docker/.env.setup:MC_INFRA_CONNECTOR_POSTGRES_HOST_PORT=6433추가(infra-manager postgres 6432 옆). 기존.env에는 installAll의sync_missing_env_vars가 자동으로 채움docker-compose.mini.yaml은 cb-spider 0.12.18 + SQLite meta_db를 써서 해당 없음