addNodeToDSCluster 스크립트 실행

Rule Execution Server를 WebSphere® Application Server 클러스터로 구성한 후에는 노드를 클러스터에 추가하는 스크립트를 실행할 수 있습니다.

시작하기 전에

스크립트를 시작하여 클러스터 노드를 추가하기 전에 노드가 이미 연합되어 있는지 확인하고 ODM_HOME 환경 변수를 설정하십시오. 2단계에서 실행하는 스크립트는 해당 변수를 사용합니다.
새 노드를 배치 관리자의 셀에 연합하려면 새 노드(원격 노드일 수 있음)에서 다음 단계를 수행하십시오.
  1. <WAS_InstallDir>\bin 디렉토리에서 다음 명령을 실행하여 관리되는 노드를 작성하십시오.
    manageprofiles -create -templatePath ..\profileTemplates\managed -profileName <my new node profile name>
  2. <WAS_InstallDir>\profiles\my new node profile name\bin 디렉토리에서 다음 명령을 실행하여 배치 관리자 셀에 노드를 추가하십시오.
    addNode.bat <dmgr hostname> <dmgr Soap port> -username <dmgr admin user> -password <dmgr admin password>
원격 노드에는 WebSphere Application Server 네트워크 배치만 설치되어 있어야 합니다. 자세한 정보는 IBM® WebSphere Application Server Network Deployment 문서를 참조하십시오.

이 태스크 정보

구성 스크립트를 통해 클러스터를 설정한 후에는 기본 노드를 구성하여 클러스터에 추가할 수 있습니다.

프로시저

  1. configureDSCluster.properties 파일에 올바른 클러스터 이름 및 데이터베이스 값이 포함되어 있는지 확인하십시오.

    이 파일은 profiles/Dmgr01/bin/rules/ 디렉토리에 있습니다. 여기서, Dmgr01은 배치 관리자 프로파일의 이름입니다. 구성 특성에는 다음과 같은 키의 값이 포함되어야 합니다.

    wodm.dsrules.clusterName
    값은 기존 클러스터의 이름이어야 합니다. 기본 이름은 DecisionServerCluster입니다.
    wodm.dsrules.rulesMgrServerName
    Rule Execution Server 콘솔을 호스트하는 서버의 이름입니다. 예를 들어, RulesMgrSrv입니다.
    wodm.virtualhost.name
    애플리케이션이 설치되는 대상 가상 호스트입니다. 기본값은 default_host입니다.
    wodm.dsrules.db.type
    데이터베이스 유형(DB2®, Oracle 또는 MSQL)입니다. 기본값은 DB2입니다.
    wodm.dsrules.db.jdbcDriverPath
    JDBC 드라이버의 경로입니다. 콜론(;)으로 드라이버 이름을 분리하십시오. 예를 들어, C:/drivers/db2jcc.jar;C:/drivers/db2jcc_license_cu.jar;입니다.
    wodm.dsrules.db.name
    데이터베이스의 이름입니다. 예를 들어, MyDB입니다.
    wodm.dsrules.db.hostname
    데이터베이스가 호스팅되는 호스트의 이름입니다. 예를 들어, MyDB_server입니다.
    wodm.dsrules.db.port
    데이터베이스에 대한 연결을 설정하는 포트 번호입니다.
    wodm.dsrules.db.user
    데이터베이스에 연결할 사용자 이름입니다. 예를 들어, db_user1입니다.
    wodm.dsrules.db.password
    데이터베이스에 연결할 사용자의 비밀번호입니다. 예를 들어, db_user1_pwd입니다.
  2. profiles/Dmgr01/bin디렉토리로 이동한 후 필수 매개변수를 사용하여 addNodeToDSCluster 스크립트를 시작하십시오.

    스크립트 해석기가 bash를 호출합니다. 사용자 시스템에서 bash를 사용할 수 없는 경우 오류가 발생하고 잘못된 해석기 메시지가 표시됩니다.

    명령행 구문은 addNodeToDSCluster[.bat|.sh|.ksh] -ParameterName1 parameterValue1 -ParameterName2 parameterValue2 ... 입니다.

    • Windows:
      <WAS_InstallDir>\profiles\Dmgr01\bin\addNodeToDSCluster.bat -dmgrAdminUsername websphere -dmgrAdminPassword websphere -clusterPropertiesFile <WAS_InstallDir>\profiles\Dmgr01\bin\rules\configureDSCluster.properties -targetNodeName DecisionServerNode01
      -dmgrPort 8879 -targetNodeServerName serverA
    • UNIX의 경우:
      <WAS_InstallDir>/profiles/Dmgr01/bin/addNodeToDSCluster.sh -dmgrAdminUsername websphere -dmgrAdminPassword websphere -clusterPropertiesFile <WAS_InstallDir>/profiles/Dmgr01/bin/rules/configureDSCluster.properties -targetNodeName DecisionServerNode01
      -dmgrPort 8879 -targetNodeServerName serverA
    • HP-UX의 경우:
      <WAS_InstallDir>/profiles/Dmgr01/bin/addNodeToDSCluster.ksh -dmgrAdminUsername websphere -dmgrAdminPassword websphere -clusterPropertiesFile <WAS_InstallDir>/profiles/Dmgr01/bin/rules/configureDSCluster.properties -targetNodeName DecisionServerNode01
      -dmgrPort 8879 -targetNodeServerName serverA
    표 1. 클러스터 구성 매개변수
    매개변수 이름 필수 설명
    -dmgrAdminUsername 필수 WebSphere Application Server 관리자 ID입니다.
    -dmgrAdminPassword 필수 WebSphere Application Server 관리자 비밀번호입니다.
    -clusterPropertiesFile 필수 특성 파일 경로입니다.
    -targetNodeName 선택사항 기본적으로 대상 설치 노드의 이름은 RulesNode01로 설정되어 있습니다.
    -dmgrPort 선택사항 배치 관리자의 SOAP TCP 포트입니다. 기본적으로 8879입니다.
    -targetNodeServerName 선택사항 대상 설치 노드의 서버 이름입니다. 이미 클러스터에 있는 서버의 이름을 지정하십시오. 기존 서버를 이미 설정된 클러스터에 추가하는 방법은 없습니다.

결과

스크립트가 셀의 배치 관리자에 이미 연합되어 있는 기본 WebSphere Application Server 노드를 Decision Server 아티팩트를 사용하여 구성합니다. 또한 매개변수로서 전달한 configureDSCluster.properties 파일에 지정된 클러스터에 새 멤버를 추가합니다.

스크립트가 완료되면 새 노드가 있는 클러스터가 시작되어 실행됩니다.