Saya mencoba mengonfigurasi Elastic Search di salah satu server jarak jauh kami. Saya telah menginstalnya dengan file setup .msi (v7.1.1) dan mengkonfigurasi firewall untuk port 9200 dan 9300.
Ketika saya menyetel network.publish_host
ke ip server, saya mendapat kesalahan ini the default discovery settings are unsuitable for production use; at least one of [discovery.seed_hosts, discovery.seed_providers, cluster.initial_master_nodes] must be configured
. Kemudian saya melakukan penelitian dan menyetel cluster.initial_master_nodes
ke simpul tunggal saya yang bernama "ElasticSearchNode". Sekarang layanan berjalan tetapi ketika saya memeriksa kesehatan cluster dikatakan "master_not_discovered_Exception".
File yml saya saat ini terlihat seperti:
bootstrap.memory_lock: false
cluster.name: elasticsearch
http.port: 9200
node.data: true
node.ingest: true
node.master: true
node.max_local_storage_nodes: 1
node.name: ElasticSearchNode
path.data: C:\ProgramData\Elastic\Elasticsearch\data
path.logs: C:\ProgramData\Elastic\Elasticsearch\logs
transport.tcp.port: 9300
xpack.license.self_generated.type: basic
xpack.security.enabled: false
network.host: 0.0.0.0
network.publish_host: x.x.x.x
cluster.initial_master_nodes: ElasticSearchNode
discovery.zen.minimum_master_nodes: 1
Respons ketika saya meminta /_cat/health?v
{"error":{"root_cause":[{"type":"master_not_discovered_exception","reason":null}],"type":"master_not_discovered_exception","reason":null},"status":503}
Bantuan apa pun akan dihargai.