@@ -5,66 +5,107 @@ namespace ServiceStack.Redis
5
5
{
6
6
public static class RedisStats
7
7
{
8
+ /// <summary>
9
+ /// Number of times the Redis Client Managers have FailoverTo() either by sentinel or manually
10
+ /// </summary>
8
11
public static long TotalFailovers
9
12
{
10
13
get { return Interlocked . Read ( ref RedisState . TotalFailovers ) ; }
11
14
}
12
15
16
+ /// <summary>
17
+ /// Number of times a Client was deactivated from the pool, either by FailoverTo() or exceptions on client
18
+ /// </summary>
13
19
public static long TotalDeactivatedClients
14
20
{
15
21
get { return Interlocked . Read ( ref RedisState . TotalDeactivatedClients ) ; }
16
22
}
17
23
24
+ /// <summary>
25
+ /// Number of times connecting to a Sentinel has failed
26
+ /// </summary>
18
27
public static long TotalFailedSentinelWorkers
19
28
{
20
29
get { return Interlocked . Read ( ref RedisState . TotalFailedSentinelWorkers ) ; }
21
30
}
22
31
32
+
33
+ /// <summary>
34
+ /// Number of times we've forced Sentinel to failover to another master due to
35
+ /// consecutive errors beyond sentinel.WaitBeforeForcingMasterFailover
36
+ /// </summary>
23
37
public static long TotalForcedMasterFailovers
24
38
{
25
39
get { return Interlocked . Read ( ref RedisState . TotalForcedMasterFailovers ) ; }
26
40
}
27
41
42
+ /// <summary>
43
+ /// Number of times a connecting to a reported Master wasn't actually a Master
44
+ /// </summary>
28
45
public static long TotalInvalidMasters
29
46
{
30
47
get { return Interlocked . Read ( ref RedisState . TotalInvalidMasters ) ; }
31
48
}
32
49
50
+ /// <summary>
51
+ /// Number of times no Masters could be found in any of the configured hosts
52
+ /// </summary>
33
53
public static long TotalNoMastersFound
34
54
{
35
55
get { return Interlocked . Read ( ref RedisState . TotalNoMastersFound ) ; }
36
56
}
37
57
58
+ /// <summary>
59
+ /// Number of Redis Client instances created with RedisConfig.ClientFactory
60
+ /// </summary>
38
61
public static long TotalClientsCreated
39
62
{
40
63
get { return Interlocked . Read ( ref RedisState . TotalClientsCreated ) ; }
41
64
}
42
65
66
+ /// <summary>
67
+ /// Number of times a Redis Client was created outside of pool, either due to overflow or reserved slot was overridden
68
+ /// </summary>
43
69
public static long TotalClientsCreatedOutsidePool
44
70
{
45
71
get { return Interlocked . Read ( ref RedisState . TotalClientsCreatedOutsidePool ) ; }
46
72
}
47
73
74
+ /// <summary>
75
+ /// Number of times Redis Sentinel reported a Subjective Down (sdown)
76
+ /// </summary>
48
77
public static long TotalSubjectiveServersDown
49
78
{
50
79
get { return Interlocked . Read ( ref RedisState . TotalSubjectiveServersDown ) ; }
51
80
}
52
81
82
+ /// <summary>
83
+ /// Number of times Redis Sentinel reported an Objective Down (sdown)
84
+ /// </summary>
53
85
public static long TotalObjectiveServersDown
54
86
{
55
87
get { return Interlocked . Read ( ref RedisState . TotalObjectiveServersDown ) ; }
56
88
}
57
89
90
+ /// <summary>
91
+ /// Number of times a Redis Request was retried due to Socket or Retryable exception
92
+ /// </summary>
58
93
public static long TotalRetryCount
59
94
{
60
95
get { return Interlocked . Read ( ref RedisState . TotalRetryCount ) ; }
61
96
}
62
97
98
+ /// <summary>
99
+ /// Number of times a Request succeeded after it was retried
100
+ /// </summary>
63
101
public static long TotalRetrySuccess
64
102
{
65
103
get { return Interlocked . Read ( ref RedisState . TotalRetrySuccess ) ; }
66
104
}
67
105
106
+ /// <summary>
107
+ /// Number of times a Retry Request failed after exceeding RetryTimeout
108
+ /// </summary>
68
109
public static long TotalRetryTimedout
69
110
{
70
111
get { return Interlocked . Read ( ref RedisState . TotalRetryTimedout ) ; }
0 commit comments