diff options
author | Eric Leblond <eric@regit.org> | 2013-03-17 19:41:36 +0100 |
---|---|---|
committer | Eric Leblond <eric@regit.org> | 2013-05-21 19:47:53 +0200 |
commit | 6e4d8af18923ec4873d96228ccf24eda3da4577e (patch) | |
tree | 3e62f9de5e185124928578454f29d8586d59fb85 /ulogd.conf.in | |
parent | 33136bc95407aab889778bc4ebba9622bc4c8f63 (diff) |
db: store data in memory during database downtime
This patch is adding a mechanism to store query in a backlog build
in memory. This allow to store events during downtime in memory and
realize the effective insertion when the database comes back.
A memory cap is used to avoid any memory flooding.
Diffstat (limited to 'ulogd.conf.in')
-rw-r--r-- | ulogd.conf.in | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/ulogd.conf.in b/ulogd.conf.in index f4f63d9..3e5e648 100644 --- a/ulogd.conf.in +++ b/ulogd.conf.in @@ -207,6 +207,13 @@ user="nupik" table="ulog" pass="changeme" procedure="INSERT_PACKET_FULL" +# backlog configuration: +# set backlog_memcap to the size of memory that will be +# allocated to store events in memory if data is temporary down +# and insert them when the database came back. +#backlog_memcap=1000000 +# number of events to insert at once when backlog is not empty +#backlog_oneshot_requests=10 [mysql2] db="nulog" @@ -224,6 +231,8 @@ table="ulog" #schema="public" pass="changeme" procedure="INSERT_PACKET_FULL" +#backlog_memcap=1000000 +#backlog_oneshot_requests=10 [pgsql2] db="nulog" |