<div dir="ltr"><div class="gmail_default" style="font-family:monospace,monospace;font-size:small">We are moving to deploy service via WSGI[0].</div><div class="gmail_default" style="font-family:monospace,monospace;font-size:small"><br></div><div class="gmail_default" style="font-family:monospace,monospace;font-size:small">There are two recommended ways.</div><div class="gmail_default" style="font-family:monospace,monospace;font-size:small"><br></div><div class="gmail_default" style="font-family:monospace,monospace;font-size:small">- apache + mod_wsgi</div><div class="gmail_default" style="font-family:monospace,monospace;font-size:small">- nginx + uwsgi</div><div class="gmail_default" style="font-family:monospace,monospace;font-size:small"><br></div><div class="gmail_default" style="font-family:monospace,monospace;font-size:small">later one is more better. </div><div class="gmail_default" style="font-family:monospace,monospace;font-size:small"><br></div><div class="gmail_default" style="font-family:monospace,monospace;font-size:small">For traditional deployment, it is easy to implement. Use one</div><div class="gmail_default" style="font-family:monospace,monospace;font-size:small">uwsgi progress to launch all wsgi services ( nova-api,cinder-api , etc).</div><div class="gmail_default" style="font-family:monospace,monospace;font-size:small">Then one nginx process to forward the http require into uwsgi server.</div><div class="gmail_default" style="font-family:monospace,monospace;font-size:small"><br></div><div class="gmail_default" style="font-family:monospace,monospace;font-size:small">But kolla is running one process in one container. If we use</div><div class="gmail_default" style="font-family:monospace,monospace;font-size:small">the recommended solution, we have to use two container to run</div><div class="gmail_default" style="font-family:monospace,monospace;font-size:small">nova-api container. and it will generate lots of containers.</div><div class="gmail_default" style="font-family:monospace,monospace;font-size:small">like: nginx-nova-api, uwsig-nova-api.</div><div class="gmail_default" style="font-family:monospace,monospace;font-size:small"><br></div><div class="gmail_default" style="font-family:monospace,monospace;font-size:small">i propose use uwsgi native http mode[1]. Then one uwsgi</div><div class="gmail_default" style="font-family:monospace,monospace;font-size:small">container is enough to run nova-api service. Base one the official</div><div class="gmail_default" style="font-family:monospace,monospace;font-size:small">doc, if there is no static resource, uWSGI is recommended to use </div><div class="gmail_default" style="font-family:monospace,monospace;font-size:small">as a real http server.</div><div class="gmail_default" style="font-family:monospace,monospace;font-size:small"><br></div><div class="gmail_default" style="font-family:monospace,monospace;font-size:small">So how about this?</div><div class="gmail_default" style="font-family:monospace,monospace;font-size:small"><br></div><div class="gmail_default" style="font-family:monospace,monospace;font-size:small"><br></div><div class="gmail_default" style="font-family:monospace,monospace;font-size:small">[0] <a href="https://governance.openstack.org/tc/goals/pike/deploy-api-in-wsgi.html">https://governance.openstack.org/tc/goals/pike/deploy-api-in-wsgi.html</a></div><div class="gmail_default" style="font-family:monospace,monospace;font-size:small">[1] <a href="http://uwsgi-docs.readthedocs.io/en/latest/HTTP.html#can-i-use-uwsgi-s-http-capabilities-in-production">http://uwsgi-docs.readthedocs.io/en/latest/HTTP.html#can-i-use-uwsgi-s-http-capabilities-in-production</a></div><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div><span style="font-size:13px;border-collapse:collapse"><font face="monospace, monospace">Regards,</font></span></div><div><span style="font-size:13px;border-collapse:collapse"><font face="monospace, monospace">Jeffrey Zhang</font></span></div><div><span style="font-family:monospace,monospace;font-size:12.8px">Blog: </span><a href="http://xcodest.me/" style="font-family:monospace,monospace;font-size:12.8px" target="_blank">http://xcodest.me</a><font face="monospace, monospace"><br></font></div></div></div></div></div></div></div></div></div>
</div>