mitogen icon indicating copy to clipboard operation
mitogen copied to clipboard

Slow test in integration/ssh/timeouts.yml, Cause Ansible connection timeout

Open moreati opened this issue 1 year ago • 0 comments

The test appears to operate on each host sequentially, making the time taken O(number hosts * timeout). Normally all the hosts in a play would execute in parallel (subject to batch size, and serial). Perhaps an unintentional GIL in the select loop? Does Mitogen wait for one host to finish connecting before attempting the next?

As I find speedups elsewhere in the test suite this test is become a larger portion of th total time.

This test checks the behaviour of timeouts, when the target user has a login script containing a long delay. Mitogen counts this agains the overall timeout (Ansible doesn't, I believe this is an intended divergence by the original author). Offshoot of #1059 build-log-815-81.txt

moreati avatar May 16 '24 11:05 moreati