Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
[management] [analytics] Configurable http request timeout for analytics requests #1920
If you keep a lot of data in your elasticsearch indexes and/or if you query a long period of time, elasticsearch analytics request may take some time. Dependent on the concrete usecase, it should be configurable how long we wait for a response to an analytics query.
As a gravitee.io administrator I want to be able to configure the analytics timeout on the elasticsearch-repository as well as in the management UI, so that I am able to search over a lot of data or an extended period of time. There should no timeout be hardcoded neither in the repository nor in the UI.
The timeout is hardcoded to 30 seconds.
Add a configuration entry in the contstants.json (WebUI) and in the gravitee.yml (analytics repository)
Steps to Reproduce (for bugs)
Currently it is not possible to query for analytics if you have a lot of data and want to retrieve statistics for a long time period. Also, if your elasticsearch cluster is not ultra performant, the same issue may apply.