クラスターメンバーファイル

|variable_prod_name|の各ノードclusterには、現在のFailoverManagerクラスターメンバーのリストを含むクラスターメンバーファイル(デフォルトでは、efm.nodesという名前)があります。エージェントが起動すると、そのファイルを使用して他のクラスターメンバーを見つけます。|variable_prod_name|インストーラーは、 /etc/edb/efm-3.10 ディレクトリに efm.nodes.in という名前のクラスターメンバーファイルのファイルテンプレートを作成します。

|variable_prod_name|の完了後インストールでは、テンプレートの作業用コピーを作成する必要があります。

# cp /etc/edb/efm-|variable_prod_version|/efm.nodes.in /etc/edb/efm-|variable_prod_version|/efm.nodes

テンプレートファイルをコピーした後、ファイルの所有者を efm に変更します:

chown efm:efm efm.nodes

By default, |variable_prod_name| expects the cluster members file to be named efm.nodes. If you name the cluster members file something other than efm.nodes, you must modify the |variable_prod_name| service script to instruct |variable_prod_name| to use the new name.

起動した最初のノードのクラスターメンバーファイルは空にできます。このノードがメンバーシップコーディネーターになります。後続の各ノードでは、クラスターメンバーファイルにメンバーシップコーディネーターのアドレスとポート番号が含まれている必要があります。クラスターメンバーファイルの各エントリーは、複数のエントリーを空白で区切って、address:portの形式でリストする必要があります。

The Membership Coordinator will update the contents of the efm.nodes file to match the current members of the cluster. As agents join or leave the cluster, the efm.nodes files on other agents are updated to reflect the current cluster membership. If you invoke the efm stop-cluster command, |variable_prod_name| does not modify the file.

メンバーシップコーディネーターがクラスターを離れると、別のノードが役割を引き継ぎます。 :ref:`efmcluster-statusを使用できます<efm_cluster_status>`メンバーシップコーディネーターのアドレスを検索するコマンド。エージェントが停止しているときにノードがクラスターに参加または離脱する場合、ファイルに少なくとも現在のメンバーシップコーディネーターが含まれていることを手動で確認する必要があります。

クラスターに参加するノードのIPアドレスとポートがわかっている場合は、いつでもクラスターメンバーファイルにアドレスを含めることができます。起動時に、クラスターメンバーを識別しないアドレスは、( クラスタープロパティファイル内の) ``auto.allow.hosts` プロパティでない限り無視されます<auto.allow.hosts>`)は true に設定されます。

stable.nodes.file プロパティ( clusterプロパティファイルにあります))が true に設定されている場合、メンバーシップコーディネーターは、クラスターメンバーがクラスターに参加または離脱するときに .nodes ファイルを更新しません。この動作は、クラスターメンバーのIPアドレスが頻繁に変更されない場合に最も役立ちます。