Setting a similar topology to status.test fleet

This commit is contained in:
Ivan Folgueira Bande 2023-11-27 14:39:16 +01:00 committed by Ivan FB
parent 214367dbbb
commit cfc0a5596d
5 changed files with 14 additions and 9 deletions

View File

@ -41,7 +41,7 @@ services:
bootstrap:
image: statusteam/nim-waku:v0.20.0
restart: on-failure
restart: always
ports:
- 127.0.0.1:60000:60000
- 127.0.0.1:8008:8008
@ -67,6 +67,7 @@ services:
ports:
- 0.0.0.0:8546:8546
- 0.0.0.0:8004:8004
- 0.0.0.0:60001:60001
<<:
- *logging
volumes:
@ -94,6 +95,7 @@ services:
ports:
- 0.0.0.0:8545:8545
- 0.0.0.0:8003:8003
- 0.0.0.0:60002:60002
<<:
- *logging
- *pg_env
@ -134,7 +136,7 @@ services:
- bootstrap
deploy:
mode: replicated
replicas: 10
replicas: 2
resources:
limits:
cpus: '1'
@ -153,7 +155,9 @@ services:
driver: none
deploy:
mode: replicated
replicas: 10
#replicas: 0 - with this, normal behaviour
#replicas: 25 - it worked pretty well
replicas: 50
command:
- /opt/run_database_hammer.sh
depends_on:
@ -170,7 +174,7 @@ services:
- ./run_waku_store_query_maker.sh:/opt/run_waku_store_query_maker.sh:Z
environment:
STORE_QUERIES_PER_SECOND: 1
NUM_CONCURRENT_USERS: 1
NUM_CONCURRENT_USERS: 25
depends_on:
- nwaku-postgres
- nwaku-sqlite

View File

@ -20,10 +20,10 @@ exec /usr/bin/wakunode\
--dns-discovery=true\
--discv5-discovery=true\
--discv5-enr-auto-update=True\
--log-level=INFO\
--log-level=DEBUG\
--rpc-port=8544\
--rpc-address=0.0.0.0\
--metrics-server=True\
--metrics-server-address=0.0.0.0\
--nodekey=30348dd51465150e04a5d9d932c72864c8967f806cce60b5d26afeca1e77eb68\
--nat=extip:${IP}
--nat=extip:${IP}

View File

@ -18,5 +18,5 @@ do
echo "Before making query"
psql -h postgres -p 5432 -U postgres -U postgres -w -c "${QUERY_LAST_FIVE_MINUTES}"
#sleep 0.01
sleep 0.01
done

View File

@ -8,7 +8,6 @@ apt-get install wget -y
bootstrap_IP=$(dig +short bootstrap)
apt-get install libpq5 -y
chmod +x /usr/bin/wakunode
RETRIES=${RETRIES:=10}
@ -28,6 +27,7 @@ IP=$(hostname -I)
echo "I am postgres ubuntu. Listening on: ${IP}"
##--store-max-num-db-connections=50\
./usr/bin/wakunode\
--relay=true\
--topic=/waku/2/default-waku/proto\
@ -36,6 +36,7 @@ echo "I am postgres ubuntu. Listening on: ${IP}"
--keep-alive=true\
--log-level=DEBUG\
--rpc-port=8545\
--tcp-port=60002\
--rpc-address=0.0.0.0\
--metrics-server=True\
--metrics-server-port=8003\

View File

@ -8,7 +8,6 @@ apt-get install wget -y
bootstrap_IP=$(dig +short bootstrap)
apt-get install libpq5 -y
chmod +x /usr/bin/wakunode
RETRIES=${RETRIES:=10}
@ -36,6 +35,7 @@ echo "I am sqlite ubuntu. Listening on: ${IP}"
--keep-alive=true\
--log-level=DEBUG\
--rpc-port=8546\
--tcp-port=60001\
--rpc-address=0.0.0.0\
--metrics-server=True\
--metrics-server-port=8004\