diff --git a/inventory/group_vars/fas b/inventory/group_vars/fas index fb366a8d99..17571ee789 100644 --- a/inventory/group_vars/fas +++ b/inventory/group_vars/fas @@ -7,15 +7,12 @@ num_cpus: 4 # for systems that do not match the above - specify the same parameter in # the host_vars/$hostname file -tcp_ports: [ 80, 873, 8443, 8444, - # fas has 40 wsgi processes, each of which need their own port - # open for outbound fedmsg messages. - 3000, 3001, 3002, 3003, 3004, 3005, 3006, 3007, - 3008, 3009, 3010, 3011, 3012, 3013, 3014, 3015, - 3016, 3017, 3018, 3019, 3020, 3021, 3022, 3023, - 3024, 3025, 3026, 3027, 3028, 3029, 3030, 3031, - 3032, 3033, 3034, 3035, 3036, 3037, 3038, 3039, - ] +wsgi_fedmsg_service: fas +# Why does this have 40 and 1. that seems really odd. +wsgi_procs: 40 +wsgi_threads: 1 + +tcp_ports: [ 80, 873, 8443, 8444 ] fas_client_groups: sysadmin-main,sysadmin-accounts diff --git a/inventory/group_vars/fas-stg b/inventory/group_vars/fas-stg index c7e857bb71..ef2933b60f 100644 --- a/inventory/group_vars/fas-stg +++ b/inventory/group_vars/fas-stg @@ -7,15 +7,12 @@ num_cpus: 2 # for systems that do not match the above - specify the same parameter in # the host_vars/$hostname file -tcp_ports: [ 80, 873, 8443, 8444, - # fas has 40 wsgi processes, each of which need their own port - # open for outbound fedmsg messages. - 3000, 3001, 3002, 3003, 3004, 3005, 3006, 3007, - 3008, 3009, 3010, 3011, 3012, 3013, 3014, 3015, - 3016, 3017, 3018, 3019, 3020, 3021, 3022, 3023, - 3024, 3025, 3026, 3027, 3028, 3029, 3030, 3031, - 3032, 3033, 3034, 3035, 3036, 3037, 3038, 3039, - ] +wsgi_fedmsg_service: fas +# Why does this have 40 and 1. that seems really odd. +wsgi_procs: 40 +wsgi_threads: 1 + +tcp_ports: [ 80, 873, 8443, 8444 ] fas_client_groups: sysadmin-main,sysadmin-accounts diff --git a/roles/fas_server/templates/fas-app.conf.j2 b/roles/fas_server/templates/fas-app.conf.j2 index bd6fbd11c2..e00af745e9 100644 --- a/roles/fas_server/templates/fas-app.conf.j2 +++ b/roles/fas_server/templates/fas-app.conf.j2 @@ -16,7 +16,7 @@ WSGISocketPrefix run/wsgi WSGIRestrictSignal Off # These are the real tunables -WSGIDaemonProcess fas processes=40 threads=1 maximum-requests=100 user=fas group=fas display-name=fas inactivity-timeout=300 shutdown-timeout=10 +WSGIDaemonProcess fas processes={{wsgi_procs}} threads={{wsgi_threads}} maximum-requests=100 user=fas group=fas display-name=fas inactivity-timeout=300 shutdown-timeout=10 WSGIPythonOptimize 1 WSGIScriptAlias /accounts /usr/sbin/fas.wsgi/accounts diff --git a/roles/fedmsg/base/templates/endpoints.py.j2 b/roles/fedmsg/base/templates/endpoints.py.j2 index da4cc83c20..0c5e44bc37 100644 --- a/roles/fedmsg/base/templates/endpoints.py.j2 +++ b/roles/fedmsg/base/templates/endpoints.py.j2 @@ -37,22 +37,6 @@ config = dict( "tcp://relepel01.%s:3001" % suffix, ], {% endif %} - # FAS is a little out of the ordinary. It has 32 endpoints instead of - # the usual 8 since there are so many mod_wsgi processes for it. - "fas.fas01": [ - "tcp://fas01.%s:30%02i" % (suffix, i) - for i in range(40) - ], -{% if env != 'staging' %} - "fas.fas02": [ - "tcp://fas02.%s:30%02i" % (suffix, i) - for i in range(40) - ], - "fas.fas03": [ - "tcp://fas03.%s:30%02i" % (suffix, i) - for i in range(40) - ], -{% endif %} # This used to be on value01 and value03.. but now we just have one "supybot.value01": [