Allow specifying limits for pipeline steps from server config (#2085)

This commit is contained in:
Jacob McCann
2017-06-24 07:16:16 -05:00
committed by Brad Rydzewski
parent 3ed811644f
commit daa23ce673
4 changed files with 51 additions and 0 deletions

11
model/resource_limit.go Normal file
View File

@@ -0,0 +1,11 @@
package model
// ResourceLimit is the resource limit to set on pipeline steps
type ResourceLimit struct {
MemSwapLimit int64
MemLimit int64
ShmSize int64
CPUQuota int64
CPUShares int64
CPUSet string
}