7月 192016
 
  1. mode health
    该模式用于健康检查,tcp层面的,只返回OK,如下:
  2. stats
    1. 通过http页面查看状态:
    2.  通过tcp socket查看状态:


      这个socket也可以是一个unix socket:(或者同时写两个都是可以的)


      使用nc也行:

      tcp(或unix模式)有很多命令可以使用
    3. 一个一般的配置

       

 

 

 

 

参考资料: http://www.ttlsa.com/linux/haproxy-study-tutorial/

 Posted by at 下午 12:12

 Leave a Reply

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

(required)

(required)

此站点使用Akismet来减少垃圾评论。了解我们如何处理您的评论数据