Browse code

db_redis: update documentation

Riccardo Villa authored on 05/01/2022 11:06:00
Showing 1 changed files
... ...
@@ -146,6 +146,17 @@ location=entry:ruid&usrdom:username,domain&timer:partition,keepalive;acc
146 146
 					</listitem>
147 147
 				</itemizedlist>
148 148
 			</para>
149
+			<para>
150
+				The following library is an optional dependency to support redis cluster protocol:
151
+				<itemizedlist>
152
+					<listitem>
153
+						<para>
154
+						<emphasis>hiredis-cluster</emphasis> - available at
155
+						<ulink url="https://github.com/Nordix/hiredis-cluster">https://github.com/Nordix/hiredis-cluster</ulink>
156
+						</para>
157
+					</listitem>
158
+				</itemizedlist>
159
+			</para>
149 160
 		</section>
150 161
 	</section>
151 162
 
... ...
@@ -216,6 +227,10 @@ modparam("db_redis", "verbosity", 0)
216 227
 			'redis://[username]@host:port/database'. Username is optional.
217 228
 			The database portion must be a valid Redis database number.
218 229
 		</para>
230
+		<para>
231
+			For cluster support you need to set the "db_url" modparam with a comma separated list of cluster hosts:
232
+			'redis://host1:port1,host2:port2/'. The database portion is not supported in cluster mode.
233
+		</para>
219 234
 		<example>
220 235
 			<title>Usage</title>
221 236
 			<programlisting format="linespecific">