Hacker Newsnew | past | comments | ask | show | jobs | submit | zonkd1234's commentslogin

Thanks for the post. How do you currently deal with HD failures/redundancy? That’s my main concern leaving a managed database provider.

I've designed our app so that there are only two stateful services that matter: Database and Disk. Everything else is cattle, you can shut down or spin up new instances and the load balancer redirects requests with no impact. Making Postgres redundant is a matter of careful configuration with PGBouncer + HAProxy + Patroni. However for a long time we had a much simpler setup: just restore a new database from backup on a new machine if the main one failed (one-time simple script run manually - not automatic, means a little bit of downtime if there's a failure, but it worked). Or you could use CockroachDB. Making disk redundant: just use MinIO for S3-like disk (that's also where DB backups are stored). You can lose up to 2 out 4 of your servers and you lose nothing.

With this setup if 1 or 2 Mac Studios fail (or need to be restarted for updates) everything just keeps running smoothly with no customer impact. It also helps that the app itself is on the Elixir BEAM (Phoenix) so everything "just works" across all machines.


cheers. Had never heard of MinIO either, very cool.

Do note MinIO is deprecated and no longer maintained, discussed here[1]. There are plenty of alternatives though, most mentioned in the referenced submission.

[1]: https://news.ycombinator.com/item?id=47000041


MinIO was a previously open source blob store. It's pretty old, it was basically created right around the time S3 took off.

You should probably reconsider going with it in 2026 unless you're fine with their new (non -opensource) offering. It still has a "free" license, so it might still be an option depending on your priorities.

But there are alternatives around, some being arguably much easier to run/maintain for small deployments like this.


Was it unusable because cpu/io was maxed out during ANALYZE?


Analyze itself isn’t the problem.

After pg_upgrade, no stats will be available for the optimizer which means that any query will more or less sequence-scan all affected tables.


No, its the lack of stats on the tables, any query hitting a medium to large table would be extremely slow.


Lambda is returning 502 errors in US-West for me as well.


yes. Having issues as of few mins ago reaching us-west-2 ec2.


us-west-2 EC2 looks like just came back online.


wohoo! ssh'd back in. ty


I agree. This is likely a result of central bank policies pushing rates down for so long. I bought recently because rates are so extremely low and the govt has committed to keeping them low for a long time. Rates went up very slowly after the Great Recession and this time will probably be the same. Add to that a growing population (here in Canada) and housing prices will probably keep going up a lot.


I agree with what you are saying but you can't compare jQuery and React - they are very different tools.

If something works for you and makes life easier then you should use it. There is no right answer. You just need to be honest with yourself when planning things out - am I using this technology because it's new and shiny or because it is the right tool for the job right now.


> I agree with what you are saying but you can't compare jQuery and React - they are very different tools.

I am well aware. It was mostly a joke :]


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: