Created
March 1, 2018 10:26
-
-
Save jimmymccrory/762cbac8eed85bbfb5bb292b199baa3e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 ''; | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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