summaryrefslogtreecommitdiffstats
path: root/callback_plugins/fedmsg_callback.py
diff options
context:
space:
mode:
authorAdrian Reber <adrian@lisas.de>2015-10-15 14:03:02 +0000
committerAdrian Reber <adrian@lisas.de>2015-10-15 16:38:28 +0000
commit6722cab41003f4ddd60849703715a710c3214f8d (patch)
tree08d0195098d1f0a5f640153b82e1e01558fc9b79 /callback_plugins/fedmsg_callback.py
parentd04588274a6e161a36d8dbd9c91ea0fe78de017e (diff)
downloadansible-6722cab41003f4ddd60849703715a710c3214f8d.tar.gz
ansible-6722cab41003f4ddd60849703715a710c3214f8d.tar.xz
ansible-6722cab41003f4ddd60849703715a710c3214f8d.zip
Increase the number of possible child processes
The mirrorlist-server is the process which has the mirrorlist data loaded and which is accessed by the public facing mirrorlist_client.wsgi. The mirrorlist-server uses the ForkingUnixStreamServer which has a default of max_children = 40. (https://hg.python.org/cpython/file/2.7/Lib/SocketServer.py#l516) Looking at the code of ForkingUnixStreamServer it says at https://hg.python.org/cpython/file/2.7/Lib/SocketServer.py#l523 # If we're above the max number of children, wait and reap them until # we go back below threshold. Note that we use waitpid(-1) below to be # able to collect children in size(<defunct children>) syscalls instead # of size(<children>): the downside is that this might reap children # which we didn't spawn, which is why we only resort to this when we're # above max_children. As we are running the wsgi with processes=45 this sounds like it can lead to situation where it might just hang. This increases max_children to 80 and processes to 60. Signed-off-by: Adrian Reber <adrian@lisas.de>
Diffstat (limited to 'callback_plugins/fedmsg_callback.py')
0 files changed, 0 insertions, 0 deletions