Uploaded image for project: 'James Server'
  1. James Server
  2. JAMES-3607

Healthcheck for Email reception

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Fixed
    • master
    • 3.7.0
    • guice, rabbitmq
    • None

    Description

      Why?

      As described in JAMES-3605, RabbitMQ consumers can end up being stuck.

      In such a scenario we are not able to detect the failure and end up relying on cunsumer reports to restart James.

      We would like to have a health-check, allowing automatic testing about mail reception. (Both periodical logs and also a HTTP endpoint for integration with a monitoring system)...

      So a healthcheck no longer for a technical component but for a feature.

      How?

      In `healthcheck.properties` on could configure a user to run reception checks:

      reception.checks.user=test@domain.tld
      

      If configured, the healthcheck would then send a mail to the user, await the email via the eventbus, then retrieve its content.

      To be placed in a new `server/container/feature-checks` maven project.

      Definition of done

      • Given a paused RabbitMQ the check fails for the distributed server
      • Given a working James the check passes.

      Disclaimer

      The idea had been first expressed by matthieu years ago...

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              btellier Benoit Tellier
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1h 50m
                  1h 50m