记得上下班打卡 | git大法好,push需谨慎

Commit 3a1c092a authored by anjiabin's avatar anjiabin

提交eureka测试配置

parent 1d85d266
server:
port: 7001
servlet:
context-path: /eureka-server
spring:
application:
name: liquidnet-support-eureka
security:
user:
name: user
password: user123
eureka:
instance:
hostname: eureka-server1
preferIpAddress: true
health-check-url: http://localhost:${server.port}${server.servlet.context-path}/actuator/health
status-page-url: http://localhost:${server.port}${server.servlet.context-path}/actuator/info
home-page-url: http://localhost:${server.port}${server.servlet.context-path}
metadata-map:
configPath: ${server.servlet.context-path}
management.context-path: ${server.servlet.context-path}
server:
enable-self-preservation: false # 设为false,关闭自我保护 #自我保护设置 解决Eureka Server不踢出已关停的节点的问题,同时客户端也需要配置
eviction-interval-timer-in-ms: 4000 # 清理间隔(单位毫秒,默认是60*1000)
client:
register-with-eureka: false #禁止自己当做服务注册
fetch-registry: false #屏蔽注册信息
serviceUrl:
defaultZone: http://${spring.security.user.name}:${spring.security.user.password}@eureka-server2:7001${server.servlet.context-path}/eureka,http://${spring.security.user.name}:${spring.security.user.password}@eureka-server3:7001${server.servlet.context-path}/eureka
# instance:
# prefer-ip-address: true
# instance-id: ${spring.application.name}:${server.port}
# hostname: localhost
liquidnet:
logfile:
path: /logfile
name: liquidnet-eureka-server.log
logging:
config: classpath:logback-spring.xml
path: ${liquidnet.logfile.path}
#logging:
# file:
# name: ${liquidnet.logfile.path}/${liquidnet.logfile.name}
# level:
# root: info
# #以下是为指定包设置日志级别
# com:
# liquidnet:
# stellar:
# controller: info
## pattern:
## console: %d{yyyy/MM/dd-HH:mm:ss} [%thread] %-5level %logger- %msg%n
## file: %d{yyyy/MM/dd-HH:mm} [%thread] %-5level %logger- %msg%n
server:
port: 7001
servlet:
context-path: /eureka-server
spring:
application:
name: liquidnet-support-eureka
security:
user:
name: user
password: user123
eureka:
instance:
hostname: eureka-server2
preferIpAddress: true
health-check-url: http://localhost:${server.port}${server.servlet.context-path}/actuator/health
status-page-url: http://localhost:${server.port}${server.servlet.context-path}/actuator/info
home-page-url: http://localhost:${server.port}${server.servlet.context-path}
metadata-map:
configPath: ${server.servlet.context-path}
management.context-path: ${server.servlet.context-path}
server:
enable-self-preservation: false # 设为false,关闭自我保护 #自我保护设置 解决Eureka Server不踢出已关停的节点的问题,同时客户端也需要配置
eviction-interval-timer-in-ms: 4000 # 清理间隔(单位毫秒,默认是60*1000)
client:
register-with-eureka: false #禁止自己当做服务注册
fetch-registry: false #屏蔽注册信息
serviceUrl:
defaultZone: http://${spring.security.user.name}:${spring.security.user.password}@eureka-server1:7001${server.servlet.context-path}/eureka,http://${spring.security.user.name}:${spring.security.user.password}@eureka-server3:7001${server.servlet.context-path}/eureka
# instance:
# prefer-ip-address: true
# instance-id: ${spring.application.name}:${server.port}
# hostname: localhost
liquidnet:
logfile:
path: /logfile
name: liquidnet-eureka-server.log
logging:
config: classpath:logback-spring.xml
path: ${liquidnet.logfile.path}
#logging:
# file:
# name: ${liquidnet.logfile.path}/${liquidnet.logfile.name}
# level:
# root: info
# #以下是为指定包设置日志级别
# com:
# liquidnet:
# stellar:
# controller: info
## pattern:
## console: %d{yyyy/MM/dd-HH:mm:ss} [%thread] %-5level %logger- %msg%n
## file: %d{yyyy/MM/dd-HH:mm} [%thread] %-5level %logger- %msg%n
server:
port: 7001
servlet:
context-path: /eureka-server
spring:
application:
name: liquidnet-support-eureka
security:
user:
name: user
password: user123
eureka:
instance:
hostname: eureka-server3
preferIpAddress: true
health-check-url: http://localhost:${server.port}${server.servlet.context-path}/actuator/health
status-page-url: http://localhost:${server.port}${server.servlet.context-path}/actuator/info
home-page-url: http://localhost:${server.port}${server.servlet.context-path}
metadata-map:
configPath: ${server.servlet.context-path}
management.context-path: ${server.servlet.context-path}
server:
enable-self-preservation: false # 设为false,关闭自我保护 #自我保护设置 解决Eureka Server不踢出已关停的节点的问题,同时客户端也需要配置
eviction-interval-timer-in-ms: 4000 # 清理间隔(单位毫秒,默认是60*1000)
client:
register-with-eureka: false #禁止自己当做服务注册
fetch-registry: false #屏蔽注册信息
serviceUrl:
defaultZone: http://${spring.security.user.name}:${spring.security.user.password}@eureka-server1:7001${server.servlet.context-path}/eureka,http://${spring.security.user.name}:${spring.security.user.password}@eureka-server2:7001${server.servlet.context-path}/eureka
# instance:
# prefer-ip-address: true
# instance-id: ${spring.application.name}:${server.port}
# hostname: localhost
liquidnet:
logfile:
path: /logfile
name: liquidnet-eureka-server.log
logging:
config: classpath:logback-spring.xml
path: ${liquidnet.logfile.path}
#logging:
# file:
# name: ${liquidnet.logfile.path}/${liquidnet.logfile.name}
# level:
# root: info
# #以下是为指定包设置日志级别
# com:
# liquidnet:
# stellar:
# controller: info
## pattern:
## console: %d{yyyy/MM/dd-HH:mm:ss} [%thread] %-5level %logger- %msg%n
## file: %d{yyyy/MM/dd-HH:mm} [%thread] %-5level %logger- %msg%n
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment