forked from elastic/kibana
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make mget task claim strategy poll more frequently (elastic#190059)
In this PR, I'm changing the default `poll_interval` to `500` whenever mget claim strategy is set. This keeps the `3000` value for the default task claiming strategy and setting `xpack.task_manager.poll_interval` still takes precedence. I'm increasing the frequency because we no longer get as much contention when adding Kibana nodes, allowing tasks to be picked up more frequently / on-time. ## To verify 1. Add a console log to the task manager plugin constructor (like elastic@1e6b1ac) 2. Startup this PR without any task manager yml settings 3. Observe `3000` is the poll interval 4. Set `xpack.task_manager.claim_strategy: 'unsafe_mget'` in the kibana.yml file and wait for Kibana restart 5. Observe `500` is the poll interval 6. Set `xpack.task_manager.poll_interval: 3001` and wait for Kibana restart 7. Observe `3001` is the poll interval 8. Remove `xpack.task_manager.claim_strategy` setting and wait for Kibana restart 9. Observe `3001` is still poll interval 10. Remove `xpack.task_manager.poll_interval` setting Flaky test runner for mget tests: https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/6722 --------- Co-authored-by: Elastic Machine <[email protected]>
- Loading branch information
1 parent
813025c
commit 0f42e78
Showing
4 changed files
with
37 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters