稳定版。没重构之前。稳定的限流。
This commit is contained in:
@@ -61,3 +61,21 @@ rocketmq:
|
||||
consume-thread-min: 20 # 消费线程池最小线程数
|
||||
consume-thread-max: 64 # 消费线程池最大线程数
|
||||
consume-message-batch-max-size: 64 # 批量消费最大消息数
|
||||
management:
|
||||
endpoints:
|
||||
web:
|
||||
exposure:
|
||||
include: health,metrics,resilience4j
|
||||
prometheus:
|
||||
metrics:
|
||||
export:
|
||||
enabled: true
|
||||
|
||||
resilience4j.ratelimiter:
|
||||
instances:
|
||||
wxMsgLimiter:
|
||||
limitForPeriod: 10 # 根据业务吞吐量调整
|
||||
limitRefreshPeriod: 1s # 固定1秒周期
|
||||
timeoutDuration: 0 # 立即失败模式
|
||||
registerHealthIndicator: true
|
||||
|
||||
|
||||
Reference in New Issue
Block a user