Last update at :2024-07-07,Edit by888u
Today I migrated some sites to the Luyun Dapanji that I sell, and then I found that the performance was not enough. After turning on redis, my server's disk IO usage was full due to the persistence function of redis.
A chain reaction is formed later, because the disk IO is full, causing the execution speed of databases, PHP and other programs to slow down. Because the execution speed of these programs slows down, request congestion occurs. Due to a large number of request congestion, the memory CPU and usage soared. In the end, my CPU, memory, and disk IO all exploded. . .
In fact, the most fundamental reason is insufficient server performance. However, we can still optimize as much as possible under limited performance conditions.
The persistence function of redis is not of much use to me, so I just turn it off.
Modify configuration file
Search for "save" in the Redis configuration file to find the persistence configuration item and comment it out. Then remember to save!
Delete persistent files
After we commented out the persistence code above, we still need to delete the previously generated persistence file.
The Pagoda panel user redis persistence file is in the /www/server/redis directory.
Other users can search dir in the redis configuration file to view
Then delete the dump.rdb file in the directory.
Restart redis
After completing the above steps, just restart redis.
Recommended site searches: IP reverse check, US host network, Wanwang domain name space, domain name registration official website, website virtual host space, Foshan high defense server, how to query domain name registration number, registration website, domain name and space, registration-free virtual space,
发表评论