我想问一下,lvs能不能实现对多个端口的状态保持,就是比如我 对80和443都做了负载均衡,那么能不能根据算法 第一次访问80的session ,在没有超时的情况下,会选择相同主机的443端口?
xpu
周四, 2011-10-13 09:11
Permalink
应该是可以的吧,ipvsadm -a service_addr:port -r server_addr:port,这样是可以把80端口的包都redirect到443端口的,至于同时redirect到两个端口,没有尝试过 例如: ipvsadm -a 202.143.44.67:80 -r 192.168.2.1:80 -s rr ipvsadm -a 202.143.44.67:80 -r 192.168.2.1:443 -s rr 如果是按规则来做rr的话,理论上是可以同时redirect到80和443的,但没有做过相应的实验,所以不保证这个结论正确
Anonymous (没有被验证)
周六, 2012-03-17 10:06
ipvsadm -a 202.143.44.67:80 -r 192.168.2.1:80 -s rr ipvsadm -a 202.143.44.67:80 -r 192.168.2.1:443 -s rr 下边的一条前后端口必须保持一致 可以另外加A 但是前后端口必须保持一致才行不然做不了
周三, 2014-03-05 19:35
Knocked my socks off with kneoledgw!
周四, 2014-03-06 04:05
I came, I read this article, I coeqreund.
周四, 2014-05-01 11:02
insurance auto bad credit auto insurance qutoe NJ car insurance low cost life insurance rates
周五, 2014-05-30 07:13
Cool! That's a clever way of loinkog at it!
周一, 2014-05-12 21:20
online car insurance rates cheap viagra michigan auto insurance online auto insurance quotes cheapest auto insurance
周三, 2014-10-29 09:21
texas insurance car car insure cheap generic cialis insurance quotes viagra for sale
周四, 2014-12-11 12:10
Your website has to be the eltiorencc Swiss army knife for this topic.
周五, 2014-12-12 15:10
It's a real plrseuae to find someone who can think like that
周二, 2014-03-04 08:46
You saved me a lot of haslse just now.
There are currently 0 users online.
xpu
周四, 2011-10-13 09:11
Permalink
应该是可以的吧,ipvsa
应该是可以的吧,ipvsadm -a service_addr:port -r server_addr:port,这样是可以把80端口的包都redirect到443端口的,至于同时redirect到两个端口,没有尝试过
例如:
ipvsadm -a 202.143.44.67:80 -r 192.168.2.1:80 -s rr
ipvsadm -a 202.143.44.67:80 -r 192.168.2.1:443 -s rr
如果是按规则来做rr的话,理论上是可以同时redirect到80和443的,但没有做过相应的实验,所以不保证这个结论正确
Anonymous (没有被验证)
周六, 2012-03-17 10:06
Permalink
这个做法不可以
ipvsadm -a 202.143.44.67:80 -r 192.168.2.1:80 -s rr
ipvsadm -a 202.143.44.67:80 -r 192.168.2.1:443 -s rr
下边的一条前后端口必须保持一致
可以另外加A 但是前后端口必须保持一致才行不然做不了
Anonymous (没有被验证)
周三, 2014-03-05 19:35
Permalink
CzDpdpzGBxrbmgPKfi
Knocked my socks off with kneoledgw!
Anonymous (没有被验证)
周四, 2014-03-06 04:05
Permalink
GVLGicKPviJ
I came, I read this article, I coeqreund.
Anonymous (没有被验证)
周四, 2014-05-01 11:02
Permalink
GBEkUSyrVPv
insurance auto bad credit auto insurance qutoe NJ car insurance low cost life insurance rates
Anonymous (没有被验证)
周五, 2014-05-30 07:13
Permalink
LnWlEpGfnQMXMEfPOd
Cool! That's a clever way of loinkog at it!
Anonymous (没有被验证)
周一, 2014-05-12 21:20
Permalink
NmyfPbWznZ
online car insurance rates cheap viagra michigan auto insurance online auto insurance quotes cheapest auto insurance
Anonymous (没有被验证)
周三, 2014-10-29 09:21
Permalink
LMHbZiIxdtLErHoTChp
texas insurance car car insure cheap generic cialis insurance quotes viagra for sale
Anonymous (没有被验证)
周四, 2014-12-11 12:10
Permalink
uluxXJCOANUZvlhctpIJ
Your website has to be the eltiorencc Swiss army knife for this topic.
Anonymous (没有被验证)
周五, 2014-12-12 15:10
Permalink
GcOJIIHHxCAh
It's a real plrseuae to find someone who can think like that
Anonymous (没有被验证)
周二, 2014-03-04 08:46
Permalink
UHLysmoJDoAAf
You saved me a lot of haslse just now.