概述
我有一个本地eureka服务器和一个客户端
尤里卡:
server:
port: 1111
eureka:
instance:
prefer-ip-address: true
client:
registerWithEureka: false
fetchRegistry: false
serviceUrl:
defaultZone: http://127.0.0.1:1111/eureka/
server:
waitTimeInMsWhenSyncEmpty: 0
客户:
eureka:
instance:
prefer-ip-address: true
client:
serviceUrl:
defaultZone: http://127.0.0.1:1111/eureka/
我有两个问题:
1)Eureka服务器抛出日志:
NullPointerException:
at com.netflix.eureka.resources.StatusResource.isReplicaAvailable
2)客户端与Eureka连接,但过了一段时间我在他的日志中看到了下一个:
RedirectingEurekaHttpClient : Request execution error
javax.ws.rs.WebApplicationException: null at com.netflix.discovery.provider.DiscoveryJerseyProvider.readFrom(DiscoveryJerseyProvider.java:110)
RetryableEurekaHttpClient : Request execution failure
DiscoveryClient : DiscoveryClient_MW/192.168.0.100:client:8080 – was unable to send heartbeat!
com.netflix.discovery.shared.transport.TransportException: Cannot execute request on any known server
在日志Eureka我看到:
InstanceRegistry : DS: Registry: lease doesn’t exist,registering resource: CLIENT – 192.168.0.100:client:8080
InstanceResource : Not Found (Renew): CLIENT – 192.168.0.100:client:8080
在Eureka Web控制台中,客户端具有UP状态,但也有一个很大的铭文:
RENEWALS ARE LESSER THAN THE THRESHOLD. THE SELF PRESERVATION MODE IS
TURNED OFF.THIS MAY NOT PROTECT INSTANCE EXPIRY IN CASE OF
NETWORK/OTHER PROBLEM
虽然连接正常,但我可以通过Eureka链接到我的客户端.
你能解释它的含义以及如何摆脱它吗?
最后
以上就是过时犀牛为你收集整理的java 连接eureka_java – Eureka服务器的问题的全部内容,希望文章能够帮你解决java 连接eureka_java – Eureka服务器的问题所遇到的程序开发问题。
如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。
发表评论 取消回复