You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: enterprise/server/remote_execution/runner/runner.go
+13-6Lines changed: 13 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -64,7 +64,7 @@ var (
64
64
maxRunnerDiskSizeBytes=flag.Int64("executor.runner_pool.max_runner_disk_size_bytes", 16e9, "Maximum disk size for a recycled runner; runners exceeding this threshold are not recycled. Defaults to 16GB.")
65
65
// How much memory a runner is allowed to use before we decide that it
66
66
// can't be added to the pool and must be cleaned up instead.
67
-
maxRunnerMemoryUsageBytes=flag.Int64("executor.runner_pool.max_runner_memory_usage_bytes", tasksize.WorkflowMemEstimate, "Maximum memory usage for a recycled runner; runners exceeding this threshold are not recycled. Defaults to 1/10 of total RAM allocated to the executor. (Only supported for Docker-based executors).")
67
+
maxRunnerMemoryUsageBytes=flag.Int64("executor.runner_pool.max_runner_memory_usage_bytes", 0, "Maximum memory usage for a recycled runner; runners exceeding this threshold are not recycled.")
68
68
podmanWarmupDefaultImages=flag.Bool("executor.podman.warmup_default_images", true, "Whether to warmup the default podman images or not.")
69
69
)
70
70
@@ -91,6 +91,9 @@ const (
91
91
// after we send the shutdown signal before giving up.
92
92
persistentWorkerShutdownTimeout=10*time.Second
93
93
94
+
// Default value of maxRunnerMemoryUsageBytes.
95
+
defaultMaxRunnerMemoryUsageBytes=2e9// 2GiB
96
+
94
97
// Memory usage estimate multiplier for pooled runners, relative to the
0 commit comments