Redis persistence files are divided into two types: dump.rdb and appendonly.aof 1. Redis persistence RDB Redis provides 2 different forms of persistence methods RDB (Redis DataBase) AOF (Append Of File) 1. What is RDB Write a snapshot of the data set in memory to disk within a specified time interval, which is also known as […]
Tag: persist
Redis persistence configuration, RDB and AOF configuration instructions
Article directory I. Overview 2. RDB persistence configuration 3. AOF persistence mode configuration If your understanding of Redis is not deep enough, please pay attention to this column. This column includes Redis installation, Redis configuration file description, Redis command and data type description. 1. Overview Redis persistence refers to the process of storing Redis data […]
Redis write failureMISCONFRedisisconfiguredtosaveRDBsnapshots, but is currently not able to persist on disk
The Java log error is as follows: redis hput exception org.springframework.dao.InvalidDataAccessApiUsageException: 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. ; nested exception is redis.clients.jedis.exceptions.JedisDataException: MISCONF Redis is configured […]
Redis’s safety net: Master the persistence technology of RDB and AOF [redis Part 4]
Safety net of Redis: Master the persistence technology of RDB and AOF Preface First: What are RDB and AOF? RDB (Redis Database Backup): AOF (Append-Only File): Similarities and differences: Second: In-depth analysis of RDB mechanism working principle: Configuration and triggering: advantage: limitation: Third: In-depth analysis of the AOF mechanism working principle: Configuration and management: rewrite […]
PersistenceDelegate- persistent proxy class
java.beans.PersistenceDelegate – persistent proxy class, persistent delegate Official Document Original Word 1: The persistence agent can control all aspects of object persistence, including: 1. Determine whether an instance can be mutated into another instance of the same class. 2. Instantiate the object by calling a public constructor or public factory method. 3. Perform object initialization. […]
AOF (Append Only File) for redis persistence
1: What is AOF Record each write operation in the form of a log (incremental save), record all write instructions executed by redis (read operations are not recorded), only allow files to be appended but not rewritten. When redis is started, it will Read the file to reconstruct the data, in other words, redis restarts […]
Sentinel authorization rules and rule persistence
Hello everyone, I am Su Lin. Today I will talk about Sentinel rule persistence. Authorization rules Authorization rules can determine and control the source of the requester. Authorization rules Basic rules Authorization rules can control the source of the caller, and there are two methods: whitelist and blacklist. Whitelist: Callers whose origin is in the […]
Redis advanced underlying source code 6 – data persistence (RDB method)
1 Overview Redis is an in-memory database. That is, when the server is running, the system allocates a portion of memory to store data. When the service area suddenly goes down, the data in the database will be lost. In order to deal with this situation, persistence must be used. way to save data from […]
Redis advanced underlying source code 7 – data persistence (AOF method)
1 Overview RDB full backup is very time-consuming and cannot provide strong consistency. If the Redis process crashes, the data after the latest RDB backup will also disappear. AOF records each write command in an independent log, which can effectively solve the real-time problem of data persistence. When the system restarts, you can re-execute the […]
An article to understand Linux environment variables (local environment variables, global environment variables, persistent environment variables)
Article directory 0 background 1 Overview of environment variables 1.1 Global environment variables 1.2 Local environment variables 2Create environment variables 2.1 Local environment variables 2.2 Global environment variables 3 Delete environment variables 4 Set the PATH environment variable 4.1 Persistent environment variables 4.1.1 Case 1: Default login shell 4.1.2 Case 2: Interactive shell for non-login […]