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

ASF GitHub Bot commented on TS-4108:
------------------------------------

GitHub user jpeach opened a pull request:

    https://github.com/apache/trafficserver/pull/661

    TS-4108: Switch SSL metrics to RECD_COUNTER.

    All the SSL metrics registered in SSLUtils.cc are specified as
    RECD_INT, but they are all actually counters and should be specified
    as RECD_COUNTER. They are counters because they all monotonically
    increment and can be sensibly rate-converted.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/jpeach/trafficserver fix/4108

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/trafficserver/pull/661.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #661
    
----
commit 5b5efae070169cb80061d1ec1d2c31799e096e43
Author: James Peach <[email protected]>
Date:   2016-05-24T16:08:06Z

    TS-4108: Switch SSL metrics to RECD_COUNTER.
    
    All the SSL metrics registered in SSLUtils.cc are specified as
    RECD_INT, but they are all actually counters and should be specified
    as RECD_COUNTER. They are counters because they all monotonically
    increment and can be sensibly rate-converted.

----


> SSL metrics have wrong data type
> --------------------------------
>
>                 Key: TS-4108
>                 URL: https://issues.apache.org/jira/browse/TS-4108
>             Project: Traffic Server
>          Issue Type: Bug
>          Components: Metrics
>            Reporter: James Peach
>              Labels: newbie
>             Fix For: sometime
>
>
> All the SSL metrics registered in {{SSLUtils.cc}} are specified as 
> {{RECD_INT}}, but they are all actually counters and should be specified as 
> {{RECD_COUNTER}}.
> The sync function is sometimes given as {{RecRawStatSyncSum}} and sometimes 
> {{RecRawStatSyncCount}}. Although these functions are identical, we should 
> choose just one.
> Note that the SSL session cache metrics are a little quirky. They *are* 
> actually counters, but they use {{SSL_SET_COUNT_DYN_STAT}} rather than 
> {{SSL_INCREMENT_DYN_STAT}}. AFAICT the right way to do this would be to use 
> {{SSL_INCREMENT_DYN_STAT}} but clear the {{SSL_CTX}} counters on every pass. 
> The way it is done now seems like it would lead to incorrect values when the 
> session cache is cleared or SSL state is reloaded. Unfortunately I don't see 
> an OpenSSL API to clear the counters, so more research is needed there.



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

Reply via email to