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

[JENKINS-50429] Use a bigger buffer for stdin on kubernetes exec #427

Merged
merged 2 commits into from
Feb 27, 2019

Conversation

carlossg
Copy link
Contributor

And use a lower value by default just in case, enough to make the tests pass
@carlossg
Copy link
Contributor Author

Please comment here what buffer size you need for your pipelines to work so we set a good default.
Try it setting a system property with the size

-Dorg.csanchez.jenkins.plugins.kubernetes.pipeline.ContainerExecDecorator.stdinBufferSize=2048

@fabricepipart1a
Copy link

Sounds nice! Did it solve the performance issues mentioned?

@mrjgreen
Copy link

This is great news!

An typical command we run might be a ~100 bytes in length. Combining this with the set of env variables typically sent along with the command on exec looks to be around 4000 bytes.

I'm not sure if there is any other data sent along with the command (global variables etc?). I suspect 8192 bytes would suffice in most cases - though this isn't very scientific...

@carlossg
Copy link
Contributor Author

yes, this solves the performance and the test pass

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

Successfully merging this pull request may close these issues.

3 participants