[sr-dev] [kamailio/kamailio] db_redis: cluster support (Issue #2977)

Riccardo-78 notifications at github.com
Fri Dec 17 15:00:37 CET 2021


### Description

At the moment db_redis driver does not support interfacing with a redis cluster. This is a proposal to add support to it.
The db_redis module will get a new module parameter to enable cluster support (with default 0 - disabled):

```
modparam("db_redis", "cluster", 1)
```

The redis url used by other modules needs to specify all nodes in the cluster, and must NOT include redis database number (since it's not supported in cluster mode):

```
#!define DBURL_USRLOC "redis://10.0.1.1:6379,10.0.1.2:6379,10.0.1.3:6379"
```

The implementation is going to use the [hiredis-cluster](https://github.com/Nordix/hiredis-cluster) library (BSD license). If cluster mode is not enabled the module will behave like before, i.e. all calls to redis will use hiredis library directly.

If you find this proposal sensible, I'll start coding it.

Feedback is welcome, of course!


-- 
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/2977
You are receiving this because you are subscribed to this thread.

Message ID: <kamailio/kamailio/issues/2977 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-dev/attachments/20211217/d38e4289/attachment.htm>


More information about the sr-dev mailing list