Skip to content

Use special priority connection for config GET/HEAD requests #2257

@tonistiigi

Description

@tonistiigi

After #2247 active TCP connections per host are limited to avoid things blowing up. While testing #2254 with a network limiter I spotted a case where one build was ongoing and doing a pull, other one couldn't really start because the image config resolve in Dockerfile was stuck in a queue blocking the whole build until the layers from the other build completed.

I wonder if it would make sense to have certain high-priority requests like HEAD and GET for manifest and config blobs that could get a single extra connection. These requests are small and don't take much time but they may unblock big parts of a build.

Not sure how this technically can be achieved with the current use of x/sync/semaphore package.

@sipsma @aaronlehmann

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions