Ottomata has submitted this change and it was merged.

Change subject: Fix default replication factor in clusters with less than 3 
brokers (labs)
......................................................................


Fix default replication factor in clusters with less than 3 brokers (labs)

Bug: T121562
Change-Id: I367ddda6412f1719f01b6d13849ddb390ce51452
---
M modules/role/manifests/kafka/analytics/broker.pp
1 file changed, 1 insertion(+), 1 deletion(-)

Approvals:
  Ottomata: Verified; Looks good to me, approved



diff --git a/modules/role/manifests/kafka/analytics/broker.pp 
b/modules/role/manifests/kafka/analytics/broker.pp
index 5b91102..3a40bad 100644
--- a/modules/role/manifests/kafka/analytics/broker.pp
+++ b/modules/role/manifests/kafka/analytics/broker.pp
@@ -81,7 +81,7 @@
             # I don't trust auto.leader.rebalance :)
             auto_leader_rebalance_enable    => false,
 
-            default_replication_factor      => 3,
+            default_replication_factor      => min(3, 
$config['brokers']['size']),
 
             # The default for log segment bytes has changed in the puppet
             # module / packaging.  536870912 is what we have always used on

-- 
To view, visit https://gerrit.wikimedia.org/r/288604
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I367ddda6412f1719f01b6d13849ddb390ce51452
Gerrit-PatchSet: 2
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Ottomata <[email protected]>
Gerrit-Reviewer: Ottomata <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to