Ottomata has submitted this change and it was merged. Change subject: Adding parameterization for open file descriptor ulimit ......................................................................
Adding parameterization for open file descriptor ulimit Change-Id: I0029d48f593117e71237ba11d403d4bb6b2769a9 --- M manifests/defaults.pp M manifests/server.pp M templates/kafka.default.erb 3 files changed, 9 insertions(+), 0 deletions(-) Approvals: Ottomata: Verified; Looks good to me, approved jenkins-bot: Verified diff --git a/manifests/defaults.pp b/manifests/defaults.pp index 193eebd..7dafcc5 100644 --- a/manifests/defaults.pp +++ b/manifests/defaults.pp @@ -28,6 +28,8 @@ $jmx_port = 9999 $log_dirs = ['/var/spool/kafka'] $heap_opts = undef + $nofiles_ulimit = 8192 + $auto_create_topics_enable = false $num_network_threads = 2 diff --git a/manifests/server.pp b/manifests/server.pp index 15cb318..9d15246 100644 --- a/manifests/server.pp +++ b/manifests/server.pp @@ -33,6 +33,10 @@ # # $heap_opts - Heap options to pass to JVM on startup. Default: undef # +# $nofiles_ulimit - If set, the kafka user's ulimit will be set to this, and the +# kafka server will set this via ulimit -n. You +# will probably need to reboot for this to take effect. +# # $auto_create_topics_enable - If autocreation of topics is allowed. Default: false # # $num_network_threads - The number of threads handling network @@ -92,6 +96,7 @@ $jmx_port = $kafka::defaults::jmx_port, $heap_opts = $kafka::defaults::heap_opts, + $nofiles_ulimit = $kafka::defaults::nofiles_ulimit, $auto_create_topics_enable = $kafka::defaults::auto_create_topics_enable, diff --git a/templates/kafka.default.erb b/templates/kafka.default.erb index 2765a0c..a8d2d7a 100644 --- a/templates/kafka.default.erb +++ b/templates/kafka.default.erb @@ -8,6 +8,8 @@ KAFKA_GROUP=kafka KAFKA_CONFIG=/etc/kafka +KAFKA_NOFILES_ULIMIT=<%= @nofiles_ulimit %> + # The default JMX_PORT for Kafka Brokers is 9999. # Set JMX_PORT to something else to override this. JMX_PORT=<%= @jmx_port %> -- To view, visit https://gerrit.wikimedia.org/r/110592 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: merged Gerrit-Change-Id: I0029d48f593117e71237ba11d403d4bb6b2769a9 Gerrit-PatchSet: 1 Gerrit-Project: operations/puppet/kafka Gerrit-Branch: master Gerrit-Owner: Ottomata <o...@wikimedia.org> Gerrit-Reviewer: Ottomata <o...@wikimedia.org> Gerrit-Reviewer: jenkins-bot <> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits