News for hackers. Stuff that matters.
Re:Don't use Kubernetes yet by 8n4vidtmkvmk on Sunday June 19, 2022 @02:00AM (#31796533)
I'm running a stateful db... it's like $5 to run myself vs $120/mo to have it managed. big difference. haven't had to touch it in years now but im also afraid to try upgrading it.
Re:Don't use Kubernetes yet by 8organicbits on Sunday June 19, 2022 @05:20AM (#31797675)
If you're afraid to upgrade yourself, you may eventually contract out for help. You'd need that contract to cost less than $1380 for each year of upgrades. Otherwise, you should have picked the managed solution.

Doing it yourself is probably only cheaper if you never need maintenance or upgrades, security patching isn't needed, or your time is cheap.

Re:Don't use Kubernetes yet by danjac on Sunday June 19, 2022 @06:43AM (#31798114)
I would argue that if your spend is $5 a month your data is probably not very valuable to yourself or your customers. Which is totally OK for some projects, but $120 is not very much for that peace of mind and time-saving if your data is important to your company.
Re:Don't use Kubernetes yet by dgb23 on Sunday June 19, 2022 @07:12AM (#31798251)
It depends more on the volume, the frequency of changes and the complexity of implementation. You can have a robust solution for a few bucks infra cost, if those parameters are small.
Re:Don't use Kubernetes yet by danjac on Sunday June 19, 2022 @07:47AM (#31798427)
OK, but how much time are you spending on managing these yourself? If it's non-zero then the cost between $5 and $120 for a company is trivial. For a personal side project, sure, but if we are talking about paying customers' data then even things like automated backup and recovery need to be taken into account.
Re:Don't use Kubernetes yet by dgb23 on Sunday June 19, 2022 @09:41AM (#31799291)
For backups I agree, they obviously should be automated, but recovery? Not in my experience, not at the scale we're talking about here. You want something that is simple and semi-automated.

Backup recovery in a small, simple, robust system is very rare. Automated recovery is complex and there are quite a bunch of gotchas and perhaps project specific things to take into account.

But automated backups are typically straightforward. You need to know when and how to do them and where to put them.

I think there are tons of reasons to pay for an managed database if you need it. But it is not a baseline requirement for many projects.

Re:Don't use Kubernetes yet by hdjrudni on Sunday June 19, 2022 @01:12PM (#31801240)
Backup is automated on a nightly cron. Restoring the entire DB is easy, I have a script to do it. But ya if something blows up in prod or partially blows up, ... usually the situation is you wrote some shoddy script and blew up half the database so then you have to import it somewhere else and untangle that mess. So you're quite right, can't easily be automated.
Re:Don't use Kubernetes yet by hdjrudni on Sunday June 19, 2022 @01:11PM (#31801224)
It's required very little maintenance so far, and it may even be a positive ROI because I'm using the same setup for development. Since it's part of the same Kubernetes config, it's easy to spin up the DB under Docker Desktop for home development. I don't know how I'd do that with a managed solution.
Re:Don't use Kubernetes yet by hdjrudni on Sunday June 19, 2022 @01:08PM (#31801195)
Well not exactly $5, it's in the same cluster, so.. hard to put a price on it. Plus a couple bucks for backups on B2. Oh plus the persisted volume.. I think I've got 25 GiB at 10c/GiB so $2.50 for 'hot' storage and maybe another $2.50 for 'cold' storage. And then it's running on like a $20 or maybe $40 node which I share with some other stuff. Anyway, not much!

For managed, I don't think I'd want to go lower than the $50 plan which would be roughly equivalent to what I have now.. would include storage but not backups I think.

But ya the data is valuable.. I'm running nightly backups. I want to do continuous backups someday or have some way to not lose up to 24 hours of data if something happens.