query_with_cursor quota exhausts too easily
When making a few query_with_cursor request to search service, it was too easy to reach ES scroll contexts quota (500 scroll contexts).
curl -X POST
'/search/v2/query_with_cursor'
--header 'accept: /'
--header 'data-partition-id: '
--header 'Authorization: Bearer '
--header 'Content-Type: application/json'
--data-raw '{"kind": ":::", "limit": 1}'
The above request returns a 429 error code on the third call.
{
"code": 429,
"reason": "Too many requests",
"message": "Too many cursor requests, please re-try after some time."
}
Edited by An Ngo