Skip to content
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

Add off switch for replenishConnections and honor datanode health #1203

Merged
merged 1 commit into from
Jun 21, 2019

Conversation

cgtz
Copy link
Contributor

@cgtz cgtz commented Jun 21, 2019

Make connection replenishment configurable and off by default.
Avoid trying to initiate connections with nodes detected as down.

Make connection replenishment configurable and off by default.
Avoid trying to initiate connections with nodes detected as down.
@cgtz cgtz requested review from jsjtzyy and dharju June 21, 2019 21:06
Copy link
Contributor

@dharju dharju left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

Copy link
Contributor

@jsjtzyy jsjtzyy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good

networkMetrics.connectionReplenished.inc(connectionsInitiated);
if (networkConfig.networkClientEnableConnectionReplenishment) {
int connectionsInitiated = connectionTracker.replenishConnections(this::connect);
networkMetrics.connectionReplenished.inc(connectionsInitiated);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

minor: do you need to update networkMetrics.connectionReplenished in method warmUpConnections as well?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it is better to have this metric only apply to connections replenished in sendAndPoll

@jsjtzyy jsjtzyy merged commit ff49b4b into linkedin:master Jun 21, 2019
@codecov-io
Copy link

Codecov Report

Merging #1203 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##             master    #1203   +/-   ##
=========================================
  Coverage     83.62%   83.62%           
  Complexity       57       57           
=========================================
  Files             6        6           
  Lines           348      348           
  Branches         38       38           
=========================================
  Hits            291      291           
  Misses           45       45           
  Partials         12       12

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d2a544e...f81e560. Read the comment docs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants