Bug in configuration read in Redis Sentinel Section for "stats:"
- Dominant language
- Go
- Stars
- 8.8k
- Forks
- 887
- PR merge metrics
- No merged PRs in 30d
Description
Hello,
I got some trouble with the conifguration in stats: at the sentinel redis section.
My config as like you describe here https://github.com/appleboy/gorush/blob/master/config/testdata/config.yml#L103
```
stat:
engine: "redis"
redis:
cluster: true
addr: "redis-sentinel-0.redis-sentinel-headless:26379,redis-sentinel-1.redis-sentinel-headless:26379,redis-sentinel-2.redis-sentinel-headless:26379"
username: ""
password: "xxx"
db: 0
```
and I got this kind of error at my pod:
```
2026/03/18 13:46:53 Configuration error: configuration validation failed: invalid Redis address format: redis-sentinel-0.redis-sentinel-headless:26379,redis-sentinel-1.redis-sentinel-headless:26379,redis-sentinel-2.redis-sentinel-headle │
│ ss:26379
```
**Another question:** is there a way to support Redis Sentinal for queue: as well?
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with the Redis Sentinel example in config/testdata/config.yml around line 103 and reproduce the reported configuration validation error. Trace how the stats Redis address is validated, then assess the separate request for Sentinel support in the queue configuration. Done means the reported configuration has a defined outcome and queue support requirements are documented or implemented.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go, redis
- Domain
- backend, databases
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100