diff --git a/src/graphs.js b/src/graphs.js index b48eccee9..cd3874dd4 100644 --- a/src/graphs.js +++ b/src/graphs.js @@ -16,6 +16,7 @@ function startGraphite(existingInfra, callback) { const tag = infra.images.graphite.tag; const dataDir = paths.PLATFORM_DATA_DIR; + const memoryLimit = 256; if (existingInfra.version === infra.version && infra.images.graphite.tag === existingInfra.images.graphite.tag) return callback(); @@ -27,8 +28,8 @@ function startGraphite(existingInfra, callback) { --log-opt syslog-address=udp://127.0.0.1:2514 \ --log-opt syslog-format=rfc5424 \ --log-opt tag=graphite \ - -m 150m \ - --memory-swap 150m \ + -m ${memoryLimit}m \ + --memory-swap ${memoryLimit * 2}m \ --dns 172.18.0.1 \ --dns-search=. \ -p 127.0.0.1:2003:2003 \