From b3adfa5a2054dbdd45530f13135d82ad9194673b Mon Sep 17 00:00:00 2001 From: Ryan Faircloth Date: Wed, 4 Dec 2024 14:18:29 -0600 Subject: [PATCH] feat: configure open file limit at the service level and provide a reasonable default Revert "fix: set selinux for template command" This reverts commit 90e1be5a9e07d4cf87deadd69780725b5da90397. fix: set selinux for template command --- defaults/main.yml | 1 + templates/kafka.service.j2 | 1 + 2 files changed, 2 insertions(+) diff --git a/defaults/main.yml b/defaults/main.yml index 6fdf7d1..7b23d40 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -6,6 +6,7 @@ kafka_version: 3.8.0 kafka_scala_version: 2.13 kafka_java_version: 17 kafka_install_dependencies: false +kafka_open_file_limit: 800000 # if kafka_checksum is defined role will use that value instead getting checksum from kafka downloads page # kafka_checksum: > # sha512: B8679283 A2D8DAB8 6E7C636B 2C688FE9 D9E64AC4 diff --git a/templates/kafka.service.j2 b/templates/kafka.service.j2 index 9395433..9663f8b 100644 --- a/templates/kafka.service.j2 +++ b/templates/kafka.service.j2 @@ -6,6 +6,7 @@ Description=Kafka: Scalable Queuing System After=network.target [Service] +LimitNOFILE={{ kafka_open_file_limit}} Type=simple EnvironmentFile=-/etc/sysconfig/kafka User={{ kafka_user}}