Occurs when reading data from Redis: misconf Redis is configured to save RDB snapshots

Source: Internet
Author: User
Tags redis
The following are the exception details:
 

Exception in thread "main" Redis.clients.jedis.exceptions.JedisDataException:MISCONF Redis be configured to save RDB snap Shots, but is currently isn't able to persist on disk. Commands that may modify the data set are disabled. Please check Redis logs for details about the error.
Conditions at the time of production:
Data continued to write, read speed far below the write speed, lasted more than 1H (halfway open a longer time, has been written data, no tube), memory footprint of 80%.
Since I do not have a detailed and in-depth understanding of Redis, so according to the online data description:
Stop-writes-on-bgsave-error Yes
#默认情况下, if a problem occurs during RDB snapshots persistence, the redis is not allowed when the parameter is set
Do any update operations (set ...). Prevent Redis snapshots from being forced to stop artificially

Solve:
Enter the Redis src directory
To start the client:

 

./redis-cli
Input:

 

Config set Stop-writes-on-bgsave-error No

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.