nsqadmin参数解析

本文介绍了nsqadmin中消费消息的三种结果:FIN、REQ、TIMEOUT,以及消息在不同状态下的处理方式。重点讲解了nsqadmin参数,包括Message Queues的Depth、In-Flight和Deferred,以及Statistics的Requeued、Timed Out和Messages等关键指标,揭示了消息队列的运行状态和客户端连接情况。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

消费消息

每条消息有3种结果:消费成功(FIN)、消费失败(REQ)、消费超时(TIMEOUT)。若nsqd进程意外退出,则内存中以及还没来得及刷入硬盘的消息都会丢失。
若消息在msg_timeout内没消费,则会自动重新入队列REQ;若消息在max_msg_timeout内还没消费,则会记为TIMEOUT

nsqadmin参数

Message Queues:

  • Depth: Current sum of messages in memory on disk (i.e. the “backlog” of messages pending delivery) 当前消息数:内存和硬盘转存的消息数.
  • In-Flight: Current count of messages delivered but not yet finished (FIN), requeued (REQ) or timed out 当前未完成的消息数:包括发送但未返回FIN/重新入队列REQ/超时TIMEOUT 三种消息数之和.
  • Deferred: Current count of messages that were requeued and explicitly deferred which are not yet available for delivery. 当前重入队列但还没重新发送消息的数量,这个字段作用是?

Statistics:

  • Requeued: Total count of messages that have been added back to the queue due to time outs or explicit requeues. 重入队列数(或者因为超时重入队列,或者
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值