On 02/18/2017 08:18 PM, Daniel Jung
wrote:
call it convoluted, but i have quite the setup for syslogging reliably with low i/o. i use fedora, so systemd-journald is the default logging mechanism. i disable local journald logging and tell journald to forward logs to syslog. then i use RELP (reliable event log processing), a "plug-in" for rsyslog, to forward syslog messages over TCP to a load balanced VIP of receivers. RELP uses TCP, and local memory-to-disk buffers for spillover capacity when connectivity fails and messages queue up. messages that are queued up, and dont FIFO out, are sent once connectivity is restored. the receivers take in the messages, and then use ommysql to
insert logs into a database. memory tweaking on the database side
keeps disk i/o low and out of the critical path, so that i/o does
not bottleneck things. with mariadb and galera, i have fully
replicated multimaster databases accepting logs from my fully
replicated multimaster ldap instances, among other services. |