-
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
[Fleet] Support bulk operation for more than 10k agents #133388
Comments
Pinging @elastic/fleet (Team:Fleet) |
Good details in this related bug report as well: #133548 |
Let's make sure to include reassigning policies as well and that we are using a single action for multiple agents rather than one action per agent |
FYI let’s make sure we are not using Elasticsearch scroll API for this or for #91562. Instead, we should be using the point in time API in conjunction with the |
@joshdover I tried out point in time search, and it seems to work with I think using |
@juliaElastic Makes sense, PIT + page options should be fine. My main point was to avoid using the scroll API. |
@joshdover I noticed that the PIT request doesn't show latest agents enrolled since the opening of the PIT request, this means when keeping the Agent list UI open, newly added agents are not showing up, only when navigating away and coming back. EDIT: I managed to test with 10k+ agents, and I still get the same error as before when using PIT with
|
Hmm so maybe we shouldn't be using PIT for the pagination in the UI for this issue, only while iterating through a list on bulk actions on the backend when "select everything on all pages" is selected for a bulk action. In that case, we should be able to use search_after to avoid this and shouldn't have the problem that new agents weren't included since we'll iterate through the whole list quite quickly. Pagination in the UI is separate but needs to be solved in #91562 |
Hey @juliaElastic @joshdover I noticed a small UI issue, would you be mind to check it out? #135120 |
Hi @juliaElastic @jen-huang
Build details: Please let us know if we are missing anything here. |
Description
We currently use Elasticsearch search API to retrieve agents for bulk operation, we should change that to allow to support bulk operation (upgrade, unenroll) for more than 10k agents.
We can probably use the Elasticsearch scroll API to do this, and create multiple
.fleet-actions
document with the same action id.The text was updated successfully, but these errors were encountered: