forked from rudderlabs/rudderstack-helm
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathrudder-config.toml
138 lines (124 loc) · 3.17 KB
/
rudder-config.toml
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
# Contains the configuration for the whole server
# Dont set secrets, passwords, api_keys etc. in this file. Use '.env' file for that
maxProcess = 12 # Max number of cpu process to be used by go runtime
gwDBRetention = 0
routerDBRetention = 0
enableProcessor = true
enableRouter = true
enableStats = true
[RateLimit]
eventLimit=1000
rateLimitWindowInMins=60
noOfBucketsInWindow=12
[Gateway]
webPort = 8080
maxDBWriterProcess = 64
CustomVal = "GW"
maxBatchSize = 32
batchTimeoutInMS = 20
maxReqSizeInKB = 100000
enableDedup = false
enableRateLimit = false
dedupWindowInS = 86400
[SourceDebugger]
maxBatchSize = 32
maxESQueueSize = 1024
maxRetry = 3
batchTimeoutInS = 2
retrySleepInMS = 100
disableEventUploads = false
[JobsDB]
# Migration related parameters
jobDoneMigrateThres = 0.8
jobStatusMigrateThres = 5
maxDSSize = 100000
maxMigrateOnce = 10
maxTableSizeInMB = 300
mainCheckSleepDurationInS = 5
backupCheckSleepDurationIns = 5
enableBackup = false
backupRowsBatchSize = 10000
[Router]
jobQueryBatchSize = 10000
updateStatusBatchSize = 1000
readSleepInMS = 1000
noOfWorkers = 64
noOfJobsPerChannel = 1000
ser = 3
maxSleepInS = 60
minSleepInS = 0
maxStatusUpdateWaitInS = 5
randomWorkerAssign = false
useTestSink = false
maxFailedCountForJob = 8
keepOrderOnFailure = true
[BatchRouter]
mainLoopSleepInS = 2
noOfWorkers = 8
jobQueryBatchSize = 100000
uploadFreqInS = 30
[Warehouse]
stagingFilesTable = "wh_staging_files"
loadFilesTable = "wh_load_files"
uploadsTable = "wh_uploads"
schemasTable = "wh_schemas"
uploadFreqInS = 1800
noOfWorkers = 8
mainLoopSleepInS = 60
maxRetry = 3
stagingFilesBatchSize = 240
[Processor]
loopSleepInMS = 10
maxLoopSleepInMS = 5000
dbReadBatchSize = 10000
transformBatchSize = 100
userTransformBatchSize = 200
sessionThresholdEvents = 100
sessionInactivityThresholdInS = 120
maxChanSize = 2048
processSessions = false
numTransformWorker = 8
maxRetry = 30
retrySleepInMS = 100
[BackendConfig]
configFromFile = false
configJSONPath = "./workspaceConfig.json"
pollIntervalInS = 5
# If the server crashes 'crashThreshold' times in 'durationInS' seconds,
# then we mark it degraded
# If the server crashes 'degradedCrashThreshold' times in 'degradedDurationInS' seconds in degraded mode,
# then we mark it maintenance
# If the server crashes 'maintenanceCrashThreshold' times in 'maintenanceDurationInS' seconds in maintenance mode,
# then we stop the server
# Stores related metadata in storagePath
[recovery]
enabled = true
storagePath = "/data/rudderstack/recovery_data.json"
errorStorePath = "/data/rudderstack/error_store.json"
[recovery.normal]
crashThreshold = 5
durationInS = 300
[recovery.degraded]
crashThreshold = 5
durationInS = 300
[recovery.maintenance]
crashThreshold = 5
durationInS = 300
# logger configuration
[Logger]
enableConsole=true
enableFile=false
consoleJsonFormat=false
fileJsonFormat=false
logFileLocation="/tmp/rudder_log.log"
logFileSize = 100 # in MB
enableTimestamp=true
enableFileNameInLog=false
enableStackTrace=false
# runtime stats are collected using go runtime package and published to statsd
[RuntimeStats]
enabled=true
statsCollectionInterval=10
enableCPUStats=true
enableMemStats=true
enableGCStats=true