Skip to content

Possible performance improvement for multiple plugin checks #369

@ogtool

Description

@ogtool

In our environment we're using 3 logstash plugins (geoip, useragent and urldecode) and when doing a puppet agent run with --debug it indicates slowness when these add-ons are being checked.

For each add-on, it runs "/usr/share/logstash/bin/logstash-plugin list ^addonname$" - which when run from a command line takes 5-10 seconds. The same command then runs again for each add-on.

Given you can pass in a regex, you can check if all of the plugins are available with the syntax /usr/share/logstash/bin/logstash-plugin list '^(addonA|addonB|addonC)$' - which only takes the same amount of time as running a check for each plugin in the list.

If the output from this single command could be parsed appropriately, then run time wouldn't increase with each new plugin used.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions