この情報を使用して、クラスタ環境の Elasticsearch の問題をトラブルシューティングします。監査、レポート、ディレクトリ同期ログに使用される検索および分析エンジンである Elasticsearch が、VMware Identity Manager 仮想アプライアンスに組み込まれています。
Elasticsearch のトラブルシューティング
Elasticsearch の健全性は、VMware Identity Manager アプライアンスで次のコマンドを使用して確認できます。
curl 'http://localhost:9200/_cluster/health?pretty'
このコマンドによって、次のような結果が返されます。
{
"cluster_name" : "horizon",
"status" : "green",
"timed_out" : false,
"number_of_nodes" : 3,
"number_of_data_nodes" : 3,
"active_primary_shards" : 20,
"active_shards" : 40,
"relocating_shards" : 0,
"initializing_shards" : 0,
"unassigned_shards" : 0,
"delayed_unassigned_shards" : 0,
"number_of_pending_tasks" : 0,
"number_of_in_flight_fetch" : 0
}
Elasticsearch が正しく起動しないか、ステータスが赤色の場合は、次の手順でトラブルシューティングしてください。
ポート 9300 が開いていることを確認します。
クラスタ内のすべてのノードの IP アドレスを /usr/local/horizon/scripts/updateiptables.hzn ファイルに追加し、ノードの詳細を更新します。
ALL_IPS="node1IPadd node2IPadd node3IPadd"クラスタ内のすべてのノードで次のスクリプトを実行します。
/usr/local/horizon/scripts/updateiptables.hzn
クラスタのすべてのノードで Elasticsearch を再起動します。
service elasticsearch restart
ログで詳細を確認します。
cd /opt/vmware/elasticsearch/logs
tail -f horizon.log