-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add <worker n> section to set a configuration for a specific worker
- Loading branch information
Yuki Ito
committed
Mar 23, 2017
1 parent
881d481
commit 08ab6ec
Showing
10 changed files
with
539 additions
and
14 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<system> | ||
workers 8 | ||
root_dir /path/fluentd/root | ||
</system> | ||
|
||
<source> # top-level sections works on all workers in parallel | ||
@type forward | ||
port 24224 | ||
</source> | ||
|
||
<match all> # this section works on all workers too | ||
@type stdout | ||
<inject> | ||
worker_id_key worker_id | ||
</inject> | ||
</match> | ||
|
||
<worker 0> # this section works only on first worker process | ||
<match worker0> | ||
@type stdout | ||
<inject> | ||
worker_id_key worker_id | ||
</inject> | ||
</match> | ||
</worker> |
This file contains 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 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 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 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 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
Oops, something went wrong.