亚洲av成人无遮挡网站在线观看,少妇性bbb搡bbb爽爽爽,亚洲av日韩精品久久久久久,兔费看少妇性l交大片免费,无码少妇一区二区三区

  免費注冊 查看新帖 |

Chinaunix

  平臺 論壇 博客 文庫
最近訪問板塊 發(fā)新帖
查看: 2969 | 回復: 4
打印 上一主題 下一主題

LVS集群問題,緊急。。在線等。。 [復制鏈接]

論壇徽章:
0
跳轉(zhuǎn)到指定樓層
1 [收藏(0)] [報告]
發(fā)表于 2015-03-15 20:21 |只看該作者 |倒序瀏覽
本帖最后由 心若寒江雪 于 2015-03-15 20:33 編輯

環(huán)境描述:
VIP01:192.168.10.81
RIP01:192.168.10.50
RIP02:192.168.10.51
HTTP_GET的方式

VIP02:192.168.10.82
RIP01:192.168.10.58
RIP02:192.168.10.58
TCP_CHECK的方式


每天機器上都有一個Nginx和一個Tomcat,Nginx的80端口接收請求,之后轉(zhuǎn)發(fā)到本機Tomcat的8080端口

問題描述:
我想通過HTTP_GET的方式監(jiān)控VIP01后端realserver的一個jsp鏈接,達到整體健康檢查的目的,但是重啟Keepalive的時候發(fā)現(xiàn)VIP01僅僅有一臺realserver在線上,并且啟動日志里面也沒有VIP01的啟動日志,而只有VIP02的啟動日志
  1. Mar 15 20:18:19 localhost Keepalived_vrrp: Registering gratutious ARP shared channel
  2. Mar 15 20:18:19 localhost Keepalived_healthcheckers: Configuration is using : 17443 Bytes
  3. Mar 15 20:18:19 localhost Keepalived_vrrp: Opening file '/etc/keepalived/keepalived.conf'.
  4. Mar 15 20:18:19 localhost Keepalived_vrrp: Configuration is using : 64040 Bytes
  5. Mar 15 20:18:19 localhost Keepalived_vrrp: Using LinkWatch kernel netlink reflector...
  6. Mar 15 20:18:19 localhost Keepalived_vrrp: VRRP_Instance(VI_1) Entering BACKUP STATE
  7. Mar 15 20:18:19 localhost Keepalived_vrrp: VRRP sockpool: [ifindex(2), proto(112), fd(11,12)]
  8. Mar 15 20:18:19 localhost Keepalived_healthcheckers: Using LinkWatch kernel netlink reflector...
  9. Mar 15 20:18:19 localhost Keepalived_healthcheckers: Activating healtchecker for service [192.168.10.58]:80
  10. Mar 15 20:18:19 localhost Keepalived_healthcheckers: Activating healtchecker for service [192.168.10.59]:80
復制代碼
  1. [root@lvs02 ~]# genhash -s 192.168.10.51 -p 80 -u /js/lib/jquery.cookie.min.js         
  2. MD5SUM = 1aa3a95f71e58af80e238b9139e592a0
復制代碼
  1. IP Virtual Server version 1.2.1 (size=4096)
  2. Prot LocalAddress:Port Scheduler Flags
  3.   -> RemoteAddress:Port           Forward Weight ActiveConn InActConn
  4. TCP  192.168.10.82:80 wrr persistent 60
  5.   -> 192.168.10.59:80             Route   3      0          0
  6.   -> 192.168.10.58:80             Route   3      0          0
  7. TCP  192.168.10.81:80 wrr persistent 60
  8.   -> 192.168.10.50:80             Route   3      0          0
復制代碼
  1. ! Configuration File for keepalived

  2. global_defs {
  3.    notification_email {
  4.      xxx@xxx.xx
  5.      xxx@xx.xxx
  6.    }
  7.    notification_email_from xx.xx@xx.xx
  8.    smtp_server 127.0.0.1
  9.    router_id LVS_DEVEL
  10. }

  11. # VIP1
  12. vrrp_instance VI_1 {
  13.     state BACKUP
  14.     interface eth0
  15.     virtual_router_id 51
  16.     priority 99
  17.     advert_int 1
  18.     authentication {
  19.         auth_type PASS
  20.         auth_pass 1111
  21.     }
  22.     virtual_ipaddress {
  23.         192.168.10.81
  24.         192.168.10.82
  25.     }
  26. }

  27. virtual_server 192.168.10.81 80 {
  28.     delay_loop 6
  29.     lb_algo wrr
  30.     lb_kind DR
  31.     persistence_timeout 60
  32.     protocol TCP

  33.     real_server 192.168.10.50 80 {
  34.         weight 3
  35.         HTTP_GET{
  36.             url{
  37.             path /js/lib/jquery.cookie.min.js
  38.             digest 1aa3a95f71e58af80e238b9139e592a0
  39.             }
  40.             connect_timeout 3
  41.             nb_get_retry 3
  42.             delay_before_retry 3
  43.         }
  44.     }
  45.     real_server 192.168.10.51 80 {
  46.         weight 3
  47.         HTTP_GET{
  48.             url{
  49.             path /js/lib/jquery.cookie.min.js
  50.             digest 1aa3a95f71e58af80e238b9139e592a0
  51.             }
  52.             connect_timeout 3
  53.             nb_get_retry 3
  54.             delay_before_retry 3
  55.         }
  56.      }
  57. }

  58. virtual_server 192.168.10.82 80 {
  59.     delay_loop 6
  60.     lb_algo wrr
  61.     lb_kind DR
  62.     persistence_timeout 60
  63.     protocol TCP

  64.     real_server 192.168.10.58 80 {
  65.         weight 3
  66.         TCP_CHECK {
  67.         connect_timeout 10
  68.         nb_get_retry 3
  69.         delay_before_retry 3
  70.         connect_port 80
  71.         }
  72.     }
  73.     real_server 192.168.10.59 80 {
  74.         weight 3
  75.         TCP_CHECK {
  76.         connect_timeout 10
  77.         nb_get_retry 3
  78.         delay_before_retry 3
  79.         connect_port 80
  80.         }
  81.      }
  82. }
復制代碼
請各位大牛幫幫忙看看,那里不對,我看了好久。。。
沒看明白。。

論壇徽章:
0
2 [報告]
發(fā)表于 2015-03-15 20:29 |只看該作者
自己頂一下吧

論壇徽章:
0
3 [報告]
發(fā)表于 2015-03-15 22:24 |只看該作者
沒人理我呀。。。。

論壇徽章:
0
4 [報告]
發(fā)表于 2015-03-15 22:50 |只看該作者
明天在等。。睡了。。

論壇徽章:
0
5 [報告]
發(fā)表于 2015-04-24 08:45 |只看該作者
飄零雪 路過 幫 頂一下。!
您需要登錄后才可以回帖 登錄 | 注冊

本版積分規(guī)則 發(fā)表回復

  

北京盛拓優(yōu)訊信息技術(shù)有限公司. 版權(quán)所有 京ICP備16024965號-6 北京市公安局海淀分局網(wǎng)監(jiān)中心備案編號:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年舉報專區(qū)
中國互聯(lián)網(wǎng)協(xié)會會員  聯(lián)系我們:huangweiwei@itpub.net
感謝所有關(guān)心和支持過ChinaUnix的朋友們 轉(zhuǎn)載本站內(nèi)容請注明原作者名及出處

清除 Cookies - ChinaUnix - Archiver - WAP - TOP