Skip to content

Commit

Permalink
Only add raft peers in the same region
Browse files Browse the repository at this point in the history
  • Loading branch information
Victor Castell committed Sep 10, 2019
1 parent 05ec468 commit 0e50c52
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dkron/leader.go
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ func (a *Agent) reconcile() error {
func (a *Agent) reconcileMember(member serf.Member) error {
// Check if this is a member we should handle
valid, parts := isServer(member)
if !valid {
if !valid || parts.Region != a.config.Region {
return nil
}
defer metrics.MeasureSince([]string{"dkron", "leader", "reconcileMember"}, time.Now())
Expand Down

0 comments on commit 0e50c52

Please sign in to comment.