Skip to content
This repository has been archived by the owner on Jul 7, 2023. It is now read-only.

Convert from fabric to asyncssh. #101

Merged
merged 1 commit into from
Jul 12, 2022

Conversation

kurtschelfthout
Copy link
Collaborator

@kurtschelfthout kurtschelfthout commented Jul 12, 2022

run_map 20 tasks, 20 concurrent tasks to existing,allocated machines:

Timings with fabric:

[111.38197560000117,
 109.04082189998007,
 107.4787314000132,
 108.30456080002477,
 110.00857060000999,
 109.59617080001044,
 108.20245420001447,
 109.48294259997783,
 110.91391830000794,
 108.26663929998176]
Min: 107.48
Median: 109.26
Max: 111.38

Timings with asyncssh:

Times in secs:
[15.38872220000485,
 14.202121799986344,
 15.369842799991602,
 14.279609999997774,
 15.418468999996549,
 15.286187899997458,
 14.796257799986051,
 15.803920600010315,
 14.016181000013603,
 14.156926900002873]
Min: 14.02
Median: 15.04
Max: 15.80

# fabric is supposedly not threadsafe, but it seems to work as long as
# more than one connection is not being opened at the same time:
# https://github.com/fabric/fabric/pull/2010/files
result_future: asyncio.Future = asyncio.Future()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

so nice to get rid of this!!

hrichardlee added a commit to hrichardlee/meadowrun that referenced this pull request Jul 12, 2022
- scp on a NamedTemporaryFile that's still open doesn't work--we need to close the file and then delete it manually later
- Retry on OSError when trying to make an SSH connection
hrichardlee added a commit to hrichardlee/meadowrun that referenced this pull request Jul 13, 2022
- scp on a NamedTemporaryFile that's still open doesn't work on Windows--we need to close the file and then delete it manually later
- Retry on OSError when trying to make an SSH connection
@kurtschelfthout kurtschelfthout deleted the asyncssh branch July 13, 2022 09:37
hrichardlee added a commit that referenced this pull request Jul 14, 2022
- scp on a NamedTemporaryFile that's still open doesn't work on Windows--we need to close the file and then delete it manually later
- Retry on OSError when trying to make an SSH connection
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants