Replies: 1 comment
-
Test JuiceFS with Redis SentinelHere we test the automatic failover process of Redis Sentinel and whether JuiceFS can automatically switch to the new master as expected. We use ASCII art in order to show the configuration in a graphical format, we use the same symbols as described here .
We use the above 3 boxes deployment: 2 redis instances M1 (master) and R2 (replica), 3 sentinel instances S1, S2 , S3 . The JFS means the JuiceFS process which act as a redis client in this test. Mount JuiceFS using redis sentinel URL on
Run
Here we increse Then we stop redis instance on
and show the S2 log (
The redis replica ( R2 ) become master, and JuiceFS become normal, the Then we start the stopped redis instance on
The redis instance in
In above test, JuiceFS can switch and connect to the new redis master when the redis sentinel failover finish. During the failover, the redis master is unavailable, JuiceFS would fail to access redis and return JuiceFS works as expected when using Redis Sentinel. For more details about redis sentinel, please read the official documentation . |
Beta Was this translation helpful? Give feedback.
-
What would you like to be added:
Run adequate test with Redis Sentinel to verify Redis high availability is working.
Why is this needed:
Redis Sentinel is the official high availability solution for Redis. It can automatic failover when Redis master is not working.
Depends on #169
Beta Was this translation helpful? Give feedback.
All reactions