8000 fix: gradually decrease blacklisting in Connor by nikonov1101 · Pull Request #1318 · sonm-io/core · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

fix: gradually decrease blacklisting in Connor #1318

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

Merged
merged 3 commits into from
Aug 17, 2018

Conversation

nikonov1101
Copy link
Member

This commit fixes worker unblacklisting in the following way:
each tracked success decreasing the next possible blacklist step by the value of time in which task was correctly worked.
Each failure doubles a period of time in which a worker will be placed on the blacklist.

So if a worker is unblacklisted after the previous failure (1hr) and correctly work for 30 minutes, then, next blacklist time is 2hr minus 30 minutes.

@nikonov1101 nikonov1101 requested review from 3Hren, antmat, zavgorodnii and a team as code owners August 16, 2018 11:19
@nikonov1101 nikonov1101 added 💩 T: bug This PR/Issue fixes a bug P: medium This PR/Issue has normal priority V: patch This PR/Issue requires patch version to be bumped S: Connor This PR/Issue changes Connor labels Aug 16, 2018
This commit fixes worker unblacklisting in the following way:
each tracked success decreasing the next possible blacklist step by the value of time in which task was correctly worked.
Each failure doubles a period of time in which a worker will be placed on the blacklist.

So if a worker is unblacklisted after the previous failure (1hr) and correctly work for 30 minutes, then, next blacklist time is 2hr minus 30 minutes.
@nikonov1101 nikonov1101 force-pushed the fix/connor/gradually-unblacklist branch from 1cded90 to 4e03e8a Compare August 16, 2018 13:03
@nikonov1101 nikonov1101 merged commit c9608b3 into master Aug 17, 2018
@nikonov1101 nikonov1101 deleted the fix/connor/gradually-unblacklist branch August 17, 2018 12:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P: medium This PR/Issue has normal priority S: Connor This PR/Issue changes Connor 💩 T: bug This PR/Issue fixes a bug V: patch This PR/Issue requires patch version to be bumped
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0