mapper: produce map before poll (#2628)
This commit is contained in:
parent
b2a18830ed
commit
a058bf3cd3
70 changed files with 5771 additions and 2475 deletions
|
|
@ -147,3 +147,9 @@ func DockerAllowNetworkAdministration(config *docker.HostConfig) {
|
|||
config.CapAdd = append(config.CapAdd, "NET_ADMIN")
|
||||
config.Privileged = true
|
||||
}
|
||||
|
||||
// DockerMemoryLimit sets memory limit and disables OOM kill for containers.
|
||||
func DockerMemoryLimit(config *docker.HostConfig) {
|
||||
config.Memory = 2 * 1024 * 1024 * 1024 // 2GB in bytes
|
||||
config.OOMKillDisable = true
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue