-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathenv.example
More file actions
49 lines (42 loc) · 1.56 KB
/
env.example
File metadata and controls
49 lines (42 loc) · 1.56 KB
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
# ============================================================================
# k6 ENVIRONMENT VARIABLES FOR test.js
# ============================================================================
# Required
BASE_URL=https://testnetapiv2.nobitex.ir
ACCESS_TOKEN=
AUTH_SCHEME=Token
# UTM defaults (override as needed)
UTM_CAMPAIGN=multistep_payout:base:crypto_champions:public
UTM_SOURCE=snapp
UTM_MEDIUM=banner
# READ SPIKE scenario
SPIKE_MAX_VUS=500
RAMP_UP_S=30
HOLD_S=120
RAMP_DOWN_S=60
# Thresholds
P95_MS=500
# Policies / expectations
# Whether 429s are expected in runs (false => count as unexpected)
EXPECT_RATE_LIMIT=false
# For reward capacity: whether HTTP 409 is acceptable
EXPECT_409_OK=true
# Toggle extra logging in campaignInfo script
DEBUG_LOG=false
# ============================================================================
# NOTES
# - ACCESS_TOKEN must be a valid token; do NOT commit real tokens.
# - For READ spike, adjust VUs and timings to shape traffic.
# - For REWARD contention, users are fired in ~1s to oversubscribe capacity.
# - Example usage (READ spike):
# k6 run -e BASE_URL=https://testnetapiv2.nobitex.ir \
# -e ACCESS_TOKEN=$ACCESS_TOKEN \
# -e SPIKE_MAX_VUS=500 -e RAMP_UP_S=30 -e HOLD_S=120 -e RAMP_DOWN_S=60 \
# -e P95_MS=500 test.js
# - Example usage (REWARD contention):
# k6 run -e BASE_URL=https://testnetapiv2.nobitex.ir \
# -e ACCESS_TOKEN=$ACCESS_TOKEN \
# -e REWARD_USERS=2000 -e REWARD_CAPACITY=1000 test.js
# Optional toggles (defaults shown)
ENABLE_READ_SPIKE=true
ENABLE_REWARD=false