Skip to content

Commit f305dbc

Browse files
authored
doc(relay): Health & spooler options (#15850)
1 parent ffd914b commit f305dbc

File tree

1 file changed

+16
-4
lines changed

1 file changed

+16
-4
lines changed

docs/product/relay/options.mdx

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,19 @@ Credentials can be initiated as described in the [getting started page](/product
3030
| 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".` |
3131
| 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. |
3232

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.
39+
40+
| key | type | value | description |
41+
| ----------------------- | ------- | --------------- | ----------- |
42+
| 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+
3346
## HTTP
3447

3548
These settings control network-related configurations.
@@ -62,11 +75,10 @@ These settings fine tune caching of project states.
6275

6376
| key | type | value | description |
6477
| ------------------------------- | ------- | ---------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
65-
| 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. | |
6779
| 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. |
7082

7183
## Size Limits
7284

0 commit comments

Comments
 (0)