1.12. 요약 프로세스 수동 실행
요약 프로세스를 수동으로 실행하여 작업이 트리거되지 않거나 실행되지 않은 날의 초기 규정 준수 상태를 복원할 수 있습니다. 요약 프로세스를 수동으로 실행하려면 다음 단계를 완료합니다.
- 이전 날의 규정 준수 기록을 복구 날짜 기록의 초기 상태로 사용합니다.
데이터베이스에 연결합니다.
pgAdmin
및table
Cryostath와 같은 클라이언트를 사용하여 multicluster 글로벌 허브 데이터베이스에 연결할 수 있습니다. 또는 다음 명령을 실행하여 클러스터의 데이터베이스에 직접 연결할 수 있습니다.oc exec -it multicluster-global-hub-postgres-0 -n multicluster-global-hub -- psql -d hoh
oc exec -it multicluster-global-hub-postgres-0 -n multicluster-global-hub -- psql -d hoh
Copy to Clipboard Copied! 요약 프로세스를 실행할 날짜를 결정합니다(예:
2023-07-06
).대시보드 메트릭 또는
history.local_compliance_job_log
테이블에서 로컬 규정 준수 작업 실패 정보를 찾습니다. 이 예에서 날짜는2023-07-06
이므로2023-07-06
은 요약 프로세스를 수동으로 실행해야 하는 날짜임을 알고 있습니다.다음 SQL을 실행하여
2023-07-06
의 초기 규정 준수를 복구합니다.-- call the func to generate the initial data of '2023-07-06' by inheriting '2023-07-05' CALL history.generate_local_compliance('2024-07-06');
-- call the func to generate the initial data of '2023-07-06' by inheriting '2023-07-05' CALL history.generate_local_compliance('2024-07-06');
Copy to Clipboard Copied!