|
...
|
...
|
@@ -303,28 +303,22 @@ function configure_keystone {
|
|
303
|
303
|
fi
|
|
304
|
304
|
|
|
305
|
305
|
iniset "$KEYSTONE_PUBLIC_UWSGI_FILE" uwsgi wsgi-file "$KEYSTONE_BIN_DIR/keystone-wsgi-public"
|
|
306
|
|
- # This is running standalone
|
|
307
|
306
|
iniset "$KEYSTONE_PUBLIC_UWSGI_FILE" uwsgi threads $(nproc)
|
|
308
|
|
- iniset "$KEYSTONE_PUBLIC_UWSGI_FILE" uwsgi enable-threads true
|
|
309
|
|
- iniset "$KEYSTONE_PUBLIC_UWSGI_FILE" uwsgi plugins python
|
|
310
|
|
- # uwsgi recommends this to prevent thundering herd on accept.
|
|
311
|
|
- iniset "$KEYSTONE_PUBLIC_UWSGI_FILE" uwsgi thunder-lock true
|
|
312
|
|
- # Override the default size for headers from the 4k default.
|
|
313
|
|
- iniset "$KEYSTONE_PUBLIC_UWSGI_FILE" uwsgi buffer-size 65535
|
|
314
|
|
- # Make sure the client doesn't try to re-use the connection.
|
|
315
|
|
- iniset "$KEYSTONE_PUBLIC_UWSGI_FILE" uwsgi add-header "Connection: close"
|
|
316
|
307
|
|
|
317
|
308
|
iniset "$KEYSTONE_ADMIN_UWSGI_FILE" uwsgi wsgi-file "$KEYSTONE_BIN_DIR/keystone-wsgi-admin"
|
|
318
|
|
- # This is running standalone
|
|
319
|
309
|
iniset "$KEYSTONE_ADMIN_UWSGI_FILE" uwsgi threads $API_WORKERS
|
|
320
|
|
- iniset "$KEYSTONE_ADMIN_UWSGI_FILE" uwsgi enable-threads true
|
|
321
|
|
- iniset "$KEYSTONE_ADMIN_UWSGI_FILE" uwsgi plugins python
|
|
322
|
|
- # uwsgi recommends this to prevent thundering herd on accept.
|
|
323
|
|
- iniset "$KEYSTONE_ADMIN_UWSGI_FILE" uwsgi thunder-lock true
|
|
324
|
|
- # Override the default size for headers from the 4k default.
|
|
325
|
|
- iniset "$KEYSTONE_ADMIN_UWSGI_FILE" uwsgi buffer-size 65535
|
|
326
|
|
- # Make sure the client doesn't try to re-use the connection.
|
|
327
|
|
- iniset "$KEYSTONE_ADMIN_UWSGI_FILE" uwsgi add-header "Connection: close"
|
|
|
310
|
+
|
|
|
311
|
+ # Common settings
|
|
|
312
|
+ for file in "$KEYSTONE_PUBLIC_UWSGI_FILE" "$KEYSTONE_ADMIN_UWSGI_FILE"; do
|
|
|
313
|
+ iniset "$file" uwsgi enable-threads true
|
|
|
314
|
+ iniset "$file" uwsgi plugins python
|
|
|
315
|
+ # uwsgi recommends this to prevent thundering herd on accept.
|
|
|
316
|
+ iniset "$file" uwsgi thunder-lock true
|
|
|
317
|
+ # Override the default size for headers from the 4k default.
|
|
|
318
|
+ iniset "$file" uwsgi buffer-size 65535
|
|
|
319
|
+ # Make sure the client doesn't try to re-use the connection.
|
|
|
320
|
+ iniset "$file" uwsgi add-header "Connection: close"
|
|
|
321
|
+ done
|
|
328
|
322
|
|
|
329
|
323
|
else # eventlet
|
|
330
|
324
|
if is_ssl_enabled_service key; then
|