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

Prevent parallel allocation to ensure spreading and reservations. #490

Merged
merged 33 commits into from
May 27, 2024

Conversation

Gerrit91
Copy link
Contributor

@Gerrit91 Gerrit91 commented Jan 18, 2024

This implementation implements a lock / mutex through the RethinkDB. I hope the tests I wrote are good enough to build trust into this idea as I think the advantages of having spread and reservations truly work are pretty big. If someone has a better idea to achieve the same outcome, please let me know.

@Gerrit91
Copy link
Contributor Author

Gerrit91 commented Mar 6, 2024

Possible optimization would be to lock with the partition key such that allocations can go in parallel in different partitions.

@Gerrit91
Copy link
Contributor Author

Gerrit91 commented May 7, 2024

Now locked by partition key.

@Gerrit91 Gerrit91 marked this pull request as ready for review May 7, 2024 14:45
@Gerrit91 Gerrit91 requested a review from a team as a code owner May 7, 2024 14:45
@Gerrit91 Gerrit91 requested a review from majst01 May 7, 2024 14:45
@Gerrit91 Gerrit91 merged commit 10c1fc1 into master May 27, 2024
2 checks passed
@Gerrit91 Gerrit91 deleted the machine-allocation-shared-mutex branch May 27, 2024 10:15
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.

3 participants