• 検索結果がありません。

例: クラスタパーティションの作成

設定ファイルを編集してクラスタパーティションを作成するには、以下の⼿順に従います。この⼿順は、デ モを意図したものあり、現実的な例ではありません。この⼿順の前提として、1 つのクラスタが存在し、そ こに次の 5 つのノードがあります。

default node2 node3 node4 node5

Odd Header

My webMethods Server のクラスタリング

My webMethods Server 管理者ガイド バージョン 10.1 197

この例では、クラスタに次の 3 つのパーティションを作成します。

default (すべてのポートレットが有効)

partition2 (指定したポートレットのグループが無効)

partition3 (指定したポートレットのグループが無効だが、⼀部は⼀時的に有効) 設定ファイルを編集してパーティションを作成するには

1.

コマンドラインプロンプトで、次のコマンドを⼊⼒してサーバの bin ディレクトリに移動します。

cd Software AG_directory \MWS\bin

2.

My webMethods Server データベースから clusterPartitions.xml ファイルを抽出するには、次のコ マンドを⼊⼒します。

mws getconfig clusterPartitions.xml

3.

My webMethods Server データベースから phaseProvider.xml ファイルを抽出するには、次のコマ ンドを⼊⼒します。

mws getconfig phaseProvider.xml

4.

My webMethods Server データベースから defaultPartitionPortlets.properties ファイルを抽出する には、次のコマンドを⼊⼒します。

mws getconfig defaultPartitionPortlets.properties

5.

ダウンロードした clusterPartitions.xml ファイルをテキストエディタで開きます。

ダウンロードしたファイルはすべて次の場所にあります。

Software AG_directory\MWS\server\serverName\config

6.

194 ページの「クラスタパーティションファイル」の構⽂を使⽤して clusterPartitions.xml ファイ ルを編集し、partition2 および partition3 をクラスタに追加します。

変更後の clusterPartitions.xml ファイルは次のようになります。

<?xml version="1.0" encoding="UTF-8"?>

<ClusterPartitions>

<Partition name="default" frontEndUrl="http://my.company.server:8585">

<Component name="default">

</Component>

</Partition>

<Partition name="partition2">

<Component name="node2">

</Component>

<Component name="node3">

</Component>

</Partition>

<Partition name="partition3">

</Partition>

</ClusterPartitions>

このファイルを基に、次のように設定されます。

デフォルトパーティションにデフォルトノードが含まれる partition2 に node2 および node3 が含まれる

Even Header

My webMethods Server のクラスタリング

partition3 に node4 および node5 が含まれる (ファイル内の最後のパーティションに、他の パーティションに特別に割り当てられていないすべてのノードが含まれる)

7.

clusterPartitions.xml ファイルを保存して閉じます。

この結果、196 ページの「デフォルトのパーティション設定」の説明に従ってデフォルトパーティ ションが作成され、すべてのポートレットが有効になります。

8.

phaseProvider.xml のコピーを作成し、partition2PhaseProvider.xml という名前を付けます。

9.

partition2PhaseProvider.xml ファイルをテキストエディタで開きます。

10.

CoreServices フェーズ内にネストされている portlet フェーズで、ファイルが次のようになるよう に、defaultPartitionPortlets.properties を partition2Portlets.properties に変更します。

<PhaseInfo name="portlet" enabled="true"

class="com.webmethods.portal.service.portlet.impl.PortletProvider"

initFile="config:/partition2Portlets.properties"

initFileComponentsEnabled="false"/>

これで、フェーズプロバイダが partition2Portlets.properties を指すようになりま

す。initFileComponentsEnabled が false に設定されているため、このファイルにリストされている ポートレットは無効になります。

11.

partition2Portlets.properties ファイルを保存して閉じます。

12.

defaultPartitionPortlets.properties のコピーを作成し、partition2Portlets.properties という名前を 付けます。

13.

partition2Portlets.properties ファイルをテキストエディタで開いて、partition2 で無効にするポー トレットのリストを追加します。

次に例を⽰します。

# These portlets will not be initialized.

wm_task_chart___taskchart=

wm_task_search___taskinboxsearchbar=

wm_task_search___taskinboxsearchresults=

wm_task_search___tlmsearchresults=

wm_task_search___tlmsearchquery=

ユーザインタフェースでは、 これらのポートレットは次のように使⽤されます。

"taskchart" は [タスクチャート] を表⽰する

"tlmsearchquery" は [タスク⼀覧の管理] を表⽰する 残りのポートレットは [受信トレイ] を表⽰する

14.

partition2Portlets.properties ファイルを保存して閉じます。

この結果、特定のポートレットが partition2 (node2 および node3) で無効になります。

メモ: partition3 の⼿順では、フェーズプロバイダファイルを⼀時的に上書きする⽅法を⽰します。結 果的に、partition2 の⼿順とほとんどが重複するため、partition3 の⼿順は簡単に説明します。

15.

phaseProvider.xml のコピーを作成し、partition3PhaseProvider.xml という名前を付けます。

Odd Header

My webMethods Server のクラスタリング

My webMethods Server 管理者ガイド バージョン 10.1 199

16.

partition3PhaseProvider.xml で、defaultPartitionPortlets.properties を partitionPortlets.properties に変更します。

17.

partition2Portlets.properties のコピーを作成し、partition3Portlets.properties という名前を付け ます。

この結果、partition2 と同じポートレットを無効にするように partition3 が設定されます。

18.

partition3Portlets.properties で、最後の 2 つのポートレットの末尾にある = の前に + を置きます。

次に例を⽰します。

# These portlets will not be initialized.

wm_task_chart___taskchart=

wm_task_search___taskinboxsearchbar=

wm_task_search___taskinboxsearchresults=

wm_task_search___tlmsearchresults+=

wm_task_search___tlmsearchquery+=

メモ: この例の場合、ポートレットの選択は任意です。

この結果、partition3 (node4 および node5) では、partition2 と同じポートレットが無効になりま すが、ポートレットのサブセットは有効になります。

19.

新しい変更済みのファイルを My webMethods Server データベースに展開するには、ファイルごと に次のコマンドを⼊⼒します。

mws putconfig fileName

20.

\

serverName

\config ディレクトリからこれらのファイルをすべて削除します。

このファイルを削除しないと、クラスタは引き続きローカルバージョンの設定ファイルを使⽤します。

21.

次のコマンドを使⽤して、クラスタ内の各ノードを再起動します。

mws -  serverName  restart

設定ファイルに加えた変更は、再起動するまで適⽤されません。