Skip to content

Instantly share code, notes, and snippets.

@jimmymccrory
Created March 1, 2018 10:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jimmymccrory/762cbac8eed85bbfb5bb292b199baa3e to your computer and use it in GitHub Desktop.
Save jimmymccrory/762cbac8eed85bbfb5bb292b199baa3e to your computer and use it in GitHub Desktop.
[Unit]
Description=uWSGI Fastrouter Service
After=syslog.target
[Service]
ExecStartPre=/bin/mkdir -p /run/uwsgi
ExecStart=/opt/uwsgi/bin/uwsgi --ini /opt/uwsgi/etc/fastrouter.ini
SuccessExitStatus=30
ExecReload=/bin/kill -HUP $MAINPID
KillSignal=SIGINT
Restart=always
Type=notify
StandardError=syslog
NotifyAccess=all
server {
listen 35357 default;
server_name localhost <PHYSICAL HOST ADDRESS>;
location / {
try_files $uri @keystone-admin;
}
location @keystone-admin {
include uwsgi_params;
uwsgi_pass 127.0.0.1:3031;
uwsgi_param SCRIPT_NAME '';
}
}
[uwsgi]
shared-socket = 127.0.0.1:3031
fastrouter-subscription-server = 0.0.0.0:2626
fastrouter = =0
master = true
processes = 4
fastrouter-cheap = true
vacuum = true
[uwsgi]
uid = keystone
gid = keystone
virtualenv = /openstack/venvs/keystone-master
wsgi-file = /openstack/venvs/keystone-master/bin/keystone-wsgi-admin
http = :37359
socket = 172.29.236.94:0
subscribe2 = server=<PHYSICAL HOST ADDRESS>:2626,key=<VIP ADDRESS>:35357
master = true
enable-threads = true
processes = 2
threads = 1
exit-on-reload = true
die-on-term = true
lazy-apps = true
add-header = Connection: close
buffer-size = 65535
thunder-lock = true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment