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{
4949- ** Auto-calculated** : ` 10 × MaxWorkers ` , capped by pool size
5050- ** Always capped** : Queue size never exceeds pool size
5151
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-
6552## Metrics Hook Example
6653
6754A 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:
8370## Requirements
8471
8572- ** RESP3 Protocol** : Required for push notifications
86- - ** Redis 7.0+** : For maintenance notification support
Original file line number Diff line number Diff line change 99type contextKey string
1010
1111const (
12- startTimeKey contextKey = "start_time "
12+ startTimeKey contextKey = "notif_hitless_start_time "
1313)
1414
1515// MetricsHook collects metrics about notification processing.
@@ -60,4 +60,4 @@ func (mh *MetricsHook) GetMetrics() map[string]interface{} {
6060 "processing_times" : mh .ProcessingTimes ,
6161 "error_counts" : mh .ErrorCounts ,
6262 }
63- }
63+ }
You can’t perform that action at this time.
0 commit comments