Uploaded image for project: 'Traffic Server'
  1. Traffic Server
  2. TS-2725

When using the transform in the plugins, the query results from traffic_line are incorrect

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 4.2.0
    • sometime
    • Metrics
    • None
    • centos6

    Description

      When using the transform in the plugins, the query results from traffic_line is incorrect.
      For example,add a transform at read response hook,then the growth of proxy.node.http.origin_server_total_response_bytes will becomes very slow.
      test :
      origin server:127.0.0.1:80(nginx);
      ats(4.2.0) never-cache;
      qps:25
      request file: 25M
      Tsar is a tool,qurey results by traffic_line.

      [root@ats plugins]# http_load -proxy 127.0.0.1:8080 -p 50 -seconds 120 /root/test.txt
      [root@ats plugins]#cat /root/test.txt
      http://127.0.0.1/vlive.qqvideo.tc.qq.com/2.mp4

      the results using transform(used example/null-transform,do nothing):
      [root@ats plugins]# tsar --ts --ts_os -l
      ---ts----- -ts_os-------
      qps Bps qps Bps
      4.00 112.8M 4.00 964.00
      4.20 112.8M 4.20 964.00
      3.80 107.2M 3.80 915.80
      4.20 112.8M 4.20 964.00
      3.80 107.2M 3.80 915.80
      4.00 107.2M 4.00 915.80
      4.00 112.8M 4.00 964.00
      4.00 107.2M 4.00 915.80
      4.00 112.8M 4.00 964.00
      4.20 112.8M 4.20 964.00
      4.20 118.4M 4.20 1.0K
      4.20 112.8M 4.20 964.00
      4.20 118.4M 4.20 1.0K
      4.00 107.2M 4.00 915.80
      ```
      without transform:
      ```
      [root@ats plugins]# tsar --ts --ts_os -l
      ---ts--- -ts_os-------
      qps Bps qps Bps
      25.60 716.3M 25.60 716.3M
      24.60 693.7M 24.60 693.7M
      25.20 705.0M 25.20 705.0M
      24.80 699.4M 24.80 699.4M
      25.60 716.3M 25.60 716.3M
      25.00 705.0M 25.00 705.0M
      25.40 710.7M 25.40 710.7M
      24.80 699.4M 24.80 699.4M
      25.00 699.4M 25.00 699.4M
      24.60 693.7M 24.60 693.7M
      ```

      Attachments

        Activity

          People

            Unassigned Unassigned
            acache acache
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: