feat(idempotency): 为关键写接口接入幂等并完善并发容错
This commit is contained in:
@@ -568,6 +568,30 @@ usage_cleanup:
|
||||
# 单次任务最大执行时长(秒)
|
||||
task_timeout_seconds: 1800
|
||||
|
||||
# =============================================================================
|
||||
# HTTP 写接口幂等配置
|
||||
# Idempotency Configuration
|
||||
# =============================================================================
|
||||
idempotency:
|
||||
# Observe-only 模式:
|
||||
# true: 观察期,不带 Idempotency-Key 仍放行(但会记录)
|
||||
# false: 强制期,不带 Idempotency-Key 直接拒绝(仅对接入幂等保护的接口生效)
|
||||
observe_only: true
|
||||
# 关键写接口幂等记录 TTL(秒)
|
||||
default_ttl_seconds: 86400
|
||||
# 系统操作接口(update/rollback/restart)幂等记录 TTL(秒)
|
||||
system_operation_ttl_seconds: 3600
|
||||
# processing 锁超时(秒)
|
||||
processing_timeout_seconds: 30
|
||||
# 可重试失败退避窗口(秒)
|
||||
failed_retry_backoff_seconds: 5
|
||||
# 持久化响应体最大长度(字节)
|
||||
max_stored_response_len: 65536
|
||||
# 过期幂等记录清理周期(秒)
|
||||
cleanup_interval_seconds: 60
|
||||
# 每轮清理最大删除条数
|
||||
cleanup_batch_size: 500
|
||||
|
||||
# =============================================================================
|
||||
# Concurrency Wait Configuration
|
||||
# 并发等待配置
|
||||
|
||||
Reference in New Issue
Block a user