Authored by hugufei

search-redis使用集群的配置方式

@@ -8,14 +8,18 @@ pool: @@ -8,14 +8,18 @@ pool:
8 8
9 redis: 9 redis:
10 yohoSearchRedis: 10 yohoSearchRedis:
11 - cluster: false 11 + cluster: true
12 sync: false 12 sync: false
13 auth: 13 auth:
14 timeout: 1000 14 timeout: 1000
15 servers: 15 servers:
16 - - 192.168.102.216:6379 16 + - 192.168.103.35:6379
  17 + - 192.168.103.35:6379
  18 + - 192.168.103.35:6379
17 readOnly: 19 readOnly:
18 - - 192.168.102.216:6379 20 + - 192.168.103.35:6379
  21 + - 192.168.103.35:6379
  22 + - 192.168.103.35:6379
19 primary: no 23 primary: no
20 24
21 yohoSearchBigDataRedis: 25 yohoSearchBigDataRedis:
@@ -8,21 +8,25 @@ pool: @@ -8,21 +8,25 @@ pool:
8 8
9 redis: 9 redis:
10 yohoSearchRedis: 10 yohoSearchRedis:
11 - cluster: false 11 + cluster: true
12 sync: false 12 sync: false
13 auth: 13 auth:
14 - timeout: 100 14 + timeout: 1000
15 servers: 15 servers:
16 - - ${redis.search.proxy.address}:${redis.search.proxy.port} 16 + - ${redis.search.cluster.address0}
  17 + - ${redis.search.cluster.address1}
  18 + - ${redis.search.cluster.address2}
17 readOnly: 19 readOnly:
18 - - ${redis.search.proxy.address}:${redis.search.proxy.port} 20 + - ${redis.search.cluster.address0}
  21 + - ${redis.search.cluster.address1}
  22 + - ${redis.search.cluster.address2}
19 primary: no 23 primary: no
20 24
21 yohoSearchBigDataRedis: 25 yohoSearchBigDataRedis:
22 cluster: false 26 cluster: false
23 sync: false 27 sync: false
24 auth: ${bigDataRedis-search.proxy.auth} 28 auth: ${bigDataRedis-search.proxy.auth}
25 - timeout: 100 29 + timeout: 1000
26 servers: 30 servers:
27 - ${bigDataRedis-search.proxy.address}:${bigDataRedis-search.proxy.port} 31 - ${bigDataRedis-search.proxy.address}:${bigDataRedis-search.proxy.port}
28 readOnly: 32 readOnly: