don't increase concurrency if more than one worker is inactive
This commit is contained in:
parent
48bf62a84f
commit
202a4fd6ca
5
atom
5
atom
@ -1435,7 +1435,8 @@ then
|
|||||||
fi
|
fi
|
||||||
getConfig
|
getConfig
|
||||||
|
|
||||||
set -eH
|
set -e
|
||||||
|
set +H
|
||||||
if (( debug ))
|
if (( debug ))
|
||||||
then
|
then
|
||||||
cat <<-EOF
|
cat <<-EOF
|
||||||
@ -1838,7 +1839,7 @@ do
|
|||||||
then
|
then
|
||||||
concurrencychange=$(date +%s)
|
concurrencychange=$(date +%s)
|
||||||
(( --concurrency ))
|
(( --concurrency ))
|
||||||
elif (( load < maxload ))
|
elif (( load < maxload )) && (( active > concurrency - 1 ))
|
||||||
then
|
then
|
||||||
concurrencychange=$(date +%s)
|
concurrencychange=$(date +%s)
|
||||||
(( ++concurrency ))
|
(( ++concurrency ))
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user