Failover replication mode is broken
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Rsyslog Forwarder HA Charm |
Won't Fix
|
Medium
|
Unassigned |
Bug Description
As currently implemented, failover replication mode does not work.
This apparently is related to the $ActionQueueType parameter. In commit fed1684ce5b0df4
Setting $ActionQueueType to Direct, while less performant (maybe significantly - not tested), allows this to work. $ActionQueueType's default value appears to be Direct as well, so an alternative is to remove that directive.
I'm curious if there is a better but still compatible way to fix this? But if not (or in the meantime), we may want to make the above change in order to fix the "failover" replication mode.
In general what I can see is most of the configuration we have in the charm is outdated and depricated; the way we should handle failover is quite different than what we have (it was used for version 7.x, current release is 8.x)
rsyslogd: error during parsing file /etc/rsyslog. d/40-rsyslog- imfile. conf, on or before line 8: parameter 'statefile' deprecated but accepted, consider removing or replacing it [v8.16.0 try http:// www.rsyslog. co d/40-rsyslog- imfile. conf, on or before line 13: parameter 'statefile' deprecated but accepted, consider removing or replacing it [v8.16.0 try http:// www.rsyslog. c www.rsyslog. com/e/2010 ]
m/e/2207 ]
rsyslogd: error during parsing file /etc/rsyslog.
om/e/2207 ]
rsyslogd: invalid number [v8.16.0 try http://
we currently follow https:/ /www.rsyslog. com/doc/ v7-stable/ tutorials/ failover_ syslog_ server. html
$ActionQueueDis cardSeverity info
*.* @@SERVER:PORT
$ActionExecOnly WhenPreviousIsS uspended on
& @@SERVER:PORT
<etc>
& /var/log/ localbuffer WhenPreviousIsS uspended off
$ActionExecOnly
where we should be following: https:/ /www.rsyslog. com/doc/ v8-stable/ tutorials/ failover_ syslog_ server. html
ii rsyslog 8.16.0-1ubuntu3.1 amd64 reliable system and kernel logging daemon
if($msg contains "info") then { type="omfwd" target="SERVER" port="XXX" protocol="udp") type="omfwd" target="SERVER" port="PORT" action. execOnlyWhenPre viousIsSuspende d="on") type="omfwd" target="SERVER" port="PORT" action. execOnlyWhenPre viousIsSuspende d="on") type="omfile" tag="failover" file="/ var/log/ localbuffer" action. execOnlyWhenPre viousIsSuspende d="on")
action(
action(
action(
action(
}