configureDSCluster 스크립트를 실행하여 클러스터 작성

기본 관리 프로파일의 기능을 보강한 후에 스크립트를 실행하여 WebSphere® Application Server 클러스터와 같이 Rule Execution Server를 구성할 수 있습니다.

시작하기 전에

프로파일을 기능 보강하는 스크립트를 시작하기 전에 ODM_HOME 환경 변수를 설정해야 합니다. 2단계에서 실행하는 구성 스크립트가 해당 변수를 사용합니다.

이 태스크 정보

관리 프로파일의 기능을 보강한 후에는 클러스터 구성 특성을 설정하고 구성 스크립트를 실행합니다.
참고: 구성 스크립트는 지정된 대상 노드만 구성합니다. 대상 노드 이름을 변경하여 각 추가 노드에 대해 스크립트를 다시 실행할 수 있습니다. 또는 추가 노드의 실행 단위(XU) 및 데이터 소스를 수동으로 구성할 수 있습니다. 기존 클러스터에 노드를 추가하는 데 대한 도움말은 addNodeToDSCluster 스크립트 실행의 내용을 참조하십시오.

프로시저

  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/db2jcc4.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. 옵션: 역할을 사용자 및 그룹에 지정하십시오.
    Rule Execution Server 및 테스트와 시뮬레이션에 대한 권한을 설정하려면 profileTemplates/rules/actions/scripts/was 디렉토리에 두 개의 텍스트 파일을 작성하십시오. 파일 이름은 스크립트에서 사용되는 애플리케이션 이름과 일치해야 합니다(jrules-res-management.roles 및 jrules-ssp.roles). 파일 컨텐츠는 다음 형식을 따라야 합니다.
    #custom roles if needed (values separated by comma)
    custom_roles=<custom_role1>,<custom_role2>
    #list of users mapped with a role (values separated by pipe |)
    <role_name>.users=<user1>|<user2>
    #groups mapped with a role (values separated by pipe |)
    <role_name>.groups=<group1>|<group2>

    이 예에서는 그룹 이름이 역할 이름과 일치하지만 그룹 이름은 다르게 지정할 수 있습니다.

    예를 들어, 다음과 같습니다.

    jrules-res-management.roles에 Rule Execution Server에 대한 기본 사용자 및 전용 그룹을 다음과 같이 구성하십시오.
    custom_roles=mycustomrole
    resAdministrators.users=resAdmin
    resDeployers.users=resDeploy
    resMonitors.users=resMonitor
    mycustomrole.users=Bill Smith
    resAdministrators.groups=resAdministrators
    resDeployers.groups=resDeployers
    resMonitors.groups=resMonitors
    mycustomrole.groups=mycustomgroup
    jrules-ssp.roles에 테스트 및 시뮬레이션 기능에 대한 기본 사용자 및 전용 그룹을 다음과 같이 구성하십시오.
    resAdministrators.users=resAdmin
    resDeployers.users=resDeploy
    resAdministrators.groups=resAdministrators
    resDeployers.groups=resDeployers
  3. profiles/Dmgr01/bin 디렉토리로 이동한 후 필수 매개변수를 사용하여 configureDSCluster 스크립트를 시작하십시오.

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

    명령행 구문은 configureDSCluster[.bat|.sh|.ksh] -ParameterName1 parameterValue1 -ParameterName2 parameterValue2 ... 입니다. 실수를 한 경우(예: 매개변수 누락 또는 잘못된 노드 이름) 스크립트를 다시 실행할 수 있습니다.

    • Windows:
      <WAS_InstallDir>\profiles\Dmgr01\bin\configureDSCluster.bat -dmgrAdminUsername websphere -dmgrAdminPassword websphere -clusterPropertiesFile <WAS_InstallDir>\profiles\Dmgr01\bin\rules\configureDSCluster.properties -createNode -targetNodeName DecisionServerNode01
       -dmgrHostName localhost -dmgrPort 8879 
    • UNIX의 경우:
      <WAS_InstallDir>/profiles/Dmgr01/bin/configureDSCluster.sh -dmgrAdminUsername websphere -dmgrAdminPassword websphere -clusterPropertiesFile <WAS_InstallDir>/profiles/Dmgr01/bin/rules/configureDSCluster.properties -createNode -targetNodeName DecisionServerNode01
       -dmgrHostName localhost -dmgrPort 8879 
    • HP-UX의 경우:
      <WAS_InstallDir>/profiles/Dmgr01/bin/configureDSCluster.ksh -dmgrAdminUsername websphere -dmgrAdminPassword websphere -clusterPropertiesFile <WAS_InstallDir>/profiles/Dmgr01/bin/rules/configureDSCluster.properties -createNode -targetNodeName DecisionServerNode01
       -dmgrHostName localhost -dmgrPort 8879 
    표 1. 클러스터 구성 매개변수
    매개변수 이름 필수 설명
    -dmgrAdminUsername 필수 WebSphere Application Server 관리자 ID입니다.
    -dmgrAdminPassword 필수 WebSphere Application Server 관리자 비밀번호입니다.
    -clusterPropertiesFile 필수 특성 파일 경로입니다.
    -uninstall 선택사항 클러스터에서 모든 애플리케이션과 자원을 제거합니다. 클러스터 자체는 다른 애플리케이션을 포함할 수 있으므로 제거되지 않습니다. 클러스터에서 Rule Execution Server 설치 제거의 내용을 참조하십시오.
    -createNode 선택사항 이 매개변수를 지정하면 스크립트가 -targetNodeName 매개변수에 이름을 설정하여 기본 노드 프로파일을 작성합니다.
    -targetNodeName 선택사항 기본적으로 대상 설치 노드의 이름은 RulesNode01로 설정되어 있습니다.
    -dmgrHostName 선택사항 이 매개변수를 사용하여 배치 관리자가 있는 호스트의 이름을 지정하십시오. -targetNodeName 매개변수를 설정하여 대상 노드를 작성하는 경우 이 매개변수는 필수입니다.
    -dmgrPort 선택사항 배치 관리자의 SOAP TCP 포트입니다. 기본적으로 8879입니다.

결과

스크립트가 다음 조치를 수행합니다.

  • 노드 레벨에 JDBC 제공자, 실행 단위(XU) 및 데이터 소스를 설치합니다.
  • Rule Execution Server 콘솔을 클러스터에 설치합니다.
  • Hosted Transparent Decision Service 및 SSP(Scenario Service Provider)를 클러스터 멤버로 배치합니다. 애플리케이션이 배치될 때 사용자가 애플리케이션 그룹에 맵핑됩니다.
  • 배치 관리자 서버가 아직 시작되지 않은 경우 해당 서버를 시작합니다.
  • 보안을 구성합니다.
  • resAdmin, resDeployer, resMonitor 사용자를 작성합니다.\ JMX 알림이 모든 클러스터 노드에서 동작할 수 있도록 이 사용자는 WebSphere Application Server monitor에 속합니다.
  • 사용자 및 그룹을 구성합니다.
  • 사용자와 그룹을 역할에 맵핑합니다.
  • 클러스터, 서버 및 애플리케이션을 시작합니다.

스크립트가 완료되면 클러스터가 시작되어 실행됩니다. 그런 다음, 사용자는 IBM® HTTP Server와 같은 로드 밸런싱 시스템을 구성해야 합니다.