-
Notifications
You must be signed in to change notification settings - Fork 5.4k
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
Honor connection pooling while tracing #7979
Conversation
3e93ab3
to
d2a6845
Compare
Codecov Report
@@ Coverage Diff @@
## master #7979 +/- ##
==========================================
+ Coverage 45.01% 45.04% +0.02%
==========================================
Files 315 315
Lines 50778 50746 -32
==========================================
- Hits 22859 22856 -3
+ Misses 25791 25761 -30
- Partials 2128 2129 +1
Continue to review full report at Codecov.
|
b9a3380
to
f296a2c
Compare
60bbffa
to
fbf26eb
Compare
build failures on this @harshavardhana |
e99cb03
to
bc3bc2c
Compare
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.
your change introduces a regression, the mc client receives trace only on the node it made a connection to, not all the nodes in the cluster
which part of the code that would be causing regression @poornas ? |
5df7afb
to
ea36b8a
Compare
This PR fixes relying on r.Context().Done() by setting ``` Connection: "close" ``` HTTP Header, this has detrimental issues for client side connection pooling. Since this header explicitly tells clients to turn-off connection pooling. This causing pro-active connections to be closed leaving many conn's in TIME_WAIT state. This can be observed with `mc admin trace -a` when running distributed setup. This PR also fixes tracing filtering issue when bucket names have `minio` as prefixes, trace was erroneously ignoring them.
ea36b8a
to
5a954a4
Compare
Mint Automation
7979-5a954a4/mint-gateway-nas.sh.log:
|
Description
Honor connection pooling while tracing
Motivation and Context
This PR fixes relying on r.Context().Done()
by setting
HTTP Header, this has detrimental issues for
client-side connection pooling. Since this
header explicitly tells clients to turn-off
connection pooling. This causing pro-active
connections to be closed leaving many conn's
in TIME_WAIT state. This can be observed with
mc admin trace -a
when running distributedsetup.
This PR also fixes tracing filtering issue
when bucket names have
minio
as prefixes,trace was erroneously ignoring them.
How to test this PR?
In a distributed setup
mc admin trace -a
to observe TIME_WAIT build up when you are performing lot's of I/O such asmc cp -r
on another terminal.Another bug fix related to filtering can be tested with the master branch when running mint tests,
mc admin trace
doesn't print anything. This PR fixes this issue.Types of changes
Checklist: