At least two sentinels should be defined in Redis configuration! SENTINEL SENTINELS command returns empty result!
时间: 2024-03-21 08:40:33 浏览: 18
It seems like there may be a configuration issue with your Redis setup.
To define sentinels in Redis, you need to add the following lines to your Redis configuration file:
```
sentinel monitor <master-name> <ip> <port> <quorum>
sentinel down-after-milliseconds <master-name> <milliseconds>
sentinel failover-timeout <master-name> <milliseconds>
sentinel parallel-syncs <master-name> <num-slaves>
```
Replace `<master-name>`, `<ip>`, `<port>`, `<quorum>`, and `<num-slaves>` with the appropriate values for your Redis setup.
After making these changes, if you run the `sentinel sentinels <master-name>` command, you should see a list of the defined sentinels. If the command returns an empty result, it may indicate that the sentinels are not properly configured or running.
相关推荐
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)