Skip to content

Commit

Permalink
Made some additional changes
Browse files Browse the repository at this point in the history
. Upped CPU constraints for all oracles to 25% this prevents watchdog tripping
. Added memory limit to of 50Mb to redis for saftey normally no were near running for 40ish hours =15Mb
  • Loading branch information
Andrew-Pohl committed May 20, 2020
1 parent f953566 commit 9379f51
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 29 deletions.
23 changes: 14 additions & 9 deletions multiple-erc20-to-erc20/oracle/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
version: '2.4'
services:
rabbit:
cpus: 0.40
cpus: 0.50
mem_limit: 1250m
environment: ['RABBITMQ_NODENAME=node@rabbit']
hostname: rabbit
Expand All @@ -23,9 +23,14 @@ services:
max-file: "5"
compress: "true"
redis:
cpus: 0.20
cpus: 0.30
mem_limit: 250m
command: [redis-server, --appendonly, 'yes']
command:
- 'redis-server'
- '--loglevel ${REDIS_LOGLEVEL:-notice}'
- '--eppendonly yes'
- '--maxmemory 50mb'
- '--maxmemory-policy allkeys-lru'
hostname: redis
image: redis:4
sysctls:
Expand All @@ -47,7 +52,7 @@ services:
max-file: "5"
compress: "true"
bridge_request:
cpus: 0.15
cpus: 0.25
mem_limit: 250m
image: fusenet/multiple-erc20-to-erc20-oracle:1.0.4
container_name: fuseoracle-signature-request
Expand All @@ -65,7 +70,7 @@ services:
max-file: "5"
compress: "true"
bridge_collected:
cpus: 0.15
cpus: 0.25
mem_limit: 250m
image: fusenet/multiple-erc20-to-erc20-oracle:1.0.4
container_name: fuseoracle-collected-signatures
Expand All @@ -83,7 +88,7 @@ services:
max-file: "5"
compress: "true"
bridge_affirmation:
cpus: 0.15
cpus: 0.25
mem_limit: 250m
image: fusenet/multiple-erc20-to-erc20-oracle:1.0.4
container_name: fuseoracle-affirmation-request
Expand All @@ -101,7 +106,7 @@ services:
max-file: "5"
compress: "true"
deployed_bridges:
cpus: 0.15
cpus: 0.25
mem_limit: 250m
image: fusenet/multiple-erc20-to-erc20-oracle:1.0.4
container_name: fuseoracle-deployed-bridges
Expand All @@ -119,7 +124,7 @@ services:
max-file: "5"
compress: "true"
bridge_senderhome:
cpus: 0.15
cpus: 0.25
mem_limit: 250m
image: fusenet/multiple-erc20-to-erc20-oracle:1.0.4
container_name: fuseoracle-sender-home
Expand All @@ -137,7 +142,7 @@ services:
max-file: "5"
compress: "true"
bridge_senderforeign:
cpus: 0.15
cpus: 0.25
mem_limit: 250m
image: fusenet/multiple-erc20-to-erc20-oracle:1.0.4
container_name: fuseoracle-sender-foreign
Expand Down
25 changes: 15 additions & 10 deletions native-to-erc20/oracle/docker-compose.keystore.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
version: '2.4'
services:
rabbit:
cpus: 0.40
cpus: 0.50
mem_limit: 1250m
environment: ['RABBITMQ_NODENAME=node@rabbit']
hostname: rabbit
Expand All @@ -24,9 +24,14 @@ services:
max-file: "5"
compress: "true"
redis:
cpus: 0.20
cpus: 0.30
mem_limit: 250m
command: [redis-server, --appendonly, 'yes']
command:
- 'redis-server'
- '--loglevel ${REDIS_LOGLEVEL:-notice}'
- '--eppendonly yes'
- '--maxmemory 50mb'
- '--maxmemory-policy allkeys-lru'
hostname: redis
image: redis:4
sysctls:
Expand All @@ -49,7 +54,7 @@ services:
max-file: "5"
compress: "true"
bridge_request:
cpus: 0.15
cpus: 0.25
mem_limit: 250m
image: fusenet/native-to-erc20-oracle:2.0.3
container_name: fuseoracle-signature-request
Expand All @@ -69,7 +74,7 @@ services:
max-file: "5"
compress: "true"
bridge_collected:
cpus: 0.15
cpus: 0.25
mem_limit: 250m
image: fusenet/native-to-erc20-oracle:2.0.3
container_name: fuseoracle-collected-signatures
Expand All @@ -89,7 +94,7 @@ services:
max-file: "5"
compress: "true"
bridge_affirmation:
cpus: 0.15
cpus: 0.25
mem_limit: 250m
image: fusenet/native-to-erc20-oracle:2.0.3
container_name: fuseoracle-affirmation-request
Expand All @@ -109,7 +114,7 @@ services:
max-file: "5"
compress: "true"
bridge_initiate_change:
cpus: 0.15
cpus: 0.25
mem_limit: 250m
image: fusenet/native-to-erc20-oracle:2.0.3
container_name: fuseoracle-initiate-change
Expand All @@ -129,7 +134,7 @@ services:
max-file: "5"
compress: "true"
bridge_rewarded_on_cycle:
cpus: 0.15
cpus: 0.25
mem_limit: 250m
image: fusenet/native-to-erc20-oracle:2.0.3
container_name: fuseoracle-rewarded-on-cycle
Expand All @@ -149,7 +154,7 @@ services:
max-file: "5"
compress: "true"
bridge_senderhome:
cpus: 0.15
cpus: 0.25
mem_limit: 250m
image: fusenet/native-to-erc20-oracle:2.0.3
container_name: fuseoracle-sender-home
Expand All @@ -169,7 +174,7 @@ services:
max-file: "5"
compress: "true"
bridge_senderforeign:
cpus: 0.15
cpus: 0.25
mem_limit: 250m
image: fusenet/native-to-erc20-oracle:2.0.3
container_name: fuseoracle-sender-foreign
Expand Down
25 changes: 15 additions & 10 deletions native-to-erc20/oracle/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
version: '2.4'
services:
rabbit:
cpus: 0.40
cpus: 0.50
mem_limit: 1250m
environment: ['RABBITMQ_NODENAME=node@rabbit']
hostname: rabbit
Expand All @@ -24,9 +24,14 @@ services:
max-file: "5"
compress: "true"
redis:
cpus: 0.20
cpus: 0.30
mem_limit: 250m
command: [redis-server, --appendonly, 'yes']
command:
- 'redis-server'
- '--loglevel ${REDIS_LOGLEVEL:-notice}'
- '--eppendonly yes'
- '--maxmemory 50mb'
- '--maxmemory-policy allkeys-lru'
hostname: redis
image: redis:4
sysctls:
Expand All @@ -49,7 +54,7 @@ services:
max-file: "5"
compress: "true"
bridge_request:
cpus: 0.15
cpus: 0.25
mem_limit: 250m
image: fusenet/native-to-erc20-oracle:2.0.3
container_name: fuseoracle-signature-request
Expand All @@ -67,7 +72,7 @@ services:
max-file: "5"
compress: "true"
bridge_collected:
cpus: 0.15
cpus: 0.25
mem_limit: 250m
image: fusenet/native-to-erc20-oracle:2.0.3
container_name: fuseoracle-collected-signatures
Expand All @@ -85,7 +90,7 @@ services:
max-file: "5"
compress: "true"
bridge_affirmation:
cpus: 0.15
cpus: 0.25
mem_limit: 250m
image: fusenet/native-to-erc20-oracle:2.0.3
container_name: fuseoracle-affirmation-request
Expand All @@ -103,7 +108,7 @@ services:
max-file: "5"
compress: "true"
bridge_initiate_change:
cpus: 0.15
cpus: 0.25
mem_limit: 250m
image: fusenet/native-to-erc20-oracle:2.0.3
container_name: fuseoracle-initiate-change
Expand All @@ -121,7 +126,7 @@ services:
max-file: "5"
compress: "true"
bridge_rewarded_on_cycle:
cpus: 0.15
cpus: 0.25
mem_limit: 250m
image: fusenet/native-to-erc20-oracle:2.0.3
container_name: fuseoracle-rewarded-on-cycle
Expand All @@ -139,7 +144,7 @@ services:
max-file: "5"
compress: "true"
bridge_senderhome:
cpus: 0.15
cpus: 0.25
mem_limit: 250m
image: fusenet/native-to-erc20-oracle:2.0.3
container_name: fuseoracle-sender-home
Expand All @@ -157,7 +162,7 @@ services:
max-file: "5"
compress: "true"
bridge_senderforeign:
cpus: 0.15
cpus: 0.25
mem_limit: 250m
image: fusenet/native-to-erc20-oracle:2.0.3
container_name: fuseoracle-sender-foreign
Expand Down

0 comments on commit 9379f51

Please sign in to comment.