Insight Server 集合コントローラーの作成

集合コントローラーを使用すると、単一の管理ドメインから複数のサーバーを管理できます。トポロジー内のすべてのサーバーをモニターできるようにするために、集合コントローラー・サーバーを作成し、構成する必要があります。

このタスクについて

集合の一部であるサーバーを識別し、集合コントローラー・サーバーを作成する必要があります。次に、セキュリティーとユーザー・アクセス権限をセットアップし、残りのサーバーを集合のメンバーとして構成します。集合コントローラー・サーバーは、集合内のメンバーからデータを受信します。

実動トポロジーをモニターする予定がある場合、例えばシステムを再始動するときに、別のノードで集合を構成します。また、カタログ・ホストまたはランタイム・ホストにキャパシティーの余裕があるときは、これらのホスト上で集合コントローラーを構成することもできます。

重要: Insight Server の集合コントローラーは、SP800-131a 厳密モードで実行するように構成されています。集合 (コントローラーおよびメンバー) 内の各サーバーの jvm.options ファイルは、-Dhttps.protocols=TLSv1.2 プロパティーを指定する必要があります。詳しくは、SP800-131a で実行するための Liberty のセットアップ (Setting up Liberty to run in SP800-131a)を参照してください。

手順

  1. 集合コントローラーとして機能するサーバーを作成します。 次の例は、myController という名前のサーバーを作成するコマンドです。
    wlp/bin/server create myController --template=cisCollectiveController

    cisCollectiveController テンプレートを使用している場合、adminCenter-1.0 フィーチャーが server.xml ファイルのフィーチャー・マネージャーのリストに自動的に含まれます。

  2. 集合コントローラーを構成します。
    1. 次を使用して、コントローラーとメンバー間の通信を保護します。 次の例は、myController サーバーの鍵ストアのパスワードを定義するコマンドです。
      wlp/bin/collective create myController --keystorePassword=controllerKSPassword --createConfigFile=myPath/collective-create-include.xml

      オプションの --createConfigFile パラメーターで、出力をファイルに書き込みます。

    2. myPath/collective-create-include.xml ファイルを開き、id="defaultSSLConfig" の ssl 構成サービス・オブジェクトに、sslProtocol="TLSv1.2" を追加します。

      オブジェクトに、特定のバージョンの TLS を含める必要があります。

      <ssl id="defaultSSLConfig"
         keyStoreRef="defaultKeyStore"
         trustStoreRef="defaultTrustStore"
         clientAuthenticationSupported="trust
         sslProtocol="TLSv1.2"/>
    3. 集合コントローラー・サーバーの server.xml ファイルを開き、作成された構成ファイルを位置指定する include ステートメントを追加します。 次の例は、構成ファイル collective-create-include.xml へのパスを示しています。
      <include location="myPath/collective-create-include.xml">
    4. id="controllerConnectionConfig" と id="memberConnectionConfig" が 設定された ssl 構成サービス・オブジェクトが、server.xml ファイルの中にあることを確認します。
      <ssl id="controllerConnectionConfig" sslProtocol="TLSv1.2"/>
      <ssl id="memberConnectionConfig" sslProtocol="TLSv1.2"/>
    5. 集合の管理ユーザー ID とパスワードの値を指定します。
      <quickStartSecurity userName="adminUser" userPassword="adminPassword" />
  3. 集合サーバーでのセキュリティーとユーザー・アクセスを構成します。証明書ベース認証のセットアップおよびユーザー名とパスワードによる認証のセットアップを参照してください。
  4. server start コマンドを実行して、集合コントローラーを開始します。
    <InstallDir>/runtime/wlp/user/servers/myController/logs/messages.log でメッセージをチェックすることにより、集合コントローラー・サーバーが正常に始動したことを確認します。 次のメッセージが表示されていなければなりません。
    CWWKX9003I: CollectiveRegistration MBean is available.
  5. 集合にメンバーとして加えるように残りのサーバーを構成します。
    1. サーバーをメンバーとして集合に加えるための集合コマンドを実行します。 以下の例は、myCatalog サーバーと myRuntime サーバーを myController サーバーのメンバーとして追加するためのコマンドです。
      wlp/bin/collective join myCatalog --host=controllerHostname --port=9443 --user=adminUser --password=adminPassword --keystorePassword=memberKSPassword --createConfigFile=myPath/collective-catalog-include.xml
      wlp/bin/collective join myRuntime --host=controllerHostname --port=9443 --user=adminUser --password=adminPassword --keystorePassword=memberKSPassword --createConfigFile=myPath/collective-container-include.xml	

      プロンプトが出されたら、証明書を信頼するために yes を入力します。

    2. プロパティーが含まれる各新規メンバーの jvm.options ファイルで、-Dhttps.protocols プロパティーを TLSv1.2 に設定します。
      -Dhttps.protocols=TLSv1.2
    3. myPath/collective-catalog-include.xml ファイルと myPath/collective-container-include.xml ファイルを開き、id="defaultSSLConfig" の ssl 構成サービス・オブジェクトに、sslProtocol="TLSv1.2" を追加します。
      <!-- clientAuthenticationSupported set to enable bidirectional trust --> 
      <ssl id="defaultSSLConfig" 
           keyStoreRef="defaultKeyStore" 
           trustStoreRef="defaultTrustStore" 
           clientAuthenticationSupported="true" 
           sslProtocol="TLSv1.2"/>
    4. 各新規メンバーの server.xml ファイルを開き、ssl id="defaultSSLConfig" タグを、 集合メンバー構成ファイルへの include に置き換えます。server.xml ファイルの次の行に、collective-catalog-include.xml ファイルが含まれています。
      <include location="myPath/collective-catalog-include.xml"/>
    5. server.xml ファイル中で、id="controllerConnectionConfig" および id="memberConnectionConfig" が設定された ssl 構成サービス・オブジェクトのコメントを外します。
      <ssl id="controllerConnectionConfig" sslProtocol="TLSv1.2"/>
      <ssl id="memberConnectionConfig" sslProtocol="TLSv1.2"/>
    6. ランタイム環境のモニターを有効にするために、次のフィーチャーを追加します。
      <feature>monitor-1.0</feature>
      集合メンバーの server.xml ファイルには、モニター・フィーチャーと集合構成ファイルの両方が含まれている必要があります。
      <server description="collective member server">
          <!-- Enable features -->
          <featureManager>
              <feature>jsp-2.2</feature>
              <feature>monitor-1.0</feature>
          </featureManager>
          <httpEndpoint id="defaultHttpEndpoint"
                        host="*"
                        httpPort="9081"
                        httpsPort="9444" />
          <include location="myPath/collective-catalog-include.xml"/>
      </server>
      注: 他のサーバーとの競合を避けるために、host パラメーターおよび port パラメーターが bootstrap.properties 内で正しく設定されていることを確認します。
    7. メンバー・サーバーを始動します。 以下の例は、7 つのサーバーで構成されるトポロジーを再始動します。
      wlp/bin/server start myCatalog01
      wlp/bin/server start myCatalog02
      wlp/bin/server start myCatalog03
      wlp/bin/server start myRuntime01
      wlp/bin/server start myRuntime02
      wlp/bin/server start myInbound01
      wlp/bin/server start myOutbound01
    8. すべての集合メンバーが集合コントローラー・サーバーによって認識されていることを確認します。ログ・ファイル <InstallDir>/runtime/wlp/user/servers/server_name/logs/messages.log を開きます。
      以下のメッセージを探します。
      CWWKX8112I: The server's host information was successfully published to the collective repository.
      CWWKX8114I: The server's paths were successfully published to the collective repository.
      CWWKX8116I: The server STARTED state was successfully published to the collective repository.