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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Zero-Downtime Restarts with HAProxy

19 点作者 bdotdub超过 16 年前

1 comment

jbyers超过 16 年前
An interesting method, but as the comments say, getting your load balancer or proxy to do the right thing is the tip of the iceberg. Migrating your database on the fly requires schema version-aware code, facilities for split-brain upgrades (e.g. with mmm MySQL), sensible handling of in-progress requests. All that gets costly in terms of development time and complexity that, unless you're really big or run a critical-availability service (from hospital down to ad serving), is arguably better used making your product better. Just eat the few minutes of downtime after setting your customers' expectations properly.