[SR-Users] Clarification on redis_cmd in ndb_redis module

Alex Balashov abalashov at evaristesys.com
Mon Jul 17 12:11:53 CEST 2017


On Mon, Jul 17, 2017 at 03:25:17PM +0530, vivek at advaitamtech.com wrote:

> Am using redis_cmd in kamailio.cfg to perform redis operations.
> I would like to know if redis_cmd() creates new connection everytime I call it in kamailio.cfg?. Since am using redis_cmd() multiple times to access few data's.

No; connections to Redis are initialised on startup and are reused.

> Also, is calling redis_free() necessary to avoid connections being open?

No; as mentioned, the connections are static. But it is good practice to
do this in order to free the result set/pending reply from memory.

> I am facing an error of number of open files exceeded. This error is
> caused by ndb_redis module. But cannot confirm due to which part of
> redis.

Can you provide the specific text of the error?

-- Alex

-- 
Alex Balashov | Principal | Evariste Systems LLC

Tel: +1-706-510-6800 / +1-800-250-5920 (toll-free) 
Web: http://www.evaristesys.com/, http://www.csrpswitch.com/



More information about the sr-users mailing list