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

feat: use statefulset dockerhost #687

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Conversation

shreddedbacon
Copy link
Member

@shreddedbacon shreddedbacon commented Oct 1, 2024

This changes the docker-host from a deployment to a statefulset.

This change also brings individual services per pod. These services will eventually be used by the remote-controller to distribute builds across the number of available docker-hosts, this will be used to help with queuing builds better. This statefulset should never be scaled manually, as the service per pod will only be created by helm.

The service has been updated to include session affinity capability as a fall back to prevent issues in the event the docker-host replicas are scaled above 1 before the remote-controller changes roll out. This would allow for builds to sort of "round-robbin" as they're started, and that build using session affinity would always be on the docker-host it started on, but the distribution of builds may not be equal across the docker-hosts. The default replica count is still 1.

This is a drop-in replacement for the docker-host, no other changes are required to chart values to make it work. The downside is that the existing docker-host volume will be removed when this is applied, resulting in a completely fresh docker-host volume. This would result in new builds being a bit slower initially while the cache is built up.

Also updated the standalone docker-host chart to statefulset

@shreddedbacon shreddedbacon force-pushed the sts-dockerhost branch 2 times, most recently from 479e832 to 9b87cc2 Compare October 1, 2024 07:14
@shreddedbacon shreddedbacon marked this pull request as ready for review October 1, 2024 23:23
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.

1 participant