by badrequest · 3y ago · 0 comments
I mean no slander or disrespect to anyone involved, but there was a DataDog alternative posted sometime in the last few weeks that had a docker-compose with like 15 containers in it. Required running a few different Typescript servers, a Clickhouse instance, Redis, MySQL, the lot of it. I'm sure it was a fully-featured service that made adequate use of those resources, but it also reminded me of why people pay out the wazoo for DataDog: nobody wants to manage all that stuff!
EDIT: the repo linked in the GP contains 3 instances of what you could call databases: MariaDB, Mongo, and Redis. There doesn't appear to be any explanation in the deployment docs for why all three are necessary.
Reminds me of Sentry: https://develop.sentry.dev/self-hosted/
This is their example docker-compose for self-hosting: https://github.com/getsentry/self-hosted/blob/master/docker-...
It has:
- exim4 (smtp)
- memcached
- Redis
- PostgreSQL
- Zookeeper
- Kafka
- Clickhouse
- geoipupdate
- 18 containers for something called snuba (integrates with Clickhouse?)
- 2 symbolicator containers
- web app
- cron
- 18 other utility containers
- Nginx
- relay
- 2 vroom containers
Meanwhile, as far as the other options in the APM space go, this is how Apache Skywalking looks like: - web app
- back end API
- database (Elasticsearch/OpenSearch, PostgreSQL, MariaDB/MySQL or something else)
I'm glad that generally it's good enough for my needs, because I can't imagine actually having to self-host Sentry. Then again, something like Graylog does log shipping better and without a doubt Sentry has lots of nice features... as long as you don't have to run it yourself, because many people out there won't realistically be able to do so.> EDIT: the repo linked in the GP contains 3 instances of what you could call databases: MariaDB, Mongo, and Redis.
That's not too bad, though, but seems like an interesting choice (both a regular RDBMS and a NoSQL one; Redis would probably be useful for caching etc. for either).
The trade off is that it’s far more complex than what anybody needs if they just want to run sentry locally. It used to be a lot simpler but now it’s pretty much impossible to even understand how they store data without spending a long time studying it.
To be fair to them though, their migrations and releases have generally been solid and reliable.
Running Sentry isn't hard despite crazy number of containers as long as you do it their way and use their docker-compose.yml.
The problem is running it on 4GB instance with 4GB swap is bare minimum which costs quite a bit to give it a dedicated instance.
But you can't beat its features. We should be glad it's provided for free and self hosted version isn't limited. Can't live without it.
I would love to understand a bit better why this one gets left off the list so often. "There's just nobody interested in putting those two things together" I guess, it's surprising to me though, because Ruby is pretty popular AFAIK.
Any self-hosted application really needs someone technical unless you're providing something like the DigitalOcean deploy button.
Docker-compose requires technical knowledge to run locally. Sure running "docker compose" is easy but installing it often isn't. As someone quite technical I'm honestly not sure how that would work for deploying on to AWS or GCP even though I know it's possible. I would have to look into it.
Ansible scripts require technical knowledge. Again running the command is easy but installing ansible isn't.
How DigitalOcean's deploy button is really easy as is shown in my demo video - https://www.youtube.com/watch?v=cbInyGtqLCs&t=1s. Note there is 10 minutes of my app demo inbetween starting the process and me using a deployed version. You can even try it out at https://github.com/BillaBear/billabear it's literally super easy. It's also silly easy to actually build. "DigitalOcean's app platform is so good it makes BillaBear looks good since the deployment is so easy" is literally what I've said to people.
If this was us [1] (an OSS Datadog alternative posted last week :D ), we do have quite a bit (11, 2 are optional) but we're working on bringing it down.
We currently split our ingestion pipeline into 3 independently scalable bits, but we can probably bring it down into 1 for any small-scale deployment. Otherwise we do have the standard need for a cache (redis), db (mongo), main storage (clickhouse), and then the standard API server + frontend, and a separate task to run alerts.
There's likely a few more things we can merge together, but it comes at the expense of making it unscalable to workloads typical to a company and divergence in the code base, which overall doesn't seem like the right tradeoff.
Imo the real concern as someone that personally owns too many tiny VM instances is resource footprint - which can be tuned down to ~1GB of memory for us (depending on server load).
Feel free to open an issue too if you think there's something we can adjust there as well.