# Elasticsearch + couchdb

**URL:** <https://discuss.elastic.co/t/elasticsearch-couchdb/17718>\
**Category:** Elasticsearch\
**Created:** [May 25, 2014, 7:55pm UTC](https://discuss.elastic.co/t/elasticsearch-couchdb/17718 "2014-05-25T19:55:36Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Beau\_Keogh](https://avatars.discourse-cdn.com/v4/letter/b/848f3c/32.png) [@Beau\_Keogh](https://discuss.elastic.co/u/Beau_Keogh)\
**Post date:** [May 25, 2014, 7:55pm UTC](https://discuss.elastic.co/t/elasticsearch-couchdb/17718/1 "2014-05-25T19:55:36Z")

</div>

I have an elasticsearch cluster setup with 2 nodes and it's using the  
couchdb river to index data from a single couchdb instance. This is running  
on EC2 and I have a load balancer setup on the elasticsearch cluster. I'm  
wondering if I can create another couchdb instance and cluster them  
together using bi-directional replication, and then point the couchdb river  
setup at the couchdb load balancer endpoint

For example-

ES Cluster:  
hosts: elasticsearch-1, elasticsearch-2  
load balancer endpoint: elasticsearch-lb

Couchdb Cluster:  
hosts: couchdb-1, couchdb-2  
load balancer endpoint: couchdb-lb

Then setup river like:

curl -XPUT 'localhost:9200/\_river/my\_db/\_meta' -d '{ "type" : "couchdb", "couchdb" : { "host" : "couchdb-lb", "port" : 5984, "db" : "my\_db", "filter" : null }, "index" : { "index" : "my\_db", "type" : "my\_db", "bulk\_size" : "100", "bulk\_timeout" : "10ms" }}'

Anyone know if this setup will work?

--  
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](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/991d7bb3-4165-40bc-a795-27f567f47621%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/991d7bb3-4165-40bc-a795-27f567f47621%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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, 1:27am UTC](https://discuss.elastic.co/t/elasticsearch-couchdb/17718/2 "2017-07-06T01:27:05Z")

</div>


