|author||Eric Leblond <email@example.com>||2013-04-20 12:44:17 +0200|
|committer||Eric Leblond <firstname.lastname@example.org>||2013-05-21 19:57:02 +0200|
db: add ring buffer for DB query
This patch adds an optional ring buffer option which modify the way database queries are made. The main thread is only handling kernel message reading and query formatting. The SQL request is made in a separate dedicated thread. The idea is to try to avoid buffer overrun by minimizing the time requested to treat kernel message. Doing synchronous SQL request, as it was made before was causing a delay which could cause some messages to be lost in case of burst from kernel side.
Diffstat (limited to 'ulogd.conf.in')
1 files changed, 4 insertions, 0 deletions
diff --git a/ulogd.conf.in b/ulogd.conf.in
index 3e5e648..11a56d6 100644
@@ -233,6 +233,10 @@ pass="changeme"
+# If superior to 1 a thread dedicated to SQL request execution
+# is created. The value stores the number of SQL request to keep
+# in the ring buffer