연속 (진행 중 또는 온라인이라고도 함) 마이그레이션은 초기 전체 덤프 및 로드 이후에 소스 PostgreSQL 데이터베이스에서 PostgreSQL용 AlloyDB 대상 데이터베이스로 변경사항을 지속적으로 전송하는 것입니다. 이전의 경우 읽기 및 쓰기에 대상을 사용하도록 전환할 때 promote 작업을 실행합니다. 승격은 대상 인스턴스가 소스에서 연결 해제되고 복제본 인스턴스에서 기본 인스턴스로 승격된다는 의미입니다.
연속 마이그레이션은 다음 단계를 따릅니다.
처음에는 소스 데이터베이스의 스냅샷이 생성됩니다.
이렇게 하면 덤프가 생성될 때마다 데이터베이스 테이블이 한 번씩 잠깁니다 (10초 미만). 소스는 계속해서 쓰기를 수락할 수 있습니다.
초기 덤프가 완료되면 대상에 로드됩니다.
로드가 완료되면 진행 중인 변경사항 (변경 데이터 캡처 또는 CDC라고도 함)이 처리됩니다.
대상 사용으로 전환할 때가 되면 소스에 대한 쓰기를 중지하고 프로모션을 시작합니다. 이렇게 하면 애플리케이션이 대상 데이터베이스를 읽고 쓸 수 있습니다.
종속 애플리케이션은 승격 결정 시 복제 지연 시간 동안 다운타임이 발생할 수 있습니다.
일회성 이전
이 유형의 마이그레이션은 데이터베이스의 단일 시점 스냅샷으로 소스에서 가져와서 대상에 적용합니다. 이는 기본적으로 덤프 및 로드이며, 로드가 완료되면 대상을 사용할 준비가 됩니다. 소스 데이터베이스에 종속된 애플리케이션은 마이그레이션이 진행되는 동안 이 데이터베이스에 새 쓰기를 할 수 없으므로 마이그레이션 프로세스 중에 다운타임이 발생할 수 있습니다.
일회성 이전은 다음 단계를 따릅니다.
소스 데이터베이스에 쓰기를 중지합니다.
소스 데이터베이스의 덤프를 시작합니다.
덤프가 완료되면 대상에 로드됩니다. 로드가 완료되면 프로모션이 자동으로 시작됩니다. 이제 대상 데이터베이스가 기본 데이터베이스가 되며 종속 애플리케이션은 이 데이터베이스를 읽고 써야 합니다.
[[["이해하기 쉬움","easyToUnderstand","thumb-up"],["문제가 해결됨","solvedMyProblem","thumb-up"],["기타","otherUp","thumb-up"]],[["이해하기 어려움","hardToUnderstand","thumb-down"],["잘못된 정보 또는 샘플 코드","incorrectInformationOrSampleCode","thumb-down"],["필요한 정보/샘플이 없음","missingTheInformationSamplesINeed","thumb-down"],["번역 문제","translationIssue","thumb-down"],["기타","otherDown","thumb-down"]],["최종 업데이트: 2025-04-22(UTC)"],[[["Continuous migration involves an initial snapshot of the source PostgreSQL database, followed by a continuous stream of changes to the AlloyDB destination, allowing for minimal downtime during the final switch."],["Continuous migration includes taking an initial database snapshot, loading it into the destination, processing ongoing changes, and finally promoting the destination to primary status."],["One-time migration, which is currently unavailable for AlloyDB, involves a single snapshot of the source database and applying it to the destination, requiring a halt in writes to the source during the migration."],["Replication delay is the time between when a write occurs on the source and the current time, which will account for the downtime during a continuous migration switch."]]],[]]