Last active
June 11, 2019 22:32
-
-
Save luhn/af36a17b46a3eb7640ccb7c5bacea9bc to your computer and use it in GitHub Desktop.
Fluentd Keepalive Bug
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
version: "3.7" | |
services: | |
src: | |
build: | |
context: . | |
dockerfile: src.Dockerfile | |
dst: | |
build: | |
context: . | |
dockerfile: dst.Dockerfile | |
container_name: dst |
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
<source> | |
@type forward | |
port 24224 | |
bind 0.0.0.0 | |
<security> | |
self_hostname host2 | |
shared_key mysecret | |
</security> | |
</source> | |
<match **> | |
@type stdout | |
</match> |
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
FROM fluent/fluentd:v1.5-debian | |
COPY dst.conf /fluentd/etc/fluent.conf |
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
<source> | |
@type exec | |
tag system.loadavg | |
command cat /proc/loadavg | cut -d ' ' -f 1,2,3 | |
run_interval 5s | |
<parse> | |
@type tsv | |
keys avg1,avg5,avg15 | |
delimiter " " | |
</parse> | |
</source> | |
<match **> | |
@type forward | |
keepalive true | |
<server> | |
host dst | |
port 24224 | |
</server> | |
<security> | |
self_hostname host1 | |
shared_key mysecret | |
</security> | |
<buffer> | |
flush_interval 5s | |
total_limit_size 64m | |
</buffer> | |
</match> |
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
FROM fluent/fluentd:v1.5-debian | |
COPY src.conf /fluentd/etc/fluent.conf |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment