diff --git a/docs/v1.0/multi-process-workers.txt b/docs/v1.0/multi-process-workers.txt index 8a956a7a..8db1d135 100644 --- a/docs/v1.0/multi-process-workers.txt +++ b/docs/v1.0/multi-process-workers.txt @@ -47,6 +47,82 @@ Some plugins don't work on multi process worker, e.g. `in_tail`. For such plugin With this directive, you can mix multi-process ready and non-multi-process ready plugins in 1 instance. +### <worker N-M> directive + +As of Fluentd v1.4.0, `` syntax has been introduced: + + :::text + + workers 6 + + + + + @type forward + + + + @type record_transformer + enable_ruby + + worker_id ${ENV['SERVERENGINE_WORKER_ID']} + + + + + @type stdout + + + # work on worker 0 and worker 1. + + + + @type tcp + + @type none + + tag test + + + + @type record_transformer + enable_ruby + + worker_id ${ENV['SERVERENGINE_WORKER_ID']} + + + + + @type stdout + + + # work on worker 2 and worker 3. + + + + @type udp + + @type none + + tag test + + + + @type record_transformer + enable_ruby + + worker_id ${ENV['SERVERENGINE_WORKER_ID']} + + + + + @type stdout + + + # work on worker 4 and worker 5. + +With this directive, you can specify multiple workers per worker directive. + ### root_dir/@id parameter These parameters must be specified when you use file buffer.