summaryrefslogtreecommitdiff
path: root/accel-pppd/accel-ppp.conf.5
diff options
context:
space:
mode:
authorDmitry Kozlov <xeb@mail.ru>2017-12-27 13:19:48 +0300
committerDmitry Kozlov <xeb@mail.ru>2017-12-27 13:19:53 +0300
commit1d6f68a518cd7f8cc182080b57d76ed16dc3973a (patch)
treef6ee4aa24f323191bf7b7691a0546cfb7ac571e4 /accel-pppd/accel-ppp.conf.5
parent4c746c721ed4fadc15964b725707faf753843a9d (diff)
downloadaccel-ppp-xebd-1d6f68a518cd7f8cc182080b57d76ed16dc3973a.tar.gz
accel-ppp-xebd-1d6f68a518cd7f8cc182080b57d76ed16dc3973a.zip
ipoe: implemented new load balancing mechanism
new config options: [ipoe] weight=N - global weight interface=ethX,weight=N - per-interface weight How it works: On reception of DHCPDISCOVER accel-ppp sends broadcast DHCP message to port 67 with same xid and add special vendor-specific option where encodes its current session count multipled by weight. On reception of such message accel-ppp searches session with same xid and compares weight. If received weight is less than session's weight then it terminates this session. per-interface weight=0 has special meaning as backup (fail-over) interface, f.e. it terminates session on any received weight. By default weight based load balancing is disabled. To enable need to specify global or/and per-interface weight.
Diffstat (limited to 'accel-pppd/accel-ppp.conf.5')
-rw-r--r--accel-pppd/accel-ppp.conf.54
1 files changed, 4 insertions, 0 deletions
diff --git a/accel-pppd/accel-ppp.conf.5 b/accel-pppd/accel-ppp.conf.5
index ce4550d..4b3b20a 100644
--- a/accel-pppd/accel-ppp.conf.5
+++ b/accel-pppd/accel-ppp.conf.5
@@ -295,6 +295,9 @@ Specifies default value for per-interface
.B proxy-arp
parameter.
.TP
+.BI "weight=" n
+Specifies global weight of this server (used for load balancing)
+.TP
.BI "interface=" [re:]name[,mode=L2|L3][,shared=0|1][,start=dhcpv4|up|auto]
.BI "" [,range=x.x.x.x/mask][,ifcfg=0|1]
.BI "" [,relay=x.x.x.x]
@@ -304,6 +307,7 @@ parameter.
.BI "" [,username=ifname|lua:function]
.BI "" [,ipv6=0|1]
.BI "" [,mtu=N]
+.BI "" [,weight=N]
.br
Specifies interface to listen dhcp or unclassified packets. You may specify multiple
.B interface