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

Optimize sorting service registry in orchestrator #417

Open
jpswinski opened this issue Jun 19, 2024 · 0 comments
Open

Optimize sorting service registry in orchestrator #417

jpswinski opened this issue Jun 19, 2024 · 0 comments

Comments

@jpswinski
Copy link
Member

jpswinski commented Jun 19, 2024

Many operations in the orchestrator need the members in the service registry to be sorted based on the number of locks they have available. One very optimal way to do this would be to keep track of a list of members for each number of locks up to the max (e.g. if max locks is 3, then there would be four lists: 0, 1, 2, 3). Then when a lock is acquired or given back the member is just moved from one list to the other.

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

No branches or pull requests

1 participant