Skip to content

Commit

Permalink
Disable blocked eval tracker when leadership is lost
Browse files Browse the repository at this point in the history
  • Loading branch information
dadgar committed Feb 1, 2016
1 parent a987dec commit cc2ee4f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions nomad/leader.go
Original file line number Diff line number Diff line change
Expand Up @@ -348,6 +348,9 @@ func (s *Server) revokeLeadership() error {
// Disable the eval broker, since it is only useful as a leader
s.evalBroker.SetEnabled(false)

// Disable the blocked eval tracker, since it is only useful as a leader
s.blockedEvals.SetEnabled(false)

// Disable the periodic dispatcher, since it is only useful as a leader
s.periodicDispatcher.SetEnabled(false)

Expand Down

0 comments on commit cc2ee4f

Please sign in to comment.