From a26ab161ccf71f7dd0b41c5aef02317f91f27aa0 Mon Sep 17 00:00:00 2001 From: Serhii Varakuta Date: Thu, 27 Jun 2024 18:02:59 +0300 Subject: [PATCH] Try to fix OOM issue --- docker/destination/docker-entrypoint.sh | 2 +- operations/deploy-stage.hcl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docker/destination/docker-entrypoint.sh b/docker/destination/docker-entrypoint.sh index 7253249..28d5660 100755 --- a/docker/destination/docker-entrypoint.sh +++ b/docker/destination/docker-entrypoint.sh @@ -1,5 +1,5 @@ mkdir -p data && cd data -head -c $((1024*1024*256)) /dev/urandom > 1GiB +head -c $((1024*1024*1024)) /dev/urandom > 1GiB nginx -g 'daemon off;' diff --git a/operations/deploy-stage.hcl b/operations/deploy-stage.hcl index 6f85abf..904de6a 100644 --- a/operations/deploy-stage.hcl +++ b/operations/deploy-stage.hcl @@ -129,7 +129,7 @@ ORPort {{ env `NOMAD_PORT_orport` }} resources { cpu = 1000 - memory = 1000 + memory = 1500 } template {