Quadrupling Ansible performance with Mitogen

Click for: original source

David Wilson article about writting Ansible extension for Mitogen. Ansible is the simplest way to automate apps and IT infrastructure. Application Deployment + Configuration Management + Continuous Delivery. Mitogen is a Python library for writing distributed self-replicating programs.

Mitogen is perhaps most easily described as a kind of network-capable fork() on steroids. It allows programs to establish lazily-loaded duplicates on remote hosts, without requiring any upfront remote disk writes, and to communicate with those copies once they exist. The copies can in turn recursively split to produce further children – with bidirectional message routing between every copy handled automatically.

Mitogen is a library for writing distributed programs that require zero deployment, specifically designed to fit the needs of infrastructure software like Ansible. Without upfront configuration it supports any UNIX machine featuring an installed Python interpreter, which is to say almost all of them.

It massively speeds up Ansible playbook execution on remote hosts, while saving bandwidth and momory. An unmodified playbook executes over 7 times faster while consuming 50x less bandwidth.

Dive into this exciting reading about how to speed up your Ansible playbooks execution!

[Read More]

Tags devops ansible cicd how-to