Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rabbit: raise failure-timeout
Browse files Browse the repository at this point in the history
The failure timeout of 30s is far too low. Essentially it means that a
failed node is considered ready after 30s. Given that any start or
stop operation takes considerably more than 30s. We should only expire
failures after around 30 minutes to prevent flapping services.
dirkmueller committed Mar 25, 2019
1 parent f933d9e commit e7efbee
Showing 2 changed files with 7 additions and 6 deletions.
11 changes: 6 additions & 5 deletions chef/cookbooks/rabbitmq/attributes/default.rb
Original file line number Diff line number Diff line change
@@ -42,13 +42,14 @@
default[:rabbitmq][:ha][:op][:start][:timeout] = "300s"
default[:rabbitmq][:ha][:op][:promote][:timeout] = "180s"
default[:rabbitmq][:ha][:op][:monitor][:interval] = "10s"
default[:rabbitmq][:ha][:clustered_op][:start][:timeout] = "360s"
default[:rabbitmq][:ha][:clustered_op][:stop][:timeout] = "120s"
default[:rabbitmq][:ha][:clustered_op][:promote][:timeout] = "120s"
default[:rabbitmq][:ha][:clustered_op][:demote][:timeout] = "120s"
default[:rabbitmq][:ha][:clustered_op][:start][:timeout] = "540s"
default[:rabbitmq][:ha][:clustered_op][:stop][:timeout] = "180s"
default[:rabbitmq][:ha][:clustered_op][:promote][:timeout] = "180s"
default[:rabbitmq][:ha][:clustered_op][:demote][:timeout] = "180s"
default[:rabbitmq][:ha][:clustered_op][:notify][:timeout] = "180s"
default[:rabbitmq][:ha][:clustered_op][:monitor] = [
{ interval: "30s" }, { interval: "27s", role: "Master" }
{ interval: "60s", timeout: "90s" },
{ interval: "57s", timeout: "90s", role: "Master" }
]

default[:rabbitmq][:hipe_compile] = false
2 changes: 1 addition & 1 deletion chef/cookbooks/rabbitmq/recipes/ha_cluster.rb
Original file line number Diff line number Diff line change
@@ -122,7 +122,7 @@
op node[:rabbitmq][:ha][:clustered_op]
meta ({
"migration-threshold" => "10",
"failure-timeout" => "30s",
"failure-timeout" => "1800s",
"resource-stickiness" => "100"
})
action :update

0 comments on commit e7efbee

Please sign in to comment.