Skip to content

Commit

Permalink
Modified the compose file to fix issues:
Browse files Browse the repository at this point in the history
.Increased CPU limit
	. rabbit - 40% this improve syncing and prevents things backing up
	. redis - 20%
	. all other containers - 15%
.Increased Memory limit of rabbit to 1250Mb - this is to cope with WAL bursts
.Increased redis max_connections to 1024
  • Loading branch information
Andrew-Pohl committed May 19, 2020
1 parent 115a884 commit f953566
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 29 deletions.
20 changes: 11 additions & 9 deletions multiple-erc20-to-erc20/oracle/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
version: '2.4'
services:
rabbit:
cpus: 0.1
mem_limit: 250m
cpus: 0.40
mem_limit: 1250m
environment: ['RABBITMQ_NODENAME=node@rabbit']
hostname: rabbit
image: rabbitmq:3
Expand All @@ -23,11 +23,13 @@ services:
max-file: "5"
compress: "true"
redis:
cpus: 0.1
cpus: 0.20
mem_limit: 250m
command: [redis-server, --appendonly, 'yes']
hostname: redis
image: redis:4
sysctls:
net.core.somaxconn: 1024
container_name: fuseoracle-redis
networks:
- net_db_bridge_request
Expand All @@ -45,7 +47,7 @@ services:
max-file: "5"
compress: "true"
bridge_request:
cpus: 0.1
cpus: 0.15
mem_limit: 250m
image: fusenet/multiple-erc20-to-erc20-oracle:1.0.4
container_name: fuseoracle-signature-request
Expand All @@ -63,7 +65,7 @@ services:
max-file: "5"
compress: "true"
bridge_collected:
cpus: 0.1
cpus: 0.15
mem_limit: 250m
image: fusenet/multiple-erc20-to-erc20-oracle:1.0.4
container_name: fuseoracle-collected-signatures
Expand All @@ -81,7 +83,7 @@ services:
max-file: "5"
compress: "true"
bridge_affirmation:
cpus: 0.1
cpus: 0.15
mem_limit: 250m
image: fusenet/multiple-erc20-to-erc20-oracle:1.0.4
container_name: fuseoracle-affirmation-request
Expand All @@ -99,7 +101,7 @@ services:
max-file: "5"
compress: "true"
deployed_bridges:
cpus: 0.1
cpus: 0.15
mem_limit: 250m
image: fusenet/multiple-erc20-to-erc20-oracle:1.0.4
container_name: fuseoracle-deployed-bridges
Expand All @@ -117,7 +119,7 @@ services:
max-file: "5"
compress: "true"
bridge_senderhome:
cpus: 0.1
cpus: 0.15
mem_limit: 250m
image: fusenet/multiple-erc20-to-erc20-oracle:1.0.4
container_name: fuseoracle-sender-home
Expand All @@ -135,7 +137,7 @@ services:
max-file: "5"
compress: "true"
bridge_senderforeign:
cpus: 0.1
cpus: 0.15
mem_limit: 250m
image: fusenet/multiple-erc20-to-erc20-oracle:1.0.4
container_name: fuseoracle-sender-foreign
Expand Down
22 changes: 12 additions & 10 deletions native-to-erc20/oracle/docker-compose.keystore.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
version: '2.4'
services:
rabbit:
cpus: 0.1
mem_limit: 250m
cpus: 0.40
mem_limit: 1250m
environment: ['RABBITMQ_NODENAME=node@rabbit']
hostname: rabbit
image: rabbitmq:3
Expand All @@ -24,11 +24,13 @@ services:
max-file: "5"
compress: "true"
redis:
cpus: 0.1
cpus: 0.20
mem_limit: 250m
command: [redis-server, --appendonly, 'yes']
hostname: redis
image: redis:4
sysctls:
net.core.somaxconn: 1024
container_name: fuseoracle-redis
networks:
- net_db_bridge_request
Expand All @@ -47,7 +49,7 @@ services:
max-file: "5"
compress: "true"
bridge_request:
cpus: 0.1
cpus: 0.15
mem_limit: 250m
image: fusenet/native-to-erc20-oracle:2.0.3
container_name: fuseoracle-signature-request
Expand All @@ -67,7 +69,7 @@ services:
max-file: "5"
compress: "true"
bridge_collected:
cpus: 0.1
cpus: 0.15
mem_limit: 250m
image: fusenet/native-to-erc20-oracle:2.0.3
container_name: fuseoracle-collected-signatures
Expand All @@ -87,7 +89,7 @@ services:
max-file: "5"
compress: "true"
bridge_affirmation:
cpus: 0.1
cpus: 0.15
mem_limit: 250m
image: fusenet/native-to-erc20-oracle:2.0.3
container_name: fuseoracle-affirmation-request
Expand All @@ -107,7 +109,7 @@ services:
max-file: "5"
compress: "true"
bridge_initiate_change:
cpus: 0.1
cpus: 0.15
mem_limit: 250m
image: fusenet/native-to-erc20-oracle:2.0.3
container_name: fuseoracle-initiate-change
Expand All @@ -127,7 +129,7 @@ services:
max-file: "5"
compress: "true"
bridge_rewarded_on_cycle:
cpus: 0.1
cpus: 0.15
mem_limit: 250m
image: fusenet/native-to-erc20-oracle:2.0.3
container_name: fuseoracle-rewarded-on-cycle
Expand All @@ -147,7 +149,7 @@ services:
max-file: "5"
compress: "true"
bridge_senderhome:
cpus: 0.1
cpus: 0.15
mem_limit: 250m
image: fusenet/native-to-erc20-oracle:2.0.3
container_name: fuseoracle-sender-home
Expand All @@ -167,7 +169,7 @@ services:
max-file: "5"
compress: "true"
bridge_senderforeign:
cpus: 0.1
cpus: 0.15
mem_limit: 250m
image: fusenet/native-to-erc20-oracle:2.0.3
container_name: fuseoracle-sender-foreign
Expand Down
22 changes: 12 additions & 10 deletions native-to-erc20/oracle/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
version: '2.4'
services:
rabbit:
cpus: 0.1
mem_limit: 250m
cpus: 0.40
mem_limit: 1250m
environment: ['RABBITMQ_NODENAME=node@rabbit']
hostname: rabbit
image: rabbitmq:3
Expand All @@ -24,11 +24,13 @@ services:
max-file: "5"
compress: "true"
redis:
cpus: 0.1
cpus: 0.20
mem_limit: 250m
command: [redis-server, --appendonly, 'yes']
hostname: redis
image: redis:4
sysctls:
net.core.somaxconn: 1024
container_name: fuseoracle-redis
networks:
- net_db_bridge_request
Expand All @@ -47,7 +49,7 @@ services:
max-file: "5"
compress: "true"
bridge_request:
cpus: 0.1
cpus: 0.15
mem_limit: 250m
image: fusenet/native-to-erc20-oracle:2.0.3
container_name: fuseoracle-signature-request
Expand All @@ -65,7 +67,7 @@ services:
max-file: "5"
compress: "true"
bridge_collected:
cpus: 0.1
cpus: 0.15
mem_limit: 250m
image: fusenet/native-to-erc20-oracle:2.0.3
container_name: fuseoracle-collected-signatures
Expand All @@ -83,7 +85,7 @@ services:
max-file: "5"
compress: "true"
bridge_affirmation:
cpus: 0.1
cpus: 0.15
mem_limit: 250m
image: fusenet/native-to-erc20-oracle:2.0.3
container_name: fuseoracle-affirmation-request
Expand All @@ -101,7 +103,7 @@ services:
max-file: "5"
compress: "true"
bridge_initiate_change:
cpus: 0.1
cpus: 0.15
mem_limit: 250m
image: fusenet/native-to-erc20-oracle:2.0.3
container_name: fuseoracle-initiate-change
Expand All @@ -119,7 +121,7 @@ services:
max-file: "5"
compress: "true"
bridge_rewarded_on_cycle:
cpus: 0.1
cpus: 0.15
mem_limit: 250m
image: fusenet/native-to-erc20-oracle:2.0.3
container_name: fuseoracle-rewarded-on-cycle
Expand All @@ -137,7 +139,7 @@ services:
max-file: "5"
compress: "true"
bridge_senderhome:
cpus: 0.1
cpus: 0.15
mem_limit: 250m
image: fusenet/native-to-erc20-oracle:2.0.3
container_name: fuseoracle-sender-home
Expand All @@ -155,7 +157,7 @@ services:
max-file: "5"
compress: "true"
bridge_senderforeign:
cpus: 0.1
cpus: 0.15
mem_limit: 250m
image: fusenet/native-to-erc20-oracle:2.0.3
container_name: fuseoracle-sender-foreign
Expand Down

0 comments on commit f953566

Please sign in to comment.