You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When {{ site.product.short_name }} starts up, it always connects to the primary server first. In the failover() option there is a possibility to customize the failover modes.
2
+
3
+
Depending on how you set the failback() option, {{ site.product.short_name }} behaves as follows:
4
+
5
+
-**round-robin mode**: If failback() is not set, {{ site.product.short_name }} does not attempt to return to the primary server even if it becomes available. In case the failover server fails, {{ site.product.short_name }} attempts to connect the next failover server in the list in round-robin fashion.
6
+
7
+
Example: round-robin mode
8
+
9
+
In the following example {{ site.product.short_name }} handles the logservers in round-robin fashion if the primary logserver becomes inaccessible (therefore failback() option is not set).
- **failback mode**: If failback() is set, {{ site.product.short_name }} attempts to return to the primary server.
22
+
23
+
**WARNING:** The failback() option works properly only for TCP-based connections; do not use it with the connectionless UDP protocol.
24
+
{: .notice--warning}
25
+
26
+
After {{ site.product.short_name }} connects a secondary server during a failover, it sends a probe every tcp-probe-interval() seconds towards the primary server. If the primary logserver responds with a TCP ACK packet, the probe is successful. When the number of successful probes reaches the value set in the successful-probes-required() option, {{ site.product.short_name }} tries to connect the primary server using the last probe.
27
+
28
+
**NOTE:** {{ site.product.short_name }} always waits for the result of the last probe before sending the next message. So if one connection attempt takes longer than the configured interval, that is, it waits for connection time out, you may experience longer intervals between actual probes.
29
+
{: .notice--info}
30
+
31
+
Example: failback mode
32
+
33
+
In the following example {{ site.product.short_name }} attempts to return to the primary logserver, as set in the failback() option: it will check if the server is accessible every tcp-probe-interval() seconds, and reconnect to the primary logserver after three successful connection attempts.
Copy file name to clipboardExpand all lines: _includes/doc/admin-guide/options/failover.md
+30-71Lines changed: 30 additions & 71 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,93 +4,37 @@
4
4
3.17 and later. For details about how client-side failover works, see
5
5
Client-side failover.
6
6
7
-
### servers()
8
-
9
-
| Type: | list of IP addresses and fully-qualified domain names|
10
-
| Default: | empty |
11
-
12
-
*Description:* Specifies a secondary destination server where log messages are sent if the primary server becomes inaccessible. To list several failover servers, separate the address of the servers with comma. By default, {{ site.product.short_name }} waits for the a server before switching to the next failover server is set in the time-reopen() option.
13
-
If failback() is not set, {{ site.product.short_name }} does not attempt to return to the primary server even if it becomes available. In case the failover server fails, {{ site.product.short_name }} attempts to connect the next failover server in the list in round-robin fashion.
The failover servers must be accessible on the same port as the primary server.
17
-
{: .notice--warning}
7
+
failover() has the following sub-options:
18
8
19
9
### failback()
20
10
21
-
*Description:* Available only in {{ site.product.name }} version 3.17 and later.
22
-
23
-
When {{ site.product.short_name }} starts up, it always connects to the primary
24
-
server first. In the failover() option there is a possibility to
25
-
customize the failover modes.
26
-
Depending on how you set the failback() option, {{ site.product.short_name }}
27
-
behaves as follows:
28
-
29
-
-**round-robin mode**: If failback() is not set, {{ site.product.short_name }} does not attempt to return to the primary server even if it becomes available. In case the failover server fails, {{ site.product.short_name }} attempts to connect the next failover server in the list in round-robin fashion.
30
-
31
-
Example: round-robin mode
32
-
33
-
In the following example {{ site.product.short_name }} handles the logservers in round-robin fashion if the primary logserver becomes inaccessible (therefore failback() option is not set).
{% include doc/admin-guide/options/failback-modes.md %}
45
12
46
-
- **failback mode**: If failback() is set, {{ site.product.short_name }} attempts to return to the primary server.
13
+
The above described valid failback() sub-option defaults are:
47
14
48
-
After {{ site.product.short_name }} connects a secondary server during a failover, it sends a probe every tcp-probe-interval() seconds towards the primary server. If the primary logserver responds with a TCP ACK packet, the probe is successful. When the number of successful probes reaches the value set in the successful-probes-required() option, {{ site.product.short_name }} tries to connect the primary server using the last probe.
15
+
#### tcp-probe-interval()
49
16
50
-
**NOTE:** {{ site.product.short_name }} always waits for the result of the last probe before sending the next message. So if one connection attempt takes longer than the configured interval, that is, it waits for connection time out, you may experience longer intervals between actual probes.
51
-
{: .notice--info}
17
+
|Type:| integer|
18
+
|Default:| 60|
52
19
53
-
Example: failback mode
20
+
#### successful-probes-required()
54
21
55
-
In the following example {{ site.product.short_name }} attempts to return to the primary logserver, as set in the failback() option: it will check if the server is accessible every tcp-probe-interval() seconds, and reconnect to the primary logserver after three successful connection attempts.
56
-
57
-
```config
58
-
destination d_network_2 {
59
-
network(
60
-
"primary-server.com"
61
-
port(601)
62
-
failover(
63
-
64
-
servers("failover-server1", "failover-server2")
65
-
failback(
66
-
successful-probes-required()
67
-
tcp-probe-interval()
68
-
)
69
-
)
70
-
);
71
-
};
72
-
```
73
-
74
-
Default value for tcp-probe-interval(): 60 seconds
75
-
76
-
Default value for successful-probes-required(): 3
77
-
78
-
**NOTE:** This option is not available for the connection-less UDP protocol,
79
-
because in this case the client does not detect that the destination
80
-
becomes inaccessible.
81
-
{: .notice--info}
22
+
| Type:| integer|
23
+
|Default:| 3|
82
24
83
25
#### Example: Specifying failover servers for syslog() destinations
84
26
85
27
The following example specifies two failover servers for a simple
| Type: | list of IP addresses and fully-qualified domain names|
65
+
| Default: | empty |
66
+
67
+
*Description:* Specifies a secondary destination server where log messages are sent if the primary server becomes inaccessible. To list several failover servers, separate the address of the servers with comma. By default, {{ site.product.short_name }} waits for the a server before switching to the next failover server is set in the time-reopen() option.
68
+
If failback() is not set, {{ site.product.short_name }} does not attempt to return to the primary server even if it becomes available. In case the failover server fails, {{ site.product.short_name }} attempts to connect the next failover server in the list in round-robin fashion.
Copy file name to clipboardExpand all lines: doc/_admin-guide/090_Global_options/000_Global_options.md
+10-10Lines changed: 10 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -331,6 +331,15 @@ driver.
331
331
332
332
{% include doc/admin-guide/options/send-time-zone.md %}
333
333
334
+
## so-passcred()
335
+
336
+
|Accepted values:|`yes`, `no`|
337
+
|Default: |`yes`|
338
+
339
+
*Description:* Enable {{ site.product.short_name }} to collect credential
340
+
information (that is, the `PID`, user ID, and group of the sender process)
341
+
for messages received using UNIX domain sockets.
342
+
334
343
## stats()
335
344
336
345
Available in {{ site.product.short_name }} 4.1 and later versions, introduced by Axoflow.
@@ -422,16 +431,7 @@ log messages. Set to **0** to disable the STATS messages.
422
431
**NOTE:** If a lower value is set to max-dynamics() (or, any limiting value, if this option has not been configured before) and {{ site.product.short_name }} is restarted, the changes are only applied after freq() time has passed. That is, the previously allocated dynamic clusters are only removed after this time.
423
432
{: .notice--info}
424
433
425
-
## so-passcred()
426
-
427
-
|Accepted values:|`yes`, `no`|
428
-
|Default: |`yes`|
429
-
430
-
*Description:* Enable {{ site.product.short_name }} to collect credential
431
-
information (that is, the `PID`, user ID, and group of the sender process)
0 commit comments