Merge "attempt to cut api workers in half"
This commit is contained in:
commit
9f6b7eb3e5
2
lib/nova
2
lib/nova
@ -620,6 +620,8 @@ function create_nova_conf {
|
||||
iniset $NOVA_CONF DEFAULT osapi_compute_workers "$API_WORKERS"
|
||||
iniset $NOVA_CONF DEFAULT ec2_workers "$API_WORKERS"
|
||||
iniset $NOVA_CONF DEFAULT metadata_workers "$API_WORKERS"
|
||||
# don't let the conductor get out of control now that we're using a pure python db driver
|
||||
iniset $NOVA_CONF conductor workers "$API_WORKERS"
|
||||
|
||||
iniset $NOVA_CONF cinder os_region_name "$REGION_NAME"
|
||||
|
||||
|
2
stackrc
2
stackrc
@ -650,7 +650,7 @@ SERVICE_PROTOCOL=${SERVICE_PROTOCOL:-http}
|
||||
# the memory used where there are a large number of CPUs present
|
||||
# (the default number of workers for many services is the number of CPUs)
|
||||
# Also sets the minimum number of workers to 2.
|
||||
API_WORKERS=${API_WORKERS:=$(( ($(nproc)/2)<2 ? 2 : ($(nproc)/2) ))}
|
||||
API_WORKERS=${API_WORKERS:=$(( ($(nproc)/4)<2 ? 2 : ($(nproc)/4) ))}
|
||||
|
||||
# Service startup timeout
|
||||
SERVICE_TIMEOUT=${SERVICE_TIMEOUT:-60}
|
||||
|
Loading…
Reference in New Issue
Block a user