7.9. 최대 데이터베이스 잠금 수 조정
잠금 메커니즘은 동시에 실행할 수 있는 Directory Server 프로세스 복사본 수를 제어하고 nsslapd-db-locks
매개변수는 최대 잠금 수를 설정합니다.
/var/log/dirsrv/slapd-instance_name/errors
로그 파일에 다음 오류 메시지가 표시되는 경우 최대 잠금 수를 늘립니다.
libdb: Lock table is out of available locks
기본값 |
|
유효한 범위 |
|
진입 DN 위치 |
|
사전 요구 사항
- LDAP Directory Manager 암호
절차
nsslapd-db-locks
매개변수의 현재 값을 검색하여 조정해야 하는 경우 조정하기 전에 기록해 둡니다.[root@server ~]# ldapsearch -D "cn=directory manager" -w DirectoryManagerPassword -b "cn=bdb,cn=config,cn=ldbm database,cn=plugins,cn=config" | grep nsslapd-db-locks nsslapd-db-locks: 50000
locking 특성의 값을
수정
합니다. 이 예에서는 값을100000
개 잠금으로 두 배로 늘립니다.[root@server ~]# dsconf -D "cn=Directory Manager" ldap://server.example.com backend config set --locks=100000
디렉터리 관리자로 인증하여 구성을 변경합니다.
Enter password for cn=Directory Manager on ldap://server.example.com: Successfully updated database configuration
Directory Server를 다시 시작합니다.
[root@server ~]# systemctl restart dirsrv.target
검증
nsslapd-db-locks
속성 값을 표시하고 원하는 값으로 설정되어 있는지 확인합니다.[root@server ~]# ldapsearch -D "cn=directory manager" -w DirectoryManagerPassword -b "cn=bdb,cn=config,cn=ldbm database,cn=plugins,cn=config" | grep nsslapd-db-locks nsslapd-db-locks: 100000
추가 리소스
- Directory Server 11 설명서의 nsslapd-db-locks