Skip to content

Clarify Intended Use of NewFailoverClusterClient in Docs #3392

Closed
@gopichanditv

Description

@gopichanditv

Hi Go Redis maintainers,

I am using NewFailoverClusterClient in a setup with:

Redis in non-cluster mode
1 master and 2 slaves
Sentinels monitoring the master

In practice, this works really well with RouteRandomly: true — reads are distributed randomly across replicas and the master, and writes correctly route to the current master even after a failover.

However, despite its name including "Cluster," there's no explicit documentation confirming or rejecting NewFailoverClusterClient's suitability for non-cluster, Sentinel-based Redis setups. This creates some ambiguity for developers.

Suggestion:

Please clarify in the documentation (function comment or README) whether NewFailoverClusterClient is officially supported for non-cluster, Sentinel-based Redis setups.

If it's not recommended, consider mentioning the risks or potential incompatibilities.

This would greatly help many developers understand when and how to use this function correctly, especially since using it in non-cluster mode with Sentinel appears to work reliably in many scenarios.

Thanks for your great work on this library!

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions