# Elastic cluster dislay only single node

**URL:** <https://forum.opensearch.org/t/elastic-cluster-dislay-only-single-node/3933>\
**Category:** Open Source Elasticsearch and Kibana\
**Created:** [October 14, 2020, 10:38am UTC](https://forum.opensearch.org/t/elastic-cluster-dislay-only-single-node/3933 "2020-10-14T10:38:40Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![sourabhsharma](https://avatars.discourse-cdn.com/v4/letter/s/8edcca/32.png) [@sourabhsharma](https://forum.opensearch.org/u/sourabhsharma)\
**Post date:** [October 14, 2020, 10:38am UTC](https://forum.opensearch.org/t/elastic-cluster-dislay-only-single-node/3933/1 "2020-10-14T10:38:40Z")

</div>

I have setup 3 node cluster in elasticsearch. but it display only single node in the cluster.

I have specify:

Cluster.name  
node.node  
network.host  
discovery.seed\_hosts:

when i do the " curl -XGET [https://localhost:9200/\_cat/nodes?v](https://localhost:9200/_cat/nodes?v) -u admin:admin --insecure"  
display only single node instead of 3.

can anyone confirm what wrong here.

---

<div class="post-metadata">

**Author:** ![stmx38](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.opensearch.org/stmx38/32/4354_2.png) [@stmx38](https://forum.opensearch.org/u/stmx38)\
**Post date:** [October 14, 2020, 11:45am UTC](https://forum.opensearch.org/t/elastic-cluster-dislay-only-single-node/3933/2 "2020-10-14T11:45:57Z")

</div>

Hello @sourabhsharma, can you please provide the data from your config, like bellow one:

```auto
cluster.name: test-cluster
node.name: test
network.host: ["_local_", "_site_"]
http.host: ["_local_", "_site_"]
http.port: 9200
transport.host: ["_local_", "_site_"]
transport.port: 9300
path.data: /opt/elk-data
path.logs: /var/log/elasticsearch

cluster.initial_master_nodes: ["test"]
discovery.seed_hosts: ["192.168.1.10:9300"]

```

---

<div class="post-metadata">

**Author:** ![sourabhsharma](https://avatars.discourse-cdn.com/v4/letter/s/8edcca/32.png) [@sourabhsharma](https://forum.opensearch.org/u/sourabhsharma)\
**Post date:** [October 14, 2020, 4:25pm UTC](https://forum.opensearch.org/t/elastic-cluster-dislay-only-single-node/3933/3 "2020-10-14T16:25:16Z")

</div>

cluster.name: odfe-cluster  
node.name: odfe-d2  
#node.master: true  
#node.data: true  
#node.ingest: true

path.data: /var/lib/elasticsearch

path.logs: /var/log/elasticsearch

network.host: “0.0.0.0”

#discovery.seed\_hosts: [“xxx”, “xxx”]  
#discovery.seed\_hosts: [“x.x.x.x”,“x.x.x.x”]  
discovery.zen.ping.unicast.hosts: [“xxxx”,“xxxx”]  
#discovery.zen.minimum\_master\_nodes: 1  
######## Start OpenDistro for Elasticsearch Security Demo Configuration ########

# WARNING: revise all the lines below before you go into production

opendistro\_security.ssl.transport.pemcert\_filepath: esnode.pem  
opendistro\_security.ssl.transport.pemkey\_filepath: esnode-key.pem  
opendistro\_security.ssl.transport.pemtrustedcas\_filepath: root-ca.pem  
opendistro\_security.ssl.transport.enforce\_hostname\_verification: false  
opendistro\_security.ssl.http.enabled: true  
opendistro\_security.ssl.http.pemcert\_filepath: esnode.pem  
opendistro\_security.ssl.http.pemkey\_filepath: esnode-key.pem  
opendistro\_security.ssl.http.pemtrustedcas\_filepath: root-ca.pem  
opendistro\_security.allow\_unsafe\_democertificates: true  
opendistro\_security.allow\_default\_init\_securityindex: true  
opendistro\_security.authcz.admin\_dn:

- CN=kirk,OU=client,O=client,L=test, C=de

opendistro\_security.audit.type: internal\_elasticsearch  
opendistro\_security.enable\_snapshot\_restore\_privilege: true  
opendistro\_security.check\_snapshot\_restore\_write\_privileges: true  
opendistro\_security.restapi.roles\_enabled: [“all\_access”, “security\_rest\_api\_access”]  
cluster.routing.allocation.disk.threshold\_enabled: false  
node.max\_local\_storage\_nodes: 3

---

<div class="post-metadata">

**Author:** ![sourabhsharma](https://avatars.discourse-cdn.com/v4/letter/s/8edcca/32.png) [@sourabhsharma](https://forum.opensearch.org/u/sourabhsharma)\
**Post date:** [October 14, 2020, 4:27pm UTC](https://forum.opensearch.org/t/elastic-cluster-dislay-only-single-node/3933/4 "2020-10-14T16:27:12Z")

</div>

smilarly I have define the configuration into two other nodes.

root@data3:/home/ubuntu# curl -XGET [https://localhost:9200/\_cat/nodes?v](https://localhost:9200/_cat/nodes?v) -u admin:admin --insecure  
ip heap.percent ram.percent cpu load\_1m load\_5m load\_15m node.role master name  
x.x.x.x 26 97 1 0.06 0.03 0.02 dimr \* odfe-d2  
root@data3:/home/ubuntu#

ideally it should return 3 nodes in cluser.

---

<div class="post-metadata">

**Author:** ![sourabhsharma](https://avatars.discourse-cdn.com/v4/letter/s/8edcca/32.png) [@sourabhsharma](https://forum.opensearch.org/u/sourabhsharma)\
**Post date:** [October 14, 2020, 4:54pm UTC](https://forum.opensearch.org/t/elastic-cluster-dislay-only-single-node/3933/5 "2020-10-14T16:54:23Z")

</div>

[quote=“stmx38, post:2, topic:3933”]

```auto
cluster.initial_master_nodes: ["test"]
discovery.seed_hosts: ["192.168.1.10:9300"]

```

[/quote][WARN][o.e.d.HandshakingTransportAddressConnector] [odfe-d1] [connectToRemoteMasterNode[34.197.1.61:9300]] completed handshake with [{odfe-d2}{N-nYV4IYQgW\_SgNOq49KYw}{AwJVJGP5SniZIfAP3bP6iw}{172.31.11.196}{172.31.11.196:9300}{dimr}] but followup connection failed  
org.elasticsearch.transport.ConnectTransportException: [odfe-d2][172.31.11.196:9300] connect\_timeout[30s]  
at org.elasticsearch.transport.TcpTransport$ChannelsConnectedListener.onTimeout(TcpTransport.java:972) ~[elasticsearch-7.9.1.jar:7.9.1]  
at org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingRunnable.run(ThreadContext.java:651) ~[elasticsearch-7.9.1.jar:7.9.1]  
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130) [?:?]  
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:630) [?:?]  
at java.lang.Thread.run(Thread.java:832) [?:?]  
[2020-10-14T16:53:45,881][INFO][stats\_log] [odfe-d1] ------------------------------------------------------------------------  
Program=PerformanceAnalyzerPlugin

---

<div class="post-metadata">

**Author:** ![stmx38](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.opensearch.org/stmx38/32/4354_2.png) [@stmx38](https://forum.opensearch.org/u/stmx38)\
**Post date:** [October 14, 2020, 5:03pm UTC](https://forum.opensearch.org/t/elastic-cluster-dislay-only-single-node/3933/6 "2020-10-14T17:03:50Z")

</div>

@sourabhsharma, can you please check and post here 3 configuration keys from each host:  
**host 1**

```auto
node.name: odfe-d1
cluster.initial_master_nodes: ["odfe-d1", "odfe-d2", "odfe-d3"]
discovery.seed_hosts: ["192.168.1.11:9300", "192.168.1.12:9300", "192.168.1.13:9300"]

```

**host 2**

```auto
node.name: odfe-d2
cluster.initial_master_nodes: ["odfe-d1", "odfe-d2", "odfe-d3"]
discovery.seed_hosts: ["192.168.1.11:9300", "192.168.1.12:9300", "192.168.1.13:9300"]

```

**host 3**

```auto
node.name: odfe-d3
cluster.initial_master_nodes: ["odfe-d1", "odfe-d2", "odfe-d3"]
discovery.seed_hosts: ["192.168.1.11:9300", "192.168.1.12:9300", "192.168.1.13:9300"]

```

---

<div class="post-metadata">

**Author:** ![sourabhsharma](https://avatars.discourse-cdn.com/v4/letter/s/8edcca/32.png) [@sourabhsharma](https://forum.opensearch.org/u/sourabhsharma)\
**Post date:** [October 14, 2020, 5:21pm UTC](https://forum.opensearch.org/t/elastic-cluster-dislay-only-single-node/3933/7 "2020-10-14T17:21:32Z")

</div>

node.name: odfe-master  
network.host: “0.0.0.0”  
discovery.seed\_hosts: [“172.31.12.233”,“172.31.5.28”,“172.31.11.196”]

node.name: odfe-d1  
network.host: “0.0.0.0”  
discovery.seed\_hosts: [“172.31.12.233”,“172.31.5.28”,“172.31.11.196”]

node.name: odfe-d2  
network.host: “0.0.0.0”  
discovery.seed\_hosts: [“172.31.12.233”,“172.31.5.28”,“172.31.11.196”]

do I need create any certificate and that i need to use in my cluster ?

completed handshake with [{odfe-d2}{N-nYV4IYQgW\_SgNOq49KYw}{AwJVJGP5SniZIfAP3bP6iw}{172.31.11.196}{172.31.11.196:9300}{dimr}] but followup connection failed  
org.elasticsearch.transport.ConnectTransportException: [odfe-d2][172.31.11.196:9300] connect\_timeout[30s]  
at org.elasticsearch.transport.TcpTransport$ChannelsConnectedListener.onTimeout(TcpTransport.java:972) ~[elasticsearch-7.9.1.jar:7.9.1]

---

<div class="post-metadata">

**Author:** ![sourabhsharma](https://avatars.discourse-cdn.com/v4/letter/s/8edcca/32.png) [@sourabhsharma](https://forum.opensearch.org/u/sourabhsharma)\
**Post date:** [October 14, 2020, 5:23pm UTC](https://forum.opensearch.org/t/elastic-cluster-dislay-only-single-node/3933/8 "2020-10-14T17:23:44Z")

</div>

Can you send me any blog link that i can follow and setup on my vm.

---

<div class="post-metadata">

**Author:** ![stmx38](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.opensearch.org/stmx38/32/4354_2.png) [@stmx38](https://forum.opensearch.org/u/stmx38)\
**Post date:** [October 14, 2020, 5:45pm UTC](https://forum.opensearch.org/t/elastic-cluster-dislay-only-single-node/3933/9 "2020-10-14T17:45:06Z")

</div>

@sourabhsharma, please add keys to your config as in my [example above](https://forum.opensearch.org/t/elastic-cluster-dislay-only-single-node/3933/6):

```auto
node.name: odfe-master/odfe-d1/odfe-d2
cluster.initial_master_nodes: ["odfe-master", "odfe-d1", "odfe-d2"]
discovery.seed_hosts: ["172.31.12.233","172.31.5.28","172.31.11.196"]

```

All 3 keys should be placed on every node and Elasticsearch service should be restarted.

For more information, please refer to the documentation: [Important discovery and cluster formation settings](https://www.elastic.co/guide/en/elasticsearch/reference/current/discovery-settings.html)

---

<div class="post-metadata">

**Author:** ![sourabhsharma](https://avatars.discourse-cdn.com/v4/letter/s/8edcca/32.png) [@sourabhsharma](https://forum.opensearch.org/u/sourabhsharma)\
**Post date:** [October 14, 2020, 6:30pm UTC](https://forum.opensearch.org/t/elastic-cluster-dislay-only-single-node/3933/10 "2020-10-14T18:30:00Z")

</div>

I have already add these 3 keys on every node. but these 3 nodes not comes on cluster. r you available for quick zoom call.

---

<div class="post-metadata">

**Author:** ![stmx38](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.opensearch.org/stmx38/32/4354_2.png) [@stmx38](https://forum.opensearch.org/u/stmx38)\
**Post date:** [October 15, 2020, 5:54am UTC](https://forum.opensearch.org/t/elastic-cluster-dislay-only-single-node/3933/11 "2020-10-15T05:54:44Z")

</div>

@sourabhsharma, yes - let’s try. Don’t have so much experience with zoom - jus created an account. I’m in +3 time zone.

---

<div class="post-metadata">

**Author:** ![sourabhsharma](https://avatars.discourse-cdn.com/v4/letter/s/8edcca/32.png) [@sourabhsharma](https://forum.opensearch.org/u/sourabhsharma)\
**Post date:** [October 15, 2020, 8:11am UTC](https://forum.opensearch.org/t/elastic-cluster-dislay-only-single-node/3933/12 "2020-10-15T08:11:10Z")

</div>

my skype id : saurabh.find1, can you please ping me

---

<div class="post-metadata">

**Author:** ![feldversuch](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.opensearch.org/feldversuch/32/1413_2.png) [@feldversuch](https://forum.opensearch.org/u/feldversuch)\
**Post date:** [April 28, 2021, 1:18pm UTC](https://forum.opensearch.org/t/elastic-cluster-dislay-only-single-node/3933/13 "2021-04-28T13:18:50Z")

</div>

Hi @sourabhsharma & @stmx38,  
could you find a solution?  
I have similar problems …

---

<div class="post-metadata">

**Author:** ![stmx38](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.opensearch.org/stmx38/32/4354_2.png) [@stmx38](https://forum.opensearch.org/u/stmx38)\
**Post date:** [April 29, 2021, 6:49pm UTC](https://forum.opensearch.org/t/elastic-cluster-dislay-only-single-node/3933/14 "2021-04-29T18:49:04Z")

</div>

@feldversuch, as I remember the issue was related to the Debian specific installation. On CentOS via RMP all worked fine.

---

<div class="post-metadata">

**Author:** ![feldversuch](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.opensearch.org/feldversuch/32/1413_2.png) [@feldversuch](https://forum.opensearch.org/u/feldversuch)\
**Post date:** [April 29, 2021, 8:43pm UTC](https://forum.opensearch.org/t/elastic-cluster-dislay-only-single-node/3933/15 "2021-04-29T20:43:37Z")

</div>

@stmx38 , thanks for the feedback.  
I was able to start my cluster successfully - but only with security disabled.
