PostgreSQL용 AlloyDB는 지역 및 ZONE 인스턴스 유형을 제공합니다. 고가용성 (HA)을 보장하기 위해 모든 지역 AlloyDB 기본 인스턴스에는 두 개의 서로 다른 영역에 있는 활성 노드와 대기 노드가 모두 있습니다. 어떤 이유로든 활성 노드를 사용할 수 없게 되면 AlloyDB는 대기 노드를 자동으로 승격하여 새 활성 노드로 만듭니다.
오류 주입을 사용하여 기본 인스턴스의 활성 노드를 갑자기 오프라인으로 전환하여 이 자동 HA 기능을 테스트할 수 있습니다. 그러면 AlloyDB는 기본 인스턴스의 상태를 확인한 후 대기 노드를 활성 노드 역할로 재할당하는 긴급 HA 절차를 활성화합니다.
또한 오류 주입은 잠시 후 이전 활성 노드를 다시 온라인 상태로 전환하는 장기 실행 작업을 시작합니다. 이 노드는 기본 인스턴스의 새 대기 노드가 됩니다.
[[["이해하기 쉬움","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-21(UTC)"],[[["AlloyDB for PostgreSQL ensures high availability by utilizing an active and a standby node for each regional primary instance, located in separate zones."],["Fault injection can be used to test AlloyDB's high availability feature by abruptly forcing the primary instance's active node offline."],["Upon detecting an active node failure, AlloyDB automatically promotes the standby node to the active role and then later brings the former active node back online as the new standby."],["To perform a fault injection for HA testing, use the `gcloud alloydb instances inject-fault` command, specifying instance, region, cluster, and project IDs."],["Basic instances are not applicable for fault injection testing due to the absence of a standby node for failover."]]],[]]