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
[BUG] salt-master wastes time writing event data to standard out when executing runner functions through the api #58203
Comments
It transpires my work around of setting quiet: True in the salt-master config was a bad idea, because it caused salt-run to not produce any output. So I'll likely produce a PR for setting quiet on the opts passed to RunnerClient in salt.master.ClearFuncs.runner with in a day or two. |
@mbirtwell, |
This tar ball has the patch I was using to generate profiles and a profile with and without my proposed fix. Head lines: |
Jumping on this issue as it's the only one left open which references the undocumented My use case is using the So, I found the At the very least, we should document the current usage of Thoughts on a way forward? @whytewolf @barbaricyawps |
MY thoughts are it should be documented in the python api. as tha is where it is most useful. setting it in the actual config can be bad as pointed out in this ticket. that being said all of these side cases that are not setting it when they should be such as salt-api, saltutil.runner, publisher.runner. should be updated to set it. the code in the pr linked here was valid. and one of the pieces that needed shoring up. just needed testing. so if you want to go that route i would be open to it. |
Description
I was doing some profiling to try and understand why some of my salt api requests were so slow and I noticed that the salt-master spends some considerable time in display_output printing data to standard out, which for me is /dev/null.
I've worked around this by setting quiet: True in my salt master configuration. But this doesn't seem to be documented anywhere.
In addition I notice that when the RunnerClient is constructed in salt.master.Maintenance._post_fork_init quiet is forced to True, but when the runner client used by the api is constructed in salt.master.ClearFuncs.runner it isn't. I wonder if it should be.
Versions Report
salt --versions-report
(Provided by running salt --versions-report. Please also mention any differences in master/minion versions.)The text was updated successfully, but these errors were encountered: