How to use the service on Windows with multiple nodes?

Hi,

I'm using elasticsearch on my windows 2012 server and want to use the
included service that starts automatically. I'm having 2 nodes (just
leaning about that) but i can't get this to work. When i start each node
individually i see all of my nodes on http://localhost:9200/_plugin/head/
but all my command prompts are still visible. Is there a solution for this?

I'm using elasticsearch for my webshop (5000 products), facets and search.
How many nodes, shards and replicas should i use?

--
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/bf63a951-bdb6-4e7f-a9ab-3797db0073a2%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Are you trying to start two nodes on the same physical machine? This is not recommended.
You see all your nodes in head? That's fine. What's wrong here? I don't understand what your issue actually is.

About sizing. I'd say it depends here mainly if you want to have failover or not.
I mean that for a small amount of documents if your documents come from a database (let's say SQL database), I guess that it takes only some seconds to reindex in case of crash, right?

So in that case, one node is enough. No replica. Only one shard.

If you want failover, you should have 3 nodes (trying to avoid split brain here) and 1 shard with 2 replica.

My 2 cents

--
David Pilato | Technical Advocate | Elasticsearch.com
@dadoonet | @elasticsearchfr

Le 6 février 2014 at 14:04:05, Wesley Creteur (wesley.creteur@gmail.com) a écrit:

Hi,

I'm using elasticsearch on my windows 2012 server and want to use the included service that starts automatically. I'm having 2 nodes (just leaning about that) but i can't get this to work. When i start each node individually i see all of my nodes on http://localhost:9200/_plugin/head/ but all my command prompts are still visible. Is there a solution for this?

I'm using elasticsearch for my webshop (5000 products), facets and search. How many nodes, shards and replicas should i use?

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/bf63a951-bdb6-4e7f-a9ab-3797db0073a2%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

--
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/etPan.52f38a22.168e121f.d955%40MacBook-Air-de-David.local.
For more options, visit https://groups.google.com/groups/opt_out.

Thx David for the fast response.

I'm using one physical machine because i have limited resources at my
disposal. Windows Server 2012, 4 CPU Cores and 8 GB of RAM. I do want a
failover, so thanks on that advice. I've followed the instructions of this
website
: http://blogs.xtivia.com/home/-/blogs/creating-a-simple-elastic-search-cluster;jsessionid=514BB0062C612449FDC52A307ABDE7A8?p_p_auth=38j27oQ0

So i have multiple nodes setup and started the elasticsearch service -
bin>service install - on the master node. But here is my issue. When i
browse to the head plugin, i see only one node. When i remove the service
and start all nodes seperate "path/to/node1/bin>elasticsearch" and
"path/to/node1/bin>elasticsearch" and ... the command prompts are kept
open and all nodes are then visible at head. Would it be possible to run
all nodes with the windows service automatically?

Op donderdag 6 februari 2014 14:04:02 UTC+1 schreef Wesley Creteur:

Hi,

I'm using elasticsearch on my windows 2012 server and want to use the
included service that starts automatically. I'm having 2 nodes (just
leaning about that) but i can't get this to work. When i start each node
individually i see all of my nodes on http://localhost:9200/_plugin/head/but all my command prompts are still visible. Is there a solution for this?

I'm using elasticsearch for my webshop (5000 products), facets and search.
How many nodes, shards and replicas should i use?

--
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/c05794d9-c4ac-4e01-b0cb-a34ad766cbe0%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

You can have as many services as you want - just make sure you specify a different service_id for each of them.
By default service.bat uses a predefined name is no service_id is specified; all actions will use this.

In your case you would do something like:
service install node1
service install node2
service install node3

followed by;
service start node1
service start node2
service start node3

If you want further customize them you can try
service manager <service_id> : service manager node1

Cheers,

On 06/02/2014 3:27 PM, Wesley Creteur wrote:

Thx David for the fast response.

I'm using one physical machine because i have limited resources at my disposal. Windows Server 2012, 4 CPU Cores and 8
GB of RAM. I do want a failover, so thanks on that advice. I've followed the instructions of this website
: http://blogs.xtivia.com/home/-/blogs/creating-a-simple-elastic-search-cluster;jsessionid=514BB0062C612449FDC52A307ABDE7A8?p_p_auth=38j27oQ0

So i have multiple nodes setup and started the elasticsearch service - bin>service install - on the master node. But
here is my issue. When i browse to the head plugin, i see only one node. When i remove the service and start all nodes
seperate "path/to/node1/bin>elasticsearch" and "path/to/node1/bin>elasticsearch" and ... the command prompts are kept
open and all nodes are then visible at head. Would it be possible to run all nodes with the windows service automatically?

Op donderdag 6 februari 2014 14:04:02 UTC+1 schreef Wesley Creteur:

Hi,

I'm using elasticsearch on my windows 2012 server and want to use the included service that starts automatically.
I'm having 2 nodes (just leaning about that) but i can't get this to work. When i start each node individually i see
all of my nodes on http://localhost:9200/_plugin/head/ <http://localhost:9200/_plugin/head/> but all my command
prompts are still visible. Is there a solution for this?

I'm using elasticsearch for my webshop (5000 products), facets and search. How many nodes, shards and replicas
should i use?

--
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/c05794d9-c4ac-4e01-b0cb-a34ad766cbe0%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

--
Costin

--
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/52F3914A.1030208%40gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.

Thx Costin Leau,

You solved my problem. This works.

Op donderdag 6 februari 2014 14:42:34 UTC+1 schreef Costin Leau:

You can have as many services as you want - just make sure you specify a
different service_id for each of them.
By default service.bat uses a predefined name is no service_id is
specified; all actions will use this.

In your case you would do something like:
service install node1
service install node2
service install node3

followed by;
service start node1
service start node2
service start node3

If you want further customize them you can try
service manager <service_id> : service manager node1

Cheers,

On 06/02/2014 3:27 PM, Wesley Creteur wrote:

Thx David for the fast response.

I'm using one physical machine because i have limited resources at my
disposal. Windows Server 2012, 4 CPU Cores and 8
GB of RAM. I do want a failover, so thanks on that advice. I've followed
the instructions of this website
:
http://blogs.xtivia.com/home/-/blogs/creating-a-simple-elastic-search-cluster;jsessionid=514BB0062C612449FDC52A307ABDE7A8?p_p_auth=38j27oQ0

So i have multiple nodes setup and started the elasticsearch service -
bin>service install - on the master node. But
here is my issue. When i browse to the head plugin, i see only one node.
When i remove the service and start all nodes
seperate "path/to/node1/bin>elasticsearch" and
"path/to/node1/bin>elasticsearch" and ... the command prompts are kept
open and all nodes are then visible at head. Would it be possible to run
all nodes with the windows service automatically?

Op donderdag 6 februari 2014 14:04:02 UTC+1 schreef Wesley Creteur:

Hi, 

I'm using elasticsearch on my windows 2012 server and want to use 

the included service that starts automatically.

I'm having 2 nodes (just leaning about that) but i can't get this to 

work. When i start each node individually i see

all of my nodes on http://localhost:9200/_plugin/head/ <

http://localhost:9200/_plugin/head/> but all my command

prompts are still visible. Is there a solution for this? 

I'm using elasticsearch for my webshop (5000 products), facets and 

search. How many nodes, shards and replicas

should i use? 

--
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/c05794d9-c4ac-4e01-b0cb-a34ad766cbe0%40googlegroups.com.

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

--
Costin

--
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/250e00f6-4ab1-4300-83c1-eac9b7a0e74c%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.