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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Ask HN: Hostname Conventions for Distributed Systems?

3 点作者 rellik超过 12 年前
I've gone through a variety of hostnaming strategies over the years, and the one I use now is &#60;service&#62;&#60;##&#62; (eg zookeeper01).<p>With distributed systems in particular, but any system in general, boxes can come and go, and I hate having holes in my names (eg zookeeper01, 02, 04, 05, 06). That, and by choosing the number of leading zeroes, you're guessing at the max number of servers this service will be served by.<p>How do people manage this? I'm thinking something like &#60;service&#62;-&#60;random_token&#62; (eg zookeeper-fi2) would make sense and be more scalable, but I'm interested in what strategies other people use.<p>(I'd create a poll but I don't have the 200 karma) =/

1 comment

merinid超过 12 年前
I like to think of everything as ephemeral. You can always write software for a new box to "fill in" holes when systems are replaced. I like this because it helps me when I assign roles or node based redundancy to my boxes.
评论 #5067920 未加载