|
...
|
...
|
@@ -650,7 +650,12 @@ 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)/4)<2 ? 2 : ($(nproc)/4) ))}
|
|
|
653
|
+if [[ "$VIRT_DRIVER" = 'fake' ]]; then
|
|
|
654
|
+ # we need more workers for the large ops job
|
|
|
655
|
+ API_WORKERS=${API_WORKERS:=$(( ($(nproc)/2)<2 ? 2 : ($(nproc)/2) ))}
|
|
|
656
|
+else
|
|
|
657
|
+ API_WORKERS=${API_WORKERS:=$(( ($(nproc)/4)<2 ? 2 : ($(nproc)/4) ))}
|
|
|
658
|
+fi
|
|
654
|
659
|
|
|
655
|
660
|
# Service startup timeout
|
|
656
|
661
|
SERVICE_TIMEOUT=${SERVICE_TIMEOUT:-60}
|