Configuration parameters |
Defaults |
illustrate |
Service registry configuration |
|
Bean类:org.springframework.cloud.netflix.eureka.server.EurekaServerConfigBean |
eureka.server.enable-self-preservation |
false |
When the protection mechanism of the registry is turned off, Eureka will count that the percentage of heartbeat failures within 15 minutes is lower than 85%, which will trigger the protection mechanism, and the service provider will not be eliminated. If the service registry is closed, the unavailable instances will be correctly eliminated. |
Service instance class configuration |
|
Bean类:org.springframework.cloud.netflix.eureka.EurekaInstanceConfigBean |
eureka.instance.prefer-ip-address |
false |
Do not use the host name to define the address of the registry, but use the form of the IP address, if set eureka.instance.ip-address property, use the IP configured by this property, otherwise automatically obtain the first IP address except the loop IP |
eureka.instance.ip-address |
|
IP address |
eureka.instance.hostname |
|
Set the hostname of the current instance |
eureka.instance.appname |
|
Service name, the default value is spring.application.name , if not, it is unknown |
eureka.instance.lease-renewal-interval-in-seconds |
30 |
Defines the calling interval of the service renewal task (heartbeat), in seconds |
eureka.instance.lease-expiration-duration-in-seconds |
90 |
Defines the time for service failure, in seconds |
eureka.instance.status-page-url-path |
/info |
The URL of the status page, a relative path. By default, HTTP access is used. If you need to use HTTPS, you need to use an absolute path configuration. |
eureka.instance.status-page-url |
|
URL of the status page, absolute path |
eureka.instance.health-check-url-path |
/health |
The URL of the health check page, a relative path. By default, HTTP access is used. If you need to use HTTPS, you need to use an absolute path configuration. |
eureka.instance.health-check-url |
|
URL of the health check page, absolute path |
Service registration class configuration |
|
Bean类:org.springframework.cloud.netflix.eureka.EurekaClientConfigBean |
eureka.client.service-url. |
|
Specify the service registry address, the type is HashMap, and a set of default values are set. The default Key is defaultZone; the default Value is http://localhost:8761/eureka . If the service registry is a high-availability cluster, multiple registrations Center addresses are separated by commas. If security verification is added to the service registry, the format of the address configured here is: http://<username>:<password>@localhost:8761/eureka where <username> is the username for security verification; <password> is the user's password |
eureka.client.fetch-registery |
true |
retrieval service |
eureka.client.registery-fetch-interval-seconds |
30 |
从Eureka服务器端获取注册信息的间隔时间,单位:秒 |
eureka.client.register-with-eureka |
true |
启动服务注册 |
eureka.client.eureka-server-connect-timeout-seconds |
5 |
连接 Eureka Server 的超时时间,单位:秒 |
eureka.client.eureka-server-read-timeout-seconds |
8 |
读取 Eureka Server 信息的超时时间,单位:秒 |
eureka.client.filter-only-up-instances |
true |
获取实例时是否过滤,只保留UP状态的实例 |
eureka.client.eureka-connection-idle-timeout-seconds |
30 |
Eureka 服务端连接空闲关闭时间,单位:秒 |
eureka.client.eureka-server-total-connections |
200 |
从Eureka 客户端到所有Eureka服务端的连接总数 |
eureka.client.eureka-server-total-connections-per-host |
50 |
从Eureka客户端到每个Eureka服务主机的连接总数 |
Spring Cloud Eureka common configuration
Guess you like
Origin http://43.154.161.224:23101/article/api/json?id=326138626&siteId=291194637
Recommended
Ranking