When you import data to Redis, there are times when Redis server went away occurs, and this problem occurs for the following reasons:
The amount of data being imported is too large, not enough memory (that is, memory 1G, but the data has 2G). The Redis service needs to be restarted at this time.
There may be too much data being imported at the same time, causing problems with data persistence, and the RDB and aof need to be closed. Close RDN command: Config set save "", close aof command: Config set Appendfsync No, the two settings query has been modified successfully, can be through config get Save, config get Appendfs Ync command to view. Note that the command is executable by executing redis-cli.
The RDB saves a snapshot of the database (snapshot) to disk in a binary way.
AOF, in the form of protocol text, logs all commands (and their parameters) that have been written to the database to the AOF file to achieve the purpose of logging the database state.
This article is from the "PHP Program ape" blog, please be sure to keep this source http://okowo.blog.51cto.com/4923464/1923433
Turn off Rdb and aof in Redis