架构:
服务注册到Eureka然后每隔30秒发送心跳来renew租约,如果90秒内未能收到renew消息,该服务就会被移除。
以秒为单位表示多久客户端必须发送心跳到eureka服务器,如果超过
lease-expiration-duration-in-seconds时间没有发送,服务器就会把这个实例移除。
lease-renewal-interval-in-seconds
表示等待多少秒如果没有收到客户端的心跳,服务器就会把实例移除。
lease-expiration-duration-in-seconds
表示隔多少秒把instance changes复制到其他eureka服务器上面去
instance-info-replication-interval-seconds
表示隔多少秒从eureka服务器拉取最新的registry信息
registry-fetch-interval-seconds
表示是否注册实例信息到eureka服务器,以便别的instances可以发现该服务
有时候并不想该服务被发现,只想发现其他服务。
register-with-eureka
每个配置项的详细解释,请参考:
https://github.com/Netflix/eureka/wiki/Configuring-Eureka