helix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Zhen Zhang (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (HELIX-356) add a tool for grep zk transaction/snapshot logs based on time
Date Thu, 16 Jan 2014 01:58:19 GMT

     [ https://issues.apache.org/jira/browse/HELIX-356?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Zhen Zhang resolved HELIX-356.
------------------------------

    Resolution: Fixed

> add a tool for grep zk transaction/snapshot logs based on time
> --------------------------------------------------------------
>
>                 Key: HELIX-356
>                 URL: https://issues.apache.org/jira/browse/HELIX-356
>             Project: Apache Helix
>          Issue Type: Bug
>            Reporter: Zhen Zhang
>            Assignee: Zhen Zhang
>
>  - to grep a pattern by t1 use:
>  zkgrep --zkCfg zkCfg --by t1 --pattern patterns...
>  
>  - to grep a pattern between t1 and t2 use:
>  zkgrep --zkCfg zkCfg --between t1 t2 --pattern patterns...
>  
> for example, to find fail-over latency between t1 and t2, use:
> 1) zkgrep --zkCfg zkCfg --between t1 t2 --pattern "closeSession" | grep {fail-node session-id}
> 2) zkgrep --zkCfg zkCfg --between t1 t2 --pattern "/{cluster}" | grep "CURRENTSTATES"
| grep "setData" | tail -1
>  
> fail-over latency = timestamp difference between 1) and 2)



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Mime
View raw message