Skip to content

Feature: Add the capability to pin cpu/s to docker service create in the same way that this can be done with docker run --cpu-set= #30477

@piersharding

Description

@piersharding

Hi -

I am working on an HPC project that would need to achieve CPU pinning for containers so that specific tasks run on the appropriate CPU as well as speak directly to the host network adapter (a topic covered well in #25303). This could be achieved by having a head node task (perhaps on the swarm manager node) that uses docker swarm to run an agent container on each compute node launched as a service and then each agent container could then launch the appropriately configured task containers locally using docker run --cpuset-cpus="1,2" etc.
However, it would be much cleaner/nicer to manage the entire deployment process through docker swarm so that orchestration features would not need to be implemented in the agent nodes - something that would simplify the entire orchestration control structure.

On this basis, please consider the inclusion of the --cpuset-cpus parameter.

Thanks,
Piers Harding.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/swarmkind/enhancementEnhancements are not bugs or new features but can improve usability or performance.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions