Skip to content
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

Never list workers in Update()/storeUpdate() transactions #228

Merged
merged 3 commits into from
Dec 5, 2024

Conversation

edigaryev
Copy link
Collaborator

@edigaryev edigaryev commented Dec 5, 2024

With the high enough number of workers, the probability of conflict of a transaction that lists all workers in the system rises as each worker is concurrently poking the API and updating its LastSeen field.

We've fixed that for the scheduler in #225, but there's two more places remaining in the codebase:

  • POST /v1/workers — improved in 6c9b416
  • healthCheckingLoopIteration() — improved in 08cf668

@edigaryev edigaryev requested a review from fkorotkov December 5, 2024 10:24
@edigaryev edigaryev force-pushed the do-not-list-workers-in-update branch from e223a1a to 08cf668 Compare December 5, 2024 12:14
@edigaryev edigaryev merged commit d7b6f47 into main Dec 5, 2024
4 checks passed
@edigaryev edigaryev deleted the do-not-list-workers-in-update branch December 5, 2024 12:59
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.

2 participants