3
0
mirror of https://github.com/rvalitov/zabbix-php-fpm.git synced 2023-11-05 03:30:27 +01:00

[add] analyze pools in parallel

This commit is contained in:
Ramil Valitov 2020-08-07 18:50:37 +03:00
parent 8e5a83eede
commit bd92d4b4f9
No known key found for this signature in database
GPG Key ID: 2AB186DABDFE1914

View File

@ -717,8 +717,9 @@ POOL_NAMES_LIST=$(${S_PRINTF} '%s\n' "${PS_LIST[@]}" | $S_AWK '{print $NF}' | $S
#Update pending list with pools that are active and running
while IFS= read -r POOL_NAME; do
AnalyzePool "$POOL_NAME"
AnalyzePool "$POOL_NAME" &
done <<<"$POOL_NAMES_LIST"
wait
if [[ -n $DEBUG_MODE ]]; then
PrintDebug "Pending list generated:"