WebSphere Extended Deployment, Version 6.0.x     Operating Systems: AIX, HP-UX, Linux, Solaris, Windows, z/OS

ポリシー管理例の概要

クラスターが動作中の場合は、停止してください。 また、デプロイメント・マネージャーと NodeA のノード・エージェントが 動作していることを確認してください。コマンド・シェルを開き、 デプロイメント・マネージャーの ¥bin ディレクトリーに移動します。先に作成した policyPK1_startup.properties も デプロイメント・マネージャーの ¥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
デプロイメント・マネージャーの coregroup.xml にあるポリシーは 次のようになります。
<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>
ノード・エージェントが実行中である場合、コア・グループ・ファイルが伝搬されます。 これは、coregroup.xml ファイルで前掲のエントリーを探すことにより確認できます。 伝搬されない場合は、このノードはクラスター内の他のノードと同期して、コア・グループのポリシー更新を 他のノードにも伝搬する場合があります。そのためには、ノード・エージェントを使用不可にしてから、 syncNode コマンドを使用します。

管理コンソールを使用し、クラスターを開始します。

cluster_member_2 の区画が開始するのが一般的です。 したがって、PK000001 は cluster_member_1 の唯一の区画となります。 ただし、これは実際の構成によって異なる場合があります。クラスターの開始後に次のコマンドで検証します。

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 が適用されるように調整します。 または 2 番目のポリシーを別途作成します。または、stopserver cluster_member_1 というように、 cluster member 1 を停止することもできます。 この場合は、フェイルバックが設定されているため、高可用性 (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
トランザクションのパフォーマンス統計のモニター

Reference topic    

Terms of Use | Feedback Last updated: Mar 20, 2006 12:35:11 PM EST
http://publib.boulder.ibm.com/infocenter/wxdinfo/v6r0/index.jsp?topic=?topic=/com.ibm.websphere.xd.doc/info/WPF51/rwpfmanagepolicy.html

© Copyright IBM 2005, 2006. All Rights Reserved.
This information center is powered by Eclipse technology. (http://www.eclipse.org)