[390136] Armada api uwsgi options
Adds the lazy-apps switch to remove some preloading behavior Removes some undesired header logging. Change-Id: I5177833e3184e9ab9d6469a2f5bcd8ee673870de
This commit is contained in:
parent
b9e96b0f47
commit
658593a7a8
|
@ -31,9 +31,6 @@ class AuthMiddleware(object):
|
||||||
def process_request(self, req, resp):
|
def process_request(self, req, resp):
|
||||||
ctx = req.context
|
ctx = req.context
|
||||||
|
|
||||||
for k, v in req.headers.items():
|
|
||||||
self.logger.debug("Request with header %s: %s" % (k, v))
|
|
||||||
|
|
||||||
auth_status = req.get_header('X-SERVICE-IDENTITY-STATUS')
|
auth_status = req.get_header('X-SERVICE-IDENTITY-STATUS')
|
||||||
service = True
|
service = True
|
||||||
|
|
||||||
|
|
|
@ -32,10 +32,14 @@ ARMADA_API_THREADS=${ARMADA_API_THREADS:-"1"}
|
||||||
# server during import in `armada.api.server`.
|
# server during import in `armada.api.server`.
|
||||||
if [ "$1" = 'server' ]; then
|
if [ "$1" = 'server' ]; then
|
||||||
exec uwsgi \
|
exec uwsgi \
|
||||||
|
-b 32768 \
|
||||||
|
--die-on-term \
|
||||||
--http :${ARMADA_API_PORT} \
|
--http :${ARMADA_API_PORT} \
|
||||||
--http-timeout $ARMADA_API_TIMEOUT \
|
--http-timeout $ARMADA_API_TIMEOUT \
|
||||||
--enable-threads \
|
--enable-threads \
|
||||||
-L \
|
-L \
|
||||||
|
--lazy-apps \
|
||||||
|
--master \
|
||||||
--paste config:/etc/armada/api-paste.ini \
|
--paste config:/etc/armada/api-paste.ini \
|
||||||
--pyargv "--config-file /etc/armada/armada.conf" \
|
--pyargv "--config-file /etc/armada/armada.conf" \
|
||||||
--threads $ARMADA_API_THREADS \
|
--threads $ARMADA_API_THREADS \
|
||||||
|
|
Loading…
Reference in New Issue