-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Reporting] add an "auto" option for the timeout settings #131852
Comments
Pinging @elastic/kibana-app-services (Team:AppServicesUx) |
Let's try to go with a similar proposal as #162841
|
…174410) ## Summary This PR cleans up extra layers of abstraction in image export types that could complicate progress of the proposal of "auto" timeouts. See #131852 ## Changes Minor code cleanup of the "runTask" functions of export types that create screenshots, by removing the `generatePdf*` / `generatePng` helper callback functions and inlining the work those modules were doing. The helper modules were an integral part of the screenshotting pipelines, but in the unit tests they were completely mocked. Now that we have a proper mock utility of the `screenshotting` plugin start contract, we no longer need mockable code in a separate layer of the pipelines. --------- Co-authored-by: kibanamachine <[email protected]>
capture.timeout
setting documentation should avoid confusion
Pinging @elastic/appex-sharedux (Team:SharedUX) |
…lastic#174410) ## Summary This PR cleans up extra layers of abstraction in image export types that could complicate progress of the proposal of "auto" timeouts. See elastic#131852 ## Changes Minor code cleanup of the "runTask" functions of export types that create screenshots, by removing the `generatePdf*` / `generatePng` helper callback functions and inlining the work those modules were doing. The helper modules were an integral part of the screenshotting pipelines, but in the unit tests they were completely mocked. Now that we have a proper mock utility of the `screenshotting` plugin start contract, we no longer need mockable code in a separate layer of the pipelines. --------- Co-authored-by: kibanamachine <[email protected]>
Relevant: #174511 (comment). Since we are touching and remolding the timeout settings for this task, we may want to decide on a new timeout setting for ES|QL request timeout, which is conceptually different than the scroll duration. |
@tsullivan thanks for the heads up, following the conversation there seems to be no preference for an ES|QL specific timeout duration, I think we can go ahead and apply the same change for both ES|QL and the standard CSV generator, we might then diverge along the line if need be, wdyt? |
@eokoneyo you phrased it well: we can diverge along the line later if need be. 👍🏻 |
## Summary Initial part of #131852 This PR moves towards auto-calculating the maximum timeouts calculated based on the timing context provided by the running task instance. ### Other changes * Added an optional logger parameter to the `getScreenshots` function. When a logger is provided, the logs created by the screenshot plugin will have the contextual tags added by the calling code. * Before <img width="1198" alt="image" src="https://github.com/elastic/kibana/assets/908371/f68a102e-6af2-4863-aedb-52f1e4a099d8"> * After <img width="1200" alt="image" src="https://github.com/elastic/kibana/assets/908371/2dd4c947-ffa6-4cb3-b8a2-22893f49ddb7"> * Fixed an unreported bug where browser timezone was not utilized in PNG reports. ### Checklist Delete any items that are not applicable to this PR. - [x] [Unit or functional tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html) were updated or added to match the most common scenarios
Closed as completed |
## Summary Initial part of elastic#131852 This PR moves towards auto-calculating the maximum timeouts calculated based on the timing context provided by the running task instance. ### Other changes * Added an optional logger parameter to the `getScreenshots` function. When a logger is provided, the logs created by the screenshot plugin will have the contextual tags added by the calling code. * Before <img width="1198" alt="image" src="https://github.com/elastic/kibana/assets/908371/f68a102e-6af2-4863-aedb-52f1e4a099d8"> * After <img width="1200" alt="image" src="https://github.com/elastic/kibana/assets/908371/2dd4c947-ffa6-4cb3-b8a2-22893f49ddb7"> * Fixed an unreported bug where browser timezone was not utilized in PNG reports. ### Checklist Delete any items that are not applicable to this PR. - [x] [Unit or functional tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html) were updated or added to match the most common scenarios
All types of reports use timeout values, which are based on defaults in the Kibana settings. Often these defaults are not scaled high enough for uses cases where there is search latency in the cluster.
We want to add an "auto" value for the timeout settings which would allow durations lasting as long as possible without being timed out by the reporting queue's task timeout limit.
Once this change is in, users can give settings such as
xpack.reporting.csv.scroll.duration: auto
and each scroll duration will be based on how much available time there is for the report to execute. At that point users would be able to simply updatexpack.reporting.queue.timeout
to give more time to all parts of execution.Tasks
The text was updated successfully, but these errors were encountered: