Skip to content
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions relay/config.example.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,15 @@ processing:

# In some cases, relay might fail to find out the actual machine memory
# therefore it makes the healthcheck fail and events can't be submitted.
# See https://github.com/getsentry/self-hosted/issues/3330
# As a workaround, uncomment the following line:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Following lines? We should also clearly mark where those lines start and end?

#
# health:
# max_memory_percent: 1.0
# spool:
# envelopes:
# path: "/your/path"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we have an example of this path?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It should just be a path residing on the Docker volume... or since relay doesn't have a persisted volume, probably it's best to use /tmp/foo directory?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm quite unfamiliar with this change, so could you please bear with me and tell me, is it going to be more than 4GB?

I've seen odd situations when using /tmp and filling it with files bigger than 4GB size.

If that's not the case, then correct, /tmp/foo seems right to me.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Who not mount a volume to relay for this?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

From the docs, the default size is 500MB. We should be fine, no need for another volume. https://docs.sentry.io/product/relay/options/#spooling

# max_backpressure_memory_percent: 1.0

# If you have statsd server, you can utilize that to monitor self-hosted Relay.
# To start, uncomment the following line and adjust the options as needed.
Expand Down