Skip to content

Commit

Permalink
Merge pull request #722 from okkez/add-descriptions-buffer
Browse files Browse the repository at this point in the history
Add descriptions buffer
  • Loading branch information
sonots committed Nov 27, 2015
2 parents bf70efb + 04dd3cc commit 97da43e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/fluent/buffer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,9 @@ def enable_parallel(b=true)
# This configuration assumes plugins to send records to a remote server.
# Local file based plugins which should provide more reliability and efficiency
# should override buffer_chunk_limit with a larger size.
desc 'The size of each buffer chunk.'
config_param :buffer_chunk_limit, :size, :default => 8*1024*1024
desc 'The length limit of the chunk queue.'
config_param :buffer_queue_limit, :integer, :default => 256

alias chunk_limit buffer_chunk_limit
Expand Down
2 changes: 2 additions & 0 deletions lib/fluent/plugin/buf_file.rb
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,9 @@ def initialize
@uri_parser = URI::Parser.new
end

desc 'The path where buffer chunks are stored.'
config_param :buffer_path, :string
desc 'If true, queued chunks are flushed at shutdown process.'
config_param :flush_at_shutdown, :bool, :default => false

# 'symlink_path' is currently only for out_file.
Expand Down
1 change: 1 addition & 0 deletions lib/fluent/plugin/buf_memory.rb
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ def initialize
super
end

desc 'If true, queued chunks are flushed at shutdown process. Otherwise queued chunks are discarded'
config_param :flush_at_shutdown, :bool, :default => true
# Overwrite default BasicBuffer#buffer_queue_limit
# to limit total memory usage upto 512MB.
Expand Down

0 comments on commit 97da43e

Please sign in to comment.