Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sysutils/fluent-bit: fix problems running the fluent-bit
There is a known problem with the default coro_stack_size being too small. Double it to avoid failing to start. [1] Since the daemon option seems to be somewhat funky [2], use daemon to wrap the fluent-bit binary when running from the rc.d script. [1] fluent/fluent-bit#3716 PR: 255593 [2]
- Loading branch information
Palle Girgensohn
authored and
Palle Girgensohn
committed
Sep 2, 2021
1 parent
6161056
commit 2b5d514
Showing
4 changed files
with
49 additions
and
3 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
--- conf/fluent-bit.conf.orig 2021-09-02 23:28:51.035454000 +0200 | ||
+++ conf/fluent-bit.conf 2021-09-02 23:38:09.521171000 +0200 | ||
@@ -81,12 +81,13 @@ | ||
# | ||
# storage.backlog.mem_limit 5M | ||
|
||
-[INPUT] | ||
- name cpu | ||
- tag cpu.local | ||
+#[INPUT] | ||
+ # fails on FreeBSD for some reason, propably not supported | ||
+ # name cpu | ||
+ # tag cpu.local | ||
|
||
# Read interval (sec) Default: 1 | ||
- interval_sec 1 | ||
+ # interval_sec 1 | ||
|
||
[OUTPUT] | ||
name stdout |
11 changes: 11 additions & 0 deletions
11
sysutils/fluent-bit/files/patch-include__fluent-bit__flb_coro.h
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,11 @@ | ||
--- include/fluent-bit/flb_coro.h.orig 2021-09-02 23:11:40.144014000 +0200 | ||
+++ include/fluent-bit/flb_coro.h 2021-09-02 23:12:34.983243000 +0200 | ||
@@ -65,7 +65,7 @@ | ||
#ifdef FLB_CORO_STACK_SIZE | ||
#define FLB_CORO_STACK_SIZE FLB_CORO_STACK_SIZE | ||
#else | ||
-#define FLB_CORO_STACK_SIZE ((3 * PTHREAD_STACK_MIN) / 2) | ||
+#define FLB_CORO_STACK_SIZE ((6 * PTHREAD_STACK_MIN) / 2) | ||
#endif | ||
|
||
#define FLB_CORO_DATA(coro) (((char *) coro) + sizeof(struct flb_coro)) |