Configuration Parameters
Various types of configuration parameters explained with their types, descriptions, and default values
This document describes the various configuration parameters for the config.yaml
file. You can fine-tune them to suit your application's needs.
These configuration parameters are also applicable for the config.toml
file, in case you have an older RudderStack deployment.
To best understand some of the terms covered in this guide, we recommend going through the RudderStack architecture first.
Global Parameters
Parameter name | Type | Description | Default value |
---|---|---|---|
| Int | Number of parallel threads used in server. Should be set to number of cores. |
|
| String | The time for which the events are stored in the Gateway database after they have been processed. Examples: |
|
| String | The time for which the events are stored in the Router database after they have been processed. Examples: |
|
| Boolean | This variable enables or disables the Processor module. It will be set to |
|
| Boolean | This variable enables or disables the Router module. Will be set to |
|
| Boolean | This variable enables or disables stats. |
|
For more information on the Processor, Gateway, and Router modules of the RudderStack backend, refer to the Architecture.
[Gateway]
Parameter name | Type | Description | Default value |
---|---|---|---|
| Int | The port on which the RudderStack server runs. |
|
| Int | RudderStack spawns this specified number of processes to consume the events at a user level. |
|
| Int | As requests come in to the Gateway and are batched, RudderStack runs the |
|
| String | For the creation of a job in the backend PostgreSQL database (jobsDB), the value of this variable will be assigned to the |
|
| Int | The batch size used in the Gateway. The requests are batched up to this size before writing to the database. |
|
| String | In case the request batches do not meet the |
|
| Int | An error message ("Request size exceeds max limit") is thrown for a particular request is when its size in KB crosses this value*.* |
|
| Boolean | Enables or disables deduplication of events. RudderStack uses |
|
| String | Events with the same |
|
| Boolean | Rate limits the number of requests accepted by the Gateway. This is used for running the RudderStack-hosted service. |
|
[SourceDebugger]
Parameter name | Type | Description | Default value |
---|---|---|---|
| Boolean | Enables or disables the event schema upload. |
|
| Int | The maximum size of the live events batch sent to the Configuration Backend. |
|
| Int | The maximum size of the live events queue in the memory. |
|
| Int | The maximum number of attempts RudderStack makes to upload the request batches, in case of any errors. |
|
| String | In case the request batches do not meet the |
|
| String | In case of errors while uploading the request batches, RudderStack waits for this time interval before retrying. This is done until the |
|
[JobsDB]
Parameter name | Type | Description | Default value |
---|---|---|---|
| Float64 | If ( |
|
| Float64 | If ( RudderStack migrates the table of jobs that have been processed. |
|
| Int | The maximum size of a table. If the maximum size is reached, RudderStack migrates all the jobs in that table. |
|
| Int | The maximum number of tables that can be migrated together. |
|
| Int | The maximum size of the tables in MB. The tables are migrated if they cross this limit. |
|
| String | The time RudderStack waits before migrating the datasets. |
|
| Int64 | The maximum number of tables probed to find if they can be migrated. |
|
| String | The time RudderStack waits before adding a dataset. |
|
| String | RudderStack waits for this time interval before checking if a dataset needs backing up. |
|
| Boolean | Enables or disables the backup. This is set to |
|
[Router]
Parameter name | Type | Description | Default value |
---|---|---|---|
| Int | The size of a jobs batch to get from the database. This includes the retry list, processing list, unprocessed list, or executed list. |
|
| Int | The minimum size needed to update the status of a batch of jobs. |
|
| String | The time RudderStack waits before fetching the next jobs batch from the database, in case the length of unprocessed and retry list is 0. |
|
| Int | RudderStack starts this number of workers to send events to the destinations. |
|
| Int | The number of jobs a channel in each worker can contain. |
|
| String | The time to wait when the response status code is not 200. This is to give RudderStack some time before the next retry. |
|
| String | The time to sleep when the response status code is 200. |
|
| String | The time to sleep before ending one round of stats collection. |
|
| Boolean | Runs internal tests if set to |
|
| Int | The maximum number of times a job can fail before it is marked as aborted. |
|
| Boolean | RudderStack maintains the order of user events if set to |
|
| String | The minimum retry window in case of 5XX, 429 errors. |
|
| String | The minimum time before the next retry in case of 5XX, 429 errors. |
|
| String | The maximum allowed time between the errors in case of 5XX, 429 errors. |
|
[BatchRouter]
Parameter name | Type | Description | Default value |
---|---|---|---|
| String | The timeout while running the main loop. |
|
| Int | The number of workers to batch jobs before deletion. |
|
| Int | The number of events picked up from the batch router's database (Jobs DB) in each query. |
|
| String | The frequency with which the batch router dumps the events to the storage destinations. |
|
| Int | The maximum number of times a job can fail before marking it as aborted. |
|
[Warehouse]
You can ignore these settings if you don't have any warehouse destinations configured in RudderStack.
Parameter name | Type | Description | Default value |
---|---|---|---|
| String | Table name of the staging files. |
|
| String | Table name of load files. |
|
| String | Table name of uploads. |
|
| String | Table name of schemas. |
|
| String | The frequency of the upload in seconds. |
|
| Int | Number of concurrent writes to the warehouse. |
|
| String | The time RudderStack waits between multiple warehouse writes. |
|
| Int | The batch size of the staging files. |
|
[Processor]
Variable name | Type | Description | Default value |
---|---|---|---|
| String | In case the length of the user jobs process queue is 0 or the unprocessed and retry list is empty, RudderStack sleeps for this specified time. |
|
| String | Maximum loop sleep time for the Processor. |
|
| Int | The total number of events to get as a batch from the database. |
|
| Int | Batch size of the events added to the request queue before sending them for transformation. |
|
| Int | Batch size of the events added to request queue before sending them to the custom transformation server. NOTE: This is used only when a user transformation function is connected to a destination. |
|
| Int | The minimum number of events needed to be process further. |
|
| String | The minimum time needed before a new session is created. |
|
| Int | The maximum channel size for the request and response queue in the transformer. |
|
| Boolean | If set to |
|
| Int | Specifies the number of Go transform workers. |
|
| Int | The maximum number of times a transformer retries hitting the API in case of an error. |
|
| String | The sleep time in case of a transformer error while hitting the API, before retrying. |
|
[BackendConfig]
Variable name | Type | Description | Default value |
---|---|---|---|
| String | The frequency of updating data from the Configuration Backend. |
|
| Boolean | When set to |
|
| String | The path of the JSON file which contains the backend workspace configuration. |
|
[RateLimit]
Variable name | Type | Description | Default value |
---|---|---|---|
| Int64 | The maximum number of events to be allowed in a time interval. |
|
| String | The rolling time interval used to limit the allowed number of events. |
|
| Int32 | The number of buckets |
|
[Diagnostics]
Parameter name | Type | Description | Default value |
---|---|---|---|
| Boolean | RudderStack sends the server diagnostics report to the user. Disabling this will disable sending all diagnostics information. |
|
| String | The time interval to send the Gateway requests report |
|
| String | The time interval to send the Router requests report. |
|
| String | The time interval to send the Batch router requests report. |
|
| Boolean | Sends the server start event. |
|
| Boolean | Sends the workspace config received event. |
|
| Boolean | Sends the successful server start event. |
|
| Boolean | Sends the workspace config details. |
|
| Boolean | Sends the Gateway request metrics. |
|
| Boolean | Sends the Router request metrics. |
|
| Boolean | Sends the Batch Router request metrics. |
|
| Boolean | Sends the destination failures metrics. |
|
Contact Us
For more information on any of the configuration parameters discussed in this guide, you can contact us or start a conversation in our Slack community.
Last updated