How to shut down redis Cluster by linux
Today, I will talk to you about how linux shuts down the redis cluster. Many people may not know much about it. In order to make you understand better, the editor has summarized the following for you. I hope you can get something according to this article.
The redis nodes of the redis cluster are interconnected with each other (PING-PONG mechanism), and the binary protocol is used internally to optimize the transmission speed and bandwidth. There is no host, and the client can connect to a node at will.
Shut down redis normally
Execute the command shutdown directly on the client or redis-cli-p 7001 shutdown directly on the command line
Let's write a shutdown.sh directly.
Or simply kill-9 ${process number} (if you want to kill more than one process at a time, separate the space between the process numbers)
Related instructions:
# View redis process ps-ef | grep redis# kill drop process kill-9 2177 2217
If the cluster has been built before and all the nodes have been lost by kill for some reason, if you need to start the cluster at this time, you only need to start each Redis node one by one, and the cluster will naturally rise.
Related instructions:
# after starting Redissrc/redis-server redis.conf at the backend, do you have any further understanding of how linux shuts down the redis cluster? If you want to know more knowledge or related content, please follow the industry information channel, thank you for your support.