-
Notifications
You must be signed in to change notification settings - Fork 8
/
perf.env
152 lines (125 loc) · 7.81 KB
/
perf.env
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
## -== K6 Configs ==-
### K6 Engine
K6_PROMETHEUS_RW_SERVER_URL=http://prometheus:9090/api/v1/write # Ref: https://k6.io/docs/results-output/real-time/prometheus-remote-write/#options
K6_PROMETHEUS_RW_TREND_AS_NATIVE_HISTOGRAM=true # Ref: https://k6.io/docs/results-output/real-time/prometheus-remote-write/#options
K6_OUT=experimental-prometheus-rw # Ref: https://k6.io/docs/results-output/real-time/prometheus-remote-write/
### K6 Script Configs
#### Main script configs
# K6_SCRIPT_CONFIG_FILE=./config/test.js
# K6_SCRIPT_PAUSE_MIN=5
# K6_SCRIPT_PAUSE_MAX=15
# K6_SCRIPT_WS_TIMEOUT_MS=10000
K6_SCRIPT_WS_TIMEOUT_MS=5000
# K6_SCRIPT_ABORT_ON_ERROR=true
#### Use this if we want to hit the ALS in docker-compose
# K6_SCRIPT_FSPIOP_ALS_ENDPOINT_URL=http://account-lookup-service:4002
#### Use this if we want to bypass ALS
# K6_SCRIPT_FSPIOP_ALS_ENDPOINT_URL=http://sim-perffsp2:3001/fspiop
REQUEST_PROCESSING_TIMEOUT_SECONDS=5
# [
# {"partyId":19012345001,"fspId":"perffsp1","wsUrl":"ws://sim-perffsp1:3002"},
# {"partyId":19012345002,"fspId":"perffsp2","wsUrl":"ws://sim-perffsp2:3002"},
# {"partyId":19012345003,"fspId":"perffsp3","wsUrl":"ws://sim-perffsp3:3002"},
# {"partyId":19012345004,"fspId":"perffsp4","wsUrl":"ws://sim-perffsp4:3002"},
# {"partyId":19012345005,"fspId":"perffsp5","wsUrl":"ws://sim-perffsp5:3002"},
# {"partyId":19012345006,"fspId":"perffsp6","wsUrl":"ws://sim-perffsp6:3002"},
# {"partyId":19012345007,"fspId":"perffsp7","wsUrl":"ws://sim-perffsp7:3002"},
# {"partyId":19012345008,"fspId":"perffsp8","wsUrl":"ws://sim-perffsp8:3002"},
# ]
## IMPORTANT: Update pool depending 2dfsp, 4dfsp or 8dfsp docker profile
## NOTE: Unidirectional will take the first two DFSP's in the pool
# 8 DFSPs
# K6_SCRIPT_FSPIOP_FSP_POOL='[{"partyId":19012345001,"fspId":"perffsp1","wsUrl":"ws://sim-perffsp1:3002"},{"partyId":19012345002,"fspId":"perffsp2","wsUrl":"ws://sim-perffsp2:3002"},{"partyId":19012345003,"fspId":"perffsp3","wsUrl":"ws://sim-perffsp3:3002"},{"partyId":19012345004,"fspId":"perffsp4","wsUrl":"ws://sim-perffsp4:3002"},{"partyId":19012345005,"fspId":"perffsp5","wsUrl":"ws://sim-perffsp5:3002"},{"partyId":19012345006,"fspId":"perffsp6","wsUrl":"ws://sim-perffsp6:3002"},{"partyId":19012345007,"fspId":"perffsp7","wsUrl":"ws://sim-perffsp7:3002"},{"partyId":19012345008,"fspId":"perffsp8","wsUrl":"ws://sim-perffsp8:3002"}]'
# 2 DFSPs
K6_SCRIPT_FSPIOP_FSP_POOL='[{"partyId":19012345001,"fspId":"perffsp1","wsUrl":"ws://sim-perffsp1:3002"},{"partyId":19012345002,"fspId":"perffsp2","wsUrl":"ws://sim-perffsp2:3002"}]'
# 4 DFSPs
# K6_SCRIPT_FSPIOP_FSP_POOL='[{"partyId":19012345001,"fspId":"perffsp1","wsUrl":"ws://sim-perffsp1:3002"},{"partyId":19012345002,"fspId":"perffsp2","wsUrl":"ws://sim-perffsp2:3002"},{"partyId":19012345003,"fspId":"perffsp3","wsUrl":"ws://sim-perffsp3:3002"},{"partyId":19012345004,"fspId":"perffsp4","wsUrl":"ws://sim-perffsp4:3002"}]'
# SDK DFSPs
# K6_SCRIPT_FSPIOP_FSP_POOL='[{"partyId":19012345001,"fspId":"perffsp1","wsUrl":"ws://sim-fspiop:3002"},{"partyId":19012345002,"fspId":"perffsp2","wsUrl":"ws://sim-fspiop:3002"}]'
K6_SCRIPT_ADMIN_ENDPOINT_URL=http://callback-handler-svc-cl-sim:3001/admin
K6_SCRIPT_ORACLE_ENDPOINT_URL=http://callback-handler-svc-oracle-sim:3001/oracle
K6_SCRIPT_FSPIOP_QUOTES_ENDPOINT_URL=http://quoting-service:3002
K6_SCRIPT_FSPIOP_QUOTES_AMOUNT=2
K6_SCRIPT_FSPIOP_QUOTES_CURRENCY=USD
K6_SCRIPT_FSPIOP_QUOTES_TARGET_CURRENCY=BGN
K6_SCRIPT_FSPIOP_TRANSFERS_ENDPOINT_URL=http://ml-api-adapter:3000
# K6_SCRIPT_FSPIOP_TRANSFERS_ENDPOINT_URL=http://sim-perffsp2:3001/fspiop
K6_SCRIPT_FSPIOP_TRANSFERS_ILPPACKET='AYIDGQAAAAAAACcQIWcuZ3JlZW5iYW5rZnNwLm1zaXNkbi4yNzcxMzgwMzkxMoIC62V5SjBjbUZ1YzJGamRHbHZia2xrSWpvaU1ERXhaR1EyTldZdE5UQXpNeTAwTVdNMkxUazFaR1l0T1RFeFl6WTRPVFExWWpobUlpd2ljWFZ2ZEdWSlpDSTZJbVF3TXpJMU1EVTJMVE0xTldFdE5EUmxNUzFpT1RnMExXWXdZVFExTmpFMFkyRXpPQ0lzSW5CaGVXVmxJanA3SW5CaGNuUjVTV1JKYm1adklqcDdJbkJoY25SNVNXUlVlWEJsSWpvaVRWTkpVMFJPSWl3aWNHRnlkSGxKWkdWdWRHbG1hV1Z5SWpvaU1qYzNNVE00TURNNU1USWlMQ0ptYzNCSlpDSTZJbWR5WldWdVltRnVhMlp6Y0NKOWZTd2ljR0Y1WlhJaU9uc2ljR0Z5ZEhsSlpFbHVabThpT25zaWNHRnlkSGxKWkZSNWNHVWlPaUpOVTBsVFJFNGlMQ0p3WVhKMGVVbGtaVzUwYVdacFpYSWlPaUkwTkRFeU16UTFOamM0T1NJc0ltWnpjRWxrSWpvaWNHbHVhMkpoYm10bWMzQWlmU3dpY0dWeWMyOXVZV3hKYm1adklqcDdJbU52YlhCc1pYaE9ZVzFsSWpwN0ltWnBjbk4wVG1GdFpTSTZJa1pwY25OMGJtRnRaUzFVWlhOMElpd2liR0Z6ZEU1aGJXVWlPaUpNWVhOMGJtRnRaUzFVWlhOMEluMHNJbVJoZEdWUFprSnBjblJvSWpvaU1UazROQzB3TVMwd01TSjlmU3dpWVcxdmRXNTBJanA3SW1OMWNuSmxibU41SWpvaVZWTkVJaXdpWVcxdmRXNTBJam9pTVRBd0luMHNJblJ5WVc1ellXTjBhVzl1Vkhsd1pTSTZleUp6WTJWdVlYSnBieUk2SWxSU1FVNVRSa1ZTSWl3aWFXNXBkR2xoZEc5eUlqb2lVRUZaUlZJaUxDSnBibWwwYVdGMGIzSlVlWEJsSWpvaVEwOU9VMVZOUlZJaWZYMAA'
K6_SCRIPT_FSPIOP_TRANSFERS_CONDITION='5m0gq_5dLQlTSSRKQmLpj0MZ1MtWLWgSu1oLGVTJyYs'
K6_SCRIPT_FSPIOP_TRANSFERS_AMOUNT=2
K6_SCRIPT_FSPIOP_TRANSFERS_CURRENCY=USD
K6_SCRIPT_FSPIOP_TRANSFERS_TARGET_CURRENCY=BGN
K6_SCRIPT_CONFIG_FILE_NAME=test.json
## General Config
UV_THREADPOOL_SIZE=24
LOG_LEVEL=info
# EVENT_SDK_TRACEID_PER_VENDOR=false
## Disable Audit & Trace events from being dumped to logfile
# EVENT_SDK_LOG_FILTER=""
KAFKA_GENERAL_PARTITIONS_NUM=4
KAFKA_POSITION_PARTITIONS_NUM=25
KAFKA_POSITION_BATCH_PARTITIONS_NUM=4
KAFKA_NOTIFICATION_PARTITIONS_NUM=4
ALS_DATABASE__HOST=mysql-als
ALS_DATABASE__USER=account_lookup
ALS_DATABASE__PASSWORD=password
ALS_DATABASE__SCHEMA=account_lookup
## CLEDG - Central Ledger Env Config
CLEDG_CACHE__CACHE_ENABLED=true
## Cache duration: 2min - NOT WORKING
# CLEDG_CACHE__EXPIRES_IN_MS=120000
# partition.assignment.strategy - range(default), roundrobin, cooperative-sticky
CLEDG_KAFKA__CONSUMER__TRANSFER__POSITION__config__rdkafkaConf__partition.assignment.strategy=cooperative-sticky
CLEDG_DATABASE__PORT=3306
CLEDG_DATABASE__HOST=mysql-cl
CLEDG_DATABASE__USER=central_ledger
CLEDG_DATABASE__PASSWORD=password
CLEDG_DATABASE__SCHEMA=central_ledger
## MLAPI - ML API Adapter API/Handler Config
# MLAPI_ENDPOINT_SOURCE_URL=http://callback-handler-svc-cl-sim:3001/admin
## Batching - Enable following only when position batch handlers are enabled
## To enable position batch handlers, set CENTRAL_LEDGER_POSITION_BATCH_REPLICAS to desired count
# CLEDG_KAFKA__EVENT_TYPE_ACTION_TOPIC_MAP__POSITION__PREPARE=topic-transfer-position-batch
## Configs for default
CONF_ML_API_ADAPTER=ml-api-adapter-disabled-handlers.js
CONF_ML_HANDLER_NOTIFY=ml-handler-notification.js
CONF_CL_SVC=central-ledger-disabled-handlers.js
CONF_CL_HANDLER_PREPARE=central-handlers.js
CONF_CL_HANDLER_POSITION=central-handlers.js
CONF_CL_HANDLER_POSITION_BATCH=central-handlers.js
CONF_CL_HANDLER_FULFIL=central-handlers.js
CONF_CL_HANDLER_ADMIN=central-handlers.js
## Configs for optimised Kafka configs
# CONF_ML_API_ADAPTER=ml-api-adapter-disabled-handlers-kafka.js
# CONF_ML_HANDLER_NOTIFY=ml-handler-notification-kafka.js
# CONF_CL_HANDLER_PREPARE=central-handlers-kafka.js
# CONF_CL_HANDLER_POSITION=central-handlers-kafka.js
# CONF_CL_HANDLER_POSITION_BATCH=central-handlers-kafka.js
# CONF_CL_HANDLER_FULFIL=central-handlers-kafka.js
## QS - Quoting Service Config
QS_CACHE__ENUM_DATA_EXPIRES_IN_MS=4170000
QS_CACHE__PARTICIPANT_DATA_EXPIRES_IN_MS=60000
QS_SWITCH_ENDPOINT="http://callback-handler-svc-cl-sim:3001/admin"
# Use this for E2E testing
# QS_SWITCH_ENDPOINT="http://central-ledger:3001"
QS_SIMPLE_ROUTING_MODE=false
# Use this for E2E testing
# ALS_SWITCH_ENDPOINT="http://central-ledger:3001"
CHECK_ILP=false
JWS_SIGN=false
VALIDATE_JWS_SIGN=false
# ---- SDK Config ----
ALLOW_DIFFERENT_TRANSFER_TRANSACTION_ID=true
ALLOW_TRANSFER_WITHOUT_QUOTE=true
JWS_SIGN=false
VALIDATE_JWS_SIGN=false
VALIDATE_INBOUND_JWS=false
DFSP_ID=mojaloop-sdk
# Inbound SDK config
K6_SCRIPT_SDK_ENDPOINT_URL=http://sdk-scheme-adapter:4000
PEER_ENDPOINT=sim-fspiop:3001/backend
BACKEND_ENDPOINT=sim-fspiop:3001/backend
# Outbound SDK config
# K6_SCRIPT_SDK_ENDPOINT_URL=http://sdk-scheme-adapter:4001
# PEER_ENDPOINT=sim-fspiop:3001/fspiop
# BACKEND_ENDPOINT=sim-fspiop:3001