[ARVADOS] created: 1.3.0-2491-g727b97086

Git user git at public.arvados.org
Mon Apr 13 18:35:13 UTC 2020


        at  727b97086f9ec060b9411b887d635017852d17cd (commit)


commit 727b97086f9ec060b9411b887d635017852d17cd
Author: Lucas Di Pentima <lucas at di-pentima.com.ar>
Date:   Mon Apr 13 15:34:12 2020 -0300

    16313: Updates minimum requestd ram on docker containers from 4 to 16 MB.
    
    Arvados-DCO-1.1-Signed-off-by: Lucas Di Pentima <lucas at di-pentima.com.ar>

diff --git a/lib/crunchrun/crunchrun.go b/lib/crunchrun/crunchrun.go
index b0a4007f7..c8f171ca9 100644
--- a/lib/crunchrun/crunchrun.go
+++ b/lib/crunchrun/crunchrun.go
@@ -1074,9 +1074,10 @@ func (runner *ContainerRunner) CreateContainer() error {
 	runner.ContainerConfig.Volumes = runner.Volumes
 
 	maxRAM := int64(runner.Container.RuntimeConstraints.RAM)
-	if maxRAM < 4*1024*1024 {
-		// Docker daemon won't let you set a limit less than 4 MiB
-		maxRAM = 4 * 1024 * 1024
+	minDockerRAM := int64(16)
+	if maxRAM < minDockerRAM*1024*1024 {
+		// Docker daemon won't let you set a limit less than ~10 MiB
+		maxRAM = minDockerRAM * 1024 * 1024
 	}
 	runner.HostConfig = dockercontainer.HostConfig{
 		Binds: runner.Binds,

-----------------------------------------------------------------------


hooks/post-receive
-- 




More information about the arvados-commits mailing list