Skip to content

Commit

Permalink
Update mock-curl2nginx.sh
Browse files Browse the repository at this point in the history
curl之间增加等待间隔,避免把磁盘打爆。demo运行过程中,1分钟能产生200MB的数据,一会就把机器磁盘打满了
  • Loading branch information
wuzhihui1123 authored Aug 23, 2024
1 parent 199790f commit 14425d5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docker-compose/config/mock-curl2nginx.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@ while true; do
if [ $((random_num % 10)) -eq 0 ]; then
curl "http://${HOST}/400"
fi
# sleep $DELAY
done
sleep $DELAY
done

0 comments on commit 14425d5

Please sign in to comment.