[
https://issues.apache.org/jira/browse/TS-4909?focusedWorklogId=30685&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-30685
]
ASF GitHub Bot logged work on TS-4909:
--------------------------------------
Author: ASF GitHub Bot
Created on: 14/Oct/16 21:15
Start Date: 14/Oct/16 21:15
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_r83502802
--- Diff: iocore/net/UnixNetAccept.cc ---
@@ -280,6 +234,14 @@ NetAccept::do_blocking_accept(EThread *t)
return -1;
}
+ // Throttle accepts
+ if (!backdoor && (check_net_throttle(ACCEPT, now) ||
net_memory_throttle)) {
+ Debug("net_accept", "Too many connections or too much memory used,
throttling");
+ check_throttle_warning();
+ con.close();
--- End diff --
check_throttle_warning logs an error message. There currently isn't a stat
for throttled incoming connections. I can file a bug for it since I believe it
will need to be added in a couple places.
Issue Time Tracking
-------------------
Worklog Id: (was: 30685)
Time Spent: 1.5h (was: 1h 20m)
> 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: 1.5h
> 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)