From c46700f8897bb764fc95d2bb586f808282a7f219 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C8=98tefan=20Talpalaru?= Date: Sat, 27 Jun 2020 02:57:34 +0200 Subject: [PATCH] remove CPU limits --- defaults/main.yml | 2 -- tasks/compose.yml | 2 -- 2 files changed, 4 deletions(-) diff --git a/defaults/main.yml b/defaults/main.yml index f196539..58dd299 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -20,9 +20,7 @@ beacon_node_metrics_port: 9200 beacon_node_rpc_port: 9900 # resource limits, mem in MB -beacon_node_cpu_limit: 0.80 beacon_node_mem_limit: '{{ (ansible_memtotal_mb * 0.6) | int }}' -beacon_node_cpu_reserve: 0.40 beacon_node_mem_reserve: '{{ (ansible_memtotal_mb * 0.4) | int }}' # container restart policy diff --git a/tasks/compose.yml b/tasks/compose.yml index e934d2c..b53863d 100644 --- a/tasks/compose.yml +++ b/tasks/compose.yml @@ -18,10 +18,8 @@ deploy: resources: limits: - cpus: '{{ beacon_node_cpu_limit | string }}' memory: '{{ beacon_node_mem_limit }}M' reservations: - cpus: '{{ beacon_node_cpu_reserve | string }}' memory: '{{ beacon_node_mem_reserve }}M' restart_policy: condition: '{{ beacon_node_restart_ondition }}'