Debian Codegraph @

doc/antora/modules/unlang/pages/redundant-load-balance.adoc

raw
1 = The redundant-load-balance Statement
2
3 .Syntax
4 [source,unlang]
5 ----
6 redundant-load-balance {
7 [ statements ]
8 }
9 ----
10
11 The `redundant-load-balance` section operates as a combination of the
12 xref:redundant.adoc[redundant] and xref:load-balance.adoc[load-balance]
13 sections.
14
15 [ statements ]:: One or more `unlang` commands.
16 +
17 If the selected statement succeeds, then the server stops processing
18 the `redundant-load-balance` section. If, however, that statement fails,
19 then the next statement in the list is chosen (wrapping around to the
20 top). This process continues until either one statement succeeds or all
21 of the statements have failed.
22 +
23 All of the statements in the list should be modules, and of the same
24 type (e.g., `ldap` or `sql`). All of the statements in the list should
25 behave identically, otherwise different requests will be processed
26 through different modules and will give different results.
27
28 .Example
29 [source,unlang]
30 ----
31 redundant-load-balance &User-Name {
32 sql1
33 sql2
34 sql3
35 }
36 ----
37
38 // Copyright (C) 2020 Network RADIUS SAS. Licenced under CC-by-NC 4.0.
39 // Development of this documentation was sponsored by Network RADIUS SAS.