From 14425d5ff0d0dd165553d5a4d954b651377fe5f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=8F=E7=99=BD?= Date: Fri, 23 Aug 2024 19:18:53 +0800 Subject: [PATCH] Update mock-curl2nginx.sh MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit curl之间增加等待间隔,避免把磁盘打爆。demo运行过程中,1分钟能产生200MB的数据,一会就把机器磁盘打满了 --- docker-compose/config/mock-curl2nginx.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docker-compose/config/mock-curl2nginx.sh b/docker-compose/config/mock-curl2nginx.sh index e6522d4..5589a18 100755 --- a/docker-compose/config/mock-curl2nginx.sh +++ b/docker-compose/config/mock-curl2nginx.sh @@ -13,5 +13,5 @@ while true; do if [ $((random_num % 10)) -eq 0 ]; then curl "http://${HOST}/400" fi - # sleep $DELAY -done \ No newline at end of file + sleep $DELAY +done