File tree Expand file tree Collapse file tree 2 files changed +2
-16
lines changed Expand file tree Collapse file tree 2 files changed +2
-16
lines changed Original file line number Diff line number Diff line change @@ -49,19 +49,6 @@ Config: &hitless.Config{
49
49
- ** Auto-calculated** : ` 10 × MaxWorkers ` , capped by pool size
50
50
- ** Always capped** : Queue size never exceeds pool size
51
51
52
- ## Cluster Support
53
-
54
- ``` go
55
- opt := &redis.ClusterOptions {
56
- Addrs : []string {" localhost:7000" , " localhost:7001" },
57
- Protocol : 3 ,
58
- HitlessUpgrades : &redis.HitlessUpgradeConfig {
59
- Mode: hitless.MaintNotificationsEnabled ,
60
- },
61
- }
62
- client := redis.NewClusterClient (opt)
63
- ```
64
-
65
52
## Metrics Hook Example
66
53
67
54
A metrics collection hook is available in ` example_hooks.go ` that demonstrates how to monitor hitless upgrade operations:
@@ -83,4 +70,3 @@ The metrics hook tracks:
83
70
## Requirements
84
71
85
72
- ** RESP3 Protocol** : Required for push notifications
86
- - ** Redis 7.0+** : For maintenance notification support
Original file line number Diff line number Diff line change 9
9
type contextKey string
10
10
11
11
const (
12
- startTimeKey contextKey = "start_time "
12
+ startTimeKey contextKey = "notif_hitless_start_time "
13
13
)
14
14
15
15
// MetricsHook collects metrics about notification processing.
@@ -60,4 +60,4 @@ func (mh *MetricsHook) GetMetrics() map[string]interface{} {
60
60
"processing_times" : mh .ProcessingTimes ,
61
61
"error_counts" : mh .ErrorCounts ,
62
62
}
63
- }
63
+ }
You can’t perform that action at this time.
0 commit comments