You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
1.4 KiB

  1. # Mitogen
  2. *Warning:* Mitogen support is now deprecated in kubespray due to upstream not releasing an updated version to support ansible 4.x (ansible-base 2.11.x) and above. The CI support has been stripped for mitogen and we are no longer validating any support or regressions for it. The supporting mitogen install playbook and integration documentation will be removed in a later version.
  3. [Mitogen for Ansible](https://mitogen.networkgenomics.com/ansible_detailed.html) allow a 1.25x - 7x speedup and a CPU usage reduction of at least 2x, depending on network conditions, modules executed, and time already spent by targets on useful work. Mitogen cannot improve a module once it is executing, it can only ensure the module executes as quickly as possible.
  4. ## Install
  5. ```ShellSession
  6. ansible-playbook contrib/mitogen/mitogen.yml
  7. ```
  8. The above playbook sets the ansible `strategy` and `strategy_plugins` in `ansible.cfg` but you can also enable them if you use your own `ansible.cfg` by setting the environment varialbles:
  9. ```ShellSession
  10. export ANSIBLE_STRATEGY=mitogen_linear
  11. export ANSIBLE_STRATEGY_PLUGINS=plugins/mitogen/ansible_mitogen/plugins/strategy
  12. ```
  13. ... or `ansible.cfg` setup:
  14. ```ini
  15. [defaults]
  16. strategy_plugins = plugins/mitogen/ansible_mitogen/plugins/strategy
  17. strategy=mitogen_linear
  18. ```
  19. ## Limitation
  20. If you are experiencing problems, please see the [documentation](https://mitogen.networkgenomics.com/ansible_detailed.html#noteworthy-differences).