What is Mitogen for Ansible and would you use it?
AdvancedProductionPerformance and Scale
Answer
Mitogen is a third-party strategy and connection plugin that replaces much of Ansible's per-task SSH and module-shipping machinery with a persistent Python process on the target, and can speed up playbooks several times.
The catch is support. It is not part of Ansible, and its compatibility has lagged behind current ansible-core releases and Python versions, so it can block upgrades or fail in odd ways. Today we would first exhaust pipelining, fact caching, forks, fewer tasks and async. Consider Mitogen only if you pin a compatible ansible-core version and have a strong test suite.
More on Performance and Scale
Why can Ansible be slower than a shell script for 100 servers, and what dominates the time?BeginnerHow do you choose the `forks` value?BeginnerWhat is SSH pipelining and why does it help?BeginnerWhich SSH settings matter for performance and stability?IntermediateHow do you find out which tasks are slow?BeginnerHow do you reduce the cost of fact gathering?Intermediate