|
...
|
...
|
@@ -22,19 +22,19 @@ app.zk.connect.timeout=15000 |
|
|
|
app.zk.root=/route
|
|
|
|
|
|
|
|
#路由策略,轮询
|
|
|
|
app.route.way=com.crossoverjie.cim.common.route.algorithm.loop.LoopHandle
|
|
|
|
#app.route.way=com.crossoverjie.cim.common.route.algorithm.loop.LoopHandle
|
|
|
|
|
|
|
|
#路由策略,随机
|
|
|
|
#app.route.way=com.crossoverjie.cim.common.route.algorithm.random.RandomHandle
|
|
|
|
|
|
|
|
#路由策略,一致性 hash
|
|
|
|
#app.route.way=com.crossoverjie.cim.common.route.algorithm.consistenthash.ConsistentHashHandle
|
|
|
|
app.route.way=com.crossoverjie.cim.common.route.algorithm.consistenthash.ConsistentHashHandle
|
|
|
|
|
|
|
|
#一致性 hash 算法具体实现--自定义有序 map
|
|
|
|
#app.route.way.consitenthash=com.crossoverjie.cim.common.route.algorithm.consistenthash.SortArrayMapConsistentHash
|
|
|
|
|
|
|
|
#一致性 hash 算法具体实现--TreeMap
|
|
|
|
#app.route.way.consitenthash=com.crossoverjie.cim.common.route.algorithm.consistenthash.TreeMapConsistentHash
|
|
|
|
app.route.way.consitenthash=com.crossoverjie.cim.common.route.algorithm.consistenthash.TreeMapConsistentHash
|
|
|
|
|
|
|
|
# Redis 配置
|
|
|
|
spring.redis.host=xx
|
...
|
...
|
|