Ask HN: Best way to set up self-managed Postgres clusters?
26 points| samokhvalov | 1 year ago
What's the best path in YOUR opinion?
1) apt/yum/... install
2) docker / docker-compose
3) kubernetes
26 points| samokhvalov | 1 year ago
What's the best path in YOUR opinion?
1) apt/yum/... install
2) docker / docker-compose
3) kubernetes
throwaway38375|1 year ago
The only answer that makes any sense here is Ansible.
Arguments:
Way simpler
Can fall back to using plain SSH if things goes really wrong
No vendor lock in
One less bit of technology in the mix to go wrong
Very boring, which means very reliable
aristofun|1 year ago
paulryanrogers|1 year ago
How big are these instances expected to get for the next few years?
OLTP, OLAP, warehouse, or a combo?
What's your budget?
What is your team most familiar with?
Will they be publicly exposed for shared hosting? Or behind a VPN/VPC serving only your employer?
Has anyone had a good time using Docker for something like this? (I haven't but the paravirt persistence may have gotten better?)
west0n|1 year ago
rad_gruchalski|1 year ago
samokhvalov|1 year ago
But why? Patroni is great for HA and it doesn't require k8s.
samokhvalov|1 year ago
Context: https://twitter.com/samokhvalov/status/1771573110858269014
~1000 votes in just one day – obviously, this is an attractive topic to discuss, so wanted to have a thoughtful conversation here on HN.
notadeveloper|1 year ago
samokhvalov|1 year ago
k8svet|1 year ago
The only answer that makes any sense here is Kubernetes.
bravetraveler|1 year ago
This reads like a brazen misunderstanding/misrepresentation of Ansible.
Like... imagine the position of Terraform, a Kubernetes darling, and that's it.
I could especially see Ansible being used when not buying toy clusters, but building your own. I don't know how useful CRUD on the objects like deployments would be. Enough to do the job.
Point being, Kubernetes doesn't exclude Ansible in the slightest, whatsoever.
This was just enough for me to post... they aren't mutually exclusive. It's yet another layer of yaml to throw at the declaration problem.
Where/what/how is entirely up to the user. I'll take your money and then move on to the next thing to manage
samokhvalov|1 year ago
paulryanrogers|1 year ago