From c10d9867de7eafd55d11f79e2712bd407db0ca19 Mon Sep 17 00:00:00 2001 From: Mihnea Dobrescu-Balaur Date: Fri, 7 May 2021 12:56:18 +0300 Subject: [PATCH] Cap CPU usage to 50% for bb containers to avoid blocking the host. --- deployments/mainnet/docker-compose.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/deployments/mainnet/docker-compose.yaml b/deployments/mainnet/docker-compose.yaml index 402744c..6165ed3 100644 --- a/deployments/mainnet/docker-compose.yaml +++ b/deployments/mainnet/docker-compose.yaml @@ -110,6 +110,8 @@ services: networks: infura: ipv4_address: 10.2.0.111 + # Use at most 50% of available CPU resources to not kill the host. + cpu_percent: 50 bb_eth: container_name: bb_eth_mainnet @@ -127,6 +129,8 @@ services: networks: infura: ipv4_address: 10.2.0.112 + # Use at most 50% of available CPU resources to not kill the host. + cpu_percent: 50 bb_bsc: container_name: bb_bsc_mainnet @@ -144,6 +148,8 @@ services: networks: infura: ipv4_address: 10.2.0.113 + # Use at most 50% of available CPU resources to not kill the host. + cpu_percent: 50 networks: infura: