forked from deliveroo/routemaster
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.env
76 lines (55 loc) · 2.09 KB
/
.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
PORT=17890
RACK_ENV=development
# See config/puma.rb for details
PUMA_WORKERS=1
PUMA_THREADS=5
PUMA_TIMEOUT=25
PUMA_BOOT_TIMEOUT=25
# credentials for allowed clients (comma-separated)
ROUTEMASTER_CLIENTS=demo
# redis server used for metadata & queues
# can be indirect (value can be the name of another environment variable)
ROUTEMASTER_REDIS_URL=redis://localhost
# maximum memory usage of the Redis store (100MB default)
ROUTEMASTER_REDIS_MAX_MEM=100000000
# minimum free Redis memory before dropping messages (10MB default)
ROUTEMASTER_REDIS_MIN_FREE=10000000
# log level
# ROUTEMASTER_LOG_LEVEL=INFO
ROUTEMASTER_LOG_LEVEL=DEBUG
# absent by default, means log to standard output
ROUTEMASTER_LOG_FILE=
# how to report exceptions. allowed values: print (default), sentry
# EXCEPTION_SERVICE=
# EXCEPTION_SERVICE_URL=
# app name reported to New Relic and metric collectors.
# set to HEROKU_APP_NAME with runtime-dyno-metadata for conveninence.
ROUTEMASTER_APP_NAME=routemaster-dev
# default to log metrics. allowed values: print, datadog
METRIC_COLLECTION_SERVICE=print
# if using Datadog to log metrics, the credentials to use
# DATADOG_API_KEY=
# DATADOG_APP_KEY=
# enables New Relic integration if specified
# NEW_RELIC_LICENSE_KEY=
# verify SSL certificates when delivering events
ROUTEMASTER_SSL_VERIFY=YES
# seconds to block workers for when popping jobs
ROUTEMASTER_ACQUIRE_TIMEOUT=5
# max attempts to calculate delivery backoff against - translates to 2^6 = 64s
# maximum backoff (±32s)
ROUTEMASTER_BACKOFF_LIMIT=6
# number of job delivery threads per worker process
ROUTEMASTER_WORKER_THREADS=5
# timeout when connecting to a subscriber for delivery (seconds)
ROUTEMASTER_CONNECT_TIMEOUT=2
# timeout when delivering events (seconds)
ROUTEMASTER_TIMEOUT=20
# how frequently to flush in-memory counters to Redis (seconds)
ROUTEMASTER_COUNTER_FLUSH_INTERVAL=5
# how frequently to run monitoring & send metrics (seconds)
ROUTEMASTER_MONITOR_INTERVAL=10
# advise to scale up if there are over THRESHOLD jobs due within
# DEADLINE milliseconds
ROUTEMASTER_SCALING_THRESHOLD=100
ROUTEMASTER_SCALING_DEADLINE=1000