On 08/08/14 18:39, Paul Belanger wrote:
On Fri, Aug 8, 2014 at 2:21 AM, Daniel-Constantin Mierla miconda@gmail.com wrote:
There is no db-only for dispatcher, you have to do reload.
If you don't need keepalive mechanism, perhaps you can try loading the addresses from database with sqlops and do the dispatching algorithm via config file only.
I wonder what would be needed to implement some sort of TTL for the dispatcher cache. Do any of the other modules implement TTL in any fashion for DB queries?
That can be implemented with a timer callback to reload periodically records from database. The function to reload is there and there are many examples of adding timer callbacks in modules. So if anyone is looking to add it in the module, should not be something comples.
Alternative, have a script run by cron.d executing kamctl dispatcher reload.
Cheers, Daniel