3 node cluster

I'm trying to setup a 3 node elasticsearch cluster but there appears to be no communication between the 3 nodes even after adding them severally to the discovery.seeds. Please logs below

[2019-10-10T21:44:34,251][DEBUG][o.e.a.ActionModule ] [ojelk02] Using REST wrapper from plugin org.elasticsearch.xpack.security.Security
[2019-10-10T21:44:34,610][INFO ][o.e.d.DiscoveryModule ] [ojelk02] using discovery type [zen] and seed hosts providers [settings]
[2019-10-10T21:44:35,618][INFO ][o.e.n.Node ] [ojelk02] initialized
[2019-10-10T21:44:35,618][INFO ][o.e.n.Node ] [ojelk02] starting ...
[2019-10-10T21:44:35,758][INFO ][o.e.t.TransportService ] [ojelk02] publish_address {127.0.0.1:9300}, bound_addresses {127.0.0.1:9300}
[2019-10-10T21:44:35,793][WARN ][o.e.b.BootstrapChecks ] [ojelk02] 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
[2019-10-10T21:44:35,798][INFO ][o.e.c.c.Coordinator ] [ojelk02] cluster UUID [EajcrbwiQdGoTRU776JvfA]
[2019-10-10T21:44:35,810][INFO ][o.e.c.c.ClusterBootstrapService] [ojelk02] no discovery configuration found, will perform best-effort cluster bootstrapping after [3s] unless existing master is discovered
[2019-10-10T21:44:35,984][INFO ][o.e.c.s.MasterService ] [ojelk02] elected-as-master ([1] nodes joined)[{ojelk02}{_g03SwPKQcu-xMf3R5PShA}{JbYdilRkQqCXJvv1TC_50Q}{127.0.0.1}{127.0.0.1:9300}{dilm}{ml.machine_memory=67407470592, xpack.installed=true, ml.max_open_jobs=20} elect leader, BECOME_MASTER_TASK, FINISH_ELECTION], term: 5, version: 24, reason: master node changed {previous , current [{ojelk02}{_g03SwPKQcu-xMf3R5PShA}{JbYdilRkQqCXJvv1TC_50Q}{127.0.0.1}{127.0.0.1:9300}{dilm}{ml.machine_memory=67407470592, xpack.installed=true, ml.max_open_jobs=20}]}
[2019-10-10T21:44:36,074][INFO ][o.e.c.s.ClusterApplierService] [ojelk02] master node changed {previous , current [{ojelk02}{_g03SwPKQcu-xMf3R5PShA}{JbYdilRkQqCXJvv1TC_50Q}{127.0.0.1}{127.0.0.1:9300}{dilm}{ml.machine_memory=67407470592, xpack.installed=true, ml.max_open_jobs=20}]}, term: 5, version: 24, reason: Publication{term=5, version=24}
[2019-10-10T21:44:36,157][INFO ][o.e.h.AbstractHttpServerTransport] [ojelk02] publish_address {127.0.0.1:9200}, bound_addresses {127.0.0.1:9200}
[2019-10-10T21:44:36,158][INFO ][o.e.n.Node ] [ojelk02] started
[2019-10-10T21:44:36,466][INFO ][o.e.l.LicenseService ] [ojelk02] license [fd5b8b29-3233-4cb5-a74f-8d322afbcf01] mode [basic] - valid
[2019-10-10T21:44:36,467][INFO ][o.e.x.s.s.SecurityStatusChangeListener] [ojelk02] Active license is now [BASIC]; Security is disabled
[2019-10-10T21:44:36,478][INFO ][o.e.g.GatewayService ] [ojelk02] recovered [0] indices into cluster_state
[2019-10-10T22:02:14,782][INFO ][o.e.n.Node ] [ojelk02] stopping ...
[2019-10-10T22:02:14,805][INFO ][o.e.x.w.WatcherService ] [ojelk02] stopping watch service, reason [shutdown initiated]
[2019-10-10T22:02:14,806][INFO ][o.e.x.w.WatcherLifeCycleService] [ojelk02] watcher has stopped and shutdown
[2019-10-10T22:02:15,032][INFO ][o.e.x.m.p.l.CppLogMessageHandler] [ojelk02] [controller/30495] [Main.cc@150] Ml controller exiting
[2019-10-10T22:02:15,034][INFO ][o.e.x.m.p.NativeController] [ojelk02] Native controller process has stopped - no new native processes can be started
[2019-10-10T22:02:15,052][INFO ][o.e.n.Node ] [ojelk02] stopped
[2019-10-10T22:02:15,052][INFO ][o.e.n.Node ] [ojelk02] closing ...
[2019-10-10T22:02:15,073][INFO ][o.e.n.Node ] [ojelk02] closed

Kindly assist.

Hi @Chinedum_Nwuzor

These errors indicate you have a number of issues....

Perhaps you should read the section on setting up elasticsearch
https://www.elastic.co/guide/en/elasticsearch/reference/current/setup.html

And specifically pay attention to the network settings
https://www.elastic.co/guide/en/elasticsearch/reference/current/network.host.html

And the Discovery settings
https://www.elastic.co/guide/en/elasticsearch/reference/current/discovery-settings.html

Hi @stephenb,

Many thanks for your reply.

As per your first link, elasticsearch starts and I can curl localhost:9200. I believe if i'm having Java compatibility issue elasticsearch wouldn't be able to start.

I also believe i've configured my network host and discovery settings quite alright. Kindly see below if i missed out anything;

Elasticsearch performs poorly when the system is swapping the memory.

---------------------------------- Network -----------------------------------

Set the bind address to a specific IP (IPv4 or IPv6):

network.host: 10.1.178.202

Set a custom port for HTTP:

#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: ["10.1.178.200", "10.1.178.201"]

Bootstrap the cluster using an initial set of master-eligible nodes:

cluster.initial_master_nodes: ["node-1", "node-3"]

For more information, consult the discovery and cluster formation module documentation.

---------------------------------- Gateway -----------------------------------

Block initial recovery after a full cluster restart until N nodes are started:

#gateway.recover_after_nodes: 3

For more information, consult the gateway module documentation.