icinga2/lib/redis
Thomas Gelf ed2ebdf0d0 RedisWriter: publish Icinga 2 stats as a simple "keepalive"
Use case: a reader subscribes to config changes. As they happen rarely, chances
are good that the connection will time out in the meantime. Now, a reconnect is
easy - but you wouldn't know whether you missed any config changes. So you are
required to issue a new sync to be on the safe side. Given a 60sec connection
timeout (think: SSL layer, firewalls etc) when no traffic happens this would be
too expensive.

Some kind of a heartbeat available for subscription would allow subscribers to
artificially keep the connection alive. As a first simple solution to this I'd
suggest to publish CIB data, that might be useful anyways.

refs #4991
fixes #5098

Signed-off-by: Michael Friedrich <michael.friedrich@icinga.com>
2017-03-29 10:17:03 +02:00
..
CMakeLists.txt Rename source file 2017-03-29 10:17:03 +02:00
rediswriter-status.cpp Fix object deletion on restart 2017-03-29 10:17:03 +02:00
rediswriter-utility.cpp Fix hash value for empty custom attributes 2017-03-29 10:17:03 +02:00
rediswriter.cpp RedisWriter: publish Icinga 2 stats as a simple "keepalive" 2017-03-29 10:17:03 +02:00
rediswriter.hpp RedisWriter: publish Icinga 2 stats as a simple "keepalive" 2017-03-29 10:17:03 +02:00
rediswriter.ti Implement the db_index property for the RedisWriter class 2017-03-29 10:17:03 +02:00