클러스터가 실행되고 있으면 중지하십시오. 또한 Deployment Manager 및 NodeA의 Node Agent가 실행 중인지 확인하십시오. 명령 쉘을 열고 디렉토리를 Deployment Manager \bin 디렉토리로 변경하십시오. 이전에 작성한 policyPK1_startup.properties가 Deployment Manager \bin 디렉토리에도 있는지 확인하십시오.
wpfadmin createpolicy policyPK1_startup.properties
생성된 출력은 다음과 유사해야 합니다. 그렇지 않으면 특성 파일을 확인하십시오.wsadmin -lang jython -f wpfadmin.pty createPolicy policyPK1_startup.properties WASX7209I: Connected to process "Deployment Manager" on node CellManager using SOAP connector; The type of process is: DeploymentManager The policy PK1StartupPolicy has been created
<policies xmi:type="coregroup:OneOfNPolicy" xmi:id="OneOfNPolicy_1097944892103" name="PK1StartupPolicy" description="WPF Cluster Scoped Partition Policy Extended PK000001 Start" policyFactory="com.ibm.ws.hamanager.coordinator.policy. impl.OneOfNPolicyFactory" isAlivePeriodSec="-1" quorumEnabled="true" failback="true" preferredOnly="true" preferredServers="CoreGroupServer_1097678779756 CoreGroupServer_1097678774418"> <MatchCriteria xmi:id="MatchCriteria_1097944898452" name="-gt" value="-p" description=",None"/> <MatchCriteria xmi:id="MatchCriteria_1097944898532" name="-ps" value="-c" description=",None"/> <MatchCriteria xmi:id="MatchCriteria_1097944898582" name="-pn" value="PK000001" description=",None"/> </policies>Node Agent가 실행 중이면 코어 그룹 파일이 전달됩니다. coregroup.xml 파일에서 이전 항목을 찾아 전달되었는지 확인할 수 있습니다. 그렇지 않으면 코어 그룹의 정책 갱신을 클러스터의 노드로 전파할 수 있도록 노드를 동기화해야 합니다. 동기화하려면 nodeagent를 사용 불가능하게 하여 syncNode 명령을 사용하십시오.
관리 콘솔을 사용하고 클러스터를 시작하십시오.
wpfadmin listActive
wsadmin -lang jython -f wpfadmin.pty listActive WASX7209I: Connected to process "Deployment Manager" on node CellManager using SOAP connector; The type of process is: DeploymentMana ger WPFC0050I: Application WPFKeyBasedPartitionSample, Partition PK000010: Server Cell\NodeA\cluster_member_2 WPFC0050I: Application WPFKeyBasedPartitionSample, Partition PK000009: Server Cell\NodeA\cluster_member_2 WPFC0050I: Application WPFKeyBasedPartitionSample, Partition PK000008: Server Cell\NodeA\cluster_member_2 WPFC0050I: Application WPFKeyBasedPartitionSample, Partition PK000007: Server Cell\NodeA\cluster_member_2 WPFC0050I: Application WPFKeyBasedPartitionSample, Partition PK000006: Server Cell\NodeA\cluster_member_2 WPFC0050I: Application WPFKeyBasedPartitionSample, Partition PK000005: Server Cell\NodeA\cluster_member_2 WPFC0050I: Application WPFKeyBasedPartitionSample, Partition PK000004: Server Cell\NodeA\cluster_member_2 WPFC0050I: Application WPFKeyBasedPartitionSample, Partition PK000003: Server Cell\NodeA\cluster_member_2 WPFC0050I: Application WPFKeyBasedPartitionSample, Partition PK000002: Server Cell\NodeA\cluster_member_2 WPFC0050I: Application WPFKeyBasedPartitionSample, Partition PK000001: Server Cell\NodeA\cluster_member_1모든 파티션은 cluster_member_1이 아닌 cluster_member_2에서 시작됩니다.
정책을 갱신하려면 –pn 옵션을 갱신하여 대신 PK000002에 적용되도록 조정할 수 있습니다. 또는 두 번째 정책이 작성될 수 있습니다. 추가 조작은 단순히 클러스터 구성원 1(예: stopserver cluster_member_1)을 중지하는 것일 수 있습니다. 이 경우 Failback이 설정되므로 고가용성(HA) 관리자는 cluster_member_2에서 활성화하려고 합니다.
wpfadmin updatePolicy "PK1StartupPolicy" -failback true -preferredOnly
false -preferredServers NodeA/cluster_member_2,NodeA/cluster_member_1
wsadmin -lang jython -f wpfadmin.pty updatePolicy PK1StartupPolicy -failback true -preferredOnly false -preferredServers NodeA/cluster_member_2, NodeA/cluster_member_1 WASX7209I: Connected to process "Deployment Manager" on node CellManager using SOAP connector; The type of process is: DeploymentManager The policy PK1StartupPolicy has been updated
wpfadmin deletePolicy PK1StartupPolicy
wsadmin -lang jython -f wpfadmin.pty deletePolicy PK1StartupPolicy WASX7209I: Connected to process "Deployment Manager" on node CellManager using SOAP connector; The type of process is: DeploymentMana ger The policy PK1StartupPolicy has been deleted클러스터가 재시작되면 기본 시작 파티션 배치 알고리즘으로 복귀합니다. 이 방법이 선택한 시작 서버를 수정하는 최적의 방법은 아닙니다. 자세한 정보는 HA 관리자 정책 섹션을 참조하십시오.
Related tasks
트랜잭션 성능 통계 모니터