-
Notifications
You must be signed in to change notification settings - Fork 145
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
15 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -40,7 +40,7 @@ proxy.sentinel.mode.nodes=192.168.3.218:6380@16380,192.168.3.218:6390@16390 | |
``` | ||
配置节点发现规则(基于redis) | ||
```properties | ||
### 此时集群内的节点会通过redis自动彼此发现 | ||
### 此时集群内的节点会通过redis自动彼此发现,优点是可以不需要提前知道节点ip,适用于k8s环境 | ||
proxy.sentinel.mode.nodes.provider.class.name=com.netease.nim.camellia.redis.proxy.sentinel.RedisProxySentinelModeNodesProvider | ||
proxy.sentinel.mode.nodes.provider.redis.url=redis://[email protected] | ||
proxy.sentinel.mode.nodes.provider.redis.key=xxxx | ||
|