-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Term signal #2236
Term signal #2236
Conversation
} | ||
return | ||
} | ||
|
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.
You can now pull pprof profiles if you run:
$ go tool pprof http://localhost:8086/debug/pprof/profile
More info on the net/http/pprof
page. Make sure you change their :6060
ports to :8086
though.
3d9899b
to
6a40442
Compare
select { | ||
case l.terms <- struct{}{}: | ||
default: | ||
} | ||
} |
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.
Term updates immediately but signals asynchronously.
This commit changes raft so that term changes are made immediately and term change signals are made afterward. Previously, election timeouts were invalidated by incoming term changes which caused an election loop. Stale term was also fixed and http/pprof was added too.
6a40442
to
eaf4bfc
Compare
+1 |
fix(bolt): fix auth status update error
Overview
This pull request changes raft so that term changes are made immediately and term change signals are made afterward. Previously, election timeouts were invalidated by incoming term changes which caused an election loop.
Stale term was also fixed and http/pprof was added too.