Setting a similar topology to status.test fleet

This commit is contained in:
Ivan Folgueira Bande 2023-11-27 14:39:16 +01:00
parent 7f1e2aae72
commit 68a3600fb7
No known key found for this signature in database
GPG Key ID: 3C117481F89E24A7
5 changed files with 14 additions and 9 deletions

View File

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

View File

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

View File

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

View File

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

View File

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