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

Improve performance by using Paramiko+ssh rather than docker exec under the hood #57

Open
ChrisTimperley opened this issue Apr 23, 2020 · 0 comments
Assignees

Comments

@ChrisTimperley
Copy link
Owner

ChrisTimperley commented Apr 23, 2020

Pretty much every interaction in dockerblade involves issuing a docker exec call. On my system, the overhead of a single docker exec call via docker-py appears to be on the order of several 100ms. This is much too slow.

Instead, we could use docker exec to launch an SSH server inside the container. The dockerblade API could then be implemented by interacting with that SSH server via Paramiko rather than issuing docker exec calls.

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

No branches or pull requests

1 participant