Skip to content

Commit

Permalink
fix: add worker count variable
Browse files Browse the repository at this point in the history
  • Loading branch information
RashadAnsari committed Sep 3, 2020
1 parent a9ceb1b commit 3f3c1ed
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ Fluentd is an open source data collector for unified logging layer.
## Role Variables
``` yaml
# Worker count
fluentd_worker_count: 1

# Paths to custom configuration templates
fluentd_custom_conf: []

Expand Down
3 changes: 3 additions & 0 deletions defaults/main.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Worker count
fluentd_worker_count: 1

# Paths to custom configuration templates
fluentd_custom_conf: []

Expand Down
2 changes: 1 addition & 1 deletion templates/td-agent.conf.j2
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# {{ ansible_managed }}

<system>
workers {{ ansible_processor_vcpus }}
workers {{ fluentd_worker_count }}
</system>

@include /etc/td-agent/conf.d/*.conf

0 comments on commit 3f3c1ed

Please sign in to comment.