Skip to content

coderd: implement control loop to reconcile templates' prebuild state #304

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

Closed
dannykopping opened this issue Jan 23, 2025 · 1 comment
Closed
Assignees

Comments

@dannykopping
Copy link
Collaborator

Retrieve desired, actual, and extraneous values from #299 and initiate new provisioner jobs to result in the desired number of instances per template.

The reconciliation loop must occur periodically (configurable?), but must also be triggerable imperatively.

@coder-labeler coder-labeler bot added help wanted Extra attention is needed tech-debt labels Jan 23, 2025
@dannykopping dannykopping removed help wanted Extra attention is needed tech-debt labels Jan 23, 2025
@dannykopping dannykopping self-assigned this Jan 23, 2025
@dannykopping
Copy link
Collaborator Author

Status update:

#299 is now completed, I currently have a query in https://github.com/coder/coder/compare/dk/prebuilds called GetTemplatePrebuildState which fetches the values specified above for a given template. Additionally, it will now take in-progress builds into account, and I also took a basic stab at determining how many instances we need to create or delete in coder/coder@4ea5bbd.

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