Cluster configuration

hello,

i am trying to implement elasticsearch cluster. i have 2 machines with 2
nodes each. i have following configuration in yml file. i have given unique
node name on each node, all of them are master and data nodes.

cluster.name: elasticsearch
node.master: true
node.data: true
discovery.zen.ping.multicast.enabled: false
discovery.zen.ping.unicast.hosts: ["machine1", "machine2"]
discovery.zen.minimum_master_nodes: 3

the four nodes are working correctly in the cluster. I would like to bring
one of the nodes down, and have other 3 run in the cluster. When I try to
bring one of first three, cluster goes down, I get this error

{
"error": "ClusterBlockException[blocked by: [SERVICE_UNAVAILABLE/1/state
not recovered / initialized];]",
"status": 503
}

If i bring down the last started node, the cluster works fine. I thought if
I have 4 masters and one of the master goes down, other three masters
should run in the cluster. is it not correct?

thank you.

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/93ebf994-cc20-4846-8763-a044e2f008f7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

I believe if you have two or more nodes on a single machine, you need to
specify each in the unicast host property:

discovery.zen.ping.unicast.hosts: ["machine1:port1", "machine2:port1",
"machine1:port2",
"machine2:port2"]

Where port1 and port2 are probably 9300 and 9301.

--
Ivan

On Tue, Apr 15, 2014 at 9:34 PM, Narasimha Alzapur avnrao@gmail.com wrote:

hello,

i am trying to implement elasticsearch cluster. i have 2 machines with 2
nodes each. i have following configuration in yml file. i have given unique
node name on each node, all of them are master and data nodes.

cluster.name: elasticsearch
node.master: true
node.data: true
discovery.zen.ping.multicast.enabled: false
discovery.zen.ping.unicast.hosts: ["machine1", "machine2"]
discovery.zen.minimum_master_nodes: 3

the four nodes are working correctly in the cluster. I would like to bring
one of the nodes down, and have other 3 run in the cluster. When I try to
bring one of first three, cluster goes down, I get this error

{
"error": "ClusterBlockException[blocked by:
[SERVICE_UNAVAILABLE/1/state not recovered / initialized];]",
"status": 503
}

If i bring down the last started node, the cluster works fine. I thought
if I have 4 masters and one of the master goes down, other three masters
should run in the cluster. is it not correct?

thank you.

--
You received this message because you are subscribed to the Google Groups
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/93ebf994-cc20-4846-8763-a044e2f008f7%40googlegroups.comhttps://groups.google.com/d/msgid/elasticsearch/93ebf994-cc20-4846-8763-a044e2f008f7%40googlegroups.com?utm_medium=email&utm_source=footer
.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/CALY%3DcQDOJMvAsNWVzHa1Vf8QZCSfqaGr5%3D2N6-g5BR0EkufHFQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Thank you. That worked. Now when i bring down any master, cluster keeps
going with other 3 master nodes.

I took down a master node that is bound to localhost:9200 on one machine1.
I can still query using localhost:9201. Does it mean, do we need to change
the URL on client from 9200 to 9201 if a node goes down. Is there anyway to
avoid changing url on client?

appreciate your help. thank you.

On Wednesday, April 16, 2014 11:05:37 AM UTC-5, Ivan Brusic wrote:

I believe if you have two or more nodes on a single machine, you need to
specify each in the unicast host property:

discovery.zen.ping.unicast.hosts: ["machine1:port1", "machine2:port1", "machine1:port2",
"machine2:port2"]

Where port1 and port2 are probably 9300 and 9301.

--
Ivan

On Tue, Apr 15, 2014 at 9:34 PM, Narasimha Alzapur <avn...@gmail.com<javascript:>

wrote:

hello,

i am trying to implement elasticsearch cluster. i have 2 machines with 2
nodes each. i have following configuration in yml file. i have given unique
node name on each node, all of them are master and data nodes.

cluster.name: elasticsearch
node.master: true
node.data: true
discovery.zen.ping.multicast.enabled: false
discovery.zen.ping.unicast.hosts: ["machine1", "machine2"]
discovery.zen.minimum_master_nodes: 3

the four nodes are working correctly in the cluster. I would like to
bring one of the nodes down, and have other 3 run in the cluster. When I
try to bring one of first three, cluster goes down, I get this error

{
"error": "ClusterBlockException[blocked by:
[SERVICE_UNAVAILABLE/1/state not recovered / initialized];]",
"status": 503
}

If i bring down the last started node, the cluster works fine. I thought
if I have 4 masters and one of the master goes down, other three masters
should run in the cluster. is it not correct?

thank you.

--
You received this message because you are subscribed to the Google Groups
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to elasticsearc...@googlegroups.com <javascript:>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/93ebf994-cc20-4846-8763-a044e2f008f7%40googlegroups.comhttps://groups.google.com/d/msgid/elasticsearch/93ebf994-cc20-4846-8763-a044e2f008f7%40googlegroups.com?utm_medium=email&utm_source=footer
.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/b48a8aba-e565-4065-844e-5608d3ad1929%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

It depends on which client you use. If you use the Java TransportClient
with "sniff" enabled, it detect all nodes upon client startup and use that
list for its request. All other clients (REST) round robin between whatever
servers were set in the properties.

--
Ivan

On Wed, Apr 16, 2014 at 10:05 AM, Narasimha Alzapur avnrao@gmail.comwrote:

Thank you. That worked. Now when i bring down any master, cluster keeps
going with other 3 master nodes.

I took down a master node that is bound to localhost:9200 on one machine1.
I can still query using localhost:9201. Does it mean, do we need to change
the URL on client from 9200 to 9201 if a node goes down. Is there anyway to
avoid changing url on client?

