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 VM syncing #31

Closed
fkorotkov opened this issue Mar 10, 2023 · 0 comments · Fixed by #67
Closed

Reactive VM syncing #31

fkorotkov opened this issue Mar 10, 2023 · 0 comments · Fixed by #67
Assignees
Labels

Comments

@fkorotkov
Copy link
Contributor

Once we have a Watch persistent streams from workers to the controller, we can notify workers that they need to sync VMs right away upon scheduling.

Probably a worker should still poll updates every 15 seconds and the push from the controller will just reset interval.

@fkorotkov fkorotkov self-assigned this Mar 27, 2023
@fkorotkov fkorotkov added the GA label Mar 27, 2023
fkorotkov added a commit that referenced this issue Mar 28, 2023
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 added a commit that referenced this issue Mar 28, 2023
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant