Skip to content

Commit

Permalink
balance scheduler service number when start scheduler (#134)
Browse files Browse the repository at this point in the history
  • Loading branch information
sonyafenge authored Aug 11, 2022
1 parent 0a0a9cf commit 75a0891
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hack/test-rune2e.sh
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ if [ ${CLIENT_NUM} -gt 0 ]; then
--format='value(instance)'))

index=0
service_num=$((${SCHEDULER_NUM} / ${CLIENT_NUM} + 1))
service_num=$(((${SCHEDULER_NUM} + 1) / ${CLIENT_NUM}))
for name in "${instance_names[@]}"; do
if [ $index == $((${CLIENT_NUM} - 1)) ]; then
done_num=$((${service_num} * ${index} ))
Expand All @@ -185,7 +185,7 @@ if [ ${CLIENT_NUM} -gt 0 ]; then
done
else
index=0
service_num=$((${SCHEDULER_NUM} / ${CLIENT_NUM} + 1))
service_num=$(((${SCHEDULER_NUM} + 1) / ${CLIENT_NUM}))
for zone in "${INSTANCE_CLIENT_ZONE[@]}"; do
if [ $index == $((${CLIENT_NUM} - 1)) ]; then
done_num=$((${service_num} * ${index} ))
Expand Down

0 comments on commit 75a0891

Please sign in to comment.