From f81190f3bdf0939028b151989eb0264a44e280e5 Mon Sep 17 00:00:00 2001 From: Kevin Fenzi Date: Tue, 18 Oct 2016 20:03:05 +0000 Subject: [PATCH] try and increase askbot threads to see if it will stay up --- inventory/group_vars/ask | 4 ++-- roles/ask/files/askbot.conf | 2 +- roles/fedmsg/base/templates/endpoints.py.j2 | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/inventory/group_vars/ask b/inventory/group_vars/ask index 4e6a5a4c7d..ee0a6e3fff 100644 --- a/inventory/group_vars/ask +++ b/inventory/group_vars/ask @@ -7,8 +7,8 @@ num_cpus: 2 tcp_ports: [ 80, 443, # This port is required by gluster 6996, - # These 8 ports are used by fedmsg. One for each wsgi thread. - 3000, 3001, 3002, 3003, 3004, 3005, 3006, 3007] + # These 12 ports are used by fedmsg. One for each wsgi thread. + 3000, 3001, 3002, 3003, 3004, 3005, 3006, 3007, 3008, 3009, 30010, 3011, 3012] # Neeed for rsync from log01 for logs. custom_rules: [ '-A INPUT -p tcp -m tcp -s 10.5.126.13 --dport 873 -j ACCEPT', '-A INPUT -p tcp -m tcp -s 192.168.1.59 --dport 873 -j ACCEPT' ] diff --git a/roles/ask/files/askbot.conf b/roles/ask/files/askbot.conf index 34877ce3e0..a8c2601b38 100644 --- a/roles/ask/files/askbot.conf +++ b/roles/ask/files/askbot.conf @@ -13,7 +13,7 @@ Alias /admin/media/ /usr/lib/python2.6/site-packages/django/contrib/admin/media/ Allow from all -WSGIDaemonProcess askbot user=apache group=apache maximum-requests=1000 display-name=askbot processes=6 threads=1 shutdown-timeout=10 python-path=/etc/askbot/sites/ask +WSGIDaemonProcess askbot user=apache group=apache maximum-requests=1000 display-name=askbot processes=12 threads=1 shutdown-timeout=10 python-path=/etc/askbot/sites/ask WSGISocketPrefix run/wsgi WSGIRestrictStdout On WSGIRestrictSignal Off diff --git a/roles/fedmsg/base/templates/endpoints.py.j2 b/roles/fedmsg/base/templates/endpoints.py.j2 index ea4c1013a3..5b43e16e30 100644 --- a/roles/fedmsg/base/templates/endpoints.py.j2 +++ b/roles/fedmsg/base/templates/endpoints.py.j2 @@ -22,10 +22,10 @@ config = dict( "tcp://value01.%s:3000" % suffix, ], - # Askbot runs as 6 processes with 1 thread each. + # Askbot runs as 12 processes with 1 thread each. "askbot.ask01": [ "tcp://ask01.%s:30%02i" % (suffix, i) - for i in range(6) + for i in range(12) ], {% if env != 'staging' %}