本篇内容用来说明Eureka 常用配置的含义。

以下配置都是以 eureka.server 开头:

参数 描述 备注
eureka.server.eviction-interval-timer-in-ms server清理无效节点的时间间隔 默认60秒
eureka.server.enable-self-preservation 是否开启自我保护,默认true true false
eureka.server.renewal-percent-threshold 开启自我保护的系数 默认:0.85

client参数配置:

参数 描述 备注
eureka.client.enabled 是否开启client,默认true true false
eureka.client.register-with-eureka 是否注册 默认true
eureka.client.fetch-registry 是否检索服务 true false
eureka.client.serviceUrl.defaultZone 默认服务注册中心地址 多个用","隔开
eureka.client.eureka-server-connect-timeout-seconds 连接server服务器超时时间 默认5秒
eureka.client.eureka-connection-idle-timeout-seconds 连接server的连接空闲时长 默认30秒
eureka.client.eureka-server-read-timeout-seconds 连接server读取数据超时时间 默认8秒
eureka.client.eureka-server-total-connections 连接server的最大连接数 默认200
eureka.client.eureka-server-total-connections-per-host 对单个server的最大连接数 默认50
eureka.client.eureka-service-url-poll-interval-seconds 获取集群中最新的server节点数据 默认0
eureka.client.heartbeat-executor-thread-pool-size client维持与server的心跳线程数 默认2
eureka.client.service-url 列出所有可用注册中心的地址

eureka instance 相关配置:

参数 描述 备注
eureka.instance.lease-renewal-interval-in-seconds 服务续约任务调用间隔时间,默认30秒 client每隔30秒向server上报自己状态,避免被server剔除
eureka.instance.lease-expiration-duration-in-seconds 服务时效时间,默认90秒 当server 90秒内没有收到client的注册信息时,会将该节点剔除
eureka.client.registry-fetch-interval-seconds client本地缓存清单更新间隔,默认30秒 client每隔30秒,向server请求可用服务清单。对于API网关类应用,可以适当降低时间间隔
eureka.instance.prefer-ip-address 注册服务时是否使用IP注册,默认false true false
eureka.instance.ip-address server端的ip地址
eureka.instance.hostname server端的hostname 默认localhost
eureka.instance.instance-id 注册到server的实例

Spring Cloud Eureka配置文件详解的更多相关文章

  1. Spring Cloud限流详解

    转自:https://blog.csdn.net/tracy38/article/details/78685707 在高并发的应用中,限流往往是一个绕不开的话题.本文详细探讨在Spring Cloud ...

  2. Spring 2.5配置文件详解(转)

    http://book.51cto.com/art/201004/193743.htm 6.2.3  Spring 2.5配置文件详解 Spring配置文件是用于指导Spring工厂进行Bean生产. ...

  3. SpringCloud入门之应用程序上下文服务(Spring Cloud Context)详解

    构建分布式系统非常复杂且容易出错.Spring Cloud为最常见的分布式系统模式提供了简单易用的编程模型,帮助开发人员构建弹性,可靠和协调的应用程序.Spring Cloud构建于Spring Bo ...

  4. Spring Cloud Eureka配置文件例子与较为详细说明

    Eureka服务端: application.yml # eureka(最)简单单点开发配置.支持yml与properties两种,yml文件后缀必须为yml,不能是yaml,否则找不到该文件,使用默 ...

  5. Spring Cloud Ribbon配置详解

    概述 有时候需要自定义Ribbon的配置和客户端超时配置. 自动化配置 /* 使用属性自定义功能区客户端 从版本1.2.0开始,Spring Cloud Netflix现在支持使用属性与Ribbon文 ...

  6. Spring Boot的前世今生以及它和Spring Cloud的关系详解。

    要了解Spring Boot的发展背景,还得从2004年Spring Framework1.0版本发布开始说起,不过大家都是从开始学习Java就使用Spring Framework了,所以就不做过多展 ...

  7. Spring Cloud Feign原理详解

    目录 1.什么是Feign? 2.Open Feign vs Spring Cloud Feign 2.1.OpenFeign 2.2.Spring Cloud Open Feign 3.Spring ...

  8. Spring笔记--xml配置文件详解

    1:bean的基本属性配置: <!-- id是bean的标识符,必须唯一,如果没有配置id,name默认为标识符 如果配置了id,有配置了name,那么name为别名 name可以设置多个别名, ...

  9. Spring Boot属性配置文件详解

    相信很多人选择Spring Boot主要是考虑到它既能兼顾Spring的强大功能,还能实现快速开发的便捷.我们在Spring Boot使用过程中,最直观的感受就是没有了原来自己整合Spring应用时繁 ...

随机推荐

  1. nginx-ingress之server-snippet用法

    apiVersion: extensions/v1beta1 kind: Ingress metadata: annotations: nginx.ingress.kubernetes.io/serv ...

  2. 结对项目(python) 黄浩伟 黄飞越

    作者:黄浩伟 黄飞越  一 .Github项目地址: https://github.com/Flying123haha/123.git 二.psp表格: PSP2.1 Personal Softwar ...

  3. django数据表生成

    在创建的app中models.py生成表结构 class 表名(models.Model): #表名一般首字母大写 中突出信息的大写 列名=models.Charfield(max_lenth=) # ...

  4. 从零搭建consul

    从零搭建consul 原文链接:https://blog.csdn.net/weixin_42107541/article/details/87640807#2linux_25 从零搭建consul1 ...

  5. H3C 802.11b/g工作频段划分图

  6. 爬虫之scrapy框架的crawlspider

    一,介绍 CrawlSpider其实是Spider的一个子类,除了继承到Spider的特性和功能外,还派生除了其自己独有的更加强大的特性和功能.其中最显著的功能就是”LinkExtractors链接提 ...

  7. SHELL脚本编程-普通数组(列表)和关联数组(字典)

    SHELL脚本编程-普通数组(列表)和关联数组(字典) 作者:尹正杰 版权声明:原创作品,谢绝转载!否则将追究法律责任. 一.数组相关概述 变量: 存储单个元素的内存空间 数组: 存储多个元素的连续的 ...

  8. MySQL/MariaDB数据库的函数

      MySQL/MariaDB数据库的函数 作者:尹正杰 版权声明:原创作品,谢绝转载!否则将追究法律责任. MySQL/MariaDB数据库的函数分为系统函数和用户自定义函数(user-define ...

  9. spark 程序 windows 运行报错

    1 java.io.IOException: Could not locate executable null\bin\winutils.exe in the Hadoop binaries. at ...

  10. 米勒罗宾素数检测(Miller-Rabin)

    适用范围:较大数的较快素性判断 思路: 因为有好的文章讲解具体原理(见参考文章),这里只是把代码的大致思路点一下,读完了文章如果还有些迷糊,可以参考以下解释 原理是费马小定理:如果p是素数,则a^(p ...