The redundant-load-balance Statement
Syntax
redundant-load-balance {
[ statements ]
}
The redundant-load-balance
section operates as a combination of the
redundant and load-balance
sections.
- [ statements ]
-
One or more
unlang
commands.If the selected statement succeeds, then the server stops processing the
redundant-load-balance
section. If, however, that statement fails, then the next statement in the list is chosen (wrapping around to the top). This process continues until either one statement succeeds or all of the statements have failed.All of the statements in the list should be modules, and of the same type (e.g.,
ldap
orsql
). All of the statements in the list should behave identically, otherwise different requests will be processed through different modules and will give different results.
Example
redundant-load-balance &User-Name {
sql1
sql2
sql3
}