[sr-dev] [kamailio/kamailio] ndb_redis: add disable server on failure feature (#1116)

Paul Claudiu Boriga notifications at github.com
Wed May 3 15:33:13 CEST 2017


Hello, 

We added a new feature to the ndb_redis module, similar to how the rtpengine_disable_tout parameter of the rtpengine module works. 

If a number of consecutive commands to a redis server fail, that server is temporarily disabled. This is configurable by parameters: "allowed_timeouts" and "disable_time". 
Disabling a server means that for "disable_time" seconds any command to that sever will not send the command to the server, but an error is returned instead. 

For example if allowed_timeouts is configured to 0 and disable_time to 30, the first time redis_cmd or redis_execute functions fail the server will be disabled for 30 seconds. 

The server information is retained by each Kamailio process individually, so this means that disabling a server is done by that process only and not globally. 


You can view, comment on, or merge this pull request online at:

  https://github.com/kamailio/kamailio/pull/1116

-- Commit Summary --

  * ndb_redis: add disable server on failure feature

-- File Changes --

    M src/modules/ndb_redis/doc/ndb_redis_admin.xml (58)
    M src/modules/ndb_redis/ndb_redis_mod.c (4)
    M src/modules/ndb_redis/redis_client.c (77)
    M src/modules/ndb_redis/redis_client.h (9)

-- Patch Links --

https://github.com/kamailio/kamailio/pull/1116.patch
https://github.com/kamailio/kamailio/pull/1116.diff

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/1116
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-dev/attachments/20170503/acb0f2c6/attachment.html>


More information about the sr-dev mailing list