-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Remove unnecessary config reload #2709
Remove unnecessary config reload #2709
Conversation
a58a70c
to
39c73f8
Compare
Signed-off-by: Yuta Iwama <[email protected]>
Signed-off-by: Yuta Iwama <[email protected]>
Current implementation loads system_config parameters(rpc_endpoint, enable_get_dump, counter_server) in Supervisor.load_config which is called at ServerEngine creation time. And it can also reload config dynamically via serverengine's mechanism(sending signal USR2 to fluentd). These parameters can be reloadable but it doesn't make any changes to fluentd itself. fluentd document also doesn't mention about signal USR2. so it's no need to load in Supervisor.load_config. it's enough to pass the value at start time. Signed-off-by: Yuta Iwama <[email protected]>
Signed-off-by: Yuta Iwama <[email protected]>
Signed-off-by: Yuta Iwama <[email protected]>
Signed-off-by: Yuta Iwama <[email protected]>
Signed-off-by: Yuta Iwama <[email protected]>
39c73f8
to
c98b348
Compare
@ashie @cosmo0920 could you review this patch? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
nits: Which issue will be fixed by this PR?
|
Good catch… this is related to light config reloading mechanism. |
It does not load the config anymore since fluent#2709, so it should simply returns the config for ServerEngine. Signed-off-by: Daijiro Fukuda <[email protected]>
Closes: fluent#1479 Feedback from @mszyzdek ref. fluent#1479 (comment) * graylog flavour of fluentd-kubernetes-daemonset uses gelf 3.0.0 and this version of gelf gem has Fixnum in code, graylog-labs/gelf-rb@7cc3cbb * in ruby 3.2 Fixnum was removed after previous deprecation in version 2.4 https://www.ruby-lang.org/en/news/2022/12/25/ruby-3-2-0-released/ * ruby in newest fluentd was upgraded to 3.2 fluent/fluentd-docker-image@4f1d5e8 so it also happened in fluentd-kubernetes-daemonset * gelf 3.0.0 cannot work with ruby 3.2+ so we can see sad error on container start NOTE: Even though gelf was updated to 3.1.0, still it has problem with reloading Fluentd configuration with SIGUSR2. This is known issue since Fluentd 1.8.0. ref. fluent/fluentd#2709 Signed-off-by: Kentaro Hayashi <[email protected]>
Closes: fluent#1479 Feedback from @mszyzdek ref. fluent#1479 (comment) * graylog flavour of fluentd-kubernetes-daemonset uses gelf 3.0.0 and this version of gelf gem has Fixnum in code, graylog-labs/gelf-rb@7cc3cbb * in ruby 3.2 Fixnum was removed after previous deprecation in version 2.4 https://www.ruby-lang.org/en/news/2022/12/25/ruby-3-2-0-released/ * ruby in newest fluentd was upgraded to 3.2 fluent/fluentd-docker-image@4f1d5e8 so it also happened in fluentd-kubernetes-daemonset * gelf 3.0.0 cannot work with ruby 3.2+ so we can see sad error on container start NOTE: Even though gelf was updated to 3.1.0, still it has problem with reloading Fluentd configuration with SIGUSR2. This is known issue since Fluentd 1.8.0. ref. fluent/fluentd#2709 Signed-off-by: Kentaro Hayashi <[email protected]>
Which issue(s) this PR fixes:
ref #2624
What this PR does / why we need it:
Current implementation loads system_config parameters(rpc_endpoint,
enable_get_dump, counter_server) in Supervisor.load_config
which is called at ServerEngine creation time.
And it can also reload config dynamically via serverengine's
mechanism(sending signal USR2 to fluentd).
These parameters can be reloadable but it doesn't make any changes
to fluentd itself. fluentd document also doesn't mention about signal USR2.
so it's no need to load in Supervisor.load_config.
it's enough to pass the value at start time.
Docs Changes:
no need
Release Note:
no need