Opened 5 years ago

Last modified 5 years ago

#570 new enhancement

LVS plugin doesn't support fwmark balancing

Reported by: svenx Owned by: nobody
Priority: low Milestone:
Component: plugins Version:
Severity: minor Keywords: LVS, fwmark
Cc:

Description

The cps_ LVS plugin only supports statistics for virtual IPs/ports. Installations that base their balancing on fwmarks cannot use this plugin to extract statistics. Updating the plugin shouldn't be too much trouble.

Example output when fwmark balancing is used:

# ipvsadm -L
IP Virtual Server version 1.2.1 (size=4096)
Prot LocalAddress:Port Scheduler Flags
  -> RemoteAddress:Port           Forward Weight ActiveConn InActConn
FWM  1024 sh
  -> 10.0.0.80:9000         Route   1      139        313
  -> 10.0.0.81:9000         Route   1      155        373
FWM  1025 sh
FWM  1026 sh
  -> 10.0.0.90:9000         Route   1      23          68
  -> 10.0.0.91:9000         Route   1      38          84

Note: fwmark 1025 has no available backends.

Change History (1)

comment:1 Changed 5 years ago by svenx

Of course that should be output with --stats. This setup uses direct routing (no return packets):

# /sbin/ipvsadm -L --stats
IP Virtual Server version 1.2.1 (size=4096)
Prot LocalAddress:Port               Conns   InPkts  OutPkts  InBytes OutBytes
  -> RemoteAddress:Port
FWM  1024                         1403674 18346767        0    2124M        0
  -> 10.0.0.80:9000                703236  9201575        0    1065M        0
  -> 10.0.0.81:9000                700438  9145192        0    1059M        0
FWM  1025                               0        0        0        0        0
FWM  1026                           49390    52847        0    5934K        0
  -> 10.0.0.90:9000                 23487    25843        0    2842K        0
  -> 10.0.0.91:9000                 25903    27004        0    3092K        0
Note: See TracTickets for help on using tickets.