[ https://issues.apache.org/jira/browse/JAMES-3849?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17628163#comment-17628163 ]
Benoit Tellier commented on JAMES-3849: --------------------------------------- > I don't think it's a critical issue since WebAdmin should not be exposed > publicly. +1 NEVER do this. > However, if you use some other services to monitor (e.g. Monit, Prometheus > etc.) or external services that are out of your control this could lead to > potential side effects. Those system could be configured to perform, say, I check / minute. Also according to me, healthchecks should remain reasonably cheap, maximum in the few seconds range, ensuring that calling it, eg once a minute is not a problem. > WebAdmin: Cache health checks > ----------------------------- > > Key: JAMES-3849 > URL: https://issues.apache.org/jira/browse/JAMES-3849 > Project: James Server > Issue Type: Improvement > Components: webadmin > Reporter: ouvtam > Priority: Minor > > While working on JAMES-3841 I noticed that a health check (e.g. ActiveMQ) is > called periodically and for each WebAdmin request (i.e. > [http://localhost/healthcheck).] This assumes that a health check call should > be cheap, but might not be. > So calling /healthcheck too regularly can produce pressure for the underlying > service (e.g. ActiveMQ) that could lead to resource waste or loss of > reliability. > I propose to cache the healthcheck results for WebAdmin (e.g. 5 seconds). > What do you think? -- This message was sent by Atlassian Jira (v8.20.10#820010) --------------------------------------------------------------------- To unsubscribe, e-mail: server-dev-unsubscr...@james.apache.org For additional commands, e-mail: server-dev-h...@james.apache.org