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}}