Browse code

Merge "attempt to cut api workers in half"

Jenkins authored on 2015/09/25 04:31:51
Showing 2 changed files
... ...
@@ -620,6 +620,8 @@ function create_nova_conf {
620 620
     iniset $NOVA_CONF DEFAULT osapi_compute_workers "$API_WORKERS"
621 621
     iniset $NOVA_CONF DEFAULT ec2_workers "$API_WORKERS"
622 622
     iniset $NOVA_CONF DEFAULT metadata_workers "$API_WORKERS"
623
+    # don't let the conductor get out of control now that we're using a pure python db driver
624
+    iniset $NOVA_CONF conductor workers "$API_WORKERS"
623 625
 
624 626
     iniset $NOVA_CONF cinder os_region_name "$REGION_NAME"
625 627
 
... ...
@@ -650,7 +650,7 @@ SERVICE_PROTOCOL=${SERVICE_PROTOCOL:-http}
650 650
 # the memory used where there are a large number of CPUs present
651 651
 # (the default number of workers for many services is the number of CPUs)
652 652
 # Also sets the minimum number of workers to 2.
653
-API_WORKERS=${API_WORKERS:=$(( ($(nproc)/2)<2 ? 2 : ($(nproc)/2) ))}
653
+API_WORKERS=${API_WORKERS:=$(( ($(nproc)/4)<2 ? 2 : ($(nproc)/4) ))}
654 654
 
655 655
 # Service startup timeout
656 656
 SERVICE_TIMEOUT=${SERVICE_TIMEOUT:-60}