-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathenv.example
More file actions
57 lines (39 loc) · 1.5 KB
/
env.example
File metadata and controls
57 lines (39 loc) · 1.5 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
50
51
52
53
54
55
56
57
# Redis host for Guard instance
REDIS_HOST=127.0.0.1
# Redis Port
REDIS_PORT=6379 # default 6379
# Redis password (leave empty if no auth)
REDIS_PASSWORD=
# Redis database number
REDIS_DB=0
# -------------------------
# Default number of rely instances to start
SCLM_INSTANCES_COUNT=0
# Lifespan of each rely instance in seconds (0 = no auto-kill)
SCLM_INSTANCE_LIFESPAN=3600
# Maximum retries before marking instance as failed
SCLM_INSTANCE_MAX_RETRIES=5 # default 5
# Health check interval in seconds (0 = disabled)
SCLM_INSTANCE_HEALTHCHECK_INTERVAL=0
# Traffic spike threshold (requests per second) to spawn new rely instance
SCLM_TRAFFIC_SPIKE_THRESHOLD=100 # default 100
# Traffic low threshold (requests per second) to kill rely instance (0 will set the threshold to "DND" the rely instances will never be killed by the low traffic threshold, only by rely lifespan)
SCLM_TRAFFIC_LOW_THRESHOLD=10
# Minimum time between scaling actions in seconds
SCLM_SCALE_COOLDOWN=60 # default 60
# -----------------------------
SCLM_MANAGE_REDIS=true
# Log level: debug, info, warn, error
LOG_LEVEL=info # default info
# Enable metrics collection
METRICS_ENABLED=true # default true
# -----------------------------
# Sync interval in seconds (how often to sync rely data to guard)
SCLM_SYNC_INTERVAL=30
# Batch size for sync operations
SCLM_SYNC_BATCH_SIZE=100
# ----------------------------
# How much RAM does the guard node will hold
SCLM_MAX_GUARD_GB=6
# How much RAM does the rely nodes will hold
SCLM_MAX_RELY_GB=3