2 Ways of Redis replication

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.