main:优化任务管理及队列监控性能
变更内容: - 优化任务出队逻辑,采用 BLMOVE 提升队列操作的原子性和可靠性。 - 在 JobManager 中新增任务锁续租、超时任务回收、ACK/NACK 状态管理功能。 - 实现任务队列和死信队列监控指标收集,为系统性能分析提供数据支持。 - 扩展 Worker 模块,增加锁续租逻辑及任务回收调度。 - 更新测试用例,覆盖任务管理和队列指标的新增逻辑。 - 补充 metrics.yaml 文件,添加队列相关的监控指标定义。 - 更新依赖,补充 Redis 支持及相关库版本规范。
This commit is contained in:
@@ -94,6 +94,26 @@ custom_metrics:
|
||||
type: counter
|
||||
description: "Webhook 回调发送总数"
|
||||
labels: [status]
|
||||
|
||||
# 队列监控指标
|
||||
job_queue_length:
|
||||
name: "job_queue_length"
|
||||
type: gauge
|
||||
description: "待处理任务队列长度"
|
||||
labels: [queue]
|
||||
|
||||
job_oldest_waiting_seconds:
|
||||
name: "job_oldest_waiting_seconds"
|
||||
type: gauge
|
||||
description: "最长任务等待时间(秒)"
|
||||
labels: []
|
||||
|
||||
job_recovered_total:
|
||||
name: "job_recovered_total"
|
||||
type: counter
|
||||
description: "回收的超时任务总数"
|
||||
labels: []
|
||||
|
||||
prime_check_total:
|
||||
name: "prime_check"
|
||||
type: counter
|
||||
|
||||
Reference in New Issue
Block a user