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

Connect to Redis with Setinel #180

Merged
merged 1 commit into from Feb 8, 2021
Merged

Connect to Redis with Setinel #180

merged 1 commit into from Feb 8, 2021

Conversation

davies
Copy link
Contributor

@davies davies commented Feb 7, 2021

Once Redis servers and Sentinels are deployed, the REDIS-URL can be specified as [redis[s]://][USER:PASSWORD@]MASTERNAME,SENTINEL_ADDRS:SENTINEL_PORT[/DB], for example,

$ ./juicefs mount rediss://:sentinelPass@masterName,1.2.3.4,1.2.5.6:5000/2

Note The default port for Sentinel is 26379, but the above URL use 6379 (default port for Redis server) as the default, so the port for Sentinel is not optional.

Note When the password is provided in the URL, it will also be used to connect Redis server. If they have different passwords, the passwords should be specified by enviroment viarables (SENTINEL_PASSWORD and REDIS_PASSWORD) separately.

Closes #169

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

Successfully merging this pull request may close these issues.

Support Redis Sentinel
1 participant