-
Notifications
You must be signed in to change notification settings - Fork 27
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
Make full-output configurable #128
Comments
Sure, that makes sense. I'll look into adding that. |
I've been looking over the output and am not quite sure why you are seeing the OutOfMemory error. Here's an example of a tar extraction run via the salt-api and cmd.run:
Here's the same job run with
I can make a release which disables the full_return option, but it might be in the parsing of the large json return that you are actually seeing the problem. I'll work up a beta release to disable full_return, and we can go from there. As a quick test, you could try enabling the "Skip validation of salt return" option. This should skip over the processing of any large JSON output. |
Currenty I can not reproduce the Issue due to missing system resources. It happened when applying a state via your Jenkins Plugin NOT async and parallel on 10 machines (wildcard grain), which triggered a shell script (via cmd.run) which then extracted a big tar file (1.2G - approx 50.000 Files). Here my environment Info:
Configuration in Jenkins:
I recently solved the Problem by applying the state directly on the saltmaster and not from Jenkins. |
If you are able to capture the salt-api output of that operation, could you sent it to me? ([email protected]) That use case could be used to test large json returns. Also, if you ever run into problems like that in the future, try skipping validation of the return. That is the probable cause of resource utilization. |
I currently have the problem that my Jenkins runs into an "OutOfMemory" Exception when performing a 'cmd.run' on multiple machines which have a big return (e.g. unzip a large file without quiet parameter).
Same occurs when applying states.
It would be nice to make the "full_return" configurable which is currently hardcoded
saltstack-plugin/src/main/java/com/waytta/SaltAPIBuilder.java
Line 382 in cbc6ca5
The text was updated successfully, but these errors were encountered: