3 月 012014
 

lvs的设置:
查看是ipvsadm –list –timeout, 比如我的机器就会返回如下结果:
# ipvsadm –list –timeout
Timeout (tcp tcpfin udp): 900 120 300

这就表明我的tcp session的timeout时间是7200秒。
设置timeout:
ipvsadm –set  1800 120 300

这个值如果设置太小,你的client将会收到 connection reset by peer此类的错误提示。

 Posted by at 下午 11:46

 Leave a Reply

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

(required)

(required)

这个站点使用 Akismet 来减少垃圾评论。了解你的评论数据如何被处理

This website stores cookies on your computer. These cookies are used to provide a more personalized experience and to track your whereabouts around our website in compliance with the European General Data Protection Regulation. If you decide to to opt-out of any future tracking, a cookie will be setup in your browser to remember this choice for one year.

Accept or Deny