Skip to content

Commit

Permalink
Merge pull request #2549 from influxdb/5_second_timeout
Browse files Browse the repository at this point in the history
Default Raft election timeout to 5 seconds
  • Loading branch information
otoolep committed May 12, 2015
2 parents cb4d906 + f063ebf commit 557b311
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ This release has a breaking API change for writes -- the field previously called
- [#2525](https://github.com/influxdb/influxdb/pull/2525): Serve broker diagnostics over HTTP
- [#2186](https://github.com/influxdb/influxdb/pull/2186): The default status code for queries is now `200 OK`
- [#2298](https://github.com/influxdb/influxdb/pull/2298): Successful writes now return a status code of `204 No Content` - thanks @neonstalwart!
- [#2549](https://github.com/influxdb/influxdb/pull/2549): Raft election timeout to 5 seconds, so system is more forgiving of CPU loads.

### Bugfixes
- [#2535](https://github.com/influxdb/influxdb/pull/2535): Return exit status 0 if influxd already running. Thanks @haim0n.
Expand Down
2 changes: 1 addition & 1 deletion etc/config.sample.toml
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ max-segment-size = 10485760
# Raft configuration. Controls the distributed consensus system.
[raft]
apply-interval = "10ms"
election-timeout = "1s"
election-timeout = "5s"
heartbeat-interval = "100ms"
reconnect-timeout = "10ms"

Expand Down
2 changes: 1 addition & 1 deletion raft/clock.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const (
DefaultApplyInterval = 10 * time.Millisecond

// DefaultElectionTimeout is the default time before starting an election.
DefaultElectionTimeout = 1 * time.Second
DefaultElectionTimeout = 5 * time.Second

// DefaultHeartbeatInterval is the default time to wait between heartbeats.
DefaultHeartbeatInterval = 100 * time.Millisecond
Expand Down

0 comments on commit 557b311

Please sign in to comment.