close idle HTTPDownstreamSessions before load shedding
authorWoo Xie <woo@fb.com>
Tue, 12 May 2015 00:47:27 +0000 (17:47 -0700)
committerViswanath Sivakumar <viswanath@fb.com>
Wed, 20 May 2015 17:56:41 +0000 (10:56 -0700)
commit6d88461ace59daf1fa06e54e2240b5521bd1e639
tree1417a36033c839b708322d2f2aacdba10c84d1d8
parentc923afa9c11cf90856076fb808609e569e402d31
close idle HTTPDownstreamSessions before load shedding

Summary:
when any system resource limit is reached, proxygen reduces the number of idle downstream sessions to accomodate new ones.

Test Plan:
canarying on edge241.01.ams3.  Here is the number of idle connection closed during pre load shedding stage.

https://www.facebook.com/pxlcld/ml7J

Reviewed By: afrind@fb.com

Subscribers: alandau, noamler, fugalh, bmatheny, folly-diffs@, jsedgwick, yfeldblum, chalfant, xning, alexkr

FB internal diff: D2030988

Tasks: 5698711

Signature: t1:2030988:1431369559:ce7328d51c7fd0afa7e9e5c19b0c66736d01fee1
folly/wangle/acceptor/Acceptor.cpp
folly/wangle/acceptor/ConnectionManager.cpp
folly/wangle/acceptor/ConnectionManager.h
folly/wangle/acceptor/ManagedConnection.h