栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 软件开发 > 后端开发 > Java

Feign原理:current list of Servers哪里来的

Java 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

Feign原理:current list of Servers哪里来的

current list of Servers中的ip目前是服务器上的地址,怎么改变成本地地址呢?

DynamicServerListLoadBalancer:{NFLoadBalancer:name=SC-CLOUD-API,current list of Servers=[10.79.4.78:8083],Load balancer stats=Zone stats: {defaultzone=[Zone:defaultzone; Instance count:1; Active connections count: 0; Circuit breaker tripped count: 0; Active connections per server: 0.0;]

H5中对应地址:

API中对应地址:

运行后log:

2022-03-08 09:19:14,184 http-nio-8088-exec-3 INFO (ContorllerAop.java:113)- 调用方法===============运营仪表盘[/operationDashboard]===========参数是========================参数值[{"coinType":"JFB","datetime":"2020-01-09","department":"3061","oaId":"209364","resourceType":["0","1"],"year":"2021"}]
SCSESSION=f285dac7d9944860972adac2905489b52022-03-08 09:19:14,308 http-nio-8088-exec-3 INFO (EpollProvider.java:68)- Starting without optional epoll library
2022-03-08 09:19:14,310 http-nio-8088-exec-3 INFO (KqueueProvider.java:70)- Starting without optional kqueue library
2022-03-08 09:19:15,159 http-nio-8088-exec-3 INFO (DashboardController.java:59)- 获取的OaId为--209364
2022-03-08 09:19:36,143 http-nio-8088-exec-3 INFO (ChainedDynamicProperty.java:115)- Flipping property: SC-CLOUD-API.ribbon.ActiveConnectionsLimit to use NEXT property: niws.loadbalancer.availabilityFilteringRule.activeConnectionsLimit = 2147483647
2022-03-08 09:19:36,145 http-nio-8088-exec-3 INFO (ShutdownEnabledTimer.java:58)- Shutdown hook installed for: NFLoadBalancer-PingTimer-SC-CLOUD-API
2022-03-08 09:19:36,145 http-nio-8088-exec-3 INFO (baseLoadBalancer.java:197)- Client: SC-CLOUD-API instantiated a LoadBalancer: DynamicServerListLoadBalancer:{NFLoadBalancer:name=SC-CLOUD-API,current list of Servers=[],Load balancer stats=Zone stats: {},Server stats: []}ServerList:null
2022-03-08 09:19:36,148 http-nio-8088-exec-3 INFO (DynamicServerListLoadBalancer.java:222)- Using serverListUpdater PollingServerListUpdater
2022-03-08 09:19:36,150 http-nio-8088-exec-3 INFO (ChainedDynamicProperty.java:115)- Flipping property: SC-CLOUD-API.ribbon.ActiveConnectionsLimit to use NEXT property: niws.loadbalancer.availabilityFilteringRule.activeConnectionsLimit = 2147483647
2022-03-08 09:19:36,152 http-nio-8088-exec-3 INFO (DynamicServerListLoadBalancer.java:150)- DynamicServerListLoadBalancer for client SC-CLOUD-API initialized: DynamicServerListLoadBalancer:{NFLoadBalancer:name=SC-CLOUD-API,current list of Servers=[10.79.4.78:8083],Load balancer stats=Zone stats: {defaultzone=[Zone:defaultzone;	Instance count:1;	Active connections count: 0;	Circuit breaker tripped count: 0;	Active connections per server: 0.0;]
},Server stats: [[Server:10.79.4.78:8083;	Zone:defaultZone;	Total Requests:0;	Successive connection failure:0;	Total blackout seconds:0;	Last connection made:Thu Jan 01 08:00:00 CST 1970;	First connection made: Thu Jan 01 08:00:00 CST 1970;	Active Connections:0;	total failure count in last (1000) msecs:0;	average resp time:0.0;	90 percentile resp time:0.0;	95 percentile resp time:0.0;	min resp time:0.0;	max resp time:0.0;	stddev resp time:0.0]
]}ServerList:org.springframework.cloud.netflix.ribbon.eureka.DomainExtractingServerList@529e5141
2022-03-08 09:19:39,810 http-nio-8088-exec-3 INFO (ContorllerAop.java:135)- 执行方法:================================运营仪表盘[/operationDashboard]耗时:==========25630========================================

只需要改名字吧,如下

转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/759561.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号