Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
[analytics] Elasticsearch analytics requests don't hit the cache properly #1545
When browsing the dashboard in the portal, our OPS reported me that it tooks a lot of CPU on the elasticsearch process to execute the requests on a large time frame (90Days for ex.). The setup is a 2 nodes cluster with 8cpu each / 64G with SSD disk attached.
After investigation on the ES cluster, we've been playing around the slowlogs and the executed requests. We figured out that a unitary request is hitting the cache : 2s exec time per shard drop to 1ms when executed multiple times.
In this PR I simply remove the extended_bounds part that seems not mandatory for me for the request execution itself. This seems only useful for the treatment of the response on the back (or the front).