Skip to content

Commit 1aa6b76

Browse files
author
Cosmin Lehene
committed
Added master.pp $quorum variable
1 parent 286b968 commit 1aa6b76

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

manifests/master.pp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
$credentials = [],
4242
$syslog_logger = true,
4343
$force_provider = undef, #temporary workaround for starting services
44+
$quorum = $mesos::quorum,
4445
$use_hiera = $mesos::use_hiera,
4546
$single_role = $mesos::single_role,
4647
) inherits mesos {

templates/master.erb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,12 @@
1414
# ZooKeeper URL (used for leader election amongst masters)
1515
export MESOS_ZK="<%= @zookeeper_url %>"
1616

17+
# The size of the quorum of replicas when using 'replicated_log' based
18+
# registry. It is imperative to set this value to be a majority of
19+
# masters i.e., quorum > (number of masters)/2.
20+
21+
QUORUM=<%= @quorum %>
22+
1723
# Human readable name for the cluster, displayed in the webui
1824
export MESOS_CLUSTER="<%= @cluster %>"
1925

0 commit comments

Comments
 (0)