shell curl 压测
#!/bin/basha=0for i in {1..600}:dosleep 1echo $[$(date +%s%N)/1000000]for i in {1..1000};docurl --insecure -L -v -k -H 'Content-Type: application/json' -H 'test_uuid: xhwtest' -X POST --data '{"micros
·
#!/bin/bash
a=0
for i in {1..600}:
do
sleep 1
echo $[$(date +%s%N)/1000000]
for i in {1..1000};
do
curl --insecure -L -v -k -H 'Content-Type: application/json' -H 'test_uuid: xhwtest' -X POST --data '{"microservice":"test","groupId":"KAFKA","mergeCount":"","appId":"test","urls":{"launchTasks":"/scheduler/launchTasks","queryTasks":"/scheduler/queryTasks","killTasks":"/scheduler/killTasks"}}' "https://172.18.1.182:17101/rest/router/v2/subsystem" --cert /home/paas/client.crt --key /home/paas/client.key -w '\n' &
a=$(($a+1))
done
echo $[$(date +%s%N)/1000000]
echo $a
done
更多推荐
已为社区贡献1条内容
所有评论(0)