# Couchdb (cloudant) multi server, different SEQ value each \_changes request handling?

**URL:** <https://discuss.elastic.co/t/couchdb-cloudant-multi-server-different-seq-value-each--changes-request-handling/85142>\
**Category:** Logstash\
**Created:** [May 9, 2017, 5:32pm UTC](https://discuss.elastic.co/t/couchdb-cloudant-multi-server-different-seq-value-each--changes-request-handling/85142 "2017-05-09T17:32:23Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![teebu](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/teebu/32/10119_2.png) [@teebu](https://discuss.elastic.co/u/teebu)\
**Post date:** [May 9, 2017, 5:32pm UTC](https://discuss.elastic.co/t/couchdb-cloudant-multi-server-different-seq-value-each--changes-request-handling/85142/1 "2017-05-09T17:32:24Z")

</div>

I have couchdb running on cloudant with multiple servers, the question is when i go to the \_changes endpoint i can see different seq values on each refresh because it's hitting a different server (for the same index). How does logstash handle the different SEQ numbers after I restart logstash? What happens if it connects and starts the SEQ with a server that it at a different SEQ value?

for example when I hit refresh on a \_changes endpoint of an index, the SEQ number can changes from "41531112-g1AAAAI4eJzLYWBg....." to "59970121-g1AAAAI4eJzLYWBg4Mh....." depending on which couch-node it hits on the backend

I feel like this is an issue when I want to resume from the last SEQ before a logstash restart.

---

<div class="post-metadata">

**Author:** ![teebu](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/teebu/32/10119_2.png) [@teebu](https://discuss.elastic.co/u/teebu)\
**Post date:** [May 17, 2017, 11:31pm UTC](https://discuss.elastic.co/t/couchdb-cloudant-multi-server-different-seq-value-each--changes-request-handling/85142/2 "2017-05-17T23:31:17Z")

</div>

After some searching and testing. if you are using cloudant and you pass in the seq, on the backend it finds the right node to continue from if the seq value is valid.

---

<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:** [June 14, 2017, 11:31pm UTC](https://discuss.elastic.co/t/couchdb-cloudant-multi-server-different-seq-value-each--changes-request-handling/85142/3 "2017-06-14T23:31:29Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
