Reduce fedora-tagger procs x threads.

This commit is contained in:
Ralph Bean 2015-06-19 18:32:14 +00:00
parent 0843a0ba64
commit c886486957
5 changed files with 12 additions and 25 deletions

View file

@ -7,12 +7,11 @@ num_cpus: 2
# for systems that do not match the above - specify the same parameter in # for systems that do not match the above - specify the same parameter in
# the host_vars/$hostname file # the host_vars/$hostname file
tcp_ports: [ 80, 443, wsgi_fedmsg_service: fedoratagger
# These 32 ports are used by fedmsg. One for each wsgi thread. wsgi_procs: 2
3000, 3001, 3002, 3003, 3004, 3005, 3006, 3007, wsgi_threads: 2
3008, 3009, 3010, 3011, 3012, 3013, 3014, 3015,
3016, 3017, 3018, 3019, 3020, 3021, 3022, 3023, tcp_ports: [ 80 ]
3024, 3025, 3026, 3027, 3028, 3029, 3030, 3031]
# Neeed for rsync from log01 for logs. # 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' ] 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' ]

View file

@ -7,12 +7,11 @@ num_cpus: 2
# for systems that do not match the above - specify the same parameter in # for systems that do not match the above - specify the same parameter in
# the host_vars/$hostname file # the host_vars/$hostname file
tcp_ports: [ 80, 443, wsgi_fedmsg_service: fedoratagger
# These 32 ports are used by fedmsg. One for each wsgi thread. wsgi_procs: 2
3000, 3001, 3002, 3003, 3004, 3005, 3006, 3007, wsgi_threads: 2
3008, 3009, 3010, 3011, 3012, 3013, 3014, 3015,
3016, 3017, 3018, 3019, 3020, 3021, 3022, 3023, tcp_ports: [ 80 ]
3024, 3025, 3026, 3027, 3028, 3029, 3030, 3031]
# Neeed for rsync from log01 for logs. # 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' ] 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' ]

View file

@ -53,17 +53,6 @@ config = dict(
for i in range(40) for i in range(40)
], ],
{% endif %} {% endif %}
# fedoratagger needs 32 endpoints too, just like FAS.
"fedoratagger.tagger01": [
"tcp://tagger01.%s:30%02i" % (suffix, i)
for i in range(32)
],
{% if env != 'staging' %}
"fedoratagger.tagger02": [
"tcp://tagger02.%s:30%02i" % (suffix, i)
for i in range(32)
],
{% endif %}
# This used to be on value01 and value03.. but now we just have one # This used to be on value01 and value03.. but now we just have one
"supybot.value01": [ "supybot.value01": [

View file

@ -46,7 +46,7 @@
- restart apache - restart apache
- name: copy tagger httpd config - name: copy tagger httpd config
copy: > template: >
src=fedoratagger-app.conf src=fedoratagger-app.conf
dest=/etc/httpd/conf.d/fedoratagger.conf dest=/etc/httpd/conf.d/fedoratagger.conf
owner=apache owner=apache

View file

@ -28,7 +28,7 @@ Alias /tagger/rating /usr/lib/python2.7/site-packages/fedoratagger/frontend/stat
Alias /tagger/_res /usr/share/fedoratagger/toscawidgets/resources Alias /tagger/_res /usr/share/fedoratagger/toscawidgets/resources
WSGIPythonEggs /var/cache/fedoracommunity/.python-eggs WSGIPythonEggs /var/cache/fedoracommunity/.python-eggs
WSGIDaemonProcess fedoratagger user=apache group=fedoratagger maximum-requests=50000 display-name=fedoratagger processes=8 threads=4 inactivity-timeout=300 WSGIDaemonProcess fedoratagger user=apache group=fedoratagger maximum-requests=50000 display-name=fedoratagger processes={{ wsgi_procs }} threads={{ wsgi_threads }} inactivity-timeout=300
WSGISocketPrefix run/wsgi WSGISocketPrefix run/wsgi
WSGIRestrictStdout Off WSGIRestrictStdout Off
WSGIRestrictSignal Off WSGIRestrictSignal Off