Question: ES response size limitations | 502 bad gateway

We have large data in ES, we send request with the size limit: 1,000 and we do pagination to get remaining results.
Sometimes we get 502 bad gateway, hard to debug what went wrong.
I assumed if the response size is too large maybe the server is failing to serve it.
Also we do aggregation with the size limit: 10 000.

  1. What is the recommended size for es query and aggregation?
  2. How should we handle aggregation queries when we do pagination?

Can you share the query that failed?

What is the recommended size for es query and aggregation?

The default values are the recommended ones.

How should we handle aggregation queries when we do pagination?

Aggs are computed on the whole resultset whatever the page you're looking at.

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