self-hosted icon indicating copy to clipboard operation
self-hosted copied to clipboard

Provide a slimed down version of Sentry self-hosted

Open cleptric opened this issue 1 year ago • 4 comments

Problem Statement

Over the years, the product we offer at Sentry has grown rapidly in features but also complexity. I do remember when I first started to self-host Sentry, this was around the 9.x days, and how little of a VM you could use to get everything running.

Today, you need a much beefier machine, given the countless features and resulting docker containers the setup requires.

Solution Brainstorm

It might be worth thinking about whether we can offer a more light, stripped-down version of self-hosted Sentry that only supports a few core features. I'm aware that this won't be an easy task, as so many features are now intertwined with each other.

cleptric avatar Nov 02 '23 10:11 cleptric

This might go hand in hand with https://github.com/getsentry/self-hosted/issues/2533, as one solution that I could think of is make the features be enabled interactively (using some kind of user prompt.... or something). For current implementation, that would mean that the docker-compose.yml file will be created programmatically instead of having it already set up on current repo. This would create another new overhead for maintenance.

Reducing the numbers of Snuba containers (see https://github.com/getsentry/snuba/issues/1670) might help, but I often wonder about how much resource you would actually save. This would also save configuration overhead if some users only want some features.

One thing that we would do for now, is to add some inline documentation on this specific code to have explanation on what kind of features you can disable if you don't want X feature on your instance, and what other containers that you can strip out from the docker-compose.yml file.

https://github.com/getsentry/self-hosted/blob/16bea1e5a56a4c9c568dbf29c7c274b2c1c5a8d8/sentry/sentry.conf.example.py#L264-L292

Today, you need a much beefier machine, given the countless features and resulting docker containers the setup requires.

Don't get me wrong, I love having all the features Sentry could over today, and yes I do have a beefy machine dedicated for running Sentry (currently 6 vCPU, 12 GB RAM, 3 GB swapfile, 47 GB disk).

aldy505 avatar Nov 02 '23 13:11 aldy505

This effort looks like it goes hand in hand with https://github.com/getsentry/self-hosted/issues/1763

hubertdeng123 avatar Nov 07 '23 16:11 hubertdeng123

And now your "beefy" machine is already outdated.. I just added a 20GB swap file just get Sentry to start and I have 16GB of memory. My sentry machine requires more hardware than the application we log from :'(

brunis avatar May 13 '24 09:05 brunis

@brunis , @aldy505 , I had issue with infinite resource consumption increase and I found that. Take a look at Kafka and Redis, maybe it will help you https://yuretspro.medium.com/on-premise-sentry-under-the-high-load-how-to-stay-up-running-be6a0a33791f

But yes, It's insane that sentry, even without such load, is consuming 13+GB of RAM and it's smth like 55+ containers 🔥 🤯

Would be so happy to have some fitness version of sentry 🙏

dusatvoj avatar Jul 20 '24 15:07 dusatvoj