网站 - 冗余和故障
在研究了各种主机之后,我仍然感觉要找到一个永远不会宕机的主机有点不可能。
也许这些主机采用了冗余,也许他们没有。无论哪种情况,如何向用户显示一条类似于“BRB”的友好消息。如果您的主机完全宕机一个小时怎么办?您需要一种方法来告诉用户您会回来。你如何做到这一点?
After researching various hosts, I still get the feeling that it is somewhat impossible to get a host that would never go down.
Maybe these hosts employ redundancy, maybe they do not. Either case, how would one display a friendly message to the user along the lines of "BRB". What if your host goes down completely for an hour? You would need a way to tell users you would be back. How do you accomplish that?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
我怀疑任何 ISP 或托管提供商都会为您这样做。为了实现这一目标,除了服务器之外,您还需要非常昂贵且复杂的基础设施,例如冗余的故障安全路由器和骨干网,而且您需要多个基础设施。 简单故障转移等概念需要 DNS 更新,需要几分钟到几小时才能正常传播,因此它不是 100%解决方案要么。有关相关讨论,请参阅 Joel 的好文章。
I doubt any ISP or hosting provider would do that for you. To archieve that you need very expensive and complicated infrastructure like redundant fail-safe routers and backbones in addition to servers of course - and you need multiple. The concepts like Simple Failover requires DNS updates which take minutes to hours to propagate normally, so it's not a 100% solution either. See a good Joel's article for a related discussion.
如果主机宕机了,而你又在一台服务器上,那么你肯定宕机了。这是共享主机的限制...对此您无能为力。您可以询问您的主机是否托管在多个服务器上以实现冗余...如果是这样,那么您就不必担心。
如果您托管自己的服务器,那么您也许可以使用简单故障转移,并且可能拥有便宜的< href="http://www.godaddy.com/gdshop/hosting/virtual-dedicated-server.asp?ci=9013&display=virtual" rel="nofollow noreferrer">虚拟专用 服务器当您的主设备出现故障时,请升级。
If the host is down and you're on a single server, then you are definitely down. This is a limitation of shared hosting... there's not much you can do about it. You can ask your host if you are hosted on multiple servers for redundancy... if so, then you wouldn't have to worry about it.
If you host your own server, then you could maybe get your hands on Simple Failover and maybe have a cheap Virtual Dedicated server that goes UP when your primary goes down.
好吧,每个主机都会在某个时候停机。最好的选择是与拥有优质客户服务的人合作,可以帮助您恢复盒子。当你的机器出现故障时,99% 的情况都是你的错(如果你有权访问操作系统/Apache 等)。
Rackspace 的员工在托管和客户服务方面非常出色。机架空间云非常棒,可以让您立即创建和删除服务器。 (slicehost 适合按月收费的持久性盒子,也由rackspace 拥有)
至于与用户沟通的方式,我会使用twitter、tumblr 或托管博客服务。这样,如果您的盒子出现故障,您可以通过这些很可能位于不同主机/网络上的服务来传达消息。
Ok, every host will have downtime at some point. Your best bet would be to go with someone who has the great customer service that can help get your box back up. 99% of the time when your box goes down its your fault (if you have access to the OS/Apache etc).
The people at Rackspace are awesome for hosting + customer service. The rackspace cloud is great allowing you to create and take down servers instantly. (slicehost is good for persistent boxes charged by month, also owned by rackspace)
As for a way to communicate to your users, i would employ twitter, tumblr, or a hosted blog service. This way if your box goes down you can communicate your message via these services which are most likely on a different host/network.