ja:quickguides:elasticsearch_cluster

差分

このページの2つのバージョン間の差分を表示します。

この比較画面へのリンク

次のリビジョン
前のリビジョン
最新のリビジョン両方とも次のリビジョン
ja:quickguides:elasticsearch_cluster [2022/06/10 22:00] – 作成 junichija:quickguides:elasticsearch_cluster [2022/06/10 22:18] – [Configuration] junichi
行 1: 行 1:
-====== Elasticsearch cluster configuration ======+====== Elasticsearch クラスタ設定 ======
  
-[[:en:quickguides:start|Go back to Quick Guides index]]+[[:ja:quickguides:start|クイックガイド一覧に戻る]]
  
-===== Requirements =====+===== 前提条件 =====
  
   * You must first follow the [[:en:documentation:03_monitoring:09_log_monitoring#configuration|installation and configuration steps on each node]].   * You must first follow the [[:en:documentation:03_monitoring:09_log_monitoring#configuration|installation and configuration steps on each node]].
   * The minimum size of an Elasticsearch cluster is 3 nodes and it must always grow in odd numbers in order to make use of the //quorum//  system and guarantee data integrity.   * The minimum size of an Elasticsearch cluster is 3 nodes and it must always grow in odd numbers in order to make use of the //quorum//  system and guarantee data integrity.
   * Ensure that you have connectivity between all 3 nodes and that ports 9200 and 9300 are accessible between each and every node.   * Ensure that you have connectivity between all 3 nodes and that ports 9200 and 9300 are accessible between each and every node.
 +
 +  * まず最初に [[:ja:documentation:03_monitoring:09_log_monitoring#設定|各ノードでインストールと設定手順]] を行う必要があります。
 +  * Elasticsearch クラスターの最小サイズは 3ノードであり、//quorum// システムを利用してデータの整合性を保証するには、常に奇数で増やす必要があります。
 +  * 3つのノードすべての間で通信が可能であり、各ノード間でポート 9200 および 9300 へアクセスできることを確認してください。
  
 <WRAP center round tip 60%>Remember to configure the firewall of each node to allow connection through these port numbers.</WRAP> <WRAP center round tip 60%>Remember to configure the firewall of each node to allow connection through these port numbers.</WRAP>
  
-===== Configuration =====+<WRAP center round tip 60%>これらのポート番号を介した接続を許可するように、各ノードのファイアウォールの設定を忘れないでください。</WRAP> 
 + 
 +===== 設定 =====
  
 Stop the Elasticsearch service on each and every node: Stop the Elasticsearch service on each and every node:
 +
 +全ノードの Elasticsearch サービスを停止します。
 +
 <code> <code>
  
行 21: 行 30:
  
 Modify the following lines in the configuration file ''/etc/elasticsearch/elasticsearch.yml''  : Modify the following lines in the configuration file ''/etc/elasticsearch/elasticsearch.yml''  :
 +
 +設定ファイル ''/etc/elasticsearch/elasticsearch.yml'' の以下の行を編集します。
  
 <code> <code>
行 29: 行 40:
  
 //[[:en:documentation:01_understanding:03_glossary#commenting_out_or_uncommenting_a_parameter|Uncomment]]// the lines and add the IP addresses or URLs of each node: //[[:en:documentation:01_understanding:03_glossary#commenting_out_or_uncommenting_a_parameter|Uncomment]]// the lines and add the IP addresses or URLs of each node:
 +
 +該当行を //[[:ja:documentation:01_understanding:03_glossary#パラメータのコメントアウトとアンコメント|コメントアウト]]// し、各ノードの IP アドレスまたは URL を追加します。
 +
 <code> <code>
  
行 37: 行 51:
  
 Example with IP addresses: Example with IP addresses:
 +
 +IP アドレスでの例:
  
 <code> <code>
行 45: 行 61:
  
 <WRAP center round important 60%>Make sure that the line ''cluster.initial_master_nodes''  is defined only once in the configuration file, **in some cases the same line appears in two different blocks of the same file.**</WRAP> <WRAP center round important 60%>Make sure that the line ''cluster.initial_master_nodes''  is defined only once in the configuration file, **in some cases the same line appears in two different blocks of the same file.**</WRAP>
 +
 +<WRAP center round important 60%>''cluster.initial_master_nodes'' の行は設定ファイル内で 1回のみ定義されていることを確認してください。**場合によっては、同じ行が同じファイルの異なる 2つの場所に表示されます。**</WRAP>
  
 Before starting the service, because the nodes were started for the first time on their own (standalone), the contents of the data folder (by default ''/var/lib/elasticsearch/'') must be deleted in order to start the cluster for the first time. Do this with the command: Before starting the service, because the nodes were started for the first time on their own (standalone), the contents of the data folder (by default ''/var/lib/elasticsearch/'') must be deleted in order to start the cluster for the first time. Do this with the command:
 +
 +ノードは初回に単独で(スタンドアロンで)開始されたため、サービスを開始する前にデータフォルダーの内容(デフォルトでは ''/var/lib/elasticsearch/'')を削除する必要があります。 次のコマンドを実行します。
  
 <code> <code>
行 54: 行 74:
  
 Now it is time to start the services on each and every node. Start and check that they are running with the commands: Now it is time to start the services on each and every node. Start and check that they are running with the commands:
 +
 +次に、すべてのノードでサービスを開始します。 次のコマンドで開始し、実行されていることを確認します。
  
 <code> <code>
行 61: 行 83:
  
 You should get an output similar to: You should get an output similar to:
 +
 +次のような出力を得られます。
  
 {{  :wiki:pfms-systemctl_status_elasticsearch.service.png  }} {{  :wiki:pfms-systemctl_status_elasticsearch.service.png  }}
  
 Once the services have been started, you must confirm that the 3 nodes are joined to the cluster correctly, so when executing the following command on any of the nodes, the same response should be given: Once the services have been started, you must confirm that the 3 nodes are joined to the cluster correctly, so when executing the following command on any of the nodes, the same response should be given:
 +
 +サービスが開始されたら、3つのノードがクラスターに正しく参加していることを確認する必要があります。任意のノードで次のコマンドを実行すると、同じ応答が返されます。
  
 <code> <code>
行 74: 行 100:
  
 Check again the firewall configuration always taking into account that the nodes should communicate through ports ''9200''  and ''9300''  and that from the PFMS server and the PFMS Web Console should be able to access port ''9200''  as well. With these steps you will have already installed and configured the Elasticsearch cluster to be used as Pandora FMS log storage engine. Check again the firewall configuration always taking into account that the nodes should communicate through ports ''9200''  and ''9300''  and that from the PFMS server and the PFMS Web Console should be able to access port ''9200''  as well. With these steps you will have already installed and configured the Elasticsearch cluster to be used as Pandora FMS log storage engine.
 +
 +ノードがポート ''9200'' および ''9300'' を介して通信する必要があることに加えて、Pandora FMS サーバおよび Pandora FMS Web コンソールからポート ''9200'' へアクセスできる必要があることを常に考慮してファイアウォールの設定を再度確認してください。ここまでの設定により、Pandora FMS ログストレージエンジンとして使用される Elasticsearch クラスターの準備が完了です。
  
 ===== Data models and templates ===== ===== Data models and templates =====
行 124: 行 152:
 {{  :wiki:getinterface.png  }} {{  :wiki:getinterface.png  }}
  
-[[:en:quickguides:start|Go back to Quick Guides index]]+[[:ja:quickguides:start|クイックガイド一覧に戻る]]
  
  
  • ja/quickguides/elasticsearch_cluster.txt
  • 最終更新: 2022/06/10 22:31
  • by junichi