Skip to content

Commit

Permalink
feat: setup support for multi process workers
Browse files Browse the repository at this point in the history
Initial support for multiproccess workers

Signed-off-by: jcriadomarco <[email protected]>
  • Loading branch information
javiercri committed Jun 15, 2023
1 parent 2761a43 commit 0bacfef
Show file tree
Hide file tree
Showing 4 changed files with 281 additions and 246 deletions.
7 changes: 3 additions & 4 deletions base-image/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ run: build-image
-v `pwd`/failsafe.conf:/fluentd/etc/fluent.conf \
-v /var/log:/var/log \
-v /var/run:/var/run \
-e FLUENTD_OPT="--no-supervisor" \
$(IMAGE):$(TAG)

test: build-image
Expand All @@ -29,9 +28,9 @@ test: build-image
-v `pwd`:/workspace \
-v `pwd/plugins`:/fluentd/plugins \
-v `pwd`/test/local.conf:/fluentd/etc/fluent.conf \
-e FLUENTD_OPT="--no-supervisor" \
-e PAPERTRAIL_PORT=$$PAPERTRAIL_PORT \
-e PAPERTRAIL_HOST=$$PAPERTRAIL_HOST \
-p 0.0.0.0:24231:24231 \
-e PAPERTRAIL_PORT=$$PAPERTRAIL_PORT \
-e PAPERTRAIL_HOST=$$PAPERTRAIL_HOST \
$(IMAGE):$(TAG)

list-gems:
Expand Down
1 change: 1 addition & 0 deletions config-reloader/templates/fluent.conf
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

# needed to enable /api/config.reload
rpc_endpoint 127.0.0.1:24444
workers 2
</system>

# you can turn this on for debug
Expand Down
Loading

0 comments on commit 0bacfef

Please sign in to comment.