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

Avoid picking new connection if we only have one host defined #295

Merged
merged 2 commits into from
Mar 1, 2016
Merged

Avoid picking new connection if we only have one host defined #295

merged 2 commits into from
Mar 1, 2016

Conversation

benrubson
Copy link
Contributor

Hello,

This pull request avoid picking new connection if we only have one host defined.
This avoids lines of log every ~15 seconds :

2016-02-25 21:59:32,499 tcollector[84137] INFO: Selected connection: my.tsdb.host:443
2016-02-25 21:59:47,994 tcollector[84137] INFO: No more healthy hosts, retry with previously blacklisted
2016-02-25 21:59:47,994 tcollector[84137] INFO: Selected connection: my.tsdb.host:443
2016-02-25 22:00:03,366 tcollector[84137] INFO: No more healthy hosts, retry with previously blacklisted
2016-02-25 22:00:03,366 tcollector[84137] INFO: Selected connection: my.tsdb.host:443
2016-02-25 22:00:17,721 tcollector[84137] INFO: No more healthy hosts, retry with previously blacklisted

Thank you !

Ben

@johann8384 johann8384 added this to the 1.3.1 milestone Mar 1, 2016
@johann8384 johann8384 self-assigned this Mar 1, 2016
johann8384 added a commit that referenced this pull request Mar 1, 2016
Avoid picking new connection if we only have one host defined
@johann8384 johann8384 merged commit ee2baf8 into OpenTSDB:master Mar 1, 2016
@benrubson benrubson deleted the pickconnection branch March 1, 2016 21:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants