포화 알고리즘에 대한 설명은 Sun Java System Directory Server Enterprise Edition 6.0 Reference의 Saturation Algorithm for Load Balancing을 참조하십시오.
위의 예에서 데이터 소스 ds-1은 대부분의 바인드 작업을 수행하지만 다른 유형의 작업은 수행하지 않습니다. 세 데이터 소스는 다음과 같은 가중치로 구성되어 있습니다.
ds-1은 바인드 작업에 대해 가중치 3으로 구성되어 있으며 다른 모든 유형의 작업에 대해서는 비활성화되어 있습니다.
ds-2는 모든 작업에 대해 가중치 2로 구성되어 있습니다.
ds-3은 모든 작업에 대해 가중치 1로 구성되어 있습니다.
DSCC를 사용하여 이 작업을 수행할 수 있습니다. 자세한 내용은 디렉토리 서비스 제어 센터 인터페이스 및 DSCC 온라인 도움말을 참조하십시오.
데이터 소스 풀에 데이터 소스가 세 개 이상 첨부되어 있는지 확인합니다. 데이터 소스 및 데이터 소스 풀을 만드는 방법에 대한 자세한 내용은 20 장, LDAP 데이터 소스 및 데이터 소스 풀을 참조하십시오.
데이터 소스 풀이 로드 균형 조정에 대한 포화 알고리즘을 사용하도록 구성합니다.
$ dpconf set-ldap-data-source-pool-prop -h host -p port pool-name \ load-balancing-algorithm:saturation |
첫 번째 데이터 소스의 등록 정보를 구성합니다.
$ dpconf set-attached-ldap-data-source-prop -h host -p port pool-name ds-1 \ add-weight:disabled bind-weight:3 compare-weight:disabled delete-weight:disabled \ modify-dn-weight:disabled modify-weight:disabled search-weight:disabled |
두 번째 데이터 소스의 등록 정보를 구성합니다.
$ dpconf set-attached-ldap-data-source-prop -h host -p port pool-name ds-2 \ add-weight:2 bind-weight:2 compare-weight:2 delete-weight:2 modify-dn-weight:2 \ modify-weight:2 search-weight:2 |
세 번째 데이터 소스의 등록 정보를 구성합니다.
$ dpconf set-attached-ldap-data-source-prop -h host -p port pool-name ds-3 \ add-weight:1 bind-weight:1 compare-weight:1 delete-weight:1 modify-dn-weight:1 \ modify-weight:1 search-weight:1 |
첨부된 데이터 소스의 키 매개 변수를 비교합니다.
$ dpconf list-attached-ldap-data-sources -h host -p port -v pool-name Name add-weight bind-weight compare-weight delete-weight modify-dn-weight modify-weight search-weight --- ---------- ----------- -------------- ------------- ---------------- ------------- ------------- ds-1 disabled 3 disabled disabled disabled disabled disabled ds-2 2 2 2 2 2 2 2 ds-3 1 1 1 1 1 1 1 |
디렉토리 프록시 서버 인스턴스를 다시 시작합니다.
$ dpadm restart instance-path |