Redis read-write separation and sentinel mechanism configuration
Mar 30, 2020 am 09:24 AM1. Use the commands cp redis.conf /redis63791.conf, cp redis.conf /redis63792.conf, cp redis.conf /redis63793.conf in /etc/redis/ to The root directory is ready
1 2 3 4 5 6 7 8 9 10 11 12 |
|
2. Sentinel configuration, find the sentinel.conf file in /etc/redis (if you don’t have such a configuration file), copy cp sentinel.conf /mysentinel .conf
1 2 3 4 |
|
3. After the configuration is completed, you can turn on the master-slave mechanism, separate reading and writing, and provide a sentinel mechanism. After the master is down for 5 seconds, a new master will be randomly selected from the slave. Previously After the master is connected, he can only work as a slave! !
1 2 3 4 5 |
|
For more redis knowledge, please pay attention to the redis introductory tutorial column.
The above is the detailed content of Redis read-write separation and sentinel mechanism configuration. For more information, please follow other related articles on the PHP Chinese website!

Hot Article

Hot tools Tags

Hot Article

Hot Article Tags

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

Solution to 0x80242008 error when installing Windows 11 10.0.22000.100

Analyze PHP function bottlenecks and improve execution efficiency

Golang API caching strategy and optimization

Caching mechanism and application practice in PHP development

Which one has better performance, erlang or golang?
