[P1] [인프라] 작업용 DB 동기화 절차 안정화 및 자동화 #13
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
문제
작업용
8081DB를 공개용8080기준으로 맞추는 절차가 현재 안정적이지 않습니다.실제 확인된 문제:
seat_positions스키마 차이로 중간 실패 가능members.seat_label과 실제seat_positions가 어긋난 상태가 발생 가능배경
현재 운영 방식은
8080: 운영 기준 데이터8081: 기능 검증용이므로, 작업용 DB는 반복 가능하고 신뢰 가능한 방식으로 공개용 기준에 맞춰져야 합니다.
해야 할 일
members.seat_label같은 파생 필드는 원본 기준으로 재생성완료 조건
2026-03-30 정리
작업용 DB 동기화 절차를 현재 8081 운영 방식 기준으로 다시 고정했습니다.
반영 내용:
docker-compose.8081.yml추가8081작업용 stack을 repo 안에서 바로 올릴 수 있게 정리mh-dashboard-organization-devscripts/sync_prod_db_to_dev.sh보강docker-compose.8081.yml기준으로 사용8081의proxy/frontend/backend를 잠시 멈춰 deadlock / partial read 방지seat_positionsportable restore 유지members.seat_label,auth.users, history backfill 재정렬./scripts/sync_prod_db_to_dev.sh minimal실행 완료members=227member_retirements=9seat_maps=21seat_slots=57308seat_positions=0seat_positions_without_slot=0members_with_seat_label=0seat_label_mismatch=0auth_users=228현재 판단:
analysis,full범위는 같은 구조로 확장해서 사용하면 된다.