diff --git a/Dockerfiles/node/files/start-producer.sh b/Dockerfiles/node/files/start-producer.sh index 23fef71..1a03295 100644 --- a/Dockerfiles/node/files/start-producer.sh +++ b/Dockerfiles/node/files/start-producer.sh @@ -20,7 +20,7 @@ _term() { trap _term SIGTERM SIGINT echo "Starting Cardano Producer Node ..." -cardano-node run +RTS -N6 -RTS --topology ${TOPOLOGY} --database-path ${DB_PATH} --socket-path ${SOCKET_PATH} --host-addr ${HOSTADDR} --port ${PORT} --config ${CONFIG} --shelley-kes-key ${KES} --shelley-vrf-key ${VRF} --shelley-operational-certificate ${CERT} & +cardano-node run +RTS ${NODE_RTS} -RTS --topology ${TOPOLOGY} --database-path ${DB_PATH} --socket-path ${SOCKET_PATH} --host-addr ${HOSTADDR} --port ${PORT} --config ${CONFIG} --shelley-kes-key ${KES} --shelley-vrf-key ${VRF} --shelley-operational-certificate ${CERT} & PID=$! wait $PID diff --git a/Dockerfiles/node/files/start-relay.sh b/Dockerfiles/node/files/start-relay.sh index 608737c..e62c694 100644 --- a/Dockerfiles/node/files/start-relay.sh +++ b/Dockerfiles/node/files/start-relay.sh @@ -17,7 +17,7 @@ _term() { trap _term SIGTERM SIGINT echo "Starting Cardano Relay Node ..." -cardano-node run +RTS -maxN4 -RTS --topology ${TOPOLOGY} --database-path ${DB_PATH} --socket-path ${SOCKET_PATH} --host-addr ${HOSTADDR} --port ${PORT} --config ${CONFIG} & +cardano-node run +RTS ${NODE_RTS} -RTS --topology ${TOPOLOGY} --database-path ${DB_PATH} --socket-path ${SOCKET_PATH} --host-addr ${HOSTADDR} --port ${PORT} --config ${CONFIG} & PID=$! wait $PID diff --git a/Dockerfiles/node/files/start-with-topology.sh b/Dockerfiles/node/files/start-with-topology.sh index 5067722..02f1160 100644 --- a/Dockerfiles/node/files/start-with-topology.sh +++ b/Dockerfiles/node/files/start-with-topology.sh @@ -19,7 +19,7 @@ trap _term SIGTERM SIGINT echo "Starting Topology Updater ..." topologyUpdater.sh & echo "Starting Cardano Relay Node ..." -cardano-node run +RTS -maxN4 -RTS --topology ${TOPOLOGY} --database-path ${DB_PATH} --socket-path ${SOCKET_PATH} --host-addr ${HOSTADDR} --port ${PORT} --config ${CONFIG} & +cardano-node run +RTS ${NODE_RTS} -RTS --topology ${TOPOLOGY} --database-path ${DB_PATH} --socket-path ${SOCKET_PATH} --host-addr ${HOSTADDR} --port ${PORT} --config ${CONFIG} & PID=$! wait $PID diff --git a/docker-compose.yaml b/docker-compose.yaml index de502c8..d542a0a 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -5,6 +5,7 @@ services: cardano-relay1: container_name: cardano-relay1 environment: + NODE_RTS: '-maxN4' CNODE_HOSTNAME: 'CHANGE ME' PUBLIC_PORT: 3001 image: cardano_node:latest @@ -48,6 +49,7 @@ services: cardano-relay2: container_name: cardano-relay2 environment: + NODE_RTS: '-maxN4' CNODE_HOSTNAME: 'CHANGE ME' PUBLIC_PORT: 3002 image: cardano_node:latest @@ -90,6 +92,8 @@ services: cardano-bp: container_name: cardano-bp + environment: + NODE_RTS: '-N6' image: cardano_node:latest #command: ["/bin/bash", "-c", "start-relay.sh"] # Comment for node producer or relay with topology updater #command: ["/bin/bash", "-c", "start-producer.sh"] # Uncomment for node producer