b****n 发帖数: 18 | 1 有一个网站托在ec2上, http://yuzhile.info/
最前面用两台ec2做load balancer。
本来想用heart beat 做这两台lb之间的fail over.
但是不巧这两个ec2不在同一个局域网里, 而heart beat的官方文档里面似乎特别强调
必须是同一个局域网才可以配置好。
现在卡在这里,两个lb其实只有一个在跑,要是这个挂了,还得手动去切换。
有哪位牛人有这方面的经验,烦请介绍下? |
a**********k 发帖数: 1953 | 2 If two elastic load balancers have to be in the same LAN for heart-beat
(They can only do layer 2 heart-beat? layer 3 or above heart-beat would
not have that limitation) to work, you may have to set up two ec2 in
the same subnet. Otherwise you can write scripts using their elastic
load balancing API( SOAP etc) to automate the failure detection and
switch over.
【在 b****n 的大作中提到】 : 有一个网站托在ec2上, http://yuzhile.info/ : 最前面用两台ec2做load balancer。 : 本来想用heart beat 做这两台lb之间的fail over. : 但是不巧这两个ec2不在同一个局域网里, 而heart beat的官方文档里面似乎特别强调 : 必须是同一个局域网才可以配置好。 : 现在卡在这里,两个lb其实只有一个在跑,要是这个挂了,还得手动去切换。 : 有哪位牛人有这方面的经验,烦请介绍下?
|
j*a 发帖数: 14423 | 3 建个gre tunnel,在tunnel上做heartbeat
【在 b****n 的大作中提到】 : 有一个网站托在ec2上, http://yuzhile.info/ : 最前面用两台ec2做load balancer。 : 本来想用heart beat 做这两台lb之间的fail over. : 但是不巧这两个ec2不在同一个局域网里, 而heart beat的官方文档里面似乎特别强调 : 必须是同一个局域网才可以配置好。 : 现在卡在这里,两个lb其实只有一个在跑,要是这个挂了,还得手动去切换。 : 有哪位牛人有这方面的经验,烦请介绍下?
|
b****n 发帖数: 18 | 4 AWS 似乎推出了他们的load balancer。谢谢提醒。
【在 a**********k 的大作中提到】 : If two elastic load balancers have to be in the same LAN for heart-beat : (They can only do layer 2 heart-beat? layer 3 or above heart-beat would : not have that limitation) to work, you may have to set up two ec2 in : the same subnet. Otherwise you can write scripts using their elastic : load balancing API( SOAP etc) to automate the failure detection and : switch over.
|
b****n 发帖数: 18 | 5 孤陋了,之前都不知道有这一茬。google了下,似乎是一个可行的方法。
能否再给些详细的例子?多谢。
【在 j*a 的大作中提到】 : 建个gre tunnel,在tunnel上做heartbeat
|