Skip to content

Commit 0f4af39

Browse files
committed
Set workers=$API_WORKERS in glance-registry.conf
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
1 parent 0d1bee1 commit 0f4af39

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

lib/glance

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@ function configure_glance {
114114
# Set non-default configuration options for registry
115115
iniset $GLANCE_REGISTRY_CONF DEFAULT debug $ENABLE_DEBUG_LOG_LEVEL
116116
iniset $GLANCE_REGISTRY_CONF DEFAULT bind_host $GLANCE_SERVICE_LISTEN_ADDRESS
117+
iniset $GLANCE_REGISTRY_CONF DEFAULT workers $API_WORKERS
117118
local dburl
118119
dburl=`database_connection_url glance`
119120
iniset $GLANCE_REGISTRY_CONF database connection $dburl

0 commit comments

Comments
 (0)