Debian Codegraph @

doc/antora/modules/unlang/pages/redundant.adoc

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