Skip to content

Commit 0bacfef

Browse files
committed
feat: setup support for multi process workers
Initial support for multiproccess workers Signed-off-by: jcriadomarco <[email protected]>
1 parent 2761a43 commit 0bacfef

File tree

4 files changed

+281
-246
lines changed

4 files changed

+281
-246
lines changed

base-image/Makefile

+3-4
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ run: build-image
2020
-v `pwd`/failsafe.conf:/fluentd/etc/fluent.conf \
2121
-v /var/log:/var/log \
2222
-v /var/run:/var/run \
23-
-e FLUENTD_OPT="--no-supervisor" \
2423
$(IMAGE):$(TAG)
2524

2625
test: build-image
@@ -29,9 +28,9 @@ test: build-image
2928
-v `pwd`:/workspace \
3029
-v `pwd/plugins`:/fluentd/plugins \
3130
-v `pwd`/test/local.conf:/fluentd/etc/fluent.conf \
32-
-e FLUENTD_OPT="--no-supervisor" \
33-
-e PAPERTRAIL_PORT=$$PAPERTRAIL_PORT \
34-
-e PAPERTRAIL_HOST=$$PAPERTRAIL_HOST \
31+
-p 0.0.0.0:24231:24231 \
32+
-e PAPERTRAIL_PORT=$$PAPERTRAIL_PORT \
33+
-e PAPERTRAIL_HOST=$$PAPERTRAIL_HOST \
3534
$(IMAGE):$(TAG)
3635

3736
list-gems:

config-reloader/templates/fluent.conf

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
# needed to enable /api/config.reload
77
rpc_endpoint 127.0.0.1:24444
8+
workers 2
89
</system>
910

1011
# you can turn this on for debug

0 commit comments

Comments
 (0)