forked from ohadlevy/astapor
-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BZ #1180158: Ceilometer coordination resilience with redis-sentinel
https://bugzilla.redhat.com/show_bug.cgi?id=1180158 We use redis-sentinel to monitor the redis instances running on controller nodes, and to detect when mastership needs to be failed over to a slave. The sentinel cluster has a default quorum of 2, so can survive the loss of one controller on a minimally sized HA controller plane. The ceilometer backend_url contains a list of fallback sentinels, similar in style to the mongodb connect URL, except that the additional addresses are specified as query parameters.
- Loading branch information
Eoghan Glynn
committed
Jan 13, 2015
1 parent
f77577e
commit 195822a
Showing
3 changed files
with
43 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,22 @@ | ||
class quickstack::pacemaker::redis( | ||
$bind_host = '127.0.0.1', | ||
$port = '6379', | ||
$master_host = '127.0.0.1', | ||
$monitoring_port = '26379', | ||
$monitoring_group = 'sentinel-group', | ||
$slaveof = undef, | ||
) { | ||
|
||
class {'::quickstack::firewall::redis': | ||
ports => [$port], | ||
ports => [$port, $monitoring_port], | ||
} | ||
|
||
class {'::quickstack::db::redis': | ||
bind_host => $bind_host, | ||
port => $port, | ||
master_host => $master_host, | ||
monitoring_port => $monitoring_port, | ||
monitoring_group => $monitoring_group, | ||
slaveof => $slaveof, | ||
} | ||
} |