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

Don't deep copy context dict values. #33896

Conversation

DmitryKuzmenko
Copy link
Contributor

@DmitryKuzmenko DmitryKuzmenko commented Jun 9, 2016

What does this PR do?

This highly speeds up the salt minion.

I'm not sure this is safe but in the same time I found no reason to deep copy context dict values that could be not the only generic python objects but also salt objects like cached connections.

If this will break something, we should reimplement the fix #31164 to find another way to keep returns through state execution, for instance keep the only needed values ('return').

What issues does this PR fix or reference?

#33575

Tests written?

No

@ClaudiuLSH
Copy link
Contributor

Was this reverted in 2016.11?
Highstate is extremely slow and from what I can tell (logs) it is slow when it comes to file.managed.

@rodriguezsergio
Copy link

rodriguezsergio commented Feb 14, 2017

I would like to know as well. I'm seeing this come up consistently across our minions. A JDK rpm that is supposed to be downloaded to the minion's salt cache is now taking 138 seconds.

Running salt-minion 2016.11.1-1.el6.

Edit:
Looks like I should be following along here: #38758.

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.

None yet

4 participants