Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set fluentd thread count by env variable #19

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions rootfs/fluentd/deis-output/lib/fluent/plugin/out_deis.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ class DeisOutput < Output
config_param :tag, :string, :default => ""
config_set_default :output_include_time, false
config_set_default :output_include_tag, false
config_set_default :num_threads, 5
config_set_default :flush_thread_count, 5
config_set_default :num_threads, ENV['NUM_THREADS'] || "5"
config_set_default :flush_thread_count, ENV['FLUSH_THREAD_COUNT'] || "5"

def initialize
super
Expand Down
1 change: 1 addition & 0 deletions rootfs/fluentd/sbin/sources
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ then
cat << EOF >> $FLUENTD_CONF
<source>
@type tail
@log_level warn
path /var/log/containers/*.log
pos_file /var/log/containers.log.pos
tag kubernetes.*
Expand Down