ansible-navigator icon indicating copy to clipboard operation
ansible-navigator copied to clipboard

Negative performance impacts due to missing SSH Optimization Config

Open pemsith opened this issue 10 months ago • 0 comments
trafficstars

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 avatar Jan 13 '25 14:01 pemsith