TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

I gave up on self-hosted Sentry (2024)

186 点作者 roywashere29 天前

33 条评论

Weryj29 天前
We self-host sentry in Hetzner, but with a high-end server. 96c, 512gb. It ends up only costing around $300 a month, however with the scale of events that it processes, the managed version would be in the 10&#x27;s of thousands.<p>The overhead at low volume is pretty high, but in the higher volumes (25M transactions&#x2F;24h) it&#x27;s a massive cost saving for us.<p>Edit:<p>There were just some initial headaches with needing to increase kafka partitions and add replications to the transaction processors, otherwise we didn&#x27;t quite leverage the available compute and the backpressure would fill Redis up until OOM.
评论 #43726201 未加载
评论 #43726155 未加载
评论 #43730190 未加载
评论 #43726475 未加载
评论 #43726926 未加载
评论 #43726527 未加载
adamcharnock29 天前
This absolutely mirrors my experience. Sentry was straightforward to deploy years ago, but now seems like one of the more egregious offenders in the, &#x27;self host-able but increasingly prohibitively complex by design&#x27; category.<p>As others have said, we&#x27;ve [0] found the only practical way to deploy this for our clients is Kuberentes + Helm chart, and that&#x27;s on bare-metal servers (mostly Hetzner). It runs well if you can throw hardware and engineering time at it, which thankfully we can. But given the option we would love a simpler solution.<p>[0]: <a href="https:&#x2F;&#x2F;lithus.eu" rel="nofollow">https:&#x2F;&#x2F;lithus.eu</a>
评论 #43726309 未加载
vanschelven29 天前
Hey, that&#x27;s me!<p>When I posted this myself on Reddit, I said the following:<p>I&#x27;ve long held off on actually posting this article to a platform like this one (don&#x27;t bash your competition and all that), but &quot;isn&#x27;t Sentry self-hosted?&quot; _is_ one of the most asked questions I get, and multiple people have told me this blog-post actually explains the rationale for Bugsink better than the rest of the site, so there you have it.
评论 #43726118 未加载
评论 #43728212 未加载
stebian_dable29 天前
FOSS Sentry fork GlitchTip keeps things more simple and self-hosting friendly.<p><a href="https:&#x2F;&#x2F;glitchtip.com&#x2F;" rel="nofollow">https:&#x2F;&#x2F;glitchtip.com&#x2F;</a>
评论 #43726116 未加载
评论 #43728899 未加载
评论 #43726117 未加载
评论 #43726992 未加载
评论 #43728354 未加载
评论 #43726480 未加载
epolanski29 天前
The biggest issue I have with these solutions is indeed local debugging.<p>I use Sentry with most of my clients, and for effective debugging I need to spin my own Sentry in a Docker container which ends up being quite heavy on my machine especially when combined with Grafana and Prometheus.<p>I&#x27;m really unhappy with virtually all monitoring&#x2F;telemetry&#x2F;tracking solutions.<p>It really feels they are all designed to vendor lock you in their expensive cloud solutions and I really don&#x27;t feel I&#x27;m getting my $s back at all. Worst of all those cloud vendors would rather add <i>new</i> features non-stop rather than honing what they currently have.<p>Their sales are everywhere, I&#x27;ve seen two different clients getting Datadog sales people join private Slacks to evangelize their products.<p>Both times I escalated to the CTO, both times I ended up suspecting someone in management had something to gain from pushing teams to adopt those solutions.
评论 #43726311 未加载
评论 #43726403 未加载
notpushkin29 天前
I still love Sentry, but it’s so enormous now that it isn’t practical to self-host for smaller businesses. A “small” alternative is always great to see!<p>I’m not sure how I feel about the license though (Polyform Shield, basically use-but-don’t-compete). It’s a totally valid choice – I just wish it would convert to FOSS at some point. (I understand the concern as I’ve had to make a similar decision when releasing <a href="https:&#x2F;&#x2F;lunni.dev&#x2F;" rel="nofollow">https:&#x2F;&#x2F;lunni.dev&#x2F;</a>. I went with AGPL, but I’m still overthinking it :-)
vanschelven29 天前
also in recent news: <a href="https:&#x2F;&#x2F;it-notes.dragas.net&#x2F;2024&#x2F;12&#x2F;28&#x2F;i-almost-died-for-a-full-sentry-database&#x2F;" rel="nofollow">https:&#x2F;&#x2F;it-notes.dragas.net&#x2F;2024&#x2F;12&#x2F;28&#x2F;i-almost-died-for-a-f...</a>
评论 #43726150 未加载
评论 #43728109 未加载
评论 #43726287 未加载
评论 #43726289 未加载
mplantsheer29 天前
The amount of shell script that needs to be executed to install is a bit of a no no for me. It also doesn&#x27;t make sense to spin up a 16GB machine (minimum!) to track the errors on those 4-8GB VPS which are running my production services.
seanwilson29 天前
&gt; we don’t necessarily recommend self-hosting to everyone. In addition to existing hidden costs, as Sentry evolves, our self-hosted version will become more complex, demanding additional types of infrastructure.<p>Any insights on why Sentry is so complex and needs so much resources? Is collecting, storing, and organizing errors messages and stack traces at scale difficult? Or it&#x27;s the other features on top of this?
评论 #43726551 未加载
评论 #43726656 未加载
XCSme25 天前
This is what usually happens with self-hosted software that offers a cloud paid alternative. If it&#x27;s too easy to install and maintain, the cloud version would make no money.<p>For my self-hosted analytics platform [0], I chose to only use the LAMP stack (PHP&#x2F;MySQL), as it&#x27;s one of the easiest to set up and maintain. Yes, it won&#x27;t be able to track 100 million events per day, but most people don&#x27;t have that amount of traffic anyway. It runs on the cheapest VPS, and can be installed in many different ways (adding more and more, if the platform is self-hosted only, my goal is to make installation as simple as possible, especially with the free trial, so customers can try it anywhere in a few minutes). Sorry if it sounds like a rant, but it&#x27;s hard competing with huge corporations promising free &quot;self-hosted options&quot;, only to use it as a lead-magnet for the cloud service. I saw this trend growing, even with smaller companies, where their self-hosted one-click app installs fail and they provide no support for it or have no intention to fix the installer.<p>[0]: <a href="https:&#x2F;&#x2F;www.uxwizz.com" rel="nofollow">https:&#x2F;&#x2F;www.uxwizz.com</a>
rwky29 天前
I use both hosted and self hosted sentry. I prefer hosted it&#x27;s less to manage but self hosted isn&#x27;t too awful as long as you can budget the resources. If you just want the team sentry plan it&#x27;s going to be cheaper to use hosted. I would only self host if you had to for legal&#x2F;compliance reasons. In the many years I&#x27;ve been managing sentry we&#x27;ve only had it truly crap out once and that was an upgrade from 9 to their new date versioning basically the whole hosted method changed and it was just easier to start over from scratch.
tanepiper29 天前
This is also my opinion of Backstage. It&#x27;s positioned as this easy-to-use open source tool for IDPs - but in reality, it&#x27;s a product that needs a team to maintain it constantly.
评论 #43728000 未加载
domysee28 天前
HyperDX is a great alternative to Sentry, much easier to self-host, and also open source.<p>It&#x27;s relatively new and did take some tinkering to make it work properly, so I wrote a short article about it: <a href="https:&#x2F;&#x2F;weberdominik.com&#x2F;blog&#x2F;self-host-hyperdx" rel="nofollow">https:&#x2F;&#x2F;weberdominik.com&#x2F;blog&#x2F;self-host-hyperdx</a><p>But the feature set and user experience is great!
elAhmo29 天前
So many services are going this route. I remembered Reddit had an install script and almost everything worked out of the box 10-15 years ago on a Ubuntu VPS.
exiguus29 天前
I&#x27;m a big fan of self-hosting, but it requires the right infrastructure. You need a robust virtualization solution like Proxmox, equipped with sufficient CPU cores and RAM. For instance, allocating 16GB of RAM shouldn&#x27;t be an issue if your server has 128GB to share.<p>In my experience, solutions like Mailcow, which involve multiple services and containers (such as SMTP, IMAP, Redis, SSO, webmail, Rspamd, etc.), work very well. I have extensive experience running these systems, performing backups, restoring data, and updating their ecosystems.<p>Additionally, I&#x27;ve had a positive experience setting up and running a self-hosted Sentry instance with Docker for a project that spanned several years. However, this experience might be somewhat outdated, as it was a few years ago.
评论 #43727321 未加载
afro8829 天前
&gt; First, there’s a signal being given about the complexity and fragility of the software. A 16GB RAM requirement just screams “this is a big, complex piece of software that will break in mysterious ways”. Not very scientific, I know, but based on experience.<p>This lines up with my experience self hosting a headless BI service. In &quot;developer mode&quot; it takes maybe 1GB RAM. But as soon as you want to go prod you need multiple servers with 4+ cores and 16GB+ RAM that need a strongly consistent shared file store. Add confusing docs to the mix, mysterious breakages, incomplete logging and admin APIs, and a reliance on community templates for stuff like k8s deployment... it was very painful. I too gave up on self hosted.
评论 #43727683 未加载
BenGosub29 天前
I worked in a startup around 2019-2020 where we started using Sentry for distributed tracing. It was a company in the IOT space and we had a lot of events going through. The bill started going in the $3-5000 range just from the tracing, so we decided to host it on our own. When looking at the sheer complexity of the project, I was flabbergasted. We need a name for managing the infrastructure of company based open source, self-hosted solutions. Often times, the right choice would be to choose a different, simpler, open source solution. In this case there are some neat distributed tracing solutions, that are easier to manage.
KronisLV29 天前
A good APM tool I’ve been using for a few years is Apache Skywalking: <a href="https:&#x2F;&#x2F;skywalking.apache.org&#x2F;" rel="nofollow">https:&#x2F;&#x2F;skywalking.apache.org&#x2F;</a><p>It might not do everything Sentry does but it definitely has helped with tracking down some issues, even production ones and runs in a fairly manageable setup (in comparison to how long even the Sentry self-hosted Docker Compose file is).<p>What’s more, if you want, you can even use regular PostgreSQL as the backing data store (might not be quite as efficient as ElasticSearch for a metrics use case, but also doesn’t eat your RAM like crazy).
评论 #43728777 未加载
azthecx29 天前
At first glance it&#x27;s not immediately obvious to me, why would you pick Sentry or Bugsink over something included in the Grafana stack? What&#x27;s the use use
评论 #43734090 未加载
precommunicator29 天前
We&#x27;ve just applied a helm chart a while back. It just works. We maybe had like a few incidents over the years, requiring stuff like Kafka queues to be wiped.<p>The argument that you have to read a sh script doesn&#x27;t make sense to me. Are you gonna read source code of any software is referenced in this script or any you download too? No? What&#x27;s the difference between that and a bash script, at the end of the day both can do damage.
评论 #43726191 未加载
评论 #43726197 未加载
评论 #43726206 未加载
johnklos28 天前
Software that&#x27;s only available as x86 binaries and a whole system that needs 16 gigs of memory? It&#x27;s not surprising that it comes from the corporate world and not the open source world.<p>I respect the fact that the Sentry people are honest about their teetering tower.
1vuio0pswjnm729 天前
As a computer user I do not allow connections to sentry.io<p>For example, Firefox tries to connect
评论 #43734104 未加载
h1fra29 天前
That&#x27;s the inevitable evolution of any popular open-source product&#x2F;company. Light and enterprise-ready is hardly compatible, and you can expect this from any project that has a cloud offering.
评论 #43727496 未加载
m46328 天前
&gt; It’s a ton of docker containers. Things will fail randomly or maybe with a lot of traffic, don’t remember well.<p>maybe they should put in a system to monitor the docker containers.
Brosper29 天前
Maybe Sentry don&#x27;t want you to have self-hosted version?
评论 #43726691 未加载
评论 #43726495 未加载
ghh29 天前
This isn&#x27;t okay - the author is selling their own alternative to Sentry, &#x27;reusing&#x27; Sentry&#x27;s open-source client SDK&#x27;s, while spreading FUD about self-hosting Sentry.<p>I&#x27;ve been self-hosting Sentry for over 10 years: Sentry is installed by running `git clone`, editing one or two configuration files, and running .&#x2F;install.sh. It requires 16GB RAM <i>if</i> you enable the full feature set. That includes automatically recording user sessions on web or mobile for replay, and support for end-to-end tracing (so seeing which database queries your api asks for in response to a button tap in your mobile app).<p>Sentry has a wonderful self-hosting team that&#x27;s working hard to make Sentry&#x27;s commercial feature set available, for <i>free</i>, to everyone that needs a mature error tracking solution. You can talk to them on discord and they listen and help.
评论 #43726539 未加载
评论 #43728216 未加载
评论 #43726667 未加载
mayli29 天前
I am not sure why there isn&#x27;t a even lightweight sentry endpoint that does<p><pre><code> - save post body to folders (use uuid as folder name to avoid spam) - dir listing, and count number of entries - render posted json to html, highlight stacktrace with js - download raw json - rotate, compress old entries. </code></pre> I give those requirements to LLM, and I get a pretty much working rust implementation after few tweaks. It uses &lt;5M ram idle.
评论 #43726386 未加载
cuu50829 天前
I was looking into moving away from managed Sentry for GDPR reasons. I was only using Sentry for notifications about unhandled exceptions in my app. All the fancy APM features I did not use. Grouping of similar exceptions, pretty display of tracebacks were nice but not essential.<p>In my Django app I wrote a logging handler that stores the log records (including traceback) in a database table. I can inspect the log records through Django admin, and a cron job sends me daily emails saying &quot;X new log records in the last 24 hours&quot; so I know to check them out. And that&#x27;s it :-)<p>Of course, this does <i>a lot</i> less than Sentry, and has various limitations (e.g. what if the error is about the database being down...), but it fits my needs.<p>BTW, IIUC, Sentry in its early beginnings was also doing just that – logging to database: <a href="https:&#x2F;&#x2F;github.com&#x2F;dcramer&#x2F;django-db-log">https:&#x2F;&#x2F;github.com&#x2F;dcramer&#x2F;django-db-log</a>
linsomniac29 天前
TL;DR: Not so much &quot;gave up&quot; as &quot;never tried&quot; because I was scared away by 16GB RAM requirement.<p>FWIW, we&#x27;ve been self-hosting 2 instances (and purchase a third hosted instance), for, it looks like 8 years now, and it&#x27;s had a few small bumps but hasn&#x27;t been too bad. Our instances are running with 20GB of RAM, so pretty small. ~90% of updates have gone smoothly, which leaves 10% of updates that have had some sort of problem. Solutions have been found in the issue tracker in all our cases. We are a little afraid of doing updates, but do them every couple of months.<p>Sentry is an amazing piece of software and it is fantastic that they offer a self-hosing version, and all things considered it is a fairly easy self-host.
评论 #43729826 未加载
评论 #43729911 未加载
fefe2329 天前
I find it very funny that the post is basically complaining about fearmongering by the maker of Sentry to scare people into not hosting themselves.<p>And then he does the exact same thing, on behalf of Sentry.<p>I hope he got paid for this. Otherwise it would just be sad.
评论 #43726514 未加载
madeofpalk29 天前
It&#x27;s wild that Sentry themselves are spreading literal FUD about about bad it is to self-host their own product. So confounding that they&#x27;re so ready to shit on their own product.
whatnow3737329 天前
&gt; I’m not going to run a piece of software that requires 16GB of RAM, has a complex installation script, and is known to be a pain to maintain.<p>This has to be self-hosted <i>eventually</i> either by you or Sentry themselves so the full cost of this is coming down <i>somewhere</i>. The planet is round and all that and there&#x27;s no getting away from these inefficiencies, but you can kick the proverbial can down the road.<p>Also, they are incentivized to make the open product as hard to use as possible so color me surprised the self-hosted edition is hard to operate.
评论 #43726176 未加载
评论 #43726590 未加载
croes29 天前
From the Sentry homepage<p>&gt; Application monitoring software considered &quot;not bad&quot; by 4 million developers.<p>Sounds pretty bad to me
评论 #43726232 未加载