Updates memberlist to get NACK penalty improvements.

This commit is contained in:
James Phillips 2017-03-17 15:28:12 -07:00
parent e49d5456aa
commit 21e2307248
No known key found for this signature in database
GPG Key ID: 77183E682AC5FC11
2 changed files with 4 additions and 4 deletions

View File

@ -400,7 +400,7 @@ func (m *Memberlist) probeNode(node *nodeState) {
awarenessDelta = 0
if expectedNacks > 0 {
if nackCount := len(nackCh); nackCount < expectedNacks {
awarenessDelta += 2 * (expectedNacks - nackCount)
awarenessDelta += (expectedNacks - nackCount)
}
} else {
awarenessDelta += 1

6
vendor/vendor.json vendored
View File

@ -588,10 +588,10 @@
"revisionTime": "2015-06-09T07:04:31Z"
},
{
"checksumSHA1": "lhcYybZqKjS43O2DBjvnGn0yPPo=",
"checksumSHA1": "JJsKjmgNTUTaEHEEAQgb9jCGGiM=",
"path": "github.com/hashicorp/memberlist",
"revision": "bbad45074a20fa539bc52e62d1e5f9f8cb467e7c",
"revisionTime": "2017-03-16T23:38:26Z"
"revision": "6cc6075ba9fba1915fa0416f00d2b4efa9dc2262",
"revisionTime": "2017-03-17T22:24:04Z"
},
{
"checksumSHA1": "qnlqWJYV81ENr61SZk9c65R1mDo=",