Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UniversalClient to support creating FailoverClient with ReplicaOnly #3077

Open
jdheyburn opened this issue Aug 1, 2024 · 0 comments
Open

Comments

@jdheyburn
Copy link

UniversalOptions doesn't support a ReplicaOnly option, but it UniversalClient can support creating FailoverClient if a MasterName is provided. a FailoverClient can support routing commands to a replica behind Sentinel if ReplicaOnly option is provided in FailoverOptions.

There is ReadOnly which is only used by cluster clients. Maybe that can be reused but it may be better to just add this to UniversalOptions.

	// Only failover clients.

	// The sentinel master name.
	MasterName string
	ReplicaOnly bool
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant