mirror of
https://github.com/ceph/ceph-csi.git
synced 2025-06-13 10:33:35 +00:00
util: added logs for slow gRPC calls
This commit adds a gRPC middleware that logs calls that keep running after their deadline. Adds --logslowopinterval cmdline argument to pass the log rate. Signed-off-by: Robert Vasek <robert.vasek@clyso.com>
This commit is contained in:
committed by
mergify[bot]
parent
56d08e1b4d
commit
7a727c2a43
@ -120,6 +120,11 @@ func init() {
|
||||
"path of prometheus endpoint where metrics will be available")
|
||||
flag.DurationVar(&conf.PollTime, "polltime", time.Second*pollTime, "time interval in seconds between each poll")
|
||||
flag.DurationVar(&conf.PoolTimeout, "timeout", time.Second*probeTimeout, "probe timeout in seconds")
|
||||
flag.DurationVar(
|
||||
&conf.LogSlowOpInterval,
|
||||
"logslowopinterval",
|
||||
time.Second*30,
|
||||
"how often to inform about slow gRPC calls")
|
||||
|
||||
flag.UintVar(
|
||||
&conf.RbdHardMaxCloneDepth,
|
||||
|
Reference in New Issue
Block a user