Skip to content

route bake targets across pods with random loadbalance#3861

Draft
areebahmeddd wants to merge 5 commits into
docker:masterfrom
areebahmeddd:fix/random-pods
Draft

route bake targets across pods with random loadbalance#3861
areebahmeddd wants to merge 5 commits into
docker:masterfrom
areebahmeddd:fix/random-pods

Conversation

@areebahmeddd
Copy link
Copy Markdown

loadbalance=random on the kubernetes driver was sending all bake targets to the same pod.
the client connection was cached after the first dial, so pod selection only happened once.

fix this by creating a new connection per target when loadbalance=random is enabled.
also disable the shared local mount session optimization in this mode.

Closes #3382

Signed-off-by: Areeb Ahmed <areebahmed0709@gmail.com>
Signed-off-by: Areeb Ahmed <areebahmed0709@gmail.com>
Signed-off-by: Areeb Ahmed <areebahmed0709@gmail.com>
Signed-off-by: Areeb Ahmed <areebahmed0709@gmail.com>
Signed-off-by: Areeb Ahmed <areebahmed0709@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bake targets are not distributed across buildkit pods

2 participants