ace-commits mailing list archives

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

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

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: https://issues.apache.org/jira/browse/ACE-388
>             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
(v6.1#6144)

Mime
View raw message