-
Notifications
You must be signed in to change notification settings - Fork 23.7k
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
Windows Setup doc; offer 10x perf improvement #58259
Conversation
@petemounce This PR contains |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hrm, I think this is a good thing to have in our docs, but I'm thinking we might need a "troubleshooting / performance" page, rather than plopping it in the middle of the (already scarily large) "initial setup" page... This is only a problem if your install/imaging process has somehow invalidated the NI cache- Powershell is always ngen'd "out of the box" on 2012R2+ in my testing...
@nitzmahone happy to do that - please tell me where I should place the new documentation file and how to name it, and I'll slice and dice? I've observed this optimisation to be necessary with out-of-the-box GCE Windows 2016 images and AWS AMIs (the latter in circa 2015, though; might have moved on, I haven't needed to know in a little while). |
@acozine or @samccann do you have a suggestion for @petemounce to place performance tips and tricks for Windows? |
@jborean93 yep! |
@petemounce see also https://docs.ansible.com/ansible/latest/dev_guide/style_guide/index.html for some pointers/help on creating rst pages. |
We found that when we did this, tasks that were taking ~6s dropped to low hundreds-of-milliseconds. One playbook (over winrm) went from 25m35s to 8m9s. SSH connection benefits similarly. Thought you might like to offer it to users, and this seemed like an appropriate place. All credit to Carl for the diligent profiling work he did!
@acozine @jborean93 - sure; how's this? |
The test
|
cc @ShachafGoldstein @if-meaton @jhawkesworth |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@petemounce are you still working on this material? |
Yes |
Nice, lets have this. |
Thanks @petemounce for the addition to Ansible documentation. |
Thanks for review and merge! |
SUMMARY
Add a section to the Windows Setup documentation about how to get a 10x performance improvement over cleanly installed Windows.
ISSUE TYPE
COMPONENT NAME
lib/ansible/plugins/connection/ssh.py
lib/ansible/plugins/shell/powershell.py
ADDITIONAL INFORMATION
We found that when we did this, tasks that were taking ~6s dropped to low hundreds-of-milliseconds.
One playbook (over winrm) went from 25m35s to 8m9s. SSH connection benefits similarly.
Thought you might like to offer it to users, and this seemed like an appropriate place.
All credit to @ca-johnson for the diligent profiling work he did!