[ 
https://issues.apache.org/jira/browse/TS-4909?focusedWorklogId=30678&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-30678
 ]

ASF GitHub Bot logged work on TS-4909:
--------------------------------------

                Author: ASF GitHub Bot
            Created on: 14/Oct/16 20:45
            Start Date: 14/Oct/16 20:45
    Worklog Time Spent: 10m 
      Work Description: Github user bryancall commented on a diff in the pull 
request:

    https://github.com/apache/trafficserver/pull/1063#discussion_r83498036
  
    --- Diff: proxy/Main.cc ---
    @@ -346,6 +346,54 @@ class DiagsLogContinuation : public Continuation
       }
     };
     
    +class MemoryLimit : public Continuation
    +{
    +public:
    +  MemoryLimit() : Continuation(new_ProxyMutex()), _memory_limit(0) { 
SET_HANDLER(&MemoryLimit::periodic); }
    +  ~MemoryLimit() { mutex = NULL; }
    +  int
    +  periodic(int event, Event *e)
    +  {
    +    if (event == EVENT_IMMEDIATE) {
    +      // rescheduled from periodic to immediate event
    +      // this is the indication to terminate
    +      delete this;
    +      return EVENT_DONE;
    +    }
    +    if (_memory_limit == 0) {
    +      // first time it has been run
    +      _memory_limit = 
REC_ConfigReadInteger("proxy.config.memory.max_usage");
    --- End diff --
    
    I don't have an event scheduled if it is not configured.  I thought it 
would be nice to not have an event scheduled every 1 second if someone doesn't 
have it configured.


Issue Time Tracking
-------------------

    Worklog Id:     (was: 30678)
    Time Spent: 50m  (was: 40m)

> Throttling based on resident memory usage
> -----------------------------------------
>
>                 Key: TS-4909
>                 URL: https://issues.apache.org/jira/browse/TS-4909
>             Project: Traffic Server
>          Issue Type: Improvement
>          Components: Core
>            Reporter: Bryan Call
>             Fix For: 7.1.0
>
>          Time Spent: 50m
>  Remaining Estimate: 0h
>
> Add a feature to stop accepting connections if the resident memory is over a 
> certain limit.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to