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

Possible performance improvement for multiple plugin checks #369

Open
ogtool opened this issue Jun 8, 2018 · 2 comments
Open

Possible performance improvement for multiple plugin checks #369

ogtool opened this issue Jun 8, 2018 · 2 comments
Labels
enhancement New feature or request

Comments

@ogtool
Copy link

ogtool commented Jun 8, 2018

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.

@fatmcgav
Copy link

@ogtool Cheers for reporting this issue.

I think the best approach for this would be to create a logstash-plugin resource which can be used, rather than relying on an exec resource.

I'll stick it on the todo list :)

@fatmcgav fatmcgav added the enhancement New feature or request label Jun 11, 2018
@shazi7804
Copy link

follow up

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

No branches or pull requests

3 participants