We use $API_WORKERS to throttle the number of workers
in other services but were not doing it for g-reg for
some reason, which by default will run ncpu workers
up to a limit of 8.
Change-Id: Idc81ce05546e6d625c10e2229256eafbe7c057a5
Closes-Bug: #1774781
| ... | ... |
@@ -114,6 +114,7 @@ function configure_glance {
|
| 114 | 114 |
# Set non-default configuration options for registry |
| 115 | 115 |
iniset $GLANCE_REGISTRY_CONF DEFAULT debug $ENABLE_DEBUG_LOG_LEVEL |
| 116 | 116 |
iniset $GLANCE_REGISTRY_CONF DEFAULT bind_host $GLANCE_SERVICE_LISTEN_ADDRESS |
| 117 |
+ iniset $GLANCE_REGISTRY_CONF DEFAULT workers $API_WORKERS |
|
| 117 | 118 |
local dburl |
| 118 | 119 |
dburl=`database_connection_url glance` |
| 119 | 120 |
iniset $GLANCE_REGISTRY_CONF database connection $dburl |