-
Notifications
You must be signed in to change notification settings - Fork 849
TS-4612: Proposal: InactivityCop Optimize #771
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
iocore/net/UnixNetVConnection.cc
Outdated
| nh->open_list.enqueue(this); | ||
|
|
||
| ink_assert(!inactivity_timeout_in); | ||
| // ink_assert(!inactivity_timeout_in); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This can be removed.
|
@bryancall Should we merge this? [approve ci]. |
|
Linux build failed! See https://ci.trafficserver.apache.org/job/Github-Linux/367/ for details. |
|
@oknet This fails on the clang-format, can you please fix and push an update? |
|
FreeBSD build successful! See https://ci.trafficserver.apache.org/job/Github-FreeBSD/470/ for details. |
|
@zwoop Yes, this should be merged after the clang-format. |
|
clang-format is done. |
|
[approve ci] |
|
FreeBSD build successful! See https://ci.trafficserver.apache.org/job/Github-FreeBSD/475/ for details. |
|
Linux build successful! See https://ci.trafficserver.apache.org/job/Github-Linux/372/ for details. |
|
@bryancall I'm found open_list also used in Cluster. file: iocore/cluster/ClusterHandlerBase.cc Is there have InactivityCop for Cluster? I am not familiar with the cluster. |
|
update iocore/cluster/ClusterHandlerBase.cc @bryancall @zwoop |
|
@oknet I don't think it is necessary to remove it from the cop_list, since it is currently not being removed from the list and it is checking the inactivity timeouts. I would leave it as is. |
|
@bryancall to review the codes of ClusterHandlerBase.cc From my understanding of the code, the codes from L1007 to L1033 means:
I think the unbind include remove vc from cop_list here. |
|
Where are we with this? Ready to land? |
|
FreeBSD build successful! See https://ci.trafficserver.apache.org/job/Github-FreeBSD/632/ for details. |
|
Linux build successful! See https://ci.trafficserver.apache.org/job/Github-Linux/528/ for details. |
|
rebased on master |
|
@oknet would you mind revising the commit subject and descripton? |
|
@jpeach @bryancall add comments and details in commit message |
|
Linux build failed! See https://ci.trafficserver.apache.org/job/Github-Linux/750/ for details. |
|
FreeBSD build failed! See https://ci.trafficserver.apache.org/job/Github-FreeBSD/854/ for details. |
|
FreeBSD build failed! See https://ci.trafficserver.apache.org/job/Github-FreeBSD/855/ for details. |
|
Linux build failed! See https://ci.trafficserver.apache.org/job/Github-Linux/751/ for details. |
Load the NetVCs from open_list to cop_list before next InactivityCop runs. NetHandler will remove NetVC from cop_list if it is triggered. As the NetHandler runs, the number of NetVCs in the cop_list is decreasing. Lots of NetVCs will be removed from cop_list because the NetHandler runs 100 times maximum between InactivityCop runs. Therefore we don't have to check all the NetVCs as much as open_list.
|
FreeBSD build successful! See https://ci.trafficserver.apache.org/job/Github-FreeBSD/856/ for details. |
|
Linux build successful! See https://ci.trafficserver.apache.org/job/Github-Linux/752/ for details. |
The h2disable and h2disable_no_accept_threads autests both had curl output expectations that have changed in the recent release of curl. Here is the old output: ``` Using HTTP2, server supports multiplexing ``` Here is the new output ``` using HTTP/2 ``` This updates the ContainsExpression and ExcludesExpression strings to be able to work with both versions of curl. (cherry picked from commit aa33256)
* Normalize Accept-Encoding header value before cache lookup Co-authored-by: Min Chen <mchen@yahoo-corp.jp> * Fix typos and use f-strings for formatting * fix errors in the previous commit * Remove select_ports --------- Co-authored-by: Masakazu Kitajo <maskit@apache.org> Co-authored-by: Min Chen <mchen@yahoo-corp.jp>
Optimize InactivityCop on a heavy load and high level concurrent connection system.
It is set default inactivity timeout before put vc into open_list.