# How to use parallel-ssh as transport in ansible controller it has better performance

**URL:** <https://forum.ansible.com/t/how-to-use-parallel-ssh-as-transport-in-ansible-controller-it-has-better-performance/31467>\
**Category:** Ansible Project\
**Created:** [October 13, 2019, 1:30pm UTC](https://forum.ansible.com/t/how-to-use-parallel-ssh-as-transport-in-ansible-controller-it-has-better-performance/31467 "2019-10-13T13:30:12Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gunaseelan](https://avatars.discourse-cdn.com/v4/letter/g/dbc845/32.png) [@Gunaseelan](https://forum.ansible.com/u/Gunaseelan)\
**Post date:** [October 13, 2019, 1:30pm UTC](https://forum.ansible.com/t/how-to-use-parallel-ssh-as-transport-in-ansible-controller-it-has-better-performance/31467/1 "2019-10-13T13:30:12Z")

</div>

##### SUMMARY  
How to use parallel-ssh as connection\_plugin  
will ansible agent support parallel-ssh rather then openssh/paramiko:

issue type: Query  
ansible version:2.7.10  
component name: Ansible connection plugin

---

<div class="post-metadata">

**Author:** ![Kai\_Stian\_Olstad](https://avatars.discourse-cdn.com/v4/letter/k/e19adc/32.png) [@Kai\_Stian\_Olstad](https://forum.ansible.com/u/Kai_Stian_Olstad)\
**Post date:** [October 13, 2019, 3:25pm UTC](https://forum.ansible.com/t/how-to-use-parallel-ssh-as-transport-in-ansible-controller-it-has-better-performance/31467/2 "2019-10-13T15:25:49Z")

</div>

> ##### SUMMARY  
> How to use parallel-ssh as connection\_plugin

Write a new connection plugin for parallel-ssh.

> will ansible agent support parallel-ssh rather then openssh/paramiko:

Unless you or someone else write a connection plugin I guess not, since I highly doubt Ansible/RedHat would write one.

Before writing a connection plugin you should look into forks, pipelining, free strategy and async to get better performance in Ansible.

---

<div class="post-metadata">

**Author:** ![Fernando\_Scarlazzari](https://avatars.discourse-cdn.com/v4/letter/f/e19b73/32.png) [@Fernando\_Scarlazzari](https://forum.ansible.com/u/Fernando_Scarlazzari)\
**Post date:** [October 14, 2019, 11:20am UTC](https://forum.ansible.com/t/how-to-use-parallel-ssh-as-transport-in-ansible-controller-it-has-better-performance/31467/3 "2019-10-14T11:20:35Z")

</div>

Isn’t this equivalent to the SSH controlmaster feature on openssh?

---

<div class="post-metadata">

**Author:** ![Gunaseelan](https://avatars.discourse-cdn.com/v4/letter/g/dbc845/32.png) [@Gunaseelan](https://forum.ansible.com/u/Gunaseelan)\
**Post date:** [October 15, 2019, 5:41am UTC](https://forum.ansible.com/t/how-to-use-parallel-ssh-as-transport-in-ansible-controller-it-has-better-performance/31467/4 "2019-10-15T05:41:13Z")

</div>

I mean eventhough ansible controller has forking and pipelineing concept with native ssh - seems to native ssh connection establishment will block IO operation that is reason parallel-ssh is good option and save time if controller wants to connect thousands of hosts Ref: [https://github.com/ParallelSSH/parallel-ssh#ansible](https://github.com/ParallelSSH/parallel-ssh#ansible)
