From eb67fbe9d21c5f3a2431cea31d91ecaffe76a0d1 Mon Sep 17 00:00:00 2001 From: David Wilson Date: Fri, 1 Feb 2019 01:32:49 +0000 Subject: [PATCH] ansible: double the default pool size. Tempted to push this up to 64, but let's do it incrementally just in case. --- ansible_mitogen/process.py | 2 +- docs/ansible.rst | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ansible_mitogen/process.py b/ansible_mitogen/process.py index 902829f7..de3560f7 100644 --- a/ansible_mitogen/process.py +++ b/ansible_mitogen/process.py @@ -274,7 +274,7 @@ class MuxProcess(object): ansible_mitogen.services.ContextService(self.router), ansible_mitogen.services.ModuleDepService(self.router), ], - size=getenv_int('MITOGEN_POOL_SIZE', default=16), + size=getenv_int('MITOGEN_POOL_SIZE', default=32), ) LOG.debug('Service pool configured: size=%d', self.pool.size) diff --git a/docs/ansible.rst b/docs/ansible.rst index b2fe1e82..86125d63 100644 --- a/docs/ansible.rst +++ b/docs/ansible.rst @@ -179,7 +179,7 @@ Noteworthy Differences practice, and light web searches failed to reveal many examples of them. * Ansible permits up to ``forks`` connections to be setup in parallel, whereas - in Mitogen this is handled by a fixed-size thread pool. Up to 16 connections + in Mitogen this is handled by a fixed-size thread pool. Up to 32 connections may be established in parallel by default, this can be modified by setting the ``MITOGEN_POOL_SIZE`` environment variable.