I’m working for a high frequency trading firm and trying to get a docker compose stack to respect core isolation or pin containers to specific cores.
Basically, the option we have on docker-compose V3 to limit the amount of CPU(s) a docker container can use isn’t enough. I need to be able to set it to either use a specific list of cores, or avoid doing anything at all with a specific set of cores. Anything else increases latency on executing commands (and causes our current applications to fail)
Does anyone know how this can be done? I can see docker run does it (
--cpuset-cpus) and Kubernetes does it (https://kubernetes.io/blog/2018/07/24/feature-highlight-cpu-manager/) and docker-compose used to do it. (in V2)