Skip to content
This repository was archived by the owner on Oct 2, 2020. It is now read-only.
This repository was archived by the owner on Oct 2, 2020. It is now read-only.

Overrepresented function during profiling: add_elasticsearch_index_name_field #21

Description

@blofroth

We were troubleshooting some performance issues of fluentd in an Openshift cluster, and experimented with running the Rbspy sampling profiler on a running fluentd pod when we had full queues. See attached flamegraph. We see that a block in "add_elasticsearch_index_name_field" is active in 35% of sampled stack frames.

loadedFluentdFlamegraph

Note: in the end it seems our main bottleneck was a slow syslog server, so maybe this does not indicate an issue for any users.

I figured I would at least report it, since it could be an interesting data point.

I'm not a Ruby developer, but just skimming this
https://www.monitis.com/blog/20-ruby-performance-tips/

I would guess it could have something to do with date parsing when constructing the "elasticsearch_index_name"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions