heartbeat-ldirectord的配置

組件:heartbeat-ldirectord---->可以讓lvs+heartbeart更好的結合

  node1.example.com 192.168.0.186
 node2.example.com  192.168.0.188
 vip 192.168.0.183
 real1 192.168.10.6
 real2 192.168.10.7

 在heartbeat的基礎上配置:
 yum install heartbeat-ldirectord
 cp /usr/share/doc/heartbeat-ldirectord-2.1.4/ldirectord.cf  /etc/ha.d/
 vim /etc/ha.d/ldirectord.cf
  autoreload=yes
  quiescent=yes 最好不啓用persistent持久連接
  virtual=192.168.0.183:80
          real=192.168.10.6:80 gate
         real=192.168.10.7:80 gate
          fallback=127.0.0.1:80 gate
         service=http
         request=".test.html"
         receive="ok"
  scheduler=wlc
  #persistent=600
  protocol=tcp
  checktype=negotiate
         checkport=80

 vim /etc/ha.d/haresources 添加
   node1.example.com 192.168.0.183 ldirectord::ldirectord.cf
 重啓heartbeat服務


 
 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章