We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0a4cbde + c35eee5 commit afe5074Copy full SHA for afe5074
1 file changed
stackrc
@@ -650,7 +650,12 @@ SERVICE_PROTOCOL=${SERVICE_PROTOCOL:-http}
650
# the memory used where there are a large number of CPUs present
651
# (the default number of workers for many services is the number of CPUs)
652
# Also sets the minimum number of workers to 2.
653
-API_WORKERS=${API_WORKERS:=$(( ($(nproc)/4)<2 ? 2 : ($(nproc)/4) ))}
+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
659
660
# Service startup timeout
661
SERVICE_TIMEOUT=${SERVICE_TIMEOUT:-60}
0 commit comments