10.3. 복제본의 단조화를 방지하기 위해 공급업체 구성
이 절차에서는 복제본의 단조화를 방지하기 위해 공급업체에서 매개변수를 설정하는 방법을 설명합니다.
환경과 로드의 차이로 인해 해당 상황에서 관련된 매개변수만 설정하고 환경에 따라 값을 조정합니다.
사전 요구 사항
- 복제 토폴로지에는 여러 공급업체가 있습니다.
-
Directory Server는 자주 로그
Replica Busy! 상태: [Error (1) 복제 오류 replica: replica busy]
오류입니다.
절차
nsds5ReplicaBusyWaitTime
매개변수를 설정하여 복제본이 사용 중인 응답을 보낸 후 복제본에 대한 액세스 권한을 얻기 전에 공급업체가 대기하는 시간을 설정합니다.dsconf -D "cn=Directory Manager" ldap://supplier.example.com repl-agmt set --suffix "dc=example,dc=com" --busy-wait-time 5 replication_agreement_name
# dsconf -D "cn=Directory Manager" ldap://supplier.example.com repl-agmt set --suffix "dc=example,dc=com" --busy-wait-time 5 replication_agreement_name
Copy to Clipboard Copied! 이 명령은 대기 시간을
5
초로 설정합니다. 이 설정은 지정된 복제 계약에만 적용됩니다.공급업체가 두 개의 업데이트 세션 사이에 대기하는 시간을 구성하려면
nsds5ReplicaSessionPauseTime
매개변수를 설정합니다.dsconf -D "cn=Directory Manager" ldap://supplier.example.com repl-agmt set --suffix "dc=example,dc=com" --session-pause-time 15 replication_agreement_name
# dsconf -D "cn=Directory Manager" ldap://supplier.example.com repl-agmt set --suffix "dc=example,dc=com" --session-pause-time 15 replication_agreement_name
Copy to Clipboard Copied! 이 명령은 일시 중지를
15
초로 설정합니다. 기본적으로nsds5ReplicaSessionPauseTime
은nsds5ReplicaBusyWaitTime
의 값보다 1초입니다. 이 설정은 지정된 복제 계약에만 적용됩니다.업데이트 전송 완료 여부에 관계없이 지정된 시간 후에
nsds5ReplicaReleaseTimeout
매개변수를 설정하여 복제 세션을 종료합니다.dsconf -D "cn=Directory Manager" ldap://supplier.example.com replication set --suffix "dc=example,dc=com" --repl-release-timeout 90
# dsconf -D "cn=Directory Manager" ldap://supplier.example.com replication set --suffix "dc=example,dc=com" --repl-release-timeout 90
Copy to Clipboard Copied! 이 명령은 타임아웃을
90
초로 설정합니다. 이 설정은 지정된 접미사의 모든 복제 계약에 적용됩니다.선택 사항: 공급 업체의 시간 초과 기간을 설정하여 느리거나 손상된 연결을 통해 업데이트를 전송하려고 하지 않도록 소비자에게 연결을 유지하지 않도록 합니다.
dsconf -D "cn=Directory Manager" ldap://supplier.example.com repl-agmt set --conn-timeout 600 --suffix "dc=example,dc=com" replication_agreement_name
# dsconf -D "cn=Directory Manager" ldap://supplier.example.com repl-agmt set --conn-timeout 600 --suffix "dc=example,dc=com" replication_agreement_name
Copy to Clipboard Copied! 이 명령은 시간 제한을
600
초(10분)로 설정합니다. 예기치 않은 값을 확인하려면 복제 프로세스가 걸리는 평균 시간 동안 액세스 로그를 확인하고 그에 따라 시간 초과 기간을 설정합니다.