提交 189a5153 编写于 作者: yizhishang123456's avatar yizhishang123456

修改Ribbon负载均衡策略

上级 de732b7c
......@@ -19,8 +19,8 @@ server.port = 8081
eureka.client.service-url.defaultZone=http://127.0.0.1:1111/eureka/
#Ribbon\u7684\u8D1F\u8F7D\u5747\u8861\u7B56\u7565
ribbon.NFLoadBalancerRuleClassName=com.netflix.loadbalancer.RandomRule
ribbon.MaxAutoRetriesNextServer=0
tx-manager.ribbon.NFLoadBalancerRuleClassName=com.netflix.loadbalancer.RandomRule
tx-manager.ribbon.MaxAutoRetriesNextServer=0
ribbon.eureka.enabled=true
ribbon.readTimeout=6000
......
......@@ -11,8 +11,8 @@ server.port = 8082
eureka.client.service-url.defaultZone=http://127.0.0.1:1111/eureka/
##Ribbon\u7684\u8D1F\u8F7D\u5747\u8861\u7B56\u7565
ribbon.NFLoadBalancerRuleClassName=com.netflix.loadbalancer.RandomRule
ribbon.MaxAutoRetriesNextServer=0
tx-manager.ribbon.NFLoadBalancerRuleClassName=com.netflix.loadbalancer.RandomRule
tx-manager.ribbon.MaxAutoRetriesNextServer=0
ribbon.eureka.enabled=true
ribbon.readTimeout=6000
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册