Skip to content
This repository has been archived by the owner on Dec 1, 2023. It is now read-only.

Improve the speed of rubrick connector fact on Linux. #53

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

bschonec
Copy link

@bschonec bschonec commented Nov 9, 2023

Querying the entire RPM database and then piping to grep and wc is significantly slower than just doing an 'rpm -q rubrik-agent'.

This update significantly improves the fact's speed.

`xxx@schon-01d:~/rubrik-module-for-puppet$ time /bin/rpm -q -a | grep rubrik-agent | wc -l
0

real 0m2.142s
user 0m1.797s
sys 0m0.389s
xxx@schon-01d:~/rubrik-module-for-puppet$ time /bin/rpm --quiet -q rubrik-agent

real 0m0.104s
user 0m0.057s
sys 0m0.050s
nfiiseed@nfiv-schon-01d:~/rubrik-module-for-puppet$ `

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

Successfully merging this pull request may close these issues.

None yet

1 participant