# In which case ElasticSearch will return 429?

**URL:** <https://discuss.elastic.co/t/in-which-case-elasticsearch-will-return-429/23483>\
**Category:** Elasticsearch\
**Created:** [April 30, 2015, 7:58am UTC](https://discuss.elastic.co/t/in-which-case-elasticsearch-will-return-429/23483 "2015-04-30T07:58:36Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![shinyke](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/shinyke/32/587_2.png) [@shinyke](https://discuss.elastic.co/u/shinyke)\
**Post date:** [April 30, 2015, 7:58am UTC](https://discuss.elastic.co/t/in-which-case-elasticsearch-will-return-429/23483/1 "2015-04-30T07:58:36Z")

</div>

When doing pressure test on ES cluster，it sometimes may return 429(too many  
request).

I can't find any detail docs about this.In which case ElasticSearch may  
return 429 ?

--  
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/d48b8c0f-d033-4490-96ab-9dda50c765ed%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/d48b8c0f-d033-4490-96ab-9dda50c765ed%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![christian\_5](https://avatars.discourse-cdn.com/v4/letter/c/7cd45c/32.png) [@christian\_5](https://discuss.elastic.co/u/christian_5)\
**Post date:** [April 30, 2015, 8:12am UTC](https://discuss.elastic.co/t/in-which-case-elasticsearch-will-return-429/23483/2 "2015-04-30T08:12:07Z")

</div>

Hi,

It means that Elasticsearch is not able to keep up with the number of  
requests you are sending and that the internal queues are filling up. A  
discussion around this can be found in the following blog post:

> **[Performance Considerations for Elasticsearch Indexing](https://www.elastic.co/blog/performance-considerations-elasticsearch-indexing)**

Best regards,

Christian

On Thursday, April 30, 2015 at 8:58:36 AM UTC+1, [xinm...@163.com](mailto:xinm...@163.com) wrote:

> When doing pressure test on ES cluster，it sometimes may return 429(too  
> many request).
> 
> I can't find any detail docs about this.In which case Elasticsearch may  
> return 429 ?

--  
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/c714c352-d903-42b9-87da-dec17c493096%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/c714c352-d903-42b9-87da-dec17c493096%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![shinyke](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/shinyke/32/587_2.png) [@shinyke](https://discuss.elastic.co/u/shinyke)\
**Post date:** [April 30, 2015, 10:32am UTC](https://discuss.elastic.co/t/in-which-case-elasticsearch-will-return-429/23483/3 "2015-04-30T10:32:57Z")

</div>

Hi,

Thx for your answer!!

However, I still feel confuse because when we keep 200 concurrent thread  
cyclically send requests (Indexing request) to cluster，it performence good  
and we guess there still have remaining performance space.You can see the  
"Throughput" is 5532.8/sec.

[https://lh3.googleusercontent.com/-UQLZcDil2kA/VUH-pCKB9qI/AAAAAAAAABQ/YhcqSQp2pqE/s1600/BJG77JSY)J)47MAEPH0IBDX.png](https://lh3.googleusercontent.com/-UQLZcDil2kA/VUH-pCKB9qI/AAAAAAAAABQ/YhcqSQp2pqE/s1600/BJG77JSY%29J%2947MAEPH0IBDX.png)

But when we start to test with 300 concurrent thread, there begin to return  
error code 429(too many request). It rise 0.66%(4727) errors in 124s.

[https://lh3.googleusercontent.com/-d-GAikqdRjQ/VUH\_9C7Fj4I/AAAAAAAAABc/2XQi1ZGNc7Y/s1600/WLSH1OK\_HNOCIK\_51L}AV6W.png](https://lh3.googleusercontent.com/-d-GAikqdRjQ/VUH_9C7Fj4I/AAAAAAAAABc/2XQi1ZGNc7Y/s1600/WLSH1OK_HNOCIK_51L%7DAV6W.png)  
If the 429 error is someway to protect ES server, maybe the queue length  
can be longer? Or if we can edit the setting and find the best way to use  
ES performance.

Best regards,

Shiny

在 2015年4月30日星期四 UTC+8下午3:58:36，xinm...@163.com写道：

> When doing pressure test on ES cluster，it sometimes may return 429(too  
> many request).
> 
> I can't find any detail docs about this.In which case Elasticsearch may  
> return 429 ?

--  
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/b44a2dd4-236f-49eb-bfbb-15bd22fb15f9%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/b44a2dd4-236f-49eb-bfbb-15bd22fb15f9%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [April 30, 2015, 5:55pm UTC](https://discuss.elastic.co/t/in-which-case-elasticsearch-will-return-429/23483/4 "2015-04-30T17:55:59Z")

</div>

Hi,

As explained in the blog post, increasing the queue size will not improve  
performance, just make you store more data in memory on the cluster  
awaiting processing. It could actually instead end up reducing performance.  
It looks like you are hitting the limit of your cluster and that the number  
of concurrent indexers it is able to keep up with is somewhere between 200  
and 300.

Have you been able to identify what is limiting performance when the queues  
start building up and Elasticsearch can't keep up?

Christian

On Thursday, April 30, 2015 at 8:58:36 AM UTC+1, [xinm...@163.com](mailto:xinm...@163.com) wrote:

> When doing pressure test on ES cluster，it sometimes may return 429(too  
> many request).
> 
> I can't find any detail docs about this.In which case Elasticsearch may  
> return 429 ?

--  
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/fe10519c-e1cc-4ec3-b703-3990ba0393bf%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/fe10519c-e1cc-4ec3-b703-3990ba0393bf%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, 12:16am UTC](https://discuss.elastic.co/t/in-which-case-elasticsearch-will-return-429/23483/5 "2017-07-06T00:16:37Z")

</div>


