You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficserver.apache.org by "traeak (via GitHub)" <gi...@apache.org> on 2023/05/09 18:12:38 UTC

[GitHub] [trafficserver] traeak opened a new issue, #9689: ats92: session pool overly contended.

traeak opened a new issue, #9689:
URL: https://github.com/apache/trafficserver/issues/9689

   When testing ats92 compared with ats91 on our linear only ram disk only edge caches we noticed a ramping of established connections to other mid tier caches in our network.
   
   The issue seems to be that the session pool mutexes are overly contested.  high enough numbers of transactions are failing to get the mutex lock and create their own new session while too many sessions that are being put into the pool are hanging around until keep_alive_timeout_out expires.  Changing from using a global pool to a hybrid mitigates some but only extends the overhead a little bit (until the global pool itself starts being contested).  Using hybrid along with lowering the keep alive helps more but increases session churn.
   
   For fun I changed inside HttpSessionManager.cc I changed the MUTEX_TRY_LOCK over to SCOPED_MUTEX_LOCK which totally eliminated any excess connections and statistically had no effect on ttfb (actually it ended up being slightly lower).
   
   With ats91 the session keep_alive_timeout_out wasn't being properly honored so sessions in the pool were being cleaned up early, seemingly fixed in ats92.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@trafficserver.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [trafficserver] ywkaras commented on issue #9689: ats92: session pool overly contended.

Posted by "ywkaras (via GitHub)" <gi...@apache.org>.
ywkaras commented on issue #9689:
URL: https://github.com/apache/trafficserver/issues/9689#issuecomment-1548733780

   I wonder if you used HTTP/2 to origin you would then not care about this.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@trafficserver.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org