Tendis icon indicating copy to clipboard operation
Tendis copied to clipboard

停止tendis花费了太多的时间

Open perrornet opened this issue 4 years ago • 2 comments

Description

执行了stop.sh后,等待了半个小时查看INFO日志还在刷: “W0304 22:22:17.373648 14932 server_entry.cpp:756] session:2266160 comes when stopping, ignore it” 运行stop.sh后的INFO日志截图: image 等待半个小时后的INFO日志截图: image 错误日志截图: image 错误日志显示22:32:16还在写入,但是在22:22时我就已经将所有连接tendis的程序关闭,所以我推测是不是因为写入延迟导致了有大量的数据没有刷新到磁盘,所以在运行stop.sh之后,还需要等待很长的一段时间才能关闭?但是我查看磁盘io占用发现tendis并没有读取写入数据。

tendis资源占用: image

Your Environment

  • Operating System and version: centos7
  • Machine Specifications: 4核32G
  • Tendis Version: 2.1.2
  • Tendis Configuration:
port 51002
bind 10.0.5.241
loglevel notice
logdir /data/tendis/log
dumpdir /data/tendis/dump
dir /data/tendis/db
pidfile /data/tendis/tendisplus.pid
slowlog /data/tendis/slowlog
rocks.blockcachemb 10240
executorThreadNum 48

cluster-enabled true
  • IO/Network used: image

perrornet avatar Mar 04 '21 15:03 perrornet

你好,可以提供一下当时的堆栈信息 执行pstack <pid> pid是tendisplus的线程id

TendisDev avatar Mar 05 '21 02:03 TendisDev

由于是测试环境,我已经使用kill -9停止了进程, 查看数据文件并没有丢失。 我有空的时候尝试复现一下。

perrornet avatar Mar 05 '21 03:03 perrornet