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

Negative performance impacts due to missing SSH Optimization Config #608

Open
pemsith opened this issue Jan 13, 2025 · 0 comments
Open

Negative performance impacts due to missing SSH Optimization Config #608

pemsith opened this issue Jan 13, 2025 · 0 comments

Comments

@pemsith
Copy link

pemsith commented Jan 13, 2025

Describe
The repository lacks SSH optimization configurations in the ansible.cfg file.
Specifically;
ControlMaster and ControlPersist options are not set in the ssh_args configuration. These options enable persistent SSH connections, which significantly improve performance by reducing the overhead of establishing a new connection for each task.
pipelining is not set to true. Enabling pipelining reduces the number of SSH operations required to execute tasks, further enhancing execution speed.
The absence of these optimizations impacts performance negatively, particularly in environments with many hosts or complex tasks.

Expected behavior
The ansible.cfg file should include the following optimizations to improve SSH performance:

[ssh_connection]
ssh_args = -o ControlMaster=auto -o ControlPersist=60s
Enable Pipelining: Set pipelining to true in the [defaults] section:

[defaults]
pipelining = true

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

No branches or pull requests

1 participant