Interview Prep/Ansible/Performance and Scale

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.

All Ansible questions Roadmap: Ansible

More on Performance and Scale