# Best proxy for Elasticsearch rate limiting

**URL:** <https://discuss.elastic.co/t/best-proxy-for-elasticsearch-rate-limiting/275664>\
**Category:** Elasticsearch\
**Created:** [June 11, 2021, 9:30am UTC](https://discuss.elastic.co/t/best-proxy-for-elasticsearch-rate-limiting/275664 "2021-06-11T09:30:53Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![anon17386273](https://avatars.discourse-cdn.com/v4/letter/a/d2c977/32.png) [@anon17386273](https://discuss.elastic.co/u/anon17386273)\
**Post date:** [June 11, 2021, 9:30am UTC](https://discuss.elastic.co/t/best-proxy-for-elasticsearch-rate-limiting/275664/1 "2021-06-11T09:30:53Z")

</div>

Hi

Is there rate limiting feature for elasticsearch basic license? Not the cloud version  
If not, what is the best way to perform rate limiting on users' query?

My elasticsearch cluster have TLS authentication setup and currently i am explorning nginx to work on the rate limiting.

Not sure if nginx is a best proxy server and suitable use case.

For my use case, ideally, i will want nginx to capture which elasticsearch user is querying and route to the correct "limiting zone".  
Eg.  
userA can have 5 concurrent request per sec and limit 50mb download per second  
userB can have 1 concurrent request per sec and limit 5mb download per second

Any help is appreciated on this

---

<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:** [June 15, 2021, 3:49am UTC](https://discuss.elastic.co/t/best-proxy-for-elasticsearch-rate-limiting/275664/2 "2021-06-15T03:49:49Z")

</div>

There is as far as I know nothing build into Elasticsearch that will allow you to do that. Am not sure this is the best forum for discussing capabilities of nginx or other proxies.

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [June 15, 2021, 3:54am UTC](https://discuss.elastic.co/t/best-proxy-for-elasticsearch-rate-limiting/275664/3 "2021-06-15T03:54:01Z")

</div>

To echo Christian's comments, there's currently nothing native to Elasticsearch that does this. Anything you'd implement would be external to the stack, so would be DIY.

---

<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 13, 2021, 3:54am UTC](https://discuss.elastic.co/t/best-proxy-for-elasticsearch-rate-limiting/275664/4 "2021-07-13T03:54:44Z")

</div>

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