1. 設定ファイルに必須項目が増えていること
/etc/elasticsearch/elasticsearch.yml
#discovery.seed_hosts: ["host1", "host2"]
discovery.seed_hosts: ["xxx.xxx.xxx.xxx"] //<=ここ
...
#cluster.initial_master_nodes: ["node-1", "node-2"]
cluster.initial_master_nodes: ["xxx.xxx.xxx.xxx"] //<=ここ
2. Shards の上限がデフォルト 1000 に設定されていること
設定変更コマンド
$ curl -XPUT http://localhost:9200/_cluster/settings -H 'Content-type: application/json' --data-binary $'{"transient":{"cluster.max_shards_per_node":100000}}'
3. Linuxユーザ elasticsearch の リソースを制限
/etc/security/limits.d/30-elasticsearch.conf
$ sudo bash -c 'cat << EOF > /etc/security/limits.d/30-elasticsearch.conf
elasticsearch soft nproc 4094
elasticsearch hard nproc 16384
elasticsearch soft nofile 10240
elasticsearch hard nofile 65536
elasticsearch soft stack 10240
elasticsearch hard stack 32768
elasticsearch soft memlock 10485760
elasticsearch hard memlock 10485760
EOF'
reboot
$ sudo reboot
4. .kibana1, .kibana2 の Index も削除したほうが良いかも
Kibanaは立ち上がるのですが、Visualize と Dashboard が 開かなくなります。
Kibana を 6.4.x -> 6.5 に バージョンアップして「Kibana server is not ready yet」が出てしまった場合 を 参照