Redis troubleshooting methods and experience

Source: Internet
Author: User

1. Problem: misconf redis is configured to save RDB snapshots

127.0.0.1: 6379> set K1 "nob"

(Error) misconf redis is configured to save RDB snapshots, but is currently not able to persist on disk. commands that may modify the data set are disabled. please check redis logs for details about the error.

The above error occurs because the disk cannot be written. Reason: it should be caused by force stop of redis snapshot.

It's okay to restart the machine. Hahaha, it's caused by several forced shutdowns.

Some solutions are as follows:

config set stop-writes-on-bgsave-error no

For memory problems, the following methods should be used to view logs,

Add 'vm. overcommit_memory = 1' in/etc/sysctl. conf and restart (or run the command 'sysctl VM. overcommit_memory = 1') to make it take effect.


[References]

1. http://www.linuxidc.com/Linux/2012-07/66079.htm from redis data loss

2. http://www.redicecn.com/html/Linux/20131125/468.html misconf redis is configured to save RDB memory problems caused

3. misconf redis is configured to save RDB snapshots, but is currently not able to persist on disk


Redis troubleshooting methods and experience

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.