- 최신
- 최다 투표
- 가장 많은 댓글
네, 맞는 방향입니다. AWS DMS 태스크의 상태를 정확하게 파악하기 위해 'DescribeReplicationTasks' API 호출의 결과와 ReplicationTaskStats의 여러 필드를 조합하는 것은 좋은 접근 방식입니다. 각 상태에 대한 예시는 다음과 같습니다:
-
Creating: 태스크가 생성 중일 때 나타납니다. 이 때 DescribeReplicationTasks의 status는 "creating"일 것입니다.
-
Ready: 태스크가 생성되었지만 아직 시작되지 않았을 때입니다. status는 "ready"일 것입니다.
-
Starting: 태스크가 시작 중일 때 나타납니다. status는 "starting"일 것입니다.
-
Load running: 전체 로드 중일 때 나타납니다. status는 "running"이고, MigrationType이 "full-load" 또는 "full-load-and-cdc"이며, TableLoading > 0일 것입니다.
-
Load complete, replication ongoing: 전체 로드가 완료되고 CDC가 진행 중일 때입니다. status는 "running"이고, MigrationType이 "full-load-and-cdc"이며, TableLoaded가 전체 테이블 수와 같고 TableLoading이 0일 것입니다.
-
Replication ongoing: CDC만 진행 중일 때입니다. status는 "running"이고, MigrationType이 "cdc"일 것입니다.
-
Reloading target: 특정 테이블을 다시 로드하고 있을 때입니다. status는 "running"이고, TableLoading > 0일 것입니다.
-
Stopping: 태스크가 중지 중일 때 나타납니다. status는 "stopping"일 것입니다.
-
Stopped: 태스크가 중지되었을 때입니다. status는 "stopped"일 것입니다.
-
Failed: 태스크가 실패했을 때 나타납니다. status는 "failed"이고, TableErrored > 0일 수 있습니다.
이러한 방식으로 SDK의 여러 필드를 조합하여 DMS 태스크의 상세한 상태를 파악할 수 있습니다.
Sources
How to tell if a dms table is doing a full reload | AWS re:Post
Monitoring AWS DMS tasks - AWS Database Migration Service
Control table task settings - AWS Database Migration Service
관련 콘텐츠
- 질문됨 3달 전
- 질문됨 4달 전
- 질문됨 3달 전
- 질문됨 3달 전
- AWS 공식업데이트됨 2년 전
- AWS 공식업데이트됨 2년 전