<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Hello,<br>
<br>
The current OpenSIPS cachedb_redis implementation does not support
the Redis Sentinel. <br>
I see it's a relatively new concept, currently only part of the
Redis <em>unstable</em> branch.<br>
<br>
The way the cachedb_redis module currently handles clusters in
OpenSIPS is that, at startup, it takes a snapshot of the Cluster (
with each server handling what hash bucket ) and then, for each
operation, it internally runs CRC16 and detects the hash bucket and
directs the query to the specific server in the cluster.<br>
<br>
Regards,<br>
<pre class="moz-signature" cols="72">Vlad Paiu
OpenSIPS Developer
<a class="moz-txt-link-freetext" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a> </pre>
<br>
On 10/31/2012 05:50 PM, Julien Chavanton wrote:
<blockquote
cite="mid:CAKmcL2m2-g7NUnihVeRojOpz56fc1NzEfjsJiebxR0jkMCRTYA@mail.gmail.com"
type="cite"><span style="font-family: courier new,monospace;">The
latest improvement on Redis module are very interesting, thanks
for the contributiom, I would like to understand how the hiredis
client is working with a "redis cluster"</span><span
style="font-family: courier new,monospace;"><br>
<br>
Where can I find information on the "server groups/cluster"
support ?<br>
<br>
Is it working with "Redis Sentinel" (the official high
availability solution for Redis).<br>
<br>
The hiredis client documentation are not mentioning this
mechanics. <br>
<a moz-do-not-send="true"
href="https://github.com/redis/hiredis">https://github.com/redis/hiredis</a><br>
<br>
<br>
<br>
<br>
<br>
---------------------------------------------------<br>
Module Documentation</span><br>
<span style="font-family: courier new,monospace;"><span
style="font-family: courier new,monospace;">---------------------------------------------------</span><br>
<br>
1.5.1. cachedb_url (string)<br>
<br>
The urls of the server groups that OpenSIPS will connect to in
order to use the from script cache_store,cache_fetch, etc
operations. It can be set more than one time. The prefix part of
the URL will be the identifier that will be used from the
script.<br>
<br>
Example 1.1. Set cachedb_url parameter<br>
<br>
...<br>
modparam("cachedb_redis",
"cachedb_url","redis:group1://localhost:6379/");<br>
modparam("cachedb_redis",
"cachedb_url","redis:cluster1://random_url:8888/");<br>
...<br>
<br>
<br>
Example 1.2. Use Redis servers<br>
<br>
...<br>
cache_store("redis:group1","key","$ru value");<br>
cache_fetch("redis:cluster1","key",$avp(10));<br>
cache_remove("redis:cluster1","key");<br>
...<br>
</span><br>
<pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
</body>
</html>