appreciate your help. thank you.

On Wednesday, April 16, 2014 11:05:37 AM UTC-5, Ivan Brusic wrote:

I believe if you have two or more nodes on a single machine, you need to
specify each in the unicast host property:

discovery.zen.ping.unicast.hosts: ["machine1:port1", "machine2:port1",
"machine1:port2", "machine2:port2"]

Where port1 and port2 are probably 9300 and 9301.

--
Ivan

On Tue, Apr 15, 2014 at 9:34 PM, Narasimha Alzapur avn...@gmail.comwrote:

hello,

i am trying to implement elasticsearch cluster. i have 2 machines with 2
nodes each. i have following configuration in yml file. i have given unique
node name on each node, all of them are master and data nodes.

cluster.name: elasticsearch
node.master: true
node.data: true
discovery.zen.ping.multicast.enabled: false
discovery.zen.ping.unicast.hosts: ["machine1", "machine2"]
discovery.zen.minimum_master_nodes: 3

the four nodes are working correctly in the cluster. I would like to
bring one of the nodes down, and have other 3 run in the cluster. When I
try to bring one of first three, cluster goes down, I get this error

{
"error": "ClusterBlockException[blocked by:
[SERVICE_UNAVAILABLE/1/state not recovered / initialized];]",
"status": 503
}

If i bring down the last started node, the cluster works fine. I thought
if I have 4 masters and one of the master goes down, other three masters
should run in the cluster. is it not correct?

thank you.

--
You received this message because you are subscribed to the Google
Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to elasticsearc...@googlegroups.com.

To view this discussion on the web visit https://groups.google.com/d/
msgid/elasticsearch/93ebf994-cc20-4846-8763-a044e2f008f7%
40googlegroups.comhttps://groups.google.com/d/msgid/elasticsearch/93ebf994-cc20-4846-8763-a044e2f008f7%40googlegroups.com?utm_medium=email&utm_source=footer
.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/b48a8aba-e565-4065-844e-5608d3ad1929%40googlegroups.comhttps://groups.google.com/d/msgid/elasticsearch/b48a8aba-e565-4065-844e-5608d3ad1929%40googlegroups.com?utm_medium=email&utm_source=footer
.

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/CALY%3DcQBYOwaHExubsm6j78fPvU3VM3bvKjBoFyZ1ubGW0APynA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Thank you Ivan. I am using NEST c# client, it has sniff functionality, I
will use that.

On Wednesday, April 16, 2014 12:14:12 PM UTC-5, Ivan Brusic wrote:

It depends on which client you use. If you use the Java TransportClient
with "sniff" enabled, it detect all nodes upon client startup and use that
list for its request. All other clients (REST) round robin between whatever
servers were set in the properties.

--
Ivan

On Wed, Apr 16, 2014 at 10:05 AM, Narasimha Alzapur <avn...@gmail.com<javascript:>

wrote:

Thank you. That worked. Now when i bring down any master, cluster keeps
going with other 3 master nodes.

I took down a master node that is bound to localhost:9200 on one
machine1. I can still query using localhost:9201. Does it mean, do we need
to change the URL on client from 9200 to 9201 if a node goes down. Is there
anyway to avoid changing url on client?

appreciate your help. thank you.

On Wednesday, April 16, 2014 11:05:37 AM UTC-5, Ivan Brusic wrote:

I believe if you have two or more nodes on a single machine, you need to
specify each in the unicast host property:

discovery.zen.ping.unicast.hosts: ["machine1:port1", "machine2:port1",
"machine1:port2", "machine2:port2"]

Where port1 and port2 are probably 9300 and 9301.

--
Ivan

On Tue, Apr 15, 2014 at 9:34 PM, Narasimha Alzapur avn...@gmail.comwrote:

hello,

i am trying to implement elasticsearch cluster. i have 2 machines with
2 nodes each. i have following configuration in yml file. i have given
unique node name on each node, all of them are master and data nodes.

cluster.name: elasticsearch
node.master: true
node.data: true
discovery.zen.ping.multicast.enabled: false
discovery.zen.ping.unicast.hosts: ["machine1", "machine2"]
discovery.zen.minimum_master_nodes: 3

the four nodes are working correctly in the cluster. I would like to
bring one of the nodes down, and have other 3 run in the cluster. When I
try to bring one of first three, cluster goes down, I get this error

{
"error": "ClusterBlockException[blocked by:
[SERVICE_UNAVAILABLE/1/state not recovered / initialized];]",
"status": 503
}

If i bring down the last started node, the cluster works fine. I
thought if I have 4 masters and one of the master goes down, other three
masters should run in the cluster. is it not correct?

thank you.

--
You received this message because you are subscribed to the Google
Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to elasticsearc...@googlegroups.com.

To view this discussion on the web visit https://groups.google.com/d/
msgid/elasticsearch/93ebf994-cc20-4846-8763-a044e2f008f7%
40googlegroups.comhttps://groups.google.com/d/msgid/elasticsearch/93ebf994-cc20-4846-8763-a044e2f008f7%40googlegroups.com?utm_medium=email&utm_source=footer
.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to elasticsearc...@googlegroups.com <javascript:>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/b48a8aba-e565-4065-844e-5608d3ad1929%40googlegroups.comhttps://groups.google.com/d/msgid/elasticsearch/b48a8aba-e565-4065-844e-5608d3ad1929%40googlegroups.com?utm_medium=email&utm_source=footer
.

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/045557c5-b745-42c4-a8b1-a2d1fd9e12d1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.