mirror of
https://github.com/logos-messaging/logos-messaging-test-query.git
synced 2026-01-04 06:53:09 +00:00
Adding node replicas to perform insert operations to the database
This commit is contained in:
parent
dccda4227c
commit
8f56a89568
@ -86,6 +86,7 @@ services:
|
|||||||
|
|
||||||
nwaku-postgres:
|
nwaku-postgres:
|
||||||
## Waku node with Store mounted & Postgres
|
## Waku node with Store mounted & Postgres
|
||||||
|
## It can be analyzed the metrics of this particular node
|
||||||
image: ubuntu
|
image: ubuntu
|
||||||
restart: on-failure
|
restart: on-failure
|
||||||
ports:
|
ports:
|
||||||
@ -111,8 +112,35 @@ services:
|
|||||||
networks:
|
networks:
|
||||||
- simulation
|
- simulation
|
||||||
|
|
||||||
|
nwaku-postgres-additional:
|
||||||
|
## Waku node with Store mounted & Postgres
|
||||||
|
## This is aimed to produce more more insert operation to the same Potsgres database.
|
||||||
|
image: ubuntu
|
||||||
|
restart: on-failure
|
||||||
|
<<:
|
||||||
|
- *logging
|
||||||
|
- *pg_env
|
||||||
|
volumes:
|
||||||
|
# This is expected to be run from metal-01.he-eu-hel1.wakudev.misc.statusim.net
|
||||||
|
- /home/shared/nwaku/build/wakunode2:/usr/bin/wakunode:Z
|
||||||
|
- ./run_nwaku_store_postgres_ubuntu.sh:/opt/run_nwaku_store_postgres_ubuntu.sh:Z
|
||||||
|
entrypoint: bash
|
||||||
|
command:
|
||||||
|
- /opt/run_nwaku_store_postgres_ubuntu.sh
|
||||||
|
depends_on:
|
||||||
|
- postgres
|
||||||
|
deploy:
|
||||||
|
mode: replicated
|
||||||
|
replicas: 10
|
||||||
|
resources:
|
||||||
|
limits:
|
||||||
|
cpus: '1'
|
||||||
|
memory: 2048M
|
||||||
|
networks:
|
||||||
|
- simulation
|
||||||
|
|
||||||
db-postgres-hammer:
|
db-postgres-hammer:
|
||||||
## This service is aimed to mimick other nodes interacting with the same database
|
## This service is aimed to stress the database by performing simple select queries
|
||||||
image: alpine:3.16
|
image: alpine:3.16
|
||||||
restart: on-failure
|
restart: on-failure
|
||||||
volumes:
|
volumes:
|
||||||
@ -120,7 +148,7 @@ services:
|
|||||||
entrypoint: sh
|
entrypoint: sh
|
||||||
deploy:
|
deploy:
|
||||||
mode: replicated
|
mode: replicated
|
||||||
replicas: 1
|
replicas: 10
|
||||||
command:
|
command:
|
||||||
- /opt/run_database_hammer.sh
|
- /opt/run_database_hammer.sh
|
||||||
depends_on:
|
depends_on:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user