Browse Source

redis 配置改为集群

wuhongshuang 3 năm trước cách đây
mục cha
commit
f9dcdb3d08
1 tập tin đã thay đổi với 12 bổ sung12 xóa
  1. 12 12
      src/main/resources/bootstrap.yml

+ 12 - 12
src/main/resources/bootstrap.yml

@@ -53,19 +53,19 @@ spring:
     listener.simple.concurrency: 1000
     listener.simple.max-concurrency: 2000
 
-  redis:
-    database: 0
-    host: localhost         # Redis服务器地址
-    port: 6379              # Redis服务器连接端口
-    password:               # Redis服务器连接密码(默认为空)
-
 #  redis:
-#    timeout: 5000
-#    cluster:
-#      nodes: 120.78.140.173:7000,120.78.140.173:7001,47.112.127.131:7001,47.112.127.131:7000,112.74.63.148:7001,112.74.63.148:7000
-#      max-attempts: 5
-#      max-redirects: 7
-#      timeout: 12000
+#    database: 0
+#    host: localhost         # Redis服务器地址
+#    port: 6379              # Redis服务器连接端口
+#    password:               # Redis服务器连接密码(默认为空)
+
+  redis:
+    timeout: 5000
+    cluster:
+      nodes: 10.0.0.153:7000,10.0.0.153:7001,10.0.0.152:7001,10.0.0.152:7000,10.0.0.155:7001,10.0.0.155:7000
+      max-attempts: 5
+      max-redirects: 7
+      timeout: 12000
 
 elasticSearch:
   host: 120.78.140.173