Merge pull request 'Use a disk assisted queue for rsyslog' (#56) from rsyslog_queues into master
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: Aurore/ansible#56
This commit is contained in:
commit
ceaf75f0ad
4 changed files with 38 additions and 0 deletions
3
group_vars/routeur.yml
Normal file
3
group_vars/routeur.yml
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
---
|
||||||
|
rsyslog_high_density: true
|
||||||
|
...
|
12
hosts
12
hosts
|
@ -503,6 +503,18 @@ pacaterie_unifi
|
||||||
###############################################################################
|
###############################################################################
|
||||||
# Groups by service
|
# Groups by service
|
||||||
|
|
||||||
|
[routeur]
|
||||||
|
routeur-fleming.adm.auro.re
|
||||||
|
routeur-fleming-backup.adm.auro.re
|
||||||
|
routeur-pacaterie.adm.auro.re
|
||||||
|
routeur-pacaterie-backup.adm.auro.re
|
||||||
|
routeur-edc.adm.auro.re
|
||||||
|
routeur-edc-backup.adm.auro.re
|
||||||
|
routeur-gs.adm.auro.re
|
||||||
|
routeur-gs-backup.adm.auro.re
|
||||||
|
routeur-rives.adm.auro.re
|
||||||
|
routeur-rives-backup.adm.auro.re
|
||||||
|
|
||||||
[ldap_replica:children]
|
[ldap_replica:children]
|
||||||
ldap_replica_fleming
|
ldap_replica_fleming
|
||||||
ldap_replica_pacaterie
|
ldap_replica_pacaterie
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
---
|
---
|
||||||
rsyslog_outputs: []
|
rsyslog_outputs: []
|
||||||
|
rsyslog_high_density: false
|
||||||
...
|
...
|
||||||
|
|
|
@ -91,6 +91,28 @@ ruleset(name="sendLogsToRemote") {
|
||||||
port="{{ output.port }}"
|
port="{{ output.port }}"
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
queue.type="LinkedList"
|
||||||
|
queue.spoolDirectory="/var/spool/rsyslog"
|
||||||
|
queue.fileName="queue_{{ loop.index }}"
|
||||||
|
queue.saveOnShutdown="on"
|
||||||
|
|
||||||
|
{% if rsyslog_high_density %}
|
||||||
|
queue.highWatermark="20000"
|
||||||
|
queue.lowWatermark="5000"
|
||||||
|
queue.checkpointInterval="10000"
|
||||||
|
queue.maxDiskSpace="4g"
|
||||||
|
{% else %}
|
||||||
|
queue.highWatermark="500"
|
||||||
|
queue.lowWatermark="100"
|
||||||
|
queue.checkpointInterval="200"
|
||||||
|
queue.syncqueuefiles="on"
|
||||||
|
queue.maxDiskSpace="500m"
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
|
action.resumeRetryCount="-1"
|
||||||
|
action.reportSuspension="on"
|
||||||
|
action.reportSuspensionContinuation="on"
|
||||||
|
|
||||||
{% if loop.index > 1 and output.fallback %}
|
{% if loop.index > 1 and output.fallback %}
|
||||||
action.execOnlyWhenPreviousIsSuspended="on"
|
action.execOnlyWhenPreviousIsSuspended="on"
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
Loading…
Reference in a new issue