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

Reactive Scheduling #67

Merged
merged 1 commit into from
Mar 28, 2023
Merged

Reactive Scheduling #67

merged 1 commit into from
Mar 28, 2023

Conversation

fkorotkov
Copy link
Contributor

Before we had two main loops: controller loop to assign VMs and worker loop to start VMs. Each of the loops was performed upon an interval every N seconds.

This change introduces a mechanism for reactively requesting loop execution:

  1. Controller loop will be executed upon VM creation to try to immediately schedule.
  2. A worker will be notified upon a VM assigment and worker loop will be requested to sync immediately.

Fixes #31

Before we had two main loops: controller loop to assign VMs and worker loop to start VMs. Each of the loops was performed upon an interval every N seconds.

This change introduces a mechanism for reactively requesting loop execution:

 1. Controller loop will be executed upon VM creation to try to immediately schedule.
 2. A worker will be notified upon a VM assigment and worker loop will be requested to sync immediately.

 Fixes #31
@fkorotkov fkorotkov enabled auto-merge (squash) March 28, 2023 14:47
@fkorotkov fkorotkov merged commit f152043 into main Mar 28, 2023
@fkorotkov fkorotkov deleted the reactive-scheduling branch March 28, 2023 16:51
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.

Reactive VM syncing
2 participants