# River on Cluster

**URL:** <https://discuss.elastic.co/t/river-on-cluster/9357>\
**Category:** Elasticsearch\
**Created:** [October 15, 2012, 3:04pm UTC](https://discuss.elastic.co/t/river-on-cluster/9357 "2012-10-15T15:04:53Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Arni\_Sumarlidason](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/arni_sumarlidason/32/2229_2.png) [@Arni\_Sumarlidason](https://discuss.elastic.co/u/Arni_Sumarlidason)\
**Post date:** [October 15, 2012, 3:04pm UTC](https://discuss.elastic.co/t/river-on-cluster/9357/1 "2012-10-15T15:04:53Z")

</div>

Good Morning,

I have a single node elastic search cluster with two twitter rivers working  
fine.

I am currently working on setting up a three node cluster to pull those  
same two rivers. When we submit the rivers using curl we receive status  
'ok'. However only the first river we add appears in the head plugin. It  
does gather data successfully.

Can you use multiple rivers on a multi-node cluster? if yes, whats the  
trick? 😜

Thank you for your time,

Arni

--

---

<div class="post-metadata">

**Author:** ![Rafal\_Kuc\_3](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rafal_kuc_3/32/799_2.png) [@Rafal\_Kuc\_3](https://discuss.elastic.co/u/Rafal_Kuc_3)\
**Post date:** [October 15, 2012, 3:07pm UTC](https://discuss.elastic.co/t/river-on-cluster/9357/2 "2012-10-15T15:07:07Z")

</div>

Hello!

Look here - [http://www.elasticsearch.org/guide/reference/river/](http://www.elasticsearch.org/guide/reference/river/) - rivers are singletons inside a cluster, which means that only a single river of a given type will be allowed to work in a single cluster.

_--_

Regards,

Rafał Kuć

Sematext :: [http://sematext.com/](http://sematext.com/) _:: Solr - Lucene - Nutch - ElasticSearch_

Good Morning,

I have a single node elastic search cluster with two twitter rivers working fine.

I am currently working on setting up a three node cluster to pull those same two rivers. When we submit the rivers using curl we receive status 'ok'. However only the first river we add appears in the head plugin. It does gather data successfully.

Can you use multiple rivers on a multi-node cluster? if yes, whats the trick? 😜

Thank you for your time,

Arni

--

---

<div class="post-metadata">

**Author:** ![jprante](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jprante/32/44941_2.png) [@jprante](https://discuss.elastic.co/u/jprante)\
**Post date:** [October 15, 2012, 3:13pm UTC](https://discuss.elastic.co/t/river-on-cluster/9357/3 "2012-10-15T15:13:28Z")

</div>

Hi Arni,

can you eventually provide the commands you used for setting up the rivers?  
It should work. You can set up many rivers, but beware, they need different  
names.

Jörg

On Monday, October 15, 2012 5:04:53 PM UTC+2, Arni Sumarlidason wrote:

> Good Morning,
> 
> I have a single node Elasticsearch cluster with two twitter rivers  
> working fine.
> 
> I am currently working on setting up a three node cluster to pull those  
> same two rivers. When we submit the rivers using curl we receive status  
> 'ok'. However only the first river we add appears in the head plugin. It  
> does gather data successfully.
> 
> Can you use multiple rivers on a multi-node cluster? if yes, whats the  
> trick? 😜
> 
> Thank you for your time,
> 
> Arni

--

---

<div class="post-metadata">

**Author:** ![Arni\_Sumarlidason](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/arni_sumarlidason/32/2229_2.png) [@Arni\_Sumarlidason](https://discuss.elastic.co/u/Arni_Sumarlidason)\
**Post date:** [October 15, 2012, 3:26pm UTC](https://discuss.elastic.co/t/river-on-cluster/9357/4 "2012-10-15T15:26:09Z")

</div>

please find attached,,

Thank you again for your time.

On Monday, October 15, 2012 11:13:28 AM UTC-4, Jörg Prante wrote:

> Hi Arni,
> 
> can you eventually provide the commands you used for setting up the  
> rivers? It should work. You can set up many rivers, but beware, they need  
> different names.
> 
> Jörg
> 
> On Monday, October 15, 2012 5:04:53 PM UTC+2, Arni Sumarlidason wrote:
> 
> > Good Morning,
> > 
> > I have a single node Elasticsearch cluster with two twitter rivers  
> > working fine.
> > 
> > I am currently working on setting up a three node cluster to pull those  
> > same two rivers. When we submit the rivers using curl we receive status  
> > 'ok'. However only the first river we add appears in the head plugin. It  
> > does gather data successfully.
> > 
> > Can you use multiple rivers on a multi-node cluster? if yes, whats the  
> > trick? 😜
> > 
> > Thank you for your time,
> > 
> > Arni

--

---

<div class="post-metadata">

**Author:** ![Arni\_Sumarlidason](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/arni_sumarlidason/32/2229_2.png) [@Arni\_Sumarlidason](https://discuss.elastic.co/u/Arni_Sumarlidason)\
**Post date:** [October 15, 2012, 5:20pm UTC](https://discuss.elastic.co/t/river-on-cluster/9357/5 "2012-10-15T17:20:52Z")

</div>

What it looks like to us:

1. Even if we did setup two rivers covering different geospatial locations  
~ the work load would not be distributed amongst the cluster. Meaning that  
the only benefit we would see from the cluster is in data redundancy and  
data retrieval speed.

It would have been nice to assign geospatial locations to specific  
computers, but at this point our throughput isn't high enough to demand  
such a setup. It looks like we will move to a two node system to ensure  
up-time on the stream. That being said, there is a setting along the lines  
of "how many nodes are required for the cluster to be considered  
operational".. in the two node case, wouldn't 0 be the best answer here?  
meaning a solo node is operational?

Thanks again for responding,

On Monday, October 15, 2012 11:26:10 AM UTC-4, Arni Sumarlidason wrote:

> please find attached,,
> 
> Thank you again for your time.
> 
> On Monday, October 15, 2012 11:13:28 AM UTC-4, Jörg Prante wrote:
> 
> > Hi Arni,
> > 
> > can you eventually provide the commands you used for setting up the  
> > rivers? It should work. You can set up many rivers, but beware, they need  
> > different names.
> > 
> > Jörg
> > 
> > On Monday, October 15, 2012 5:04:53 PM UTC+2, Arni Sumarlidason wrote:
> > 
> > > Good Morning,
> > > 
> > > I have a single node Elasticsearch cluster with two twitter rivers  
> > > working fine.
> > > 
> > > I am currently working on setting up a three node cluster to pull those  
> > > same two rivers. When we submit the rivers using curl we receive status  
> > > 'ok'. However only the first river we add appears in the head plugin. It  
> > > does gather data successfully.
> > > 
> > > Can you use multiple rivers on a multi-node cluster? if yes, whats the  
> > > trick? 😜
> > > 
> > > Thank you for your time,
> > > 
> > > Arni

--

---

<div class="post-metadata">

**Author:** ![jprante](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jprante/32/44941_2.png) [@jprante](https://discuss.elastic.co/u/jprante)\
**Post date:** [October 15, 2012, 10:24pm UTC](https://discuss.elastic.co/t/river-on-cluster/9357/6 "2012-10-15T22:24:34Z")

</div>

You have started two rivers with a PUT command against localhost:9200, and  
that is the same node, so don't expect a cluster moves rivers around the  
nodes for workload distribution. The cluster just ensures that rivers are  
running as steady singleton instances at a single node once installed.  
Multi-node clusters scale for searching and indexing, which is triggered by  
river instances, when they move fetched data into the cluster. Fetching  
data is cheap compared to the processing within the cluster.

You need two nodes for a green cluster state, since it is the smallest  
configuration that is safe against unexpected outage of one of the nodes.

Jörg

On Monday, October 15, 2012 7:20:52 PM UTC+2, Arni Sumarlidason wrote:

> What it looks like to us:
> 
> 1. Even if we did setup two rivers covering different geospatial locations  
> ~ the work load would not be distributed amongst the cluster. Meaning that  
> the only benefit we would see from the cluster is in data redundancy and  
> data retrieval speed.
> 
> It would have been nice to assign geospatial locations to specific  
> computers, but at this point our throughput isn't high enough to demand  
> such a setup. It looks like we will move to a two node system to ensure  
> up-time on the stream. That being said, there is a setting along the lines  
> of "how many nodes are required for the cluster to be considered  
> operational".. in the two node case, wouldn't 0 be the best answer here?  
> meaning a solo node is operational?
> 
> Thanks again for responding,
> 
> On Monday, October 15, 2012 11:26:10 AM UTC-4, Arni Sumarlidason wrote:
> 
> > please find attached,,
> > 
> > Thank you again for your time.
> > 
> > On Monday, October 15, 2012 11:13:28 AM UTC-4, Jörg Prante wrote:
> > 
> > > Hi Arni,
> > > 
> > > can you eventually provide the commands you used for setting up the  
> > > rivers? It should work. You can set up many rivers, but beware, they need  
> > > different names.
> > > 
> > > Jörg
> > > 
> > > On Monday, October 15, 2012 5:04:53 PM UTC+2, Arni Sumarlidason wrote:
> > > 
> > > > Good Morning,
> > > > 
> > > > I have a single node Elasticsearch cluster with two twitter rivers  
> > > > working fine.
> > > > 
> > > > I am currently working on setting up a three node cluster to pull those  
> > > > same two rivers. When we submit the rivers using curl we receive status  
> > > > 'ok'. However only the first river we add appears in the head plugin. It  
> > > > does gather data successfully.
> > > > 
> > > > Can you use multiple rivers on a multi-node cluster? if yes, whats the  
> > > > trick? 😜
> > > > 
> > > > Thank you for your time,
> > > > 
> > > > Arni

--

---

<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:** [July 6, 2017, 3:08am UTC](https://discuss.elastic.co/t/river-on-cluster/9357/7 "2017-07-06T03:08:42Z")

</div>


