You can set up multiple servers for a clustered
or high-availability configuration. In this configuration, multiple
servers run at the same time.
이 태스크 정보
To set up servers in a clustered configuration, you install
the server on separate systems and connect the servers to the same
database. Then, you configure a load balancer to distribute the traffic
between the servers. Instead of accessing the servers directly, users
access the load balancer URL. To the users, that URL appears to host
a single instance of the server with high capacity; the users are
not aware of the multiple servers.
프로시저
- 하나 이상의 서버가 이미 있는 경우 다음 단계를
사용하여 클러스터 서버로 변환하십시오.
- 서버를 중지하십시오.
- 서버에서 문서 편집기로 install_folder/conf/server/installed.properties
파일을 여십시오. install_folder의 서버 설치 디렉토리를 사용하십시오.
- 이 파일에서 server.external.web.url 매개변수를 로드 밸런서의
URL과 포트로 업데이트하십시오. 다음 예에서와 같이
백슬래시(\)로 콜론과 기타 특수 문자를
이스케이프하십시오.
server.external.web.url=https\://balancer.example.com\:8443
- install.server.web.host 매개변수를
로드 밸런서의 호스트 이름으로 업데이트하십시오.
- 파일을 저장하십시오.
- 새 클러스터 서버를 설치하려면 일반적인 방식으로 서버를 설치한 후
다음을 변경하십시오.
- 각 서버를 동일한 데이터베이스에 연결하십시오. 첫 번째 서버의
데이터베이스 스키마만 작성하십시오.
- 사용자가 액세스하는 호스트 이름의 경우
서버를 호스트하는 컴퓨터가 아니라 로드 밸런서의 호스트 이름을
지정하십시오.
- 다른 서버와 동일한 컴퓨터에 서버를 설치하는 경우
각 서버의 HTTPS 요청에 서로 다른 포트를 사용하십시오.
- 다른 서버와 동일한 컴퓨터에 서버를 설치하는 경우
각 서버의 에이전트 통신에 서로 다른 포트를 사용하십시오.
서버 설치의 내용을 참조하십시오. 나중에 각 서버의 포트 정보가 필요하므로
이 정보를 기록해 두십시오.
HTTPS 요청의 경우 기본 포트는 8443이고 에이전트 통신의 경우에는 7918입니다.
- 다음과 같이 구성 파일의 네트워크 스토리지를 구성하십시오.
- 클러스터 서버 중 하나를 중지하십시오.
- 서버 설치 디렉토리에서 다음 파일과 폴더를 네트워크
스토리지에 복사한 다음 서버에서 원래 파일과 폴더를
삭제하십시오.
- install_folder/var/email
- install_folder/var/plugins
- install_folder/var/repository
- install_folder/logs
- install_folder/conf/encryption.keystore
- install_folder/conf/server.keystore
- install_folder/conf/collectors
- install_folder/patches
- install_folder/conf/server/log4j.properties
기본 서버 설치 디렉토리는
/opt/ibm-ucd/server(Linux) 및 C:\Program Files\ibm-ucd\server(Windows)입니다.
- 삭제한 위치에서 네트워크 스토리지에 있는 해당 파일로의
링크를 작성하십시오.
- 다음과 같이 각 다른 클러스터 서버를 네트워크 스토리지에 연결하십시오.
- 서버를 중지하십시오.
- 3.b 단계에 나열된 파일과 폴더를 삭제하십시오.
- 네트워크 스토리지에 있는 해당 파일에 대한 링크를
작성하십시오.
- 서버의 install_folder/conf/server/installed.properties
파일에서 encryption.keystore.alias 특성의 값을 다른 서버의 해당 파일에
복사하십시오.
- 각 클러스터 서버에서 다음 코드 행을
install_folder /conf/server/installed.properties 파일에 추가하십시오.
com.urbancode.ds.UDeployServer.multiserver=true
- 서버를 시작하십시오.
- 다음과 같이 각 서버에서 다른 서버로의 네트워크 릴레이를 작성하십시오.
- 첫 번째 서버에서 를 클릭한 다음 새 네트워크
릴레이 작성을 클릭하십시오.
- 네트워크 릴레이 작성 창에서
릴레이의 이름과 클러스터에 있는 다른 서버의 호스트 이름을
지정하십시오.
- 포트 필드에서 다른 서버의 에이전트
통신 포트를 지정하십시오.
- 활성 선택란을 선택하십시오
- 저장을 클릭하십시오.
- 클러스터의 각 서버에서 다른 서버로의 네트워크 릴레이를
작성하는 프로세스를 반복하십시오.
- Configure a load balancer to share the
load between the servers. For more information, see the
documentation for your load balancer.
결과
After you configure the load balancer to distribute
connections to the servers, users can connect to a single URL and
use the capacity of all of the servers. The servers also ensure that
only one license per user is used, even if a user accesses multiple
servers.