-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Add log throttling per file (revised) #3185
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
Merged
+154
−32
Merged
Changes from all commits
Commits
Show all changes
38 commits
Select commit
Hold shift + click to select a range
d6755ed
in_tail: Handle log throttling per file feature
cosmo0920 a5d3a5a
in_tail: Use size config type for read_bytes_limit_per_second
cosmo0920 d3d7119
in_tail: Use actual read bytes to calculate read bytes number
cosmo0920 30a63ca
in_tail: Use more meaningful variable name
cosmo0920 61554dc
in_tail: Use fixed value instead of variable
cosmo0920 a54f25b
in_tail: test: Add log throttling testcases for w/o stat watcher situ…
cosmo0920 2b2260e
in_tail: Guard for read empty lines
cosmo0920 8ebc227
Use Thread Pool on tailing to prevent Kernel#sleep for entire sleep
cosmo0920 6e8a13c
in_tail: Use Fluent::EventTime instead of Time
cosmo0920 5b19e40
in_tail: Check invalid max_thread_pool_size on #configure
cosmo0920 854cca8
in_tail: Set default value of max_thread_pool_size as 1
cosmo0920 f76f45a
in_tail: Use 2 or more thread pool size on log throttling testcases
cosmo0920 4b2526b
in_tail: Add warning for specifying less equal than 8192 on read_byte…
cosmo0920 f88c4ae
in_tail: Check thread pool objects existences
cosmo0920 61ae7ca
in_tail: Use more strict parameter checking for log throttling feature
cosmo0920 de6bef3
in_tail: thread_pool: Add tailing thread poll testcases
cosmo0920 48d9be3
Use 8192 bytes on number_bytes_read calculation
cosmo0920 4d9a755
Fix a typo
cosmo0920 a4459ae
Use constant instead of interger values
cosmo0920 4da4ae3
in_tail: Fix unstable testcases
cosmo0920 f29309b
in_tail: Use thread pool only when log throttling feature is enabled
cosmo0920 490a329
in_tail: Fix incorrect #join usage
cosmo0920 f1807c9
in_tail: Use Fluent::Clock.new to obtain starting time
cosmo0920 7023b3f
in_tail: Use Fluent::Clock.now instead of Fluent::EventTime.now again
cosmo0920 ae9deef
in_tail: Prevent to call for nil instance
cosmo0920 8c63cb1
in_tail: Prevent to reuse `@thread_pool`
cosmo0920 43e8f4f
in_tail: test: Use safe file removing method
cosmo0920 808e27e
in_tail: Remove needless start_reading variable reset
cosmo0920 1c88b0c
Use #bytesize for calculating read bytes
cosmo0920 e3e9345
in_tail: thread_pool: Check running status properly
cosmo0920 671c666
in_tail: thread_pool: Detect running or not with only queue is closed
cosmo0920 e4747ea
in_tail: test: Reconsider testing caluses and assertion conditions
cosmo0920 af2ea9b
in_tail: Extract as a method for sleep for log ingestion code
cosmo0920 d3a3023
Avoid to use `#sleep` for stop reading files
cosmo0920 478b487
Remove needless thread poll implementation
cosmo0920 147ffbf
Split complicated clause into read lines limits and log throttling
cosmo0920 6be3533
Use early return on the log throttling first clause
cosmo0920 98616e2
in_tail: Replace a magic number with a constant
ashie File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.