客户端配置信息
easy-retry:
server:
# 服务端的地址,若服务端集群部署则此处配置域名
host: 127.0.0.1
# 服务端netty的端口号
port: 1788
# 指定客户端IP,不配置则取本地IP
host: 127.0.0.1
# 指定客户端端口,不配置则取取本地端口
port: 8080
# 名称空间ID, 若不填为默认空间(764d604ec6fc45f68cd92514c40e9e1a)
namespace: 764d604ec6fc45f68cd92514c40e9e1a
# 批量上报滑动窗口配置
slidingWindow:
# 窗口期单位
chrono-unit: seconds
# 窗口期时间长度
duration: 10
# 总量窗口期阈值
total-threshold: 50
# 窗口数量预警
window-total-threshold: 150
# 服务端的地址,若服务端集群部署则此处配置域名
easy-retry.server.host= 127.0.0.1
# 服务端netty的端口号
easy-retry.server.port= 1788
# 指定客户端IP,不配置则取本地IP
easy-retry.host= 127.0.0.1
# 指定客户端端口,不配置则取取本地端口
easy-retry.port= 8080
# 批量上报滑动窗口配置
# 窗口期单位
easy-retry.slidingWindow.chrono-unit= seconds
# 窗口期时间长度
easy-retry.slidingWindow.duration= 10
# 总量窗口期阈值
easy-retry.slidingWindow.total-threshold= 50
# 窗口数量预警
easy-retry.slidingWindow.window-total-threshold= 150
# 名称空间ID,若不填为默认空间(764d604ec6fc45f68cd92514c40e9e1a)
easy-retry.namespace= 764d604ec6fc45f68cd92514c40e9e1a
// Make sure to add code blocks to your code group
# easy-retry.host和easy-retry.port
客户端的host和port支持 SpringBoot配置/JVM启动参数/默认获取三种方式
配置顺序 SpringBoot配置 > JVM启动参数 > 默认获取
上次更新: 2024/04/07, 10:27:31