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 #1906

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

Negative performance impacts due to missing SSH Optimization Config #1906

pemsith opened this issue Jan 13, 2025 · 0 comments
Labels
bug Researched, reproducible, committed to fix

Comments

@pemsith
Copy link

pemsith commented Jan 13, 2025

ISSUE TYPE
  • Bug Report
SUMMARY

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 RESULTS

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

ACTUAL RESULTS

performance impact due to lack of SSH optimization config

@pemsith pemsith added bug Researched, reproducible, committed to fix new New issues and PRs to triaged labels Jan 13, 2025
@shatakshiiii shatakshiiii removed the new New issues and PRs to triaged label Jan 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Researched, reproducible, committed to fix
Projects
Status: No status
Development

No branches or pull requests

2 participants