Try dynamic fedmsg endpoints out on nuancier.

This commit is contained in:
Ralph Bean 2015-06-16 20:16:08 +00:00
parent 99ecc4b17e
commit dbdac76c91
5 changed files with 28 additions and 31 deletions

View file

@ -4,15 +4,18 @@ lvm_size: 20000
mem_size: 2048
num_cpus: 2
# for systems that do not match the above - specify the same parameter in
# the host_vars/$hostname file
# Definining these vars has a number of effects
# 1) mod_wsgi is configured to use the vars for its own setup
# 2) iptables opens enough ports for all threads for fedmsg
# 3) roles/fedmsg/base/ declares enough fedmsg endpoints for all threads
wsgi_fedmsg_service: nuancier
wsgi_procs: 2
wsgi_threads: 2
tcp_ports: [ 80, 443,
tcp_ports: [ 80,
# This port is required by gluster
6996,
# These 16 ports are used by fedmsg. One for each wsgi thread.
3000, 3001, 3002, 3003, 3004, 3005, 3006, 3007,
3008, 3009, 3010, 3011, 3012, 3013, 3014, 3015]
]
fas_client_groups: sysadmin-noc,sysadmin-web

View file

@ -4,15 +4,18 @@ lvm_size: 20000
mem_size: 1024
num_cpus: 2
# for systems that do not match the above - specify the same parameter in
# the host_vars/$hostname file
# Definining these vars has a number of effects
# 1) mod_wsgi is configured to use the vars for its own setup
# 2) iptables opens enough ports for all threads for fedmsg
# 3) roles/fedmsg/base/ declares enough fedmsg endpoints for all threads
wsgi_fedmsg_service: nuancier
wsgi_procs: 2
wsgi_threads: 2
tcp_ports: [ 80, 443,
tcp_ports: [ 80,
# This port is required by gluster
6996,
# These 16 ports are used by fedmsg. One for each wsgi thread.
3000, 3001, 3002, 3003, 3004, 3005, 3006, 3007,
3008, 3009, 3010, 3011, 3012, 3013, 3014, 3015]
]
fas_client_groups: sysadmin-noc,sysadmin-web

View file

@ -34,6 +34,15 @@
- config
- fedmsg/base
- name: remove any old static endpoints files
file: dest="/etc/fedmsg.d/{{item}}" state=absent
with_items:
- endpoints-nuancier.py
tags:
- config
- fedmsgdconfig
- fedmsg/base
# Any files that change need to restart any services that depend on them. A
# trick here is that some hosts have an httpd that uses fedmsg, while others do
# not. Some hosts have a fedmsg-hub that uses this config, while others do not.

View file

@ -1,18 +0,0 @@
{% if env == 'staging' %}
suffix = 'stg.phx2.fedoraproject.org'
{% else %}
suffix = 'phx2.fedoraproject.org'
{% endif %}
config = dict(
endpoints={
"nuancier.nuancier01": [
"tcp://nuancier01.%s:30%02i" % (suffix, i)
for i in range(16)
],
"nuancier.nuancier02": [
"tcp://nuancier02.%s:30%02i" % (suffix, i)
for i in range(16)
],
},
)

View file

@ -1,6 +1,6 @@
Alias /nuancier/static /usr/lib/python2.7/site-packages/nuancier/static
WSGIDaemonProcess nuancier maximum-requests=1000 display-name=nuancier processes=4 threads=4
WSGIDaemonProcess nuancier maximum-requests=1000 display-name=nuancier processes={{wsgi_procs}} threads={{wsgi_threads}}
WSGISocketPrefix run/wsgi
WSGIRestrictStdout On
WSGIRestrictSignal Off