Skip to content

Use maxRegistryConcurrency instead of DefaultMaxConcurrency - #7049

Merged
tonistiigi merged 1 commit into
moby:masterfrom
dnephin:fix-default-max-concurrency
Aug 18, 2026
Merged

tonistiigi merged 1 commit into
moby:masterfrom
dnephin:fix-default-max-concurrency

Conversation

@dnephin

@dnephin dnephin commented Aug 17, 2026 •

Copy link
Copy Markdown
Member

We've been seeing some slow builds caused by contention in buildkitd. The traces show that when they reach the concurrency limit for registry uploads other builds get blocked on this semaphore.

cache/remotecache/export.go used the limited.DefaultMaxConcurrency constant, where as everything else was using limited.Default. limited.Default honors the maxRegistryConcurrency setting, but the constant does not.

This PR updates cache/remotecache/export.go to use the configurable value. We plan on increasing that value to increase throughput on the buildkitd workers.

This PR also switches the Group.size field to int64 since all uses of the value were already converting from int to int64.

Signed-off-by: Daniel Nephin <daniel.nephin@reddit.com>
@dnephin
dnephin force-pushed the fix-default-max-concurrency branch from 9e62662 to bfd04fe Compare August 17, 2026 22:06
@dnephin dnephin changed the title Use maxRegistryConcurrency instad of DefaultMaxConcurrency Use maxRegistryConcurrency instead of DefaultMaxConcurrency Aug 17, 2026
@tonistiigi
tonistiigi merged commit 2aa57b6 into moby:master Aug 18, 2026
198 checks passed
@crazy-max crazy-max added this to the v0.33.0 milestone Aug 18, 2026
@dnephin
dnephin deleted the fix-default-max-concurrency branch August 18, 2026 17:12
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.

3 participants