DMS Task 콘솔 Status의 값 조합하기

0

Creating Ready Starting Load running Load complete, replication ongoing Replication ongoing Reloading target Stopping Stopped Failed 위 항목들의 값을 만들어 내기 위해 sdk상에서 'DescribeReplicationTasks'의 status와 types.ReplicationTask.ReplicationTaskStats의 TableErrored, TableLoaded, TableLoading, Table Queued 그리고 MigrationType을 참고하려고 하는데 맞는 방향인가요? 각각의 예시도 알려주세요.

질문됨 3달 전41회 조회
1개 답변
0

네, 맞는 방향입니다. AWS DMS 태스크의 상태를 정확하게 파악하기 위해 'DescribeReplicationTasks' API 호출의 결과와 ReplicationTaskStats의 여러 필드를 조합하는 것은 좋은 접근 방식입니다. 각 상태에 대한 예시는 다음과 같습니다:

  1. Creating: 태스크가 생성 중일 때 나타납니다. 이 때 DescribeReplicationTasks의 status는 "creating"일 것입니다.

  2. Ready: 태스크가 생성되었지만 아직 시작되지 않았을 때입니다. status는 "ready"일 것입니다.

  3. Starting: 태스크가 시작 중일 때 나타납니다. status는 "starting"일 것입니다.

  4. Load running: 전체 로드 중일 때 나타납니다. status는 "running"이고, MigrationType이 "full-load" 또는 "full-load-and-cdc"이며, TableLoading > 0일 것입니다.

  5. Load complete, replication ongoing: 전체 로드가 완료되고 CDC가 진행 중일 때입니다. status는 "running"이고, MigrationType이 "full-load-and-cdc"이며, TableLoaded가 전체 테이블 수와 같고 TableLoading이 0일 것입니다.

  6. Replication ongoing: CDC만 진행 중일 때입니다. status는 "running"이고, MigrationType이 "cdc"일 것입니다.

  7. Reloading target: 특정 테이블을 다시 로드하고 있을 때입니다. status는 "running"이고, TableLoading > 0일 것입니다.

  8. Stopping: 태스크가 중지 중일 때 나타납니다. status는 "stopping"일 것입니다.

  9. Stopped: 태스크가 중지되었을 때입니다. status는 "stopped"일 것입니다.

  10. 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

profile picture
답변함 3달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인