# Node communication

**URL:** <https://discuss.elastic.co/t/node-communication/284199>\
**Category:** Elasticsearch\
**Created:** [September 14, 2021, 2:38pm UTC](https://discuss.elastic.co/t/node-communication/284199 "2021-09-14T14:38:32Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ashwin\_Patil1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ashwin_patil1/32/90642_2.png) [@Ashwin\_Patil1](https://discuss.elastic.co/u/Ashwin_Patil1)\
**Post date:** [September 14, 2021, 2:38pm UTC](https://discuss.elastic.co/t/node-communication/284199/1 "2021-09-14T14:38:32Z")

</div>

I have 3 elastic nodes, I am trying to establish connection between 3 nodes, but not able to establish communication between nodes. Below is the elasticsearch.yml file, please let me what am I doing wrong.

```auto
# ======================== Elasticsearch Configuration =========================
#
# NOTE: Elasticsearch comes with reasonable defaults for most settings.
# Before you set out to tweak and tune the configuration, make sure you
# understand what are you trying to accomplish and the consequences.
#
# The primary way of configuring a node is via this file. This template lists
# the most important settings you may want to configure for a production cluster.
#
# Please consult the documentation for further information on configuration options:
# https://www.elastic.co/guide/en/elasticsearch/reference/index.html
#
# ---------------------------------- Cluster -----------------------------------
#
# Use a descriptive name for your cluster:
#
cluster.name: Elastic_Search
#
# ------------------------------------ Node ------------------------------------
#
# Use a descriptive name for the node:
#
node.name: node-3
#
# Add custom attributes to the node:
#
#node.attr.rack: r1
#
# ----------------------------------- Paths ------------------------------------
#
# Path to directory where to store the data (separate multiple locations by comma):
#
path.data: /var/lib/elasticsearch
#
# Path to log files:
#
path.logs: /var/log/elasticsearch
#
# ----------------------------------- Memory -----------------------------------
#
# Lock the memory on startup:
#
#bootstrap.memory_lock: true
#
# Make sure that the heap size is set to about half the memory available
# on the system and that the owner of the process is allowed to use this
# limit.
#
# Elasticsearch performs poorly when the system is swapping the memory.
#
# ---------------------------------- Network -----------------------------------
#
# By default Elasticsearch is only accessible on localhost. Set a different
# address here to expose this node on the network:
#
network.host: 0.0.0.0
#
# By default Elasticsearch listens for HTTP traffic on the first free port it
# finds starting at 9200. Set a specific HTTP port here:
#
http.port: 9200
#
# For more information, consult the network module documentation.
#
# --------------------------------- Discovery ----------------------------------
#
# Pass an initial list of hosts to perform discovery when this node is started:
# The default list of hosts is ["127.0.0.1", "[::1]"]
#
discovery.seed_hosts: ["172.16.12.11", "172.16.12.13","172.16.12.14"]

#
# Bootstrap the cluster using an initial set of master-eligible nodes:
#
cluster.initial_master_nodes: ["172.16.12.11"]
#
# For more information, consult the discovery and cluster formation module documentation.
#
# ---------------------------------- Various -----------------------------------
#
# Require explicit names when deleting indices:
#
action.destructive_requires_name: true

xpack.monitoring.enabled: 'true'
xpack.monitoring.collection.enabled: 'true'
xpack.monitoring.collection.interval: 30s

xpack.security.enabled: 'true'
xpack.security.audit.enabled: 'false'
xpack.security.transport.ssl.enabled: 'true'
#xpack.security.http.ssl.enabled: 'true'
#xpack.security.authc.api_key.enabled: 'true'
#xpack.watcher.enabled: 'false'

xpack.ilm.enabled: 'true'

```

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [September 14, 2021, 9:39pm UTC](https://discuss.elastic.co/t/node-communication/284199/2 "2021-09-14T21:39:31Z")

</div>

What do your logs show?

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [September 15, 2021, 5:40am UTC](https://discuss.elastic.co/t/node-communication/284199/3 "2021-09-15T05:40:32Z")

</div>

It looks like you have enabled security but not created or configured any certificates. Please follow the guides around enabling security that are part of the documentation for your version.

---

<div class="post-metadata">

**Author:** ![Ashwin\_Patil1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ashwin_patil1/32/90642_2.png) [@Ashwin\_Patil1](https://discuss.elastic.co/u/Ashwin_Patil1)\
**Post date:** [September 15, 2021, 8:42am UTC](https://discuss.elastic.co/t/node-communication/284199/4 "2021-09-15T08:42:32Z")

</div>

Below are the logs,

```auto
localhost:~ # sudo tail -f /var/log/elasticsearch/Elastic_Search.log
[2021-09-15T09:39:21,260][WARN][o.e.d.PeerFinder] [node-2] address [17 2.16.12.11:9300], node [null], requesting [false] connection failed: [][172.16.1 2.11:9300] general node connection failure: handshake failed because connection reset
[2021-09-15T09:39:22,260][WARN][o.e.d.PeerFinder] [node-2] address [17 2.16.12.11:9300], node [null], requesting [false] connection failed: [][172.16.1 2.11:9300] general node connection failure: handshake failed because connection reset
[2021-09-15T09:39:23,260][WARN][o.e.d.PeerFinder] [node-2] address [17 2.16.12.11:9300], node [null], requesting [false] connection failed: [][172.16.1 2.11:9300] general node connection failure: handshake failed because connection reset
[2021-09-15T09:39:24,260][WARN][o.e.d.PeerFinder] [node-2] address [17 2.16.12.11:9300], node [null], requesting [false] connection failed: [][172.16.1 2.11:9300] general node connection failure: handshake failed because connection reset
[2021-09-15T09:39:25,260][WARN][o.e.d.PeerFinder] [node-2] address [17 2.16.12.11:9300], node [null], requesting [false] connection failed: [][172.16.1 2.11:9300] general node connection failure: handshake failed because connection reset
[2021-09-15T09:39:26,260][WARN][o.e.d.PeerFinder] [node-2] address [17 2.16.12.11:9300], node [null], requesting [false] connection failed: [][172.16.1 2.11:9300] general node connection failure: handshake failed because connection reset
[2021-09-15T09:39:27,261][WARN][o.e.d.PeerFinder] [node-2] address [17 2.16.12.11:9300], node [null], requesting [false] connection failed: [][172.16.1 2.11:9300] general node connection failure: handshake failed because connection reset
[2021-09-15T09:39:28,261][WARN][o.e.d.PeerFinder] [node-2] address [17 2.16.12.11:9300], node [null], requesting [false] connection failed: [][172.16.1 2.11:9300] general node connection failure: handshake failed because connection reset

```

---

<div class="post-metadata">

**Author:** ![Ashwin\_Patil1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ashwin_patil1/32/90642_2.png) [@Ashwin\_Patil1](https://discuss.elastic.co/u/Ashwin_Patil1)\
**Post date:** [September 15, 2021, 11:20am UTC](https://discuss.elastic.co/t/node-communication/284199/5 "2021-09-15T11:20:30Z")

</div>

I have added the certificate to elasticsearch.yml and tried to restart but it fails. @warkolm @Christian_Dahlqvist

```auto
xpack.monitoring.enabled: 'true'
xpack.monitoring.collection.enabled: 'true'
xpack.monitoring.collection.interval: 30s

xpack.security.enabled: 'true'
xpack.security.audit.enabled: 'false'
xpack.security.transport.ssl.enabled: 'true'
xpack.security.transport.ssl.verification_mode: certificate
xpack.security.transport.ssl.client_authentication: required
xpack.security.transport.ssl.keystore.path: elastic-certificates.p12
xpack.security.transport.ssl.truststore.path: elastic-certificates.p12

```

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [October 13, 2021, 11:21am UTC](https://discuss.elastic.co/t/node-communication/284199/6 "2021-10-13T11:21:15Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
