# Uptime: \`Error GraphQL error: \[too\_many\_buckets\_exception\] Trying to create too many buckets. Must be less than or equal to: \[10000\] but was \[10001\]\`

**URL:** <https://discuss.elastic.co/t/uptime-error-graphql-error-too-many-buckets-exception-trying-to-create-too-many-buckets-must-be-less-than-or-equal-to-10000-but-was-10001/179432>\
**Category:** Synthetics\
**Created:** [May 2, 2019, 7:59pm UTC](https://discuss.elastic.co/t/uptime-error-graphql-error-too-many-buckets-exception-trying-to-create-too-many-buckets-must-be-less-than-or-equal-to-10000-but-was-10001/179432 "2019-05-02T19:59:59Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![phillhocking](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/phillhocking/32/45351_2.png) [@phillhocking](https://discuss.elastic.co/u/phillhocking)\
**Post date:** [May 2, 2019, 8:00pm UTC](https://discuss.elastic.co/t/uptime-error-graphql-error-too-many-buckets-exception-trying-to-create-too-many-buckets-must-be-less-than-or-equal-to-10000-but-was-10001/179432/1 "2019-05-02T20:00:00Z")

</div>

Hey Elastic friends! I recently set up my Elastic cluster with the new 7.0.0 for the purpose of using the Uptime visualizations. I got everything working well, but now when I look at the Uptime tab I receive this error underneath the uptime summary:

`Error GraphQL error: [too_many_buckets_exception] Trying to create too many buckets. Must be less than or equal to: [10000] but was [10001]. This limit can be set by changing the [search.max_buckets] cluster level setting., with { max_buckets=10000 }`

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/3/a/3ae144920d57a5d3ac141ae34d6b5ecb1801f90e.png)

I came across this thread [Requesting background info on `search.max_buckets` change](https://discuss.elastic.co/t/requesting-background-info-on-search-max-buckets-change/130334) that says this value is configurable, however, I am not sure where to configure this or what effect changing this value might have on the remainder of my cluster. Additionally, aside from having configured ILM, everything is a default setting - so perhaps the defaults should be changed?

I look forward to hearing suggestions for how I can remediate this issue; thanks!

---

<div class="post-metadata">

**Author:** ![jkambic](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jkambic/32/53306_2.png) [@jkambic](https://discuss.elastic.co/u/jkambic)\
**Post date:** [May 2, 2019, 8:22pm UTC](https://discuss.elastic.co/t/uptime-error-graphql-error-too-many-buckets-exception-trying-to-create-too-many-buckets-must-be-less-than-or-equal-to-10000-but-was-10001/179432/2 "2019-05-02T20:22:49Z")

</div>

Hi @phillhocking,

I think that from a scalability standpoint we can treat this as a bug; you shouldn't need to modify your cluster settings in order to view a relatively large number of monitors over an indeterminate series of time.

Can you let me know some things so I can try to make sure we've covered your case? It looks like you're running 7.0 with 26 monitors. What is the selected date range and how frequently are your monitors pinging?

---

<div class="post-metadata">

**Author:** ![phillhocking](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/phillhocking/32/45351_2.png) [@phillhocking](https://discuss.elastic.co/u/phillhocking)\
**Post date:** [May 2, 2019, 8:31pm UTC](https://discuss.elastic.co/t/uptime-error-graphql-error-too-many-buckets-exception-trying-to-create-too-many-buckets-must-be-less-than-or-equal-to-10000-but-was-10001/179432/3 "2019-05-02T20:31:35Z")

</div>

Thank you for your prompt reply, @jkambic! The range is 'Last 1 hour' and my three http monitors are every 10 seconds, the icmp/tcp monitors comprising the remainder are every five seconds.

---

<div class="post-metadata">

**Author:** ![phillhocking](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/phillhocking/32/45351_2.png) [@phillhocking](https://discuss.elastic.co/u/phillhocking)\
**Post date:** [May 3, 2019, 6:58am UTC](https://discuss.elastic.co/t/uptime-error-graphql-error-too-many-buckets-exception-trying-to-create-too-many-buckets-must-be-less-than-or-equal-to-10000-but-was-10001/179432/4 "2019-05-03T06:58:18Z")

</div>

Did I mess up by putting my reply in the thread instead of replying directly to your comment?

---

<div class="post-metadata">

**Author:** ![jkambic](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jkambic/32/53306_2.png) [@jkambic](https://discuss.elastic.co/u/jkambic)\
**Post date:** [May 3, 2019, 10:58am UTC](https://discuss.elastic.co/t/uptime-error-graphql-error-too-many-buckets-exception-trying-to-create-too-many-buckets-must-be-less-than-or-equal-to-10000-but-was-10001/179432/5 "2019-05-03T10:58:57Z")

</div>

Nope not at all, I'll get notified of any post to this thread.

I will try to reproduce your case, I am surprised you're seeing this. We've benchmarked the app at much higher volumes than you are reporting.

Thanks for reaching out!

---

<div class="post-metadata">

**Author:** ![jkambic](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jkambic/32/53306_2.png) [@jkambic](https://discuss.elastic.co/u/jkambic)\
**Post date:** [May 3, 2019, 8:29pm UTC](https://discuss.elastic.co/t/uptime-error-graphql-error-too-many-buckets-exception-trying-to-create-too-many-buckets-must-be-less-than-or-equal-to-10000-but-was-10001/179432/6 "2019-05-03T20:29:47Z")

</div>

@phillhocking to give you an update, I created [this issue](https://github.com/elastic/uptime/issues/34) to track the bug. We'll try to address it as soon as we have time, and backport it to the version you're using.

---

<div class="post-metadata">

**Author:** ![phillhocking](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/phillhocking/32/45351_2.png) [@phillhocking](https://discuss.elastic.co/u/phillhocking)\
**Post date:** [May 3, 2019, 9:29pm UTC](https://discuss.elastic.co/t/uptime-error-graphql-error-too-many-buckets-exception-trying-to-create-too-many-buckets-must-be-less-than-or-equal-to-10000-but-was-10001/179432/7 "2019-05-03T21:29:24Z")

</div>

This is excellent @jkambic and I really appreciate all of your hard work on this. Is there something that I can do to remediate this on my cluster while I am waiting for this patch/release to solve the issue?

---

<div class="post-metadata">

**Author:** ![jkambic](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jkambic/32/53306_2.png) [@jkambic](https://discuss.elastic.co/u/jkambic)\
**Post date:** [May 3, 2019, 10:31pm UTC](https://discuss.elastic.co/t/uptime-error-graphql-error-too-many-buckets-exception-trying-to-create-too-many-buckets-must-be-less-than-or-equal-to-10000-but-was-10001/179432/8 "2019-05-03T22:31:11Z")

</div>

@phillhocking the error is the result of too much data being selected at a given time; the best way to resolve this temporarily is to select a smaller slice of data. Does a range like `now-15m` to `now` cause the error to occur as well? If it does I'd start there and work your way to a wider range until you see the error and treat that as the widest range. I know that's not ideal but it would be a temporary solution.

EDIT: I've opened [a PR](https://github.com/elastic/kibana/pull/36071) related to this. We'll try to get it reviewed and merged next week.

---

<div class="post-metadata">

**Author:** ![phillhocking](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/phillhocking/32/45351_2.png) [@phillhocking](https://discuss.elastic.co/u/phillhocking)\
**Post date:** [May 3, 2019, 11:48pm UTC](https://discuss.elastic.co/t/uptime-error-graphql-error-too-many-buckets-exception-trying-to-create-too-many-buckets-must-be-less-than-or-equal-to-10000-but-was-10001/179432/9 "2019-05-03T23:48:20Z")

</div>

Thank you for your suggestion, @jkambic. I have done this and 15-minutes or a lesser amount seems to work:

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/8/5/85639c7e5c3d57141aa64659a94f782d70a6491b.png)

Strangely enough, however, even a value of 18 minutes causes the error condition:

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/3/2/328c279702ccb2bfbc54b539ffc54b526f65d769.png)

---

<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:** [May 27, 2019, 11:48pm UTC](https://discuss.elastic.co/t/uptime-error-graphql-error-too-many-buckets-exception-trying-to-create-too-many-buckets-must-be-less-than-or-equal-to-10000-but-was-10001/179432/10 "2019-05-27T23:48:24Z")

</div>

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