You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by "Benoit Tellier (Jira)" <se...@james.apache.org> on 2020/07/06 11:20:00 UTC

[jira] [Commented] (JAMES-3297) Publish the number of items currently in the mailet pipeline as a metric

    [ https://issues.apache.org/jira/browse/JAMES-3297?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17151961#comment-17151961 ] 

Benoit Tellier commented on JAMES-3297:
---------------------------------------

JamesMailSpooler currently have a *AtomicInteger processingActive* that is exposed over JMX. Would that fit you needs? 

In such case we just need to replace the AtomicInteger with a metric and we are good.

> Publish the number of items currently in the mailet pipeline as a metric
> ------------------------------------------------------------------------
>
>                 Key: JAMES-3297
>                 URL: https://issues.apache.org/jira/browse/JAMES-3297
>             Project: James Server
>          Issue Type: Improvement
>            Reporter: Matthieu Baechler
>            Priority: Major
>
> Some MailQueue implementations have a limit on the number of elements that can be dequeued but not yet ack (RabbitMQ has that feature).
> In some cases it can prevent new mails to being dequeued and it's not easy to diagnose.
> By exposing that number as a metric and/or issuing a warning when this number reach the limit, we could help the operator to understand what's going wrong.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org