ace-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ronald Spierenburg (JIRA)" <>
Subject [jira] [Commented] (ACE-388) Add support to send "back-off time" headers.
Date Thu, 03 Oct 2013 08:48:41 GMT


Ronald Spierenburg commented on ACE-388:

I propose the following interface for the overload detector:

public interface OverloadDetector {
    public String getName();
    public void countUp();
    public void countDown();
    public boolean isOverloaded();

With this interface i see several possible implementations:
- counting detectors (this can be a ManagedServiceFactory) that use the countup/down methods
to check if there are enough remaining. The name of the detector can be used by different
entry points on the server to indicate usage, for example connections by the servlet filter
and backgroundprocessing tasks by a scheduler.
- memory/cpu detectors that only use the isOverloaded method.

This moves the responsibility for counting away from the deploymentproviders towards the edges
of the system. 

> Add support to send "back-off time" headers.
> --------------------------------------------
>                 Key: ACE-388
>                 URL:
>             Project: ACE
>          Issue Type: Task
>          Components: Deployment
>            Reporter: Marcel Offermans
>            Assignee: Angelo van der Sijpt
> Add support to send “back-off time” headers if the server is too busy. Make the “come
back later” time configurable.

This message was sent by Atlassian JIRA

View raw message