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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Ask HN: Best way to set up self-managed Postgres clusters?

26 点作者 samokhvalov大约 1 年前
Imagine you need to set up 100 Postgres clusters on Linux machines – self-managed, not RDS or CloudSQL or Azure or anything.<p>What&#x27;s the best path in YOUR opinion?<p>1) apt&#x2F;yum&#x2F;... install<p>2) docker &#x2F; docker-compose<p>3) kubernetes

7 条评论

throwaway38375大约 1 年前
There&#x27;s no amount of money you could pay me to do this with Kubernetes. Like, you could offer me double my salary, and I&#x27;d laugh.<p>The only answer that makes any sense here is Ansible.<p>Arguments:<p>Way simpler<p>Can fall back to using plain SSH if things goes really wrong<p>No vendor lock in<p>One less bit of technology in the mix to go wrong<p>Very boring, which means very reliable
评论 #39816297 未加载
paulryanrogers大约 1 年前
Do they need to interconnect, or are they all standalone?<p>How big are these instances expected to get for the next few years?<p>OLTP, OLAP, warehouse, or a combo?<p>What&#x27;s your budget?<p>What is your team most familiar with?<p>Will they be publicly exposed for shared hosting? Or behind a VPN&#x2F;VPC serving only your employer?<p>Has anyone had a good time using Docker for something like this? (I haven&#x27;t but the paravirt persistence may have gotten better?)
west0n大约 1 年前
You may try kubeblocks(kubeblocks.io), a database control plane that can run almost any database on K8s.
rad_gruchalski大约 1 年前
Clusters? So with replication, leader election, load balancing, whole shebang? Kubernetes, with the help of one of the battle tested operators.
评论 #39812154 未加载
samokhvalov大约 1 年前
~~<p>Context: <a href="https:&#x2F;&#x2F;twitter.com&#x2F;samokhvalov&#x2F;status&#x2F;1771573110858269014" rel="nofollow">https:&#x2F;&#x2F;twitter.com&#x2F;samokhvalov&#x2F;status&#x2F;1771573110858269014</a><p>~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 年前
Sorry but do you mean nodes or clusters? Anyway at this scale you are definitely looking into managed services from cloud providers or using Kubernetes. 1 and 2 is not an option because of the maintenance burden. Rolling out upgrades and resource allocation is going to be very hard without Kubernetes.
评论 #39812151 未加载
k8svet大约 1 年前
(after clicking through context...) There&#x27;s no amount of money you could pay me to do this with Ansible. Like, you could offer me double my salary, and I&#x27;d laugh.<p>The <i>only</i> answer that makes any sense here is Kubernetes.
评论 #39813006 未加载
评论 #39812148 未加载
评论 #39812070 未加载