[ 
https://issues.apache.org/jira/browse/TS-2725?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14583686#comment-14583686
 ] 

Bryan Call commented on TS-2725:
--------------------------------

proxy.node.http.origin_server_total_response_bytes stat is being incorrectly 
updated according to the bug poster.

> When using the transform in the plugins, the query results from traffic_line 
> is incorrect
> -----------------------------------------------------------------------------------------
>
>                 Key: TS-2725
>                 URL: https://issues.apache.org/jira/browse/TS-2725
>             Project: Traffic Server
>          Issue Type: Bug
>          Components: Metrics
>    Affects Versions: 4.2.0
>         Environment: centos6
>            Reporter: acache
>             Fix For: sometime
>
>
> 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   
> ```



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to