????????

??????????????????????У???????????????????????

?????? ?????????·??????????

?????? ??????????????????????????????????????μ????????????????2???????????????????????

??????????????????????????????????????????????Щ???

??????????????????Python???????У?

?????? д??????????????????????????????????C????Java??

?????? ???????????Shell??Perl??Щ??????????

?????? ??????????????????

?????? ??????????????Python??mako????????paramikossh2??

???????????paramiko?????????????ssh??????????????????????????????????????????????Linux???????????

???????

???????????????????

??????????????YAML?????YAML???????????????????????List??Map??????


1.tasks:

2. # ???????????????????????????????????

3. -

4.    id:1# ID???????????????п?????id????????????

5.    parallelNum:1# ??????

6.    seconds:1800# ????С?

7.    targetHost:10.20.137.22 # ???????

8.    targetPort:9999

9.    queryFilePath:/home/admin/access-log/add-600w.query  # ??????????

10. # ??2????????????????????????2??????????????????д????????parallelNum: 2??????

11. -

12.    id:1

13.    parallelNum:2

14.    seconds:1800

15.    targetHost:10.20.137.22

16.    targetPort:9999

17.    queryFilePath:/home/admin/access-log/add-600w.query
 


?????????????????????????????abench??????????????????????????й??????????+???????????????JMeter?дJ(rèn)Meter????????????????????????????????abench??????????

??????????????????У??к?????????滻???????????????趨?????????????????????????????Python?????????????????????mako??


1.abenchPath:/opt/usr/bin/abench  # abench???????

2.abenchCommand:"${abenchPath} -p ${parallelNum} -s ${seconds} -k --http -o /dev/null ${targetHost} ${targetPort} ${queryFilePath}"