首页 > 配置文件 > jtesta?ZATSaZ�aS�?��e?�

jtesta?ZATSaZ�aS�?��e?�

2013年12月16日     浏览数:408 发表评论 阅读评论

jtesta?ZATSaZ�aS�?��e?�

a??a??a?�a??e�??��e??cs�proxya�?c?�???aS?a�?i??Apache Traffic Server???a??es?c�?a??c�?a�?a��e?�e??c��e�?cs�?��e??aZ�?��cs�i????�?��a�?e?�a???��e??aZ�?��e?�e??a�sa?�a?�a��c�?a��a?�a??e?�c�?e�??��e??a�?e�?a?�a?�a�?a��e��???cs�c?�c�Ya?�i??e?�e??c�?a??c?�a?�cs�aZ�aS�?��e?�a��

aZ�aS�?��e?�cs�a�sa?�

a??a�s??�a��a?�i??a��a��e??a????�a?????aS?a�?a?Sc??a�?a�?a?saS?a?Sc??a�?i??a??a?saS?cs�?�??��e??aS�a?sa?�a???��e?�i??a????�cY?e?�e�?a��cs�?�?aS????a?????a??e?�?�?i?????a?????e??a�Y??�e??a??c??cs�?S�a??e?�??Ycs�?�?e�?aZ�aS�i??c��c��i???��c��a?�???aZ�aS�?��e?�cs�a?�e�?c�?e��??�i?s

  1. c?�a�s?��c�???�cs�?�?e?�a??a?sa?�e��?��e??e��e??
  2. ?�?a�?a?saS?cs�a?�???qps?��??�i??a?�a�sa?�a??a��a�?cs�?�?a??c??
  3. a??c�??��e???��??�a??a??c?�a��e��e?�a�?a?Se?�c��cs�a?�?��
  4. ?�?a??cs�c?�e�?a?saS?cs�???aS?a??c??a?Sc?�c�Ycs�aZ�aS�

?�?a??a?�a?�a?�i????�??�??�?�?a?�cs�???i???�?a�??��a�?c�????a?�a???��e??a?S??�a�ze��i?�?�?a�??��cs�?��e???�?e?�a?�a?�???e�?a?�a�sa��a��

?�???�aZ�aS�cs�??????i??aZ�aS�?��e?�a??a?se?�a?�a??i?s

  1. a�ze??a��a�?c?YaZ�aS�?��e?�

    a�ze??a��a�?c?Yi??a??http proxy???aS?a�??��e?�a???�?a?�i??a�???�c�?a�????aS?a�?c�?cs�?��??�a�?e?�?��i??e?????c��a�?a��c�Y???cs�a��

  2. a?saS?copya�?c?YaZ�aS�?��e?�

    ???c��i??a��?z?a????�???aS?a�?c?�a??c?Y?�?cs�e??a�Ya??c??a?Se��i??c��a?�cs�a�ze??a��?��e?�a?Za?saS?e?�?��e�?a�s???a��a?�e?za??a��i??a��?��a��??�a?�a??a��a??a???SSa?saS??�?e�?a�?a?�a?�c?�c�Ya?�???cs�?????�a��e?�a?Ya��????��e��cs�?�?e�?a�?a?�cs�aZ�?��?�?a??a��

jtesta�?a��a???�?a��c�?

jtest???a?�a??a?�e�?c�?a?Zproxy/cachec?�c�Ycs�a�ze??a��?��e??aZ�aS�?��e?�a�?a��i??a��??�?z?e�?cs�?��e??a��e??a�Ya???��?��a?�a?Za?�???aS?a�?a�?a�???�c�?a��ATSc?�c�Ya?�c�?cs�?��e??aZ�?��a�?a��a��

a��a?scs�aZ�aS�?��e?�a�?a��i??a?�e?�a?Y???a?�a???��e��cs�c��a�?i??e�?a?�a�???�c�?a�????aS?a�?c�?i??e??a�Ye�?a��c�Y???????�Y?�?e�?a�?copya�???�???a?�?�?e�?c��i??a??a??c��a�?jtestcs�???a??

??�?��cs�jteste?�e�?e�?a??a??a�?a?�a??a??cs�e��c?�a?Se??e??i??c�?a?Sa��e�s??�c?�c�Ye��a??i?????aZ�?��a?�a??ATSe��c?�c?�c�Yi???��a�?cs�c?�c�Ya?�?????�e�?e��a??cZ�a??e?�?��cs�a�s?�?CPU?��e???��a��

jtestc��a?�e????Z

aY???�?��e?�

jtesta??a??a?�e�?e�?a??ATScs�?��e?�i??a�?c�?a��ATScs�??�c��a?�e�?c?�a?�i??a?sa?�a??a�sc��a?�cs�e�?e��a?�?��i??a�?a??a?Zc�???�a?�e�Ycs�a?S?��i????�a��a�???�c��a?�cs�??�???jtestaZ�?��??�???cs�e�?e��e�?c?�ATSa??a?�a�?i??a��c�???�aY???�cs�jtestc�???�i?s

  1. e�?c?�ATScs�remape��a?�i?s

    a??e�?e��cs�c�?remap.configa?�?��aS�a?�???e��a?�

    map http://localhost:9080/ http://127.0.0.1:9080/

  2. e??e??jtesti?s

    jtest

    e?�a??a�?a��e�?e��cs�a?�?��i??a??c�?a?�a?Z “jtest -s 9080 -S localhost -p 8080 -P localhost -c 100 -z 0.4″i??a��a?se��100a??e?z?Z?a??c�?127.0.0.1cs�9080c�?a??a??a??jtest??????aS?a�?i??jtestc��a?�i?�i??a????�???i??localhosti?�cs�8080c�?a??a?Se��cs�ATSe?�e???��e?�i??a?�?Z�a?�?�?a?�a�?a?�cZ�a??40%a��

e?�a�?c��?z?i?s

con  new    ops 1byte   lat   bytes/per     svrs  new  ops    total   time  err
100  468 2329.6    39    39 36323315/363233   617  617  617  46131904 136980.9    0
100  471 2361.5    39    40 35993941/359939   619  619  619  45466393 136981.9    0
100  465 2327.0    40    41 35385495/353854   607  607  607  45095273 136982.9    0

a��a?�i?s

  • con: a?�a?�e?z?Z??��a��a?�a?�e?z?Z??��i??a?�e?�c?�a?�cpua��c?�e??aS�a?�a�?a?ZCPUa?Z?��e?�a???�?i??e?�e�???�e�?c?�i???Z?e??a�?a?Z9999
  • new: ???c��?��a�?e?z?Z??��a��e?�a??a?�?��a?�a�?a?Za?�a?�e?z?Z??��e�?a?Ze�?e?z?Z??�?cZ�a��
  • ops: ???c��e?�?��?��a��a?Ya??qpsi???????�e??a?�cZ�???aS?a�??��e??cs�a�?e��??�?��a��
  • 1bytei?se��a��eS�a??a?�a�?a?�?��e�?a��e?�a?????a?�cZ�?�?a?�e?�a?�?�?cZ�cs�a�?e��??�?��a��
  • lat: a�????e?�?��?�?a?�a�?a?�?��e�?i???��a?�??�a?Za?�a??a��eS�i?�a��cachec?�c�Y?��e??a�?e��??�?��a��
  • bytes/peri?s???c��a��eS�?�?e�?/???c��???e?z?Z??�?e�?
  • svrsi?s???aS?a�?c�?e?�?��?��
  • newi?s???aS?a�?c�??��a�?e?z?Z??��
  • opsi?s???aS?a�?c�????c��e?�?��?��
  • totali?s???aS?a�?c�??��e?�?��cs�a��eS�?��
  • timei?s?��e?�?��e�?i??c��i?�
  • erri?sa�?e��?��e�?i??e?z?Z??��i?�a��c??a�s?��?��e?�a?�i??e?�a???��??�a??a�?a??a??a?�a??a�?e��??�?��a��

jtesta�?a��e?�e�?

jtest??�e?za??a�scs�a?�?��i??e?�a?�a?�?��cs�c��a??a??a?sa?�c�Ya??a�sc�??�Scs�?�??z?i????�a��a��a�Za�??�?cs�a??c�?e????Za?�a��i??e?�c��e????Zjtest?��e?�cs�a�?a��a?�?��i?s

