Skip to content
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

After upgrading td-agent from version 3.8.0 to 4.1.0, cpu utilization of td-agent got increased #3482

Closed
VarunSrinivasa opened this issue Aug 3, 2021 · 6 comments

Comments

@VarunSrinivasa
Copy link

Describe the bug

Td-agent of version 3.8.0 and elasticsearch of version 7.8.0 is deployed in kubernetes environment. After upgrading td-agent to verison 4.1.0, we observe that there cpu utilization is very high

  1. In the fluentd version 3.8.0 , average cpu utilization is 0.4 core
  2. In the fluentd version 4.1.0, average cpu utilization is 1 core

To Reproduce

Deploy fluentd of version 3.8.0 in kubernetes environment with cpu configuration of 1 core and 1gb ram with below configuration

image
image

After upgrading the fluentd version 4.1.0 with the same configuration cpu consumption of fluentd got increased to 1 core.

Expected behavior

Cpu consumption of fluentd should not increase after migrating from the version 3.8.0 to 4.1.0

Your Environment

- Fluentd version:
- TD Agent version:4.1.0
- Operating system: centos 7.9
- Kernel version:

Your Configuration

image

image

Your Error Log

There are no error messages

Additional context

No response

@VarunSrinivasa VarunSrinivasa changed the title After upgrading td-agent from -.8.0 to td-agent-4.1.0, cpu utilization of td-agent got increased After upgrading td-agent from version 3.8.0 to 4.1.0, cpu utilization of got increased Aug 3, 2021
@VarunSrinivasa VarunSrinivasa changed the title After upgrading td-agent from version 3.8.0 to 4.1.0, cpu utilization of got increased After upgrading td-agent from version 3.8.0 to 4.1.0, cpu utilization of td-agent got increased Aug 3, 2021
@ashie
Copy link
Member

ashie commented Aug 4, 2021

Could you check #3382?
Probably your issue is same with it.

@Dredd13
Copy link

Dredd13 commented Aug 4, 2021

@ashie it seems that there is a bug that it gets fixed with 4.2.0 version. Based on the configuration file given by Varun do you see any possible workaround, configuration wise?

@VarunSrinivasa
Copy link
Author

Hi @ashie ,

Can you please confirm any this issue can be fixed by changing any configuration in td-agent or we have to upgrade to fluentd 4.2.0 ?

Regards,
Varun S

@ashie
Copy link
Member

ashie commented Aug 4, 2021

Sorry, it seems a different issue.
td-agent 4.1.1 (Ruby 2.7.3 & excon 0.80.1) is affected by #3382 but td-agent 4.1.0 (Ruby 2.7.2 & excon 0.78.1) isn't.

@VarunSrinivasa
Copy link
Author

VarunSrinivasa commented Aug 4, 2021

Hi @ashie ,

td-agent 4.1.0 (Ruby 2.7.2 & excon 0.78.1) --->Yes

Sorry td-agent version used here is td-agent-4.1.0-1

Regards,
Varun S

@VarunSrinivasa
Copy link
Author

VarunSrinivasa commented Aug 12, 2021

Hi @ashie,

With the above configuration we are not facing any issues so closing this issue, But we are facing issue when http plugin is used. So different issue is raised for the same. Please find the bug id:- #3487 .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants