Skip to content

[Ingest Manager] Remove useless saved object update in agent checkin#75586

Merged
nchaulet merged 5 commits intoelastic:masterfrom
nchaulet:fix-checkin-useless-es-calls
Aug 26, 2020
Merged

[Ingest Manager] Remove useless saved object update in agent checkin#75586
nchaulet merged 5 commits intoelastic:masterfrom
nchaulet:fix-checkin-useless-es-calls

Conversation

@nchaulet
Copy link
Member

@nchaulet nchaulet commented Aug 20, 2020

Description

When the agent checkin we update the agent saved object, if some property changed like status, errors, and metadata.
We should not update the agent if none of these properties change.

Perfomance Impact

Running a local load test where I enrolled 200 agents, and do two successive checkin (during the first one the config change action is created, during the second one we just retrieve that action)

Before

checkin_first_time_duration....: avg=3.2s    min=3.06s    med=3.09s max=4.78s  p(90)=3.44s p(95)=4.15s
checkin_second_time_duration...: avg=1.08s   min=1.04s    med=1.07s max=1.46s  p(90)=1.1s  p(95)=1.11s

After

checkin_first_time_duration....: avg=2.11s   min=2.04s   med=2.08s   max=3.14s   p(90)=2.11s   p(95)=2.12s  
checkin_second_time_duration...: avg=36.02ms min=16.73ms med=36.79ms max=57.19ms p(90)=44.67ms p(95)=49.77ms

@nchaulet nchaulet added v8.0.0 release_note:skip Skip the PR/issue when compiling release notes v7.10.0 Team:Fleet Team label for Observability Data Collection Fleet team labels Aug 20, 2020
@nchaulet nchaulet self-assigned this Aug 20, 2020
@nchaulet nchaulet marked this pull request as ready for review August 26, 2020 13:54
@nchaulet nchaulet requested a review from a team August 26, 2020 13:54
@elasticmachine
Copy link
Contributor

Pinging @elastic/ingest-management (Team:Ingest Management)

@nchaulet nchaulet force-pushed the fix-checkin-useless-es-calls branch from 14e2125 to 0dc45d4 Compare August 26, 2020 14:19
Copy link
Contributor

@jfsiii jfsiii left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍 Code changes make sense and the before/after show it's worth doing the check.

@nchaulet
Copy link
Member Author

@elasticmachine merge upstream

@kibanamachine
Copy link
Contributor

💚 Build Succeeded

Build metrics

✅ unchanged

History

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release_note:skip Skip the PR/issue when compiling release notes Team:Fleet Team label for Observability Data Collection Fleet team v7.10.0 v8.0.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants