matrix-docker-ansible-deploy
matrix-docker-ansible-deploy copied to clipboard
perf(ansible): add ControlPersist for SSH connection reuse
Should speed up playbook execution significantly for most users. While pipelining is already enabled and reduces per-task work inside each SSH session, ControlPersist reduces the cost of establishing SSH sessions by reusing the master connection.
Not sure if there's anything special in my environment (not that I know of), but doing this doesn't seem to have any impact.
time just run-tags install-all shows about ~300 seconds for a remote server I manage.
Perhaps you already have controlpersist in your ssh config?
the impact depends on how fast you establish a connection from your device (like laptop) to a server. With a fast internet connection and low ping to the server, you may not see any difference. So, while having that option enabled by default is a good idea, you won't notice any changes with proper internet connection and server location