高可用和异常测试 - 单从实例宕测试

优质
小牛编辑
141浏览
2023-12-01

接上,2.129为从,此时杀掉该进程,redis.log日志记录如下:

  1. [14984 | signal handler] (1434674492) Received SIGTERM scheduling shutdown...
  2. [14984] 19 Jun 08:41:32.545 # User requested shutdown...
  3. [14984] 19 Jun 08:41:32.545 * Calling fsync() on the AOF file.
  4. [14984] 19 Jun 08:41:32.545 * Saving the final RDB snapshot before exiting.
  5. [14984] 19 Jun 08:41:32.580 * DB saved on disk
  6. [14984] 19 Jun 08:41:32.580 # Redis is now ready to exit, bye bye...

此时集群正常提供对外服务,并不影响。