Skip to content

Commit

Permalink
Systemd ulimits #56
Browse files Browse the repository at this point in the history
Include system defaults properties in environment.j2 template
to create unit kafka-broker service
  • Loading branch information
Jorge Valderrama authored and jorgesanz committed Jul 31, 2019
1 parent 88f8603 commit 7b7b3a5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions roles/confluent.kafka-broker/defaults/main.yml
Expand Up @@ -16,6 +16,8 @@ kafka:
state: started
environment:
KAFKA_HEAP_OPTS: "-Xmx1g"
systemd_defaults:
LimitNOFILE: 102400
kerberosEnvironment:
KAFKA_HEAP_OPTS: "-Xmx1g"
KAFKA_OPTS: "-Djava.security.auth.login.config=/etc/kafka/kafka_server_jaas.conf"
Expand Down
3 changes: 3 additions & 0 deletions roles/confluent.kafka-broker/templates/environment.j2
Expand Up @@ -2,3 +2,6 @@
{% for key, value in kafka.broker.environment.items() %}
Environment="{{key}}={{value}}"
{% endfor %}
{% for key, value in kafka.broker.systemd_defaults.items() %}
{{key}}={{value}}
{% endfor %}

0 comments on commit 7b7b3a5

Please sign in to comment.