codership / glb

Galera Load Balancer - a simple TCP connection proxy and load-balancing library
GNU General Public License v2.0
153 stars 51 forks source link

Negative connection count in glbd status #9

Open TomiMikola opened 10 years ago

TomiMikola commented 10 years ago

After some days of running glbd without problems I'm seeing weird negative connection count values in glbd status info. The backend gives no errors in log output.

[root@glb1 ~]# service glbd status
Router:
------------------------------------------------------
        Address       :   weight   usage    map  conns
      10.1.4.88:3306  :   20.000   0.750    N/A      3
      10.1.4.87:3306  :   10.000   1.250    N/A     -5
      10.1.4.86:3306  :    1.000   0.000    N/A      0
------------------------------------------------------
Destinations: 3, total connections: -2 of 10000 max
[root@glb1 ~]# echo "10.1.4.87:3306:0" | nc 127.0.0.1 4444
Ok
[root@glb1 ~]# service glbd status
Router:
------------------------------------------------------
        Address       :   weight   usage    map  conns
      10.1.4.88:3306  :   20.000   0.667    N/A      2
      10.1.4.87:3306  :    0.000    -nan    N/A     -5
      10.1.4.86:3306  :    1.000   0.000    N/A      0
------------------------------------------------------
Destinations: 3, total connections: -3 of 10000 max
ayurchen commented 10 years ago

Must be a duplicate of #3