Linux系统的双机热备份

32 views
Skip to first unread message

adream

unread,
Sep 17, 2015, 11:06:08 AM9/17/15
to shlug
简单描述一下:有两台服务器,服务器A和服务器B,运行同一套软件。
我希望A因为意外宕机后,B可以无缝接上,并且对外界用户只提供一套访问借口。
请问Linux有没有现成的开源解决方案?
谢谢

Chaos Eternal

unread,
Sep 17, 2015, 12:15:45 PM9/17/15
to sh...@googlegroups.com
无缝到什么程度?
运行的软件是什么?
> --
> -- You received this message because you are subscribed to the Google Groups
> Shanghai Linux User Group group. To post to this group, send email to
> sh...@googlegroups.com. To unsubscribe from this group, send email to
> shlug+un...@googlegroups.com. For more options, visit this group at
> https://groups.google.com/d/forum/shlug?hl=zh-CN
> ---
> 您收到此邮件是因为您订阅了Google网上论坛上的“Shanghai Linux User Group”群组。
> 要退订此群组并停止接收此群组的电子邮件,请发送电子邮件到shlug+un...@googlegroups.com
> 要查看更多选项,请访问https://groups.google.com/d/optout

Xi Shen

unread,
Sep 17, 2015, 8:29:53 PM9/17/15
to sh...@googlegroups.com
HTTP的服务,一般都用Nginx吧。还真不知道其它类型的服务用什么工具。


您收到此邮件是因为您订阅了 Google 网上论坛的“Shanghai Linux User Group”群组。

要退订此群组并停止接收此群组的电子邮件,请发送电子邮件到shlug+un...@googlegroups.com
要查看更多选项,请访问 https://groups.google.com/d/optout
--

Regards,
David

宋为

unread,
Sep 17, 2015, 9:58:37 PM9/17/15
to sh...@googlegroups.com
有一天在上网的时候看到了一篇宣扬Docker的文章,谈到一个概念叫做“不可变配置”(似乎是这个名字)。

意思是将相同的镜像推送至多台服务器运行,而且不允许ssh,有配置改动的时候直接更新镜像本身。从而保证服务器间配置的一致性,而且也减少被黑 的风险。

Shell Xu

unread,
Sep 17, 2015, 10:40:16 PM9/17/15
to shlug
我简单的说一个事吧。docker的image layer最多127层,再深aufs不支持了。所以你的image在单次builder后最多叠加127次,再多就要重新build整个image。

adream

unread,
Sep 18, 2015, 7:38:13 AM9/18/15
to shlug
Nginx是在一台机器上吧,一个Master进程,若干个Worker进程,
我想要的是两台机器互为备份。

蒲肖肖

unread,
Sep 26, 2015, 2:40:47 AM9/26/15
to Shanghai Linux User Group
他的意思是 Nginx 作为外界统一接口,转发请求到后端服务器,Nginx 通过健康检查检测后端服务状态,自动下线宕机的服务。

在 2015年9月18日星期五 UTC+8下午7:38:13,Adream写道:
Nginx是在一台机器上吧,一个Master进程,若干个Worker进程,
我想要的是两台机器互为备份。

在 2015年9月18日 上午8:29,Xi Shen <david...@gmail.com>写道:
HTTP的服务,一般都用Nginx吧。还真不知道其它类型的服务用什么工具。


On Fri, Sep 18, 2015 at 12:15 AM Chaos Eternal <chaose...@shlug.org> wrote:
无缝到什么程度?
运行的软件是什么?

2015-09-17 23:06 GMT+08:00 adream <adre...@gmail.com>:
> 简单描述一下:有两台服务器,服务器A和服务器B,运行同一套软件。
> 我希望A因为意外宕机后,B可以无缝接上,并且对外界用户只提供一套访问借口。
> 请问Linux有没有现成的开源解决方案?
> 谢谢
>
> --
> -- You received this message because you are subscribed to the Google Groups
> Shanghai Linux User Group group. To post to this group, send email to
> sh...@googlegroups.com. To unsubscribe from this group, send email to
> shlug+un...@googlegroups.com. For more options, visit this group at
> https://groups.google.com/d/forum/shlug?hl=zh-CN
> ---
> 您收到此邮件是因为您订阅了Google网上论坛上的“Shanghai Linux User Group”群组。
> 要退订此群组并停止接收此群组的电子邮件,请发送电子邮件到shlug+unsubscribe@googlegroups.com

> 要查看更多选项,请访问https://groups.google.com/d/optout

--
-- You received this message because you are subscribed to the Google Groups Shanghai Linux User Group group. To post to this group, send email to sh...@googlegroups.com. To unsubscribe from this group, send email to shlug+un...@googlegroups.com. For more options, visit this group at https://groups.google.com/d/forum/shlug?hl=zh-CN
---
您收到此邮件是因为您订阅了 Google 网上论坛的“Shanghai Linux User Group”群组。
要退订此群组并停止接收此群组的电子邮件,请发送电子邮件到shlug+unsubscribe@googlegroups.com
要查看更多选项,请访问 https://groups.google.com/d/optout
--

Regards,
David

--
-- You received this message because you are subscribed to the Google Groups Shanghai Linux User Group group. To post to this group, send email to sh...@googlegroups.com. To unsubscribe from this group, send email to shlug+un...@googlegroups.com. For more options, visit this group at https://groups.google.com/d/forum/shlug?hl=zh-CN
---
您收到此邮件是因为您订阅了Google网上论坛上的“Shanghai Linux User Group”群组。
要退订此群组并停止接收此群组的电子邮件,请发送电子邮件到shlug+unsubscribe@googlegroups.com
要查看更多选项,请访问https://groups.google.com/d/optout

shang jiyu

unread,
Sep 26, 2015, 10:55:10 PM9/26/15
to Shanghai Linux User Group
加个 Keeplived 防止单点

在 2015年9月26日星期六 UTC+8下午2:40:47,蒲肖肖写道:

Weibin Li

unread,
Sep 30, 2015, 4:21:42 AM9/30/15
to sh...@googlegroups.com
上ats吧,然后做个keepalived, lvs也可以。

Nginx是在一台机器上吧,一个Master进程,若干个Worker进程,
我想要的是两台机器互为备份。

HTTP的服务,一般都用Nginx吧。还真不知道其它类型的服务用什么工具。


> 要退订此群组并停止接收此群组的电子邮件,请发送电子邮件到shlug+un...@googlegroups.com

> 要查看更多选项,请访问https://groups.google.com/d/optout

--
-- You received this message because you are subscribed to the Google Groups Shanghai Linux User Group group. To post to this group, send email to sh...@googlegroups.com. To unsubscribe from this group, send email to shlug+un...@googlegroups.com. For more options, visit this group at https://groups.google.com/d/forum/shlug?hl=zh-CN
---
您收到此邮件是因为您订阅了 Google 网上论坛的“Shanghai Linux User Group”群组。
要退订此群组并停止接收此群组的电子邮件,请发送电子邮件到shlug+un...@googlegroups.com
要查看更多选项,请访问 https://groups.google.com/d/optout
--

Regards,
David

--
-- You received this message because you are subscribed to the Google Groups Shanghai Linux User Group group. To post to this group, send email to sh...@googlegroups.com. To unsubscribe from this group, send email to shlug+un...@googlegroups.com. For more options, visit this group at https://groups.google.com/d/forum/shlug?hl=zh-CN
---
您收到此邮件是因为您订阅了Google网上论坛上的“Shanghai Linux User Group”群组。
要退订此群组并停止接收此群组的电子邮件,请发送电子邮件到shlug+un...@googlegroups.com
要查看更多选项,请访问https://groups.google.com/d/optout

--
-- You received this message because you are subscribed to the Google Groups Shanghai Linux User Group group. To post to this group, send email to sh...@googlegroups.com. To unsubscribe from this group, send email to shlug+un...@googlegroups.com. For more options, visit this group at https://groups.google.com/d/forum/shlug?hl=zh-CN
---
您收到此邮件是因为您订阅了Google网上论坛上的“Shanghai Linux User Group”群组。
要退订此群组并停止接收此群组的电子邮件,请发送电子邮件到shlug+un...@googlegroups.com
要查看更多选项,请访问https://groups.google.com/d/optout



--
-----------------------------------------------------------
Shanghai Linux User Group
Jacky.Li    
-----------------------------------------------------------
Reply all
Reply to author
Forward
0 new messages