읽기 처리량과 가용성을 높이려면 기존 AlloyDB Omni 서버의 AlloyDB Omni 복제 서버를 만들 수 있습니다. 복제 서버는 기본 데이터베이스 서버의 읽기 전용 클론을 제공합니다. 기본 서버의 데이터 변경사항을 반영하도록 자체 데이터를 지속적으로 업데이트합니다.
다음 섹션에서는 복제를 위해 AlloyDB Omni 기본 서버를 구성하고, 복제 서버를 구성하고, 기본 서버에서 복제 상태를 확인하는 단계를 설명합니다.
복제용 기본 서버 구성
TCP 포트 5432를 통해 복제본 서버 호스트의 인그레스 트래픽을 허용하도록 기본 서버 호스트의 네트워크 또는 방화벽 설정을 업데이트합니다.
[[["이해하기 쉬움","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-03-06(UTC)"],[[["AlloyDB Omni replica servers offer read-only clones of the primary database, enhancing read throughput and availability by continuously updating with the primary server's data."],["Configuring a primary server for replication involves updating network/firewall settings to allow ingress traffic from the replica and modifying the `/var/alloydb/config/pg_hba.conf` file to permit connections."],["Creating a replica server requires installing AlloyDB Omni and using the `alloydb database-server install` command with specific flags, including the data directory, port, source IP, and source port of the primary server."],["To ensure the replica is correctly set up, network connectivity to the primary server must be confirmed via a `ping` command, and the replica must be started using `sudo alloydb database-server start`."],["Replication status can be verified on the primary server using a `docker exec` command that checks the `pg_stat_replication` table, and once configured, changes on the primary server reflect on the replica within seconds."]]],[]]