-
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] Improve storage of agent status field #141107
Comments
Pinging @elastic/fleet (Team:Fleet) |
Kicking off the discussion here with a proposal for moving away from the "deriving" logic that currently exists in Fleet and towards a single The idea here is that Fleet would no longer be responsible for calculating the status displayed in the UI and used for various filtering operations based on various criteria like last check-in time, Pros for this approach:
Cons
Curious to hear other thoughts on this. |
I would add to the pros:
I think at first we should document what are the possible state transitions, who updates the state (Kibana/FS) and which fields are updated. This would give a clearer picture on the refactor needed. |
We had discussed in some places using runtime fields to solve this. I don't think this is a practical option right now since this feature can be disabled via the expensive queries setting: elastic/elasticsearch#90898 |
Currently, agent status is a "derived" field that's calculated in Fleet based on a series of logical conditions around last check in time and various other fields.
There are a few problems with this approach, e.g.
Let's use this issue to discuss alternative approaches and document other issues with agent status that should be solved.
References
null
during upgrades #139704 (comment)The text was updated successfully, but these errors were encountered: