Skip to content

Comments

Advance sveltos-agent#450

Merged
gianlucam76 merged 1 commit intoprojectsveltos:mainfrom
gianlucam76:agent
Feb 18, 2026
Merged

Advance sveltos-agent#450
gianlucam76 merged 1 commit intoprojectsveltos:mainfrom
gianlucam76:agent

Conversation

@gianlucam76
Copy link
Member

This picks this sveltos-agent optmization:

Both sveltos-agent and the agents running in the control cluster (classifier, event-manager and healthcheck-manager) update status for ClassifierReport, EventReport and HealthCheckReport.

Sveltos-agent updates it to indicate there is a new report to be processed. The agents in the control cluster to indicate the latest report has been processed.

This PR optimizes the status update logic for the EventReport, HealthCheckReport, and ClassifierReport controllers.

Previously, concurrent updates by multiple managers or controllers some time resulted in 409 Conflict errors. This forced the classifier/eventSource/healthCheck to be re-evaluated again.

The code now attempts an immediate status update with the existing resourceVersion. It only performs a Get() request if a conflict is actually detected, saving one API call in ~90% of cases.

This picks this sveltos-agent optmization:

Both sveltos-agent and the agents running in the control cluster
(classifier, event-manager and healthcheck-manager) update status
for ClassifierReport, EventReport and HealthCheckReport.

Sveltos-agent updates it to indicate there is a new report to be
processed. The agents in the control cluster to indicate the latest
report has been processed.

This PR optimizes the status update logic for the EventReport,
HealthCheckReport, and ClassifierReport controllers.

Previously, concurrent updates by multiple managers or controllers
some time resulted in 409 Conflict errors. This forced the
classifier/eventSource/healthCheck to be re-evaluated again.

The code now attempts an immediate status update with the existing
resourceVersion. It only performs a Get() request if a conflict is
actually detected, saving one API call in ~90% of cases.
@gianlucam76 gianlucam76 merged commit 0d4d3d7 into projectsveltos:main Feb 18, 2026
6 checks passed
@gianlucam76 gianlucam76 deleted the agent branch February 18, 2026 19:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant