Skip to content

Commit

Permalink
feat: fx perf tests (#59)
Browse files Browse the repository at this point in the history
  • Loading branch information
kalinkrustev authored Jun 20, 2024
1 parent b0f785d commit 3475138
Show file tree
Hide file tree
Showing 44 changed files with 2,373 additions and 178 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -470,17 +470,25 @@ Then use one of the following commands:
- `t discoveries` - Test account discoveries
- `t discoveries rate` - Test account discoveries with ramping rates
- `t quote` - Test single quote
- `t fx quote` - Test single FX quote
- `t quotes` - Test quotes
- `t fx quotes` - Test FX quotes
- `t quotes rate` - Test quotes with ramping rates
- `t fx quotes rate` - Test FX quotes with ramping rates
- `t transfer` - Test single transfer
- `t fx transfer` - Test single FX transfer
- `t transfers` - Test transfers
- `t fx transfers` - Test FX transfers
- `t transfers rate` - Test transfers with ramping rates
- `t fx transfers rate` - Test FX transfers with ramping rates
- `t dqt rate` - Test account discoveries, quotes and transfers in parallel with constant rates
- `t dfx rate` - Test account discoveries, FX quotes and FX transfers in parallel with constant rates
- `t e2e` - Test multiple end to end
- `t e2e single` - Test single end to end
- `t sim start` - Start the simulators
- `t sim stop` - Stop the simulators
- `t sim restart` - Restart the simulators
- `t sim update` - Update the simulator images
- `p audit` - Configure direct events to Kafka without going through the sidecar, sending only audit and skipping others
- `p direct` - Configure direct events to Kafka without going through the sidecar
- `p disabled` - Configure no events to be produced
Expand Down
35 changes: 33 additions & 2 deletions docker-compose-perf.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
version: "3.7"

networks:
mojaloop-net:
name: mojaloop-net
external: true

services:

Expand Down Expand Up @@ -1000,6 +999,38 @@ services:
start_period: 40s
interval: 30s

sim-perffxp:
sysctls:
# websockets do not have keep-alive, resulting in many TIME_WAIT sockets
net.ipv4.tcp_tw_reuse: 1
image: mojaloop/callback-handler-simulator-svc:${TEST_CALLBACK_HAND_SVC_VERSION}
deploy:
mode: replicated
replicas: 1
env_file:
- .env
- ./envs/perffxp.env
- perf.override.env
ports:
- "25000:3001"
networks:
- mojaloop-net
environment: {}
# - LOG_LEVEL=error
healthcheck:
test: wget -q http://localhost:3001/health -O /dev/null || exit 1
timeout: 20s
retries: 30
interval: 15s
user: root
profiles:
- simulators
- all-services
- als-test
- 2dfsp
- 4dfsp
- 8dfsp

sim-perffsp1:
sysctls:
# websockets do not have keep-alive, resulting in many TIME_WAIT sockets
Expand Down
Loading

0 comments on commit 3475138

Please sign in to comment.