You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/product/relay/options.mdx
+16-4Lines changed: 16 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -30,6 +30,19 @@ Credentials can be initiated as described in the [getting started page](/product
30
30
| relay.port | Integer | default value: `3000` optional: `false`| The port to which Relay should bind for the unencrypted Relay HTTP server. `Environment variable: "RELAY_PORT".`|
31
31
| relay.override_project_ids | Boolean | optional: `true`| Overrides project identifiers stated in client DSNs with the identifier used at the Sentry upstream. By default, Relay rejects data on project ID mismatch. Set this setting to `true` when Relay redirects traffic to a migrated Sentry instance, such as when moving from self-hosted to Sentry SaaS. Validation of project identifiers can be safely omitted in these cases, and you can continue to use the previous DSNs in your services. |
32
32
33
+
## Health
34
+
35
+
Settings to control Relay's health checks.
36
+
37
+
After breaching one of the configured thresholds, Relay will
38
+
return an `unhealthy` status from its health endpoint.
| health.max_memory_bytes | Integer | default: `null`| Maximum memory usage in bytes. |
43
+
| health.max_memory_percent | Float. | number between 0.0 and 1.0, default: 0.95 | Maximum memory usage as a percentage of available memory. |
44
+
| probe_timeout_ms | Integer | default: 900 | Health check probe timeout in milliseconds. Any probe exceeding the timeout will be considered failed. This limits the max execution time of Relay health checks. |
45
+
33
46
## HTTP
34
47
35
48
These settings control network-related configurations.
@@ -62,11 +75,10 @@ These settings fine tune caching of project states.
| spool.envelopes.path | String | default: `null`| The path to the spool file used to save envelopes to disk. If provided, enables on-disk spooling. Relay will create the directory structure if needed. Note that `~` is interpreted as a literal and not as the home directory. |
66
-
| spool.envelopes.max_memory_size | String | default: `500MB`| The maximum in-memory buffer for incoming envelopes. The buffer will be spooled to disk when the configured size is reached. |
78
+
| spool.envelopes.path | String | default: `null`| The path to the spool file used to save envelopes to disk. If provided, enables on-disk spooling. Relay will create the directory structure if needed. Note that `~` is interpreted as a literal and not as the home directory. ||
67
79
| spool.envelopes.max_disk_size | String | default: `500MB`| The maximum on-disk spool size. |
68
-
| spool.envelopes.max_connections| Integer | default: `20`| The maximum number of connections in the pool to manage on-disk spooling. |
69
-
| spool.envelopes.min_connections|Integer|default: `10`| The minimum number of connections in the pool to manage on-disk spooling. |
80
+
| spool.envelopes.max_envelope_delay_secs | Integer | default: `24 * 60 * 60` (24h) | Maximum time between receiving the envelope and processing it. When envelopes spend too much time in the buffer (e.g. because their project cannot be loaded), they are dropped.
81
+
| spool.envelopes.max_backpressure_memory_percent|Float| number between 0.0 and 1.0, default: 0.8 | The relative memory usage above which the buffer service will stop dequeueing envelopes. Only applies when `spool.envelopes.path` is set. This value should be lower than `health.max_memory_percent` to prevent flip-flopping.|
0 commit comments