Reputation: 175
I have been trying to find out whats the default behavior of docker with regards to usage of host cpu cores? Does anyone know if it will utilize multiple cpu cores for each process inside the container, or if it will run all processes on just one cpu core on the host?
Upvotes: 0
Views: 224
Reputation: 10474
You will want to read about the CPU Sharing and Constraint Docs - basically, yes, if you go with the default a container will use up to 100% of the CPU, but you can control this with a constraint on the CPU usage with --cpu-period
and --cpu-quota
For more information on how cpu period and quota work, see the kernel docs
Upvotes: 2