Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(relay): Add Relay to onpremise installation #421

Merged
merged 32 commits into from Apr 24, 2020
Merged

feat(relay): Add Relay to onpremise installation #421

merged 32 commits into from Apr 24, 2020

Conversation

RaduW
Copy link
Contributor

@RaduW RaduW commented Mar 30, 2020

This PR adds the necessary services necessary to have Sentry working with Relay message ingestion.

@RaduW RaduW requested review from BYK and removed request for BYK March 30, 2020 10:23
Copy link
Collaborator

@BYK BYK left a comment

Choose a reason for hiding this comment

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

This looks pretty great! I have some comments which are not major things but they are still important to get before we can merge so requesting changes.

I also thing we should add the Snuba outcomes consumer here for TSDB. @jan-auer @untitaker can you comment on that?

docker-compose.yml Outdated Show resolved Hide resolved
docker-compose.yml Show resolved Hide resolved
docker-compose.yml Outdated Show resolved Hide resolved
relay_config/config.yml Outdated Show resolved Hide resolved
relay_config/config.yml Outdated Show resolved Hide resolved
reverse_proxy_config/nginx.conf Outdated Show resolved Hide resolved
reverse_proxy_config/nginx.conf Outdated Show resolved Hide resolved
reverse_proxy_config/nginx.conf Outdated Show resolved Hide resolved
reverse_proxy_config/nginx.conf Outdated Show resolved Hide resolved
reverse_proxy_config/nginx.conf Outdated Show resolved Hide resolved
@jan-auer jan-auer changed the title feat(add-relay) Add Relay to onpremise installation feat(relay): Add Relay to onpremise installation Apr 2, 2020
@RaduW RaduW requested a review from BYK April 8, 2020 16:08
@jan-auer
Copy link
Member

Please see changes in getsentry/sentry#18390:

  • There's a new envelope endpoint (introduced in feat: Implement an explicit envelope endpoint relay#552) that needs to be forwarded.
  • We need to introduce a size limit of at least 32m for the chunk-upload endpoint to work.
  • We should probably reconsider size limits of other endpoints, or just generally increase it to some higher value to get those out of the way.

If you'd like me to, I can make the changes to this PR.

@jan-auer
Copy link
Member

Another option would be to make a wildcard forward like in getsentry/sentry#18433. By definition, all of these endpoints need to be handled by Relay, so we can as well forward them. The benefit of this is that Relay responds with 404 on non-existing endpoints, while Sentry incorrectly responds with 403.

nginx/nginx.conf Outdated Show resolved Hide resolved
RaduW and others added 2 commits April 24, 2020 11:44
output errors to stderr instead of stdout

Co-Authored-By: Burak Yigit Kaya <byk@sentry.io>
Set max upload size limit to support envelope chunks

Co-Authored-By: Burak Yigit Kaya <byk@sentry.io>
Copy link
Collaborator

@BYK BYK left a comment

Choose a reason for hiding this comment

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

Will accept when all unrelated debug changes are removed.

Copy link
Collaborator

@BYK BYK left a comment

Choose a reason for hiding this comment

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

🎉

@BYK BYK merged commit e97da7c into master Apr 24, 2020
@BYK BYK deleted the feat/add-relay branch April 24, 2020 12:32
@jan-auer
Copy link
Member

❤️ 🎉 Thanks both!

mlaradji pushed a commit to mlaradji/onpremise that referenced this pull request Apr 25, 2020
Co-Authored-By: Burak Yigit Kaya <byk@sentry.io>
giggsey added a commit to giggsey/onpremise that referenced this pull request Apr 25, 2020
All the other services have a restart-policy, apart from these new ones added in getsentry#421
@kagansari
Copy link

You may want to review this. I got permisson denied error on /etc/relay during installation

@jan-auer
Copy link
Member

@BYK Seems like we missed this since there is no cloudbuild check configured. Is there a way to have a GH check on both getsentry/sentry and getsentry/onprem?

@BYK
Copy link
Collaborator

BYK commented Apr 27, 2020

@kagansari yeah, sorry for the disruption we are aware there are issues under certain circumstances. We relied on our local environment and then Travis CI for this which both passed. Should be resolved today.

MaicolBen pushed a commit to hinthealth/onpremise that referenced this pull request Jul 20, 2020
Co-Authored-By: Burak Yigit Kaya <byk@sentry.io>
@github-actions github-actions bot locked and limited conversation to collaborators Dec 14, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants