Merge pull request #222 from chavafg/topic/cpu-resources

virtcontainers: Disable cpuset and cpumem
This commit is contained in:
Peng Tao 2018-04-17 08:16:17 +08:00 committed by GitHub
commit be6ef03407
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -588,6 +588,8 @@ func constraintGRPCSpec(grpcSpec *grpc.Spec) {
grpcSpec.Linux.Resources.BlockIO = nil grpcSpec.Linux.Resources.BlockIO = nil
grpcSpec.Linux.Resources.HugepageLimits = nil grpcSpec.Linux.Resources.HugepageLimits = nil
grpcSpec.Linux.Resources.Network = nil grpcSpec.Linux.Resources.Network = nil
grpcSpec.Linux.Resources.CPU.Cpus = ""
grpcSpec.Linux.Resources.CPU.Mems = ""
// Disable network namespace since it is already handled on the host by // Disable network namespace since it is already handled on the host by
// virtcontainers. The network is a complex part which cannot be simply // virtcontainers. The network is a complex part which cannot be simply