localhost:tools zym$ ./jtest/jtest -h
JTest Version 1.94  - Dec  9 2013 17:11:24 (zym@zymMBPr.local)
Usage: /Users/zym/git/traffic.git/tools/jtest/.libs/jtest [--SWITCH [ARG]]

a?�?��?�?a??i?s

a?�?��?�?a????? cY�a?�?��e�?a?�?��c��az�e�?e��a�?a?�?��e????Zi??a�s?��a?�?��e??a?sa?�e�???�e????Z??�e??e?�c��i???�?a�se????Za?�e�?a?�e??cs�e????Za�?a?Sa?Zc��e�?c?�c�???�c�?a?�a��

  switch__________________type__default___description

?��e?�???a�?IPa?Zc�?a??e�?c?�i?s

e?�a��a??e�?c?�?????�??�a??c�?cs�a��a??a?�?��

  -p, --proxy_port        int   8080      Proxy Port
  -P, --proxy_host        str   localhost Proxy Host
  -s, --server_port       int   0         Server Port (0:auto select)
  -S, --server_host       str   (null)    Server Host (null:localhost)
  • -p -P???c�??????�a�se�??��e?�cs�ATS???aS?a�?a?�a?�a�?c�?a??a?????
  • -s -S???c�??????�a�se�??��e?�cs�ATS???aS?a�?i??c�????a??a?????cs�jtestc��a?�aYYa??i??IPi?�a�?c�?a??a?????a��

???aS?a�?aZ�aS�?Z�a?�i?s

???aS?a�?cs�aZ�aS�a�?c?Yi??a?�e�????a?�aS?c�Y???cs�es?????�?e�??Z�a?�

  -r, --server_speed      int   0         Server Bytes Per Second (0:unlimit)
  -w, --server_delay      int   0         Server Initial Delay (msec)
  -c, --clients           int   100       Clients
  -R, --client_speed      int   0         Client Bytes Per Second (0:unlimit)
  -b, --sbuffersize       int   4096      Server Buffer Size
  -B, --cbuffersize       int   2048      Client Buffer Size
  -a, --average_over      int   5         Seconds to Average Over
  -z, --hitrate           dbl   0.400     Hit Rate
  -Z, --hotset            int   1000      Hotset Size
  -i, --interval          int   1         Reporting Interval (seconds)
  -k, --keepalive         int   4         Keep-Alive Length
  -K, --keepalive_cons    int   4         # Keep-Alive Connections (0:unlimit)
  -L, --docsize           int   -1        Document Size (-1:varied)
  -j, --skeepalive        int   4         Server Keep-Alive (0:unlimit)
  • -r -w -Ri???Z�a?�a�???�c�?a�????aS?a�?c�?cs�e�Ya?�i??a�s?��aZ�?��cs�??�a��a?�i??a??a?sa?sc�??�Se�?a?�i??a??e?�e�?a�?c?Ya��a?�a?�a�?a��a��e?Yc��??�a��a?�i??a??a�?a?s?Z�a?�a��
  • -b -Bi??????�Ya�???�c�?a�????aS?a�?c�?cs�buffera��a�?e�?c?�i??buffercs�a��a�?a??a�??z?a��cs�a?�a�?IOcs�e??aS�i??a?Ya?sa?�a�?a��a�?cs�a?�c�?a��
  • -z -Zi??e?�???c�?????Z�a?�a�?a?�cZ�a�?c?�c�??��??�a��a�?a?�cZ�???c��c?�c�??��??�cs�a�?a?�i??aS�misscs�e?�?��a��c?�c�??��??�cs�a�sa��i??a?Ya?sa?�a�????aS?a�?cs�a��a�?a??c�?a��
  • -k -K -ji???Z�a?�a�???�c�?a�????aS?a�?cs�e�?e?z?Z?a��
  • -ii??c�?????Z�a?�jtest?��?S?e�?es�?��e�?a��
  • -Li??c�?????Z�a?�jtestc�Y???cs�es????urlcs�a��a�?i??e�?e��-1e??c�?a�?a�?es????i???????�?Z�a?�a��

?Z�a?�e?�a�?e?�a�?cs�e�?c?�i?s

  -x, --show_urls         on    false     Show URLs before they are accessed
  -X, --show_headers      on    false     Show Headers
  -f, --ftp               on    false     FTP Requests
  - , --ftp_mdtm_err_rate dbl   0.000     FTP MDTM 550 Error Rate
  - , --ftp_mdtm_rate     int   0         FTP MDTM Update Rate (sec, 0:never)
  • -x -Xi??c�????debugi?????c�?urla�?a?S?��??�headera�?i?????a???Z�?Y?a?�a�?a��
  • ftpc�?a�?cs�???c�????aZ�?��ftpcs�i??a??e?�ATSa??ftpcs�?�????a�?c�?a?�e��a��a��

?��e?�cs�?�?c?�a��c?�i?s

jtest?��e?�i?????a??a�?e?�e??a�???�cs�??�a��i????�a��a??a?�a??c?�c��e?�e???��a?�?S�a?�?��e?�i??a??a??a?�a�??�?a?�a�?e�???Z???a???��e?�

  -l, --fullpage          on    false     Full Page (Images)
  -F, --follow            on    false     Follow Links
  -J, --same_host         on    false     Only follow URLs on same host
  -t, --test_time         int   0         run for N seconds (0:unlimited)
  -u, --urls              str   (null)    URLs from File
  -U, --urlsdump          str   (null)    URLs to File
  -H, --hostrequest       int   0         Host Request(1=yes,2=transparent)
  -C, --check_content     on    false     Check returned content
  - , --nocheck_length    on    false     Don't check returned length
  -m, --obey_redirects    off   true      Obey Redirects
  -M, --embed URL         off   true      Embed URL in synth docs
  • -l -F -Ji??c�????a??html?��a��e?�e??e�??z?i??a?�???a�?a��a?�cs�?��??�a�?c��a�?c?�c��e?�e???��a?�?S�a?�cs�?Z�a?�a��
  • -ti???Z�a?�?��e?�e??e???��e�?i??e�?e��a?�c�?e��
  • -u -Ui??c��jtest??�a�surli??c??a?�jteste��cs�urli??a��e?�a�?a??e�??z?htmlcs�?�?a??i??a?�c??a?�cs�a??e??a?sa�sa?Z??�a�scs�i?�
  • -Hi???Z�a?�???aS?a�??��e?�???a??i?????a?�a?�hosta�?i??a�?a�sa?�???aS?a�????e��a??a??a?�a�?c?�a�??�?a?�a�?c?�a�?e�???Za�?c?�???a??
  • -C –nocheck_lengthi?????a?�??�?Y?e?�a�zcs�a��a�?a�?e�?a?�
  • -mi?????a?�e�?e?�
  • -Mi???Z�a?�???a?�?SSurl?�?a?�doce�?

e?�?��cs�a?�?�?a?�a?Zc?�c�?i?s

hash???jtesta�?atse�??��a��a??a??cs�i??a��a?�e��hasha?�c�?a?�a�?i??c�se�??��e?�hashc?�?�zc��??�a��i?Yi?Y

  -q, --url_hash_entries  int   1000000   URL Hash Table Size (-1:use file size)
  -Q, --url_hash_filename str   (null)    URL Hash Table Filename

-q -Qi??hash?Z�a?�

???aS?a�?cs�?Z�a?�i?s

???aS?a�?cs�a??c�?c��az�?Z�a?�i??a??a�?e��jteste��a??a??a??cs�???a??a?�

  -y, --only_clients      on    false     Only Clients
  -Y, --only_server       on    false     Only Server
  -A, --bandwidth_test    int   0         Bandwidth Test
  -T, --drop_after_CL     on    false     Drop after Content-Length
  • -y -Yi??a??a�?a��jtesta?�c��e��a?????aS?a�?a�?a�???�c�?a?�c��cs�???aS?a��
  • -Ai??-Ti??a??a�?a?s?�?a?�cs�?�?e�?aZ�?��a�?a��a��

a��a��?Z�a?�a????????a?�i?s

  -V, --version           on    false     Version
  -v, --verbose           on    false     Verbose Flag
  -E, --verbose_errors    off   true      Verbose Errors Flag
  • -v -Ei??a??a�?c�?a?Zdebuge��e??c��

e?�?��cs�es???????a?�i?s

??�c��a?�?��i??a?�e�??Z�a?�???aS?a�?a�?e?�?��cs�es????c?�a?�a�?a�???�a?�i???z�a�?a?�a??a�???�cs�?��e?�c�?a?�i??a��a?sa?????aS?a�?cs�c??a�s?��?��e?�e��a?�a??a??cs�?�??z?a��

  -D, --drand             int   0         Random Number Seed
  -I, --ims_rate          dbl   0.500     IMS Not-Changed Rate
  -g, --client_abort_rate dbl   0.000     Client Abort Rate
  -G, --server_abort_rate dbl   0.000     Server Abort Rate
  -n, --extra_headers     int   0         Number of Extra Headers
  -N, --alternates        int   0         Number of Alternates
  -e, --client_rate       int   0         Clients Per Sec
  -o, --abort_retry_speed int   0         Abort/Retry Speed
  - , --abort_retry_bytes int   0         Abort/Retry Threshhold (bytes)
  - , --abort_retry_secs  int   5         Abort/Retry Threshhold (secs)
  -W, --reload_rate       dbl   0.000     Reload Rate
  • -Di??c�?a?Zc�Y???urlcs�es?????��i??a��?z???�a�sa??jtesta?�a?�e??e??i??a??a�?a??e?�a??es????cs�seede?�e??a??a?�a�??Z�a?�cachecs�a�sa�?c��
  • -Ii??e?�?��cs�a��a�?a?�i??a?�cs�IMS??�a?�
  • -g -Gi??a�???�c�?a�????aS?a�?cs�Abort??�a?�
  • -n -Ni???Z�a?�a�???�c�?a?�e�?cs�header?��e�?i?????aS?a�?cs�a��a�?cs�a�???�?��e�?
  • -ei?????c��cs�a�???�c�??��e�?
  • -o –abort_retry_bytes –abort_retry_secsi???Z�a?�e�?e?�cs�e�Ya?�
  • -W ?Z�a?�a��a�?cs�e�?a�?a?�i?Yi?Y

???aS?cs�a�?c?Yc?�a?�i?s

  -O, --compd_port        int   0         Compd port
  -1, --compd_suite       on    false     Compd Suite
  -2, --vary_user_agent   int   0         Vary on User-Agent (use w/ alternates)
  -3, --content_type      int   0         Server Content-Type (1 html, 2 jpeg)
  -4, --request_extension int   0         Request Extn (1".html" 2".jpeg" 3"/")
  -5, --no_cache          int   0         Send Server no-cache
  -7, --zipf_bucket       int   1         Bucket size (of 1M buckets) for Zipf
  -8, --zipf              dbl   0.000     Use a Zipf distribution with this alpha (say 1.2)
  -9, --evo_rate          dbl   0.000     Evolving Hotset Rate (evolutions/hour)
  • -0 -1i??compress???aS?
  • -2i???Z�a?�???a?�a??a??a??cs�UAa??c�?a�sa�???�
  • -3i?????aS?a�?e?�a�zcs�a��a�?cs�c��az�
  • -4i??e?�?��cs�a��a�?c��az�
  • -5i?????a?�a?�e�?c��???aS?a�?no-cache?Z�a?�
  • -7 -8i??zipf???aS?
  • -9i??c?�c�?cs�a??c��e�??�?

a��a��a?????i?s

  -d, --debug             on    false     Debug Flag
  -h, --help                              Help

=============================================================================

a?Se??a?�?��a?�a?�a?�c�?a??c�?cs�a?�?��

  • -c, –clients int 100 Clients

    e�Yabcs�-ca?�?��c��a??i??e�?e��jtesta?sa??c�?100a?�a?�

  • -k, –keepalive int 4 Keep-Alive Length

  • -K, –keepalive_cons int 4 # Keep-Alive Connections (0:unlimit)

    e�Yabcs�-ka?�?��aSYe??c��a??i???Z�a?�e�?e?z?Z?cs�?��e�?a�?a?Se�?e?z?Z?cs�?�?cZ�

  • -z, –hitrate dbl 0.400 Hit Rate

    a�?a?�cZ�40%i??a??a??a?�a�?c?�e�?a�?a?Za?�

  • -u, –urls str (null) URLs from File

    ???a?�e�?a��cs�urlsi??a??a�?a??http_loada?�?��a??c�?jtest

  • -y, –only_clients on false Only Clients

  • -Y, –only_server on false Only Server

    a��?z?a?�e?�e�?c��c��e??e??jtesta�???�c�?a�????aS?a�?c�?i??a�????e�??��e??a�?a?za??e�?c��

    jteste?�e?�c�???�

    ??�?��a��a?sa��c�?a��a?�?�?a??cs�a??c�?jtestaZ�?�?ATS?��e??i??e??a�?c��e??e��e??

    c��c��?��e?�???a�?

    e?�e?�c�???�e�?i????�a��a�?a�?e?�c�?c�?2a?????a�?i??a?�a??e��jtesti??a?�a??e��ATSi??a?saZ�aS�?��e?�i?s

    1. a�sa?�???a�?e��e�?i?s

      ??�a��a??c�? ‘ts.cn’ a??a??aZ�?��cs�URLcs�aYYa??i??192.168.0.1a??a????�a��cs�ATS???aS?a�?i??192.168.0.2a??a????�a��cs�?��e?�c�?i??e��jtesta��

  • e�?c?�ATScs�mape��a?�i?s

    a????�a��cs�a?�a�?e�?i????�a��a?�e??e�?c?�a��a?�e��a?�i?s

    map http://ts.cn:9080/ http://192.168.0.2:9080/

  • a??192.168.0.2e??e??jtesta�?a��i?s

    jtest -S ts.cn -P 192.168.0.1

    a??e?�a??a?�a�?e�?i????�a��e�?c?�a?�???aS?a�?c�?cs�aYYa??a??ts.cni??a???��c��a?�-Pa?�?��??�a�sa?�e�??��e?�cs�???aS?a�????192.168.0.1i??e?�?��??�a��cs�jtesta��a?sa??c�?192.168.0.1:8080a??a??a�?c?�???aS?a�?i??a??c�?ts.cna??a??e�?aZ�?��cs�aYYa?????e?�e??aZ�aS�?��e?�a��

    a?�a?????a�?a�sa??jtest

    c��a?Zjtest???a?�e?�c?�???a??i??e?�c?�aZ�?��a?�a??a?�a�?a�sa��16a??corea�?a?Scs�ATSc?�c�Yi??e�?a�s???aZ�a??aS?cs�i??a��a?�?�?e???�?a??cs�e?�e??aZ�?��a�?i?Y?Z?a?Se??cs�a?�a�?i????�a��a??a�?a???��e?�c�?a�se��a��a??jteste?�c?�i????�a��?s�e��6a??i?s

    1. a�sa?�???a�?e��e�?i?s

      ??�a��a??c�? ‘ts.cn’ a??a??aZ�?��cs�URLcs�aYYa??i??192.168.0.1a??a????�a��cs�ATS???aS?a�?i??192.168.0.2a??a????�a��cs�?��e?�c�?i??e��jtesta��

  • e�?c?�ATScs�mape��a?�i?s

    a????�a��cs�a?�a�?e�?i????�a��a?�e??e�?c?�a��a?�e��a?�i?s

    map http://ts.cn:9080/ http://192.168.0.2:9080/
    map http://ts.cn:9081/ http://192.168.0.2:9081/
    map http://ts.cn:9082/ http://192.168.0.2:9082/
    map http://ts.cn:9083/ http://192.168.0.2:9083/
    map http://ts.cn:9084/ http://192.168.0.2:9084/
    map http://ts.cn:9085/ http://192.168.0.2:9085/
    

  • a??192.168.0.2e??e??a??a?�cs�6a??jtesta�?a��i?s
  • jtest -S ts.cn -s 9080 -P 192.168.0.1 &
    jtest -S ts.cn -s 9081 -P 192.168.0.1 &
    jtest -S ts.cn -s 9082 -P 192.168.0.1 &
    jtest -S ts.cn -s 9083 -P 192.168.0.1 &
    jtest -S ts.cn -s 9084 -P 192.168.0.1 &
    jtest -S ts.cn -s 9085 -P 192.168.0.1 &
    

    e?�?��a��a??a�?a��i??e��e?????a?�a??c?�a??e�?a?s???c��?��a?�a??a�sa??a�sc��?z?a?????i??a??a�?a�???�a?�e??e��e??a��a��a?�?�?a??e��cs�e��a�sa?????a�?a�sa??jteste??i?Y??�a��a?�e??e?�e??e?�c��a��c�?

    jteste��c?�c�???�

    a?????aS?a�?e��c?�a?�i??a?�a??a?�cs�aZ�?��???a??e�?cs�i??e�sa????�a��a??a�?a��jtest?��e??c��e??i??a?se��c�?a�sa?????a�?i??a�sa??jtesta?�e��e��cs�??�a��i????�a��a��e?�e�?a?�a�?a��a��?Z�a?�???a?�a�??��??�c�Ye�????a?�?�?a??a��

    screencs�a?�e??jtestc�?c?�

    e��a�?i????�a��a?�e?�??�a?�a??a?�a?�?��e?�cs�???a?�i??a?�???a�se?�c?�a�?a�s???a?�e??i??a?�a?�a??a�?c�Ye�?a?�a??e?�c?�e?�a�zcs�c��?z?a��a?�a??ATS??�a?�a???��e?�??�?z�i??a??a�??��e??a�sa?????a�?cs�a?�e???��e?�i??a?�e??a�Y?��?��a�sa??jtestcs�e?�a�zc��?z?a��??�a��e?�e�?e��c�?c��a?�cs�???a??i??screene�s??�i?s

    screencs�-ca?�?��i??a??a�?a???�?a??cs�a??aS?a?�a??screene�s??�i??a??e?�a??e�s??�e�?i??a??a�?a??aS?a�sa??screenc?�a??i????�a��e��c�?e?�a?????a?�???a?�a?�cs�a??aS?a�sa??jtesta�?a��i??c��a?Zscreena???��??�a?Za?�e��c��cs�aSYe??i??a??a�?c?�a????�a��a??e?�e�?cs�?��a��a�z???c?�c?�a?�a??jtestcs�?��e?�c��?z?i??a?�e?????a?�a??screencs�e�s??�i?s

    screen jtest -P 192.168.0.1 -S ts.cn -s 192.168.0.2 -z 1.0 -D 9080 -k 2 -c 30 -Z 1000 -q 10000 -L 50000
    screen jtest -P 192.168.0.1 -S ts.cn -s 192.168.0.2 -z 1.0 -D 9081 -k 2 -c 30 -Z 1000 -q 10000
    screen top
    detach
    

    ??�a��e��c�?screencs�-X quita�?a��i?????a???�?jtestaZ�?��a��a???��i??a??a?�e??c�?a?�a??c��?��cs�???a�?i????�a��a??a�?c��a?�a??screen?��a?S?��e?�i??a�??�?a??a??a?�a?�a?????a�?a?Scs�a�sa??screena��

    N:Ncs�?��e?�???a�?

    a??a?�?��e?�i????�a��a?�a�s??�10a?�?��e?�???a�?192.168.0.{10..19}i??10a?�???aS?a�?192.168.0.{100..109}i??c��???cluster??�a��a��i?�i??e?�e�??????�c�????c�Y????��e?�cs�a?�a?�a�?e�s??�i?s

    a?�?�??��e?�?�???�jtesta?�?��

    # ca?????aS?a�?ip 10..19
    # sa??a�???�c�?ip 10..19
    # ia?????a?????a�???�a�sa??a?�a?????aS?a�?e��10a??e?�c?�aZ�?�� 0..9
    # ??�a��cs�c�?a??a?? $c$s$i
    
    for c in {10..19}
    do
      for s in {20..29}
      do
        for i in {0..9}
          do echo map http://ts.cn:$c$s$i/ http://192.168.0.$c:$c$s$i/
        done
      done
    done
    

    e?�a?sc�Y???a?�a??a??e�?cs�map?��a��i?s

    map http://ts.cn:10200/ http://192.168.0.10:10200/
    map http://ts.cn:10201/ http://192.168.0.10:10201/
    map http://ts.cn:10202/ http://192.168.0.10:10202/
    .
    .
    .
    map http://ts.cn:19297/ http://192.168.0.19:19297/
    map http://ts.cn:19298/ http://192.168.0.19:19298/
    map http://ts.cn:19299/ http://192.168.0.19:19299/
    

    ??�a��a��a??a�?c�????a?sa?�a?�?��e?�cs�screene�s??�i????�a��a?????a???��e?�???a�?a?Si??c�Y???a?�a?�e�?a?????a??c�?a��e��???a�?cs�e�s??�i?s

    for c in {10..19};do for s in {20..29};do echo "
    screen jtest -P 192.168.0.${s} -S ts.cn -s ${c}${s}0 -z 1.0 -D ${c}${s} -k 2 -c 30 -Z 1000 -q 10000 -L 5000
    screen jtest -P 192.168.0.${s} -S ts.cn -s ${c}${s}1 -z 1.0 -D ${c}${s} -k 2 -c 30 -Z 1000 -q 10000 -L 10000
    screen jtest -P 192.168.0.${s} -S ts.cn -s ${c}${s}2 -z 1.0 -D ${c}${s} -k 2 -c 30 -Z 1000 -q 10000 -L 10000
    screen jtest -P 192.168.0.${s} -S ts.cn -s ${c}${s}3 -z 1.0 -D ${c}${s} -k 2 -c 30 -Z 1000 -q 10000 -L 20000
    screen jtest -P 192.168.0.${s} -S ts.cn -s ${c}${s}4 -z 1.0 -D ${c}${s} -k 2 -c 30 -Z 1000 -q 10000 -L 50000
    screen jtest -P 192.168.0.${s} -S ts.cn -s ${c}${s}5 -z 1.0 -D ${c}${s} -k 2 -c 30 -Z 1000 -q 10000
    screen top
    detach
    " | ssh root@192.168.0.$c tee jtest.screen.$s;done;done
    

    c��a?Zi???��e?�e�s??�cs�a??aS?a��a?se?za??c��a?�i?s

    for c in {10..19}
    do
      for s in {20..29}
      do
        ssh -t 192.168.0.$c screen -R jtest$s -c jtest.screen.$s
      done
    done
    

    a???�??��e?�cs�a�?a��a?Y???a??c��a?�cs�i?s

    for c in {10..19}
    do
      for s in {20..29}
      do
        ssh -t 192.168.0.$c screen -Rx jtest$s -X quit
      done
    done
    

    ?��e?�cs�a�sa?�

    e�se?�a?Se??cs�screene�s??�cs�a�sa?�i????�a��a??a�?es??��a?�?�?a��a?�cs�e�?e�?e�?c?�i??a��-c -zc��c��i??c�se�?a?zaS�a?�a?�a�???�c�?a�?c?Ycs�es????a��c?�c��c��i??a��a?�??�a��a??a�?e�?e?�a��

    a��a?�?�?a??cs�a�?c?Ya�?c??a?Scs�a�???�??�a��

    TBD

    a��a?�a??c�?jtest???e��stress?��e?�

    TBD

    a��a?�a?�?z?jtestc?�a�?cs�a?�a?�ATSe��e??

    TBD

    jtestcs�a?�?�?e?�e��e??a�?a?Sa?Zc��e�?a?�

    • ?�????https??
    • ?�????spdy??
    • a?�e?�c?�a�?a?�i?Yi?Y
    • e��c?�aZ�?��a?Sa��e�?a?�a�?a��i?Yi?Yi?Y
    • a??cZ?i??es????i?�aZ�?��urls???a?�cs�a?�e??i??c��a??http_loada?�?��

    分类: 配置文件 标签:
    1. 匿名
      2015年6月5日17:22 | #1

      jtest听说是测试java程序的,能测试ats的C++程序么?

      • 纸鸢
        2015年7月12日14:29 | #2

        测试缓存系统的,哪里分java/c++

    1. 本文目前尚无任何 trackbacks 和 pingbacks.