Skip to content

[8.3] [Fleet] Improving bulk actions for more than 10k agents (#134565)#135104

Merged
kibanamachine merged 1 commit into8.3from
backport/8.3/pr-134565
Jun 24, 2022
Merged

[8.3] [Fleet] Improving bulk actions for more than 10k agents (#134565)#135104
kibanamachine merged 1 commit into8.3from
backport/8.3/pr-134565

Conversation

@kibanamachine
Copy link
Copy Markdown
Contributor

Backport

This will backport the following commits from main to 8.3:

Questions ?

Please refer to the Backport tool documentation

* changed getAllAgentsByKuery to query all agents with pit and search_after

* added internal api to test pit query

* changed reassign to work on batches of 10k

* unenroll in batches

* upgrade in batches

* fixed upgrade

* added tests

* cleanup

* revert changes in getAllAgentsByKuery

* renamed perPage to batchSize in bulk actions

* fixed test

* try catch around close pit

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
(cherry picked from commit 2732f26)
@kibanamachine kibanamachine added the backport This PR is a backport of another PR label Jun 24, 2022
@kibanamachine kibanamachine enabled auto-merge (squash) June 24, 2022 07:53
@botelastic botelastic bot added the Team:Fleet Team label for Observability Data Collection Fleet team label Jun 24, 2022
@elasticmachine
Copy link
Copy Markdown
Contributor

Pinging @elastic/fleet (Team:Fleet)

@kibanamachine kibanamachine merged commit 4a289b5 into 8.3 Jun 24, 2022
@kibana-ci
Copy link
Copy Markdown

💛 Build succeeded, but was flaky

Failed CI Steps

Metrics [docs]

Public APIs missing comments

Total count of every public API that lacks a comment. Target amount is 0. Run node scripts/build_api_docs --plugin [yourplugin] --stats comments for more detailed information.

id before after diff
fleet 1295 1296 +1
Unknown metric groups

API count

id before after diff
fleet 1418 1419 +1

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

cc @juliaElastic

@kibanamachine kibanamachine deleted the backport/8.3/pr-134565 branch June 24, 2022 08:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport This PR is a backport of another PR Team:Fleet Team label for Observability Data Collection Fleet team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants