-
Notifications
You must be signed in to change notification settings - Fork 3.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fluent-bit: Support multi instances for fluent-bit go loki plugin (revised) #1454
Conversation
f700549
to
5334949
Compare
I've obtained the back trace with debug symbol enabled shared object (fluent-bit plugin):
Then,
This SEGV seems to come from go runtime. Am I wrong? |
Indeed, the Regarding the |
096b505
to
8ffb481
Compare
Oh, yeah. Thank you for your feedback. 👍
I also gave up on it then.... |
In the previous implementation, this fluent-bit go loki plugin does not support multi instances. Because global variable which is `var plugin *loki` is used for plugin instance management. So, it is always overrided when loki plugin is used. This implementation is based for fluent-plugin-go-s3 plugin multi instances support code. Signed-off-by: Hiroshi Hatake <cosmo0920.oucc@gmail.com>
8ffb481
to
78275a2
Compare
Closing in favor #1294, I still co-authored you in that PR. |
I've noticed that current implementation does not cover multi instance use case.
Signed-off-by: Hiroshi Hatake cosmo0920.oucc@gmail.com
What this PR does / why we need it:
In the previous implementation, this fluent-bit go loki plugin does not
support multi instances.
Because global variable which is
var plugin *loki
is used for plugininstance management.
So, it is always overrided when loki plugin is used.
This implementation is based for fluent-plugin-go-s3 plugin multi instances support code.
Also, I know the similar patch is sent in #1294, but this patch needn't specify context id by users. This ID should be calculated automatically. Users can use fluent-bit plugin in the same way after applying this patch.
Which issue(s) this PR fixes:
Fixes #1446
Special notes for your reviewer:
Built binary with
go build -race
and this patch causes SEGV.But this SEGV occurs current master with
go build -race
: dafb9d8My used fluent-bit config is:
Then, fluent-bit can handle both of loki instances.
Checklist