# What to do if ES document count continuously increases - with zero indexing ongoing

**URL:** https://discuss.elastic.co/t/what-to-do-if-es-document-count-continuously-increases-with-zero-indexing-ongoing/16310
**Category:** Elasticsearch
**Created:** [March 12, 2014, 3:01am UTC](https://discuss.elastic.co/t/what-to-do-if-es-document-count-continuously-increases-with-zero-indexing-ongoing/16310 "2014-03-12T03:01:42Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![Swaroop\_CH](https://avatars.discourse-cdn.com/v4/letter/s/ccd318/32.png) [@Swaroop\_CH](https://discuss.elastic.co/u/Swaroop_CH)
#### Post date: [March 12, 2014, 3:01am UTC](https://discuss.elastic.co/t/what-to-do-if-es-document-count-continuously-increases-with-zero-indexing-ongoing/16310/1 "2014-03-12T03:01:42Z")

</div>

Hello,

We have bulk-indexed a fresh ES 1.0.1 cluster with index.refresh\_interval : -1 (disabled), and then set index.refresh\_interval: 5s about 20 hours ago, the document count is continuously increasing since then, is this normal or expected? How do I know when it'll be done? Our expected document count was about half of the current document count in the new cluster.

1394593149 02:59:09 167713281  
1394593153 02:59:13 167723653  
1394593156 02:59:16 167720017  
...  
1394593220 03:00:20 167800614  
1394593224 03:00:24 167812913  
1394593228 03:00:28 167812056

( while true; do curl -s [http://54.xxx.xxx.xxx:9201/\_cat/count;](http://54.xxx.xxx.xxx:9201/_cat/count;) sleep 2; done )

Looking forward to any advice or suggestions on what to look into.

Thanks.

Regards,  
Swaroop

--  
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/355871394593302%40web26h.yandex.ru](https://groups.google.com/d/msgid/elasticsearch/355871394593302%40web26h.yandex.ru).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

### Author: ![Swaroop\_CH](https://avatars.discourse-cdn.com/v4/letter/s/ccd318/32.png) [@Swaroop\_CH](https://discuss.elastic.co/u/Swaroop_CH)
#### Post date: [March 12, 2014, 5:42am UTC](https://discuss.elastic.co/t/what-to-do-if-es-document-count-continuously-increases-with-zero-indexing-ongoing/16310/2 "2014-03-12T05:42:24Z")

</div>

The source of the problem is Marvel - is there anyway to disable Marvel indexing?

Trying to set `marvel.agent.indices: "-*"` says "ignoring transient setting [marvel.agent.indices], not dynamically updateable"

Regards,  
Swaroop

12.03.2014, 08:31, "Swaroop CH" [swaroopch@yandex.com](mailto:swaroopch@yandex.com):

> Hello,
> 
> We have bulk-indexed a fresh ES 1.0.1 cluster with index.refresh\_interval : -1 (disabled), and then set index.refresh\_interval: 5s about 20 hours ago, the document count is continuously increasing since then, is this normal or expected? How do I know when it'll be done? Our expected document count was about half of the current document count in the new cluster.
> 
> 1394593149 02:59:09 167713281  
> 1394593153 02:59:13 167723653  
> 1394593156 02:59:16 167720017  
> ...  
> 1394593220 03:00:20 167800614  
> 1394593224 03:00:24 167812913  
> 1394593228 03:00:28 167812056
> 
> ( while true; do curl -s [http://54.xxx.xxx.xxx:9201/\_cat/count](http://54.xxx.xxx.xxx:9201/_cat/count); sleep 2; done )
> 
> Looking forward to any advice or suggestions on what to look into.
> 
> Thanks.
> 
> Regards,  
> Swaroop
> 
> --  
> 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/355871394593302%40web26h.yandex.ru](https://groups.google.com/d/msgid/elasticsearch/355871394593302%40web26h.yandex.ru).  
> For more options, visit [https://groups.google.com/d/optout](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](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/55311394602944%40web7h.yandex.ru](https://groups.google.com/d/msgid/elasticsearch/55311394602944%40web7h.yandex.ru).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

### Author: ![Clinton\_Gormley](https://avatars.discourse-cdn.com/v4/letter/c/50afbb/32.png) [@Clinton\_Gormley](https://discuss.elastic.co/u/Clinton_Gormley)
#### Post date: [March 12, 2014, 10:48am UTC](https://discuss.elastic.co/t/what-to-do-if-es-document-count-continuously-increases-with-zero-indexing-ongoing/16310/3 "2014-03-12T10:48:46Z")

</div>

Have you looked at the docs?

> **[Elasticsearch Platform — Find real-time answers at scale](https://www.elastic.co)**
>
> Power insights and outcomes with the Elasticsearch Platform and AI. See into your data and find answers that matter with enterprise solutions designed to help you build, observe, and protect. Try Elasticsearch free today.

On 12 March 2014 06:42, Swaroop CH [swaroopch@yandex.com](mailto:swaroopch@yandex.com) wrote:

> The source of the problem is Marvel - is there anyway to disable Marvel  
> indexing?
> 
> Trying to set `marvel.agent.indices: "-*"` says "ignoring transient  
> setting [marvel.agent.indices], not dynamically updateable"
> 
> Regards,  
> Swaroop
> 
> 12.03.2014, 08:31, "Swaroop CH" [swaroopch@yandex.com](mailto:swaroopch@yandex.com):
> 
> > Hello,
> > 
> > We have bulk-indexed a fresh ES 1.0.1 cluster with  
> > index.refresh\_interval : -1 (disabled), and then set  
> > index.refresh\_interval: 5s about 20 hours ago, the document count is  
> > continuously increasing since then, is this normal or expected? How do I  
> > know when it'll be done? Our expected document count was about half of the  
> > current document count in the new cluster.
> > 
> > 1394593149 02:59:09 167713281  
> > 1394593153 02:59:13 167723653  
> > 1394593156 02:59:16 167720017  
> > ...  
> > 1394593220 03:00:20 167800614  
> > 1394593224 03:00:24 167812913  
> > 1394593228 03:00:28 167812056
> > 
> > ( while true; do curl -s [http://54.xxx.xxx.xxx:9201/\_cat/count](http://54.xxx.xxx.xxx:9201/_cat/count); sleep  
> > 2; done )
> > 
> > Looking forward to any advice or suggestions on what to look into.
> > 
> > Thanks.
> > 
> > Regards,  
> > Swaroop
> > 
> > --  
> > 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/355871394593302%40web26h.yandex.ru](https://groups.google.com/d/msgid/elasticsearch/355871394593302%40web26h.yandex.ru)  
> > .  
> > For more options, visit [https://groups.google.com/d/optout](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](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/elasticsearch/55311394602944%40web7h.yandex.ru](https://groups.google.com/d/msgid/elasticsearch/55311394602944%40web7h.yandex.ru)  
> .  
> For more options, visit [https://groups.google.com/d/optout](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](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAPt3XKSrxe0qZKX%2BWWDTpQWFN3rBsDcjFpiOzkLA2YZMpz1gew%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAPt3XKSrxe0qZKX%2BWWDTpQWFN3rBsDcjFpiOzkLA2YZMpz1gew%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

### Author: ![Swaroop\_CH](https://avatars.discourse-cdn.com/v4/letter/s/ccd318/32.png) [@Swaroop\_CH](https://discuss.elastic.co/u/Swaroop_CH)
#### Post date: [March 12, 2014, 5:28pm UTC](https://discuss.elastic.co/t/what-to-do-if-es-document-count-continuously-increases-with-zero-indexing-ongoing/16310/4 "2014-03-12T17:28:39Z")

</div>

Hi Clinton, Thanks for the reply. I did look at the docs, I tried setting `marvel.agent.enabled: false` via the API, but ES logs an error saying it is "not dynamically updateable", and so on. Eventually, I solved it by disabling shard allocation, shutting down all the nodes of the cluster, uninstalling Marvel, and starting master-only nodes followed by data-only nodes. Regards,

Swaroop 12.03.2014, 16:18, "Clinton Gormley" \<clint@traveljury.com\>:

> Have you looked at the docs? [http://www.elasticsearch.org/guide/en/marvel/current/index.html#configuration](http://www.elasticsearch.org/guide/en/marvel/current/index.html#configuration)
> 
> On 12 March 2014 06:42, Swaroop CH \<[swaroopch@yandex.com](mailto:swaroopch@yandex.com)\> wrote:
> 
> > The source of the problem is Marvel - is there anyway to disable Marvel indexing?
> > 
> > Trying to set `marvel.agent.indices: "-*"` says "ignoring transient setting [marvel.agent.indices], not dynamically updateable"
> > 
> > Regards,
> > 
> > Swaroop
> > 
> > 12.03.2014, 08:31, "Swaroop CH" \<[swaroopch@yandex.com](mailto:swaroopch@yandex.com)\>:
> > 
> > \> Hello,
> > 
> > \>
> > 
> > \> We have bulk-indexed a fresh ES 1.0.1 cluster with index.refresh\_interval : -1 (disabled), and then set index.refresh\_interval: 5s about 20 hours ago, the document count is continuously increasing since then, is this normal or expected? How do I know when it'll be done? Our expected document count was about half of the current document count in the new cluster.
> > 
> > \>
> > 
> > \> 1394593149 02:59:09 167713281
> > 
> > \> 1394593153 02:59:13 167723653
> > 
> > \> 1394593156 02:59:16 167720017
> > 
> > \> ...
> > 
> > \> 1394593220 03:00:20 167800614
> > 
> > \> 1394593224 03:00:24 167812913
> > 
> > \> 1394593228 03:00:28 167812056
> > 
> > \>
> > 
> > \> ( while true; do curl -s [http://54.xxx.xxx.xxx:9201/\_cat/count](http://54.xxx.xxx.xxx:9201/_cat/count); sleep 2; done )
> > 
> > \>
> > 
> > \> Looking forward to any advice or suggestions on what to look into.
> > 
> > \>
> > 
> > \> Thanks.
> > 
> > \>
> > 
> > \> Regards,
> > 
> > \> Swaroop
> > 
> > \>
> > 
> > \> --
> > 
> > \> 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%2Bunsubscribe@googlegroups.com).
> > 
> > \> To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/355871394593302%40web26h.yandex.ru](https://groups.google.com/d/msgid/elasticsearch/355871394593302%40web26h.yandex.ru).
> > 
> > \> For more options, visit [https://groups.google.com/d/optout](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](mailto:elasticsearch%2Bunsubscribe@googlegroups.com).To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/55311394602944%40web7h.yandex.ru](https://groups.google.com/d/msgid/elasticsearch/55311394602944%40web7h.yandex.ru).
> > 
> > For more options, visit [https://groups.google.com/d/optout](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](mailto:elasticsearch+unsubscribe@googlegroups.com).
> 
> To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAPt3XKSrxe0qZKX%2BWWDTpQWFN3rBsDcjFpiOzkLA2YZMpz1gew%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAPt3XKSrxe0qZKX%2BWWDTpQWFN3rBsDcjFpiOzkLA2YZMpz1gew%40mail.gmail.com?utm_medium=email&utm_source=footer).
> 
> For more options, visit [https://groups.google.com/d/optout](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](mailto:elasticsearch+unsubscribe@googlegroups.com).

To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/401231394645319%40web9m.yandex.ru](https://groups.google.com/d/msgid/elasticsearch/401231394645319%40web9m.yandex.ru?utm_medium=email&utm_source=footer).

For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

### Author: ![Clinton\_Gormley](https://avatars.discourse-cdn.com/v4/letter/c/50afbb/32.png) [@Clinton\_Gormley](https://discuss.elastic.co/u/Clinton_Gormley)
#### Post date: [March 12, 2014, 8:20pm UTC](https://discuss.elastic.co/t/what-to-do-if-es-document-count-continuously-increases-with-zero-indexing-ongoing/16310/5 "2014-03-12T20:20:50Z")

</div>

On 12 March 2014 18:28, Swaroop CH [swaroopch@yandex.com](mailto:swaroopch@yandex.com) wrote:

> Thanks for the reply. I did look at the docs, I tried setting  
> `marvel.agent.enabled: false` via the API, but ES logs an error saying it  
> is "not dynamically updateable", and so on.

Yes, you have to set it in the config file (at least for now)

--  
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/CAPt3XKRsZ2xLMPFr6-O2W\_\_HuK2iyEhYwU9bnn%3DVfbKgZM1kyQ%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAPt3XKRsZ2xLMPFr6-O2W__HuK2iyEhYwU9bnn%3DVfbKgZM1kyQ%40mail.gmail.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:43am UTC](https://discuss.elastic.co/t/what-to-do-if-es-document-count-continuously-increases-with-zero-indexing-ongoing/16310/6 "2017-07-06T01:43:41Z")

</div>


