You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description
The pip.installed state is slow when run for already installed package. It takes 400-700ms per state on various hosts I have tried. This is a problem when re-running a salt top file to apply a single change when there are a lot of pip packages that are managed. Re-running the state.apply should take a few seconds yet can take much longer depending on the number of python packages.
Setup
Please be as specific as possible and give set-up details.
VM running on a cloud service (AWS ec2 instance rhel 8.10)
container (ubuntu 22 docker)
onedir packaging
masterless
Steps to Reproduce the behavior
Setup directories and files; set minion to masterless; use state file that installs already installed python package:
Description
The
pip.installed
state is slow when run for already installed package. It takes 400-700ms per state on various hosts I have tried. This is a problem when re-running a salt top file to apply a single change when there are a lot of pip packages that are managed. Re-running thestate.apply
should take a few seconds yet can take much longer depending on the number of python packages.Setup
Please be as specific as possible and give set-up details.
Steps to Reproduce the behavior
Setup directories and files; set minion to masterless; use state file that installs already installed python package:
Run state.apply which takes over a minute instead of a few seconds
time salt-call --local state.apply
Expected behavior
The total time should only be a few seconds when the system is already configured.
Screenshots
If applicable, add screenshots to help explain your problem.
Versions Report
salt --versions-report
(Provided by running salt --versions-report. Please also mention any differences in master/minion versions.)Additional context
Adding caching to the list of installed python packages is one option that could help a lot.
The text was updated successfully, but these errors were encountered: