Support redis cluster mode (#1181)

* use redisConfig of protocol instead of redisConfig and use redis of protocol to create redis client to support redis cluster mode too
This commit is contained in:
Tom Xiong
2022-11-22 10:36:43 -08:00
committed by GitHub
parent 76c65a5da7
commit e5dabd466e
3 changed files with 26 additions and 86 deletions
+7
View File
@@ -19,6 +19,13 @@ redis:
# If you use a different set of credentials for sentinel add
# sentinel_username: user
# sentinel_password: pass
#
# To use cluster remove the address key above and add the following
# cluster_addresses:
# - livekit-redis-node-0.livekit-redis-headless:6379
# - livekit-redis-node-1.livekit-redis-headless:6380
# And it will use the password key above as cluster password
# And the db key will not be used due to cluster mode not support it.
# WebRTC configuration
rtc: