Age | Commit message (Collapse) | Author |
|
Signed-off-by: Daniil Baturin <daniil@baturin.org>
|
|
Replacing with an updated patch.
This reverts commit 461db303287b4f838b68b120a9656c9fc31070b2.
|
|
Signed-off-by: Daniil Baturin <daniil@baturin.org>
|
|
Add the ability to run a user defined script to determine wan load-balancing interface health
includes sample http test (scripts/http_test.pl). Configuration will look as follows:
wan {
interface-health eth0 {
nexthop 10.3.0.1
test 1 {
test-script /tmp/http_test.pl
type user-defined
}
}
interface-health eth1 {
nexthop 10.3.0.1
test 1 {
test-script /tmp/http_test.pl
type user-defined
}
}
With corresponding output:
vyatta@vyatta# run show wan-load-balance
Interface: eth0
Status: active
Last Status Change: Wed Mar 30 19:03:59 2011
+Test: user Script: /tmp/http_test.pl
Last Interface Success: 0s
Last Interface Failure: n/a
# Interface Failure(s): 0
Interface: eth1
Status: failed
Last Status Change: Wed Mar 30 19:03:59 2011
-Test: user Script: /tmp/http_test.pl
Last Interface Success: n/a
Last Interface Failure: 0s
# Interface Failure(s): 52
Scripts returns 0 for success, non-zero for failure.
|
|
"enable-local-traffic". This preserves previous behavior (i.e. no balancing of local traffic) by default, but can be enable
via the configuration node.
Conflicts:
scripts/vyatta-wanloadbalance.pl
src/lbdecision.cc
|
|
also supports additional command to disable balancing of locally sourced traffic
"disable-local-traffic"
Conflicts:
src/lbdecision.cc
|
|
|
|
layout. modified op mode command to
provide indication on multiple target success/failures.
|
|
user can now specify a sequence of targets to test (ordered by rule number). The first success satifies the success
criteria for the test and no further tests will be performed on the interface for this period.
Additional test types can be coded and added to the target framework.
configuration has changed as a result of the rework.
|
|
configurable via conf mode. environment variables identify interface and new state.
|
|
global setting.
Conflicts:
src/lbdecision.cc
|
|
|
|
Default configuration is to disable this feature.
|
|
after changing rule set. this simplifies the application of the rules to
the mangle table.
|
|
rule. This rule will only direct traffic to a single active interface, on failure of the ping target traffice will be directed out an alternate interface.
note: the one todo item for this feature is to add "stickiness" of an active interface. wlb re-evaluates all rules on an interface state change and this may cause the interface to change for failover mode. supporting this mode requires a less than trivial rewrite of the wlb decision code.:
|
|
implicit source nat rules.
This configuration element applies to the complete wan load balance configuration.
|
|
rule. For an exclusion the user does not need to configure interfaces for that rule to balance across.
|
|
inbound interface now (although
this isn't currently required).
|
|
Change license on all files from VPL 1.0 to GPLv2
for Glendale.
|
|
(simplified) init script so that rules table is properly cleaned
up on exit of wlb. fixed a couple cli structural related issues.
|
|
Signed-off-by: Michael Larson <slioch@eng-140.vyatta.com>
|