返回

提问 添加收藏

redis 集群发现从宕机重启后全量同步都报out of memory错误,看意思是内存溢出,但是服务器器内存远大于redis当前的内存,请问大侠们有没有经验分享

xcj0654335 发布于 2020年03月26日 (共有1个回帖)

 

目前主redis 8个G 的内存,当从节点起来后同步主redis的数据一直报内存溢出起不来。

服务器内存当时有40G

以下是redis 从起来后全名同步的错误,

10:C 25 Mar 2020 23:58:28.883 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo

10:C 25 Mar 2020 23:58:28.883 # Redis version=5.0.5, bits=64, commit=00000000, modified=0, pid=10, just started

10:C 25 Mar 2020 23:58:28.883 # Configuration loaded

10:M 25 Mar 2020 23:58:28.886 * Node configuration loaded, I'm dc3da3bf5d7b766130eba824f43e8910204252f5

10:M 25 Mar 2020 23:58:28.887 * Running mode=cluster, port=6002.

10:M 25 Mar 2020 23:58:28.888 # Server initialized

10:M 25 Mar 2020 23:58:28.888 * Reading RDB preamble from AOF file...

10:M 26 Mar 2020 00:08:20.050 * Reading the remaining AOF tail...

10:M 26 Mar 2020 00:08:26.276 * DB loaded from append only file: 597.388 seconds

10:M 26 Mar 2020 00:08:26.276 * Ready to accept connections

10:S 26 Mar 2020 00:08:26.278 * Before turning into a replica, using my master parameters to synthesize a cached master: I may be able to synchronize with the new master with just a partial transfer.

10:S 26 Mar 2020 00:08:26.278 # Cluster state changed: ok

10:S 26 Mar 2020 00:08:26.279 * FAIL message received from c336e15bef7dfbb07b39cad940df8eee19754545 about 8e4bf45391f1c8dd1002d77906a758b51183332b

10:S 26 Mar 2020 00:08:26.279 * FAIL message received from af8909901f69655c55a96ad6d735e44ba3b36f09 about 00f8db54390a8e7668a1d637bfcd35595339663f

10:S 26 Mar 2020 00:08:27.280 * Connecting to MASTER 10.131.30.32:6002

10:S 26 Mar 2020 00:08:27.280 * MASTER <-> REPLICA sync started

10:S 26 Mar 2020 00:08:27.280 * Non blocking connect for SYNC fired the event.

10:S 26 Mar 2020 00:08:27.281 * Master replied to PING, replication can continue...

10:S 26 Mar 2020 00:08:27.281 * Trying a partial resynchronization (request 00885ff98d47ce248beb31229abe918e322477ad:1).

10:S 26 Mar 2020 00:08:27.418 * Full resync from master: 66de4d3235ff70c7ca4c5288020e320a4a0ed9a6:2201187

10:S 26 Mar 2020 00:08:27.418 * Discarding previously cached master state.

10:S 26 Mar 2020 00:09:11.447 * MASTER <-> REPLICA sync: receiving 1862605471 bytes from master

10:S 26 Mar 2020 00:09:16.835 * MASTER <-> REPLICA sync: Flushing old data

10:S 26 Mar 2020 00:10:05.061 * MASTER <-> REPLICA sync: Loading DB in memory

10:S 26 Mar 2020 00:10:18.111 # Out Of Memory allocating 10 bytes!

 

 

=== REDIS BUG REPORT START: Cut & paste starting from here ===

10:S 26 Mar 2020 00:10:18.111 # ------------------------------------------------

10:S 26 Mar 2020 00:10:18.111 # !!! Software Failure. Press left mouse button to continue

10:S 26 Mar 2020 00:10:18.111 # Guru Meditation: Redis aborting for OUT OF MEMORY #server.c:3893

10:S 26 Mar 2020 00:10:18.111 # (forcing SIGSEGV in order to print the stack trace)

10:S 26 Mar 2020 00:10:18.111 # ------------------------------------------------

10:S 26 Mar 2020 00:10:18.111 # Redis 5.0.5 crashed by signal: 11

10:S 26 Mar 2020 00:10:18.111 # Crashed running the instruction at: 0x55bcc5326184

10:S 26 Mar 2020 00:10:18.111 # Accessing address: 0xffffffffffffffff

10:S 26 Mar 2020 00:10:18.111 # Failed assertion: <no assertion failed> (<no file>:0)

 

------ STACK TRACE ------

EIP:

redis-server 0.0.0.0:6002 [cluster](_serverPanic+0x124)[0x55bcc5326184]

 

Backtrace:

 

------ INFO OUTPUT ------

10:S 26 Mar 2020 00:10:18.112 # Out Of Memory allocating 7132 bytes!

10:S 26 Mar 2020 00:10:18.112 # ------------------------------------------------

10:S 26 Mar 2020 00:10:18.112 # !!! Software Failure. Press left mouse button to continue

10:S 26 Mar 2020 00:10:18.112 # Guru Meditation: Redis aborting for OUT OF MEMORY #server.c:3893

10:S 26 Mar 2020 00:10:18.112 # (forcing SIGSEGV in order to print the stack trace)

10:S 26 Mar 2020 00:10:18.112 # ------------------------------------------------

Java$tag.name()$tag.name()
文明上网,理性发言
客户端 Android iPhone WP7