A few days ago, when the project team said that Redis was used, the Redis response was slow. Redis is configured with Master and slave, and memory usage reaches around 15G.
According to the previous understanding of the master-slave configuration, the maximum from the synchronization data will be slow, the master should not affect. Later, I looked closely at the replication-related configuration of Redis and found a fun place.
# 1) disk-backed:the Redis Master creates a new process that writes the RDB
# file on disk. Later the file is transferred by the parent
# process to the slaves incrementally.
# 2) diskless:the Redis Master creates a new process that directly writes the
# RDB file to slave sockets, without touching the disk at all.
The Redis configuration default synchronization mode is disk-backed, so you can understand why the master is affected. Unfortunately, there is no way to verify in the environment. Purely personal opinion.
This article is from the "various software users" blog, please be sure to keep this source http://yaoyf.blog.51cto.com/4223135/1768230
2 Ways of Redis replication