Skip to content
Snippets Groups Projects
Commit 130335e2 authored by Thomas Bellman's avatar Thomas Bellman
Browse files

Logserver: Allow many TCP sessions.

We would like to allow our clients to send their logs over TCP for
more reliable delivery, and so they will be able to detect if the
central log server is not running.  By default, the imtcp input
module only allows 200 concurrent connections, though, which is a
bit small.  Increase that to 4096, which should be enough for a
long time for NSC (at least as long as worker nodes in our compute
clusters don't send logs directly, but relay via a cluster head
node).

We also need to increase the maximum number of open files (i.e.
the 'ulimit -n' limit) for this to work.
parent 165203d4
Branches
No related tags found
No related merge requests found
$MaxOpenFiles 6144 # Significantly larger than $InputTCPMaxSessions
$ModLoad imklog
$ModLoad imudp
$ModLoad imtcp
$ModLoad imuxsock
$UDPServerRun 514
$InputTCPMaxSessions 4096 # Sync with $MaxOpenFiles
$InputTCPServerRun 514
......
......@@ -3,6 +3,7 @@
$umask 0022
$WorkDirectory /var/lib/rsyslog
$MaxOpenFiles 6144 # Significantly larger than imtcp maxSessions
......@@ -185,7 +186,7 @@ module(load="imjournal" StateFile="imjournal.state")
## module(load="imklog") # Kernel messages comes via systemd journal
module(load="imuxsock")
module(load="imudp")
module(load="imtcp")
module(load="imtcp" maxSessions="4096") # Sync with $MaxOpenFiles
## input(type="imjournal") # imjournal does not need input()
## input(type="imklog") # imklog does not need input()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment