rahulnama
(Rahul Nama)
July 18, 2018, 5:52am
1
Hello
Please have a look at ES configuration and let me know what's wrong
Node:1
node.name: "es-node-1"
node.master: true
node.data: true
network.host: 10.0.0.74
http.port: 9200
discovery.zen.ping.unicast.hosts: ["10.0.0.30","10.0.0.74"]
Node 2:
node.name: "es-node-2"
node.master: true
node.data: true
network.host: 10.0.0.30
http.port: 9200
discovery.zen.ping.unicast.hosts: ["10.0.0.30","10.0.0.74"]
When I hit: (http://10.0.0.30:9200/_cluster/health/?level=shards?pretty )
response:
{"cluster_name":"my-cluster","status":"yellow","timed_out":false,"number_of_nodes":1,"number_of_data_nodes":1,"active_primary_shards":1,"active_shards":1,"relocating_shards":0,"initializing_shards":0,"unassigned_shards":1,"delayed_unassigned_shards":0,"number_of_pending_tasks":0,"number_of_in_flight_fetch":0,"task_max_waiting_in_queue_millis":0,"active_shards_percent_as_number":50.0}
number of nodes is showing 1 instead of 2.
did I miss anything in config file?
Rahul
TimV
(Tim Vernum)
July 18, 2018, 5:56am
2
Those config file do not contain cluster names, but I can see from your Rest response that your 10.0.0.30
node (Node 2) thinks its cluster name is "my-cluster".
What is the full configuration that you are using for these nodes?
rahulnama
(Rahul Nama)
July 18, 2018, 6:02am
3
Hey @TimV
this is my full configuration
bootstrap.memory_lock: true
cluster.name: my-cluster
node.name: "es-node-1"
node.master: true
node.data: true
network.host: 10.0.0.74
http.port: 9200
discovery.zen.ping.unicast.hosts: ["10.0.0.30:9200","10.0.0.74"]
thread_pool.bulk.queue_size: 2000
path.data: C:\ProgramData\Elastic\Elasticsearch\data
path.logs: C:\ProgramData\Elastic\Elasticsearch\logs
TimV
(Tim Vernum)
July 18, 2018, 6:05am
4
What about the other node?
rahulnama
(Rahul Nama)
July 18, 2018, 6:28am
5
@TimV
please have a look
bootstrap.memory_lock: true
cluster.name: my-cluster
node.name: "es-node-2"
node.master: true
node.data: true
network.host: 10.0.0.30
http.port: 9200
discovery.zen.ping.unicast.hosts: ["10.0.0.30","10.0.0.74:9200"]
thread_pool.bulk.queue_size: 2000
path.data: C:\ProgramData\Elastic\Elasticsearch\data
path.logs: C:\ProgramData\Elastic\Elasticsearch\logs
TimV
(Tim Vernum)
July 18, 2018, 6:32am
6
You've specified port 9200
in the ping hosts. That is the HTTP port, but Zen uses the transport port (9300
) for discovery.
rahulnama
(Rahul Nama)
July 18, 2018, 6:35am
7
should I modify to
discovery.zen.ping.unicast.hosts: ["10.0.0.30","10.0.0.74"]
transport.tcp.port: 9300
zqc0512
(andy_zhou)
July 18, 2018, 7:52am
8
use ip not 9200
change to ["10.0.0.30","10.0.0.74"] and try
rahulnama
(Rahul Nama)
July 18, 2018, 8:13am
9
Hey @zqc0512
I've tried but no use.
by any chance, do you think existing data is causing the problem?
If you have 2 master eligible nodes, you should set minimum_master_nodes
to 2
as well according to these guidelines .
Why are you setting this so high?
rahulnama
(Rahul Nama)
July 18, 2018, 8:28am
11
@Christian_Dahlqvist
I will set to 2 and give it a try.
regarding queue size, I've got bulk rejection exception, so I increased it.
Any dis-advantage If we keep it so high?
Read this blog post on the topic . Increasing this parameter that much will add additional memory pressure without necessarily increasing throughput. How many indices/shards are you actively indexing into?
zqc0512
(andy_zhou)
July 18, 2018, 8:35am
13
rahulnama:
"unassigned_shards":1,
you have two data node, one index have 2 replica?
rahulnama
(Rahul Nama)
July 18, 2018, 8:35am
14
@Christian_Dahlqvist
You can see it here
{"cluster_name":"my-cluster","status":"yellow","timed_out":false,"number_of_nodes":1,"number_of_data_nodes":1,"active_primary_shards":114,"active_shards":114,"relocating_shards":0,"initializing_shards":0,"unassigned_shards":107,"delayed_unassigned_shards":0,"number_of_pending_tasks":0,"number_of_in_flight_fetch":0,"task_max_waiting_in_queue_millis":0,"active_shards_percent_as_number":51.58371040723983}
Also, If possible please let me know, having these many shards is a good practise or not?
by the way, thanks for the blog post
Read this blog post for guidance on shards and sharding.
1 Like
system
(system)
Closed
August 15, 2018, 8:45am
16
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.