Tendis
Tendis copied to clipboard
我们线上的tendis集群运行一段时间就特别的慢,简单的get/set命令都要达到10几秒,有人能帮忙解决一下吗?
是最新版本的tendis2.3.1
这是我们的配置文件信息,磁盘是nvme的,目前磁盘读写压力并不大,error中没有异常日志,就是很慢很慢,慢到客户端一直超时
- "aof-enabled"
- "no"
- "aof-psync-num"
- "500"
- "bind"
- ""0.0.0.0""
- "binlog-send-batch"
- "256"
- "binlog-send-bytes"
- "16777216"
- "binlog-using-defaultcf"
- "no"
- "binlogdelrange"
- "1"
- "binlogfilesecs"
- "1200"
- "binlogfilesizemb"
- "64"
- "binlogratelimitmb"
- "64"
- "checkkeytypeforsetcmd"
- "no"
- "chunksize"
- "16384"
- "cluster-enabled"
- "yes"
- "cluster-migration-barrier"
- "1"
- "cluster-migration-binlog-iters"
- "10"
- "cluster-migration-distance"
- "10000"
- "cluster-migration-rate-limit"
- "32"
- "cluster-migration-slots-num-per-task"
- "10"
- "cluster-node-timeout"
- "30000"
- "cluster-require-full-coverage"
- "yes"
- "cluster-single-node"
- "no"
- "cluster-slave-no-failover"
- "no"
- "cluster-slave-validity-factor"
- "10"
- "compactrange-after-deleterange"
- "no"
- "daemon"
- "no"
- "databases"
- "16"
- "delcntindexmgr"
- "10000"
- "deljobcntindexmgr"
- "1"
- "dir"
- ""./store/db""
- "domain-enabled"
- "no"
- "dumpdir"
- ""./store/dump""
- "executorthreadnum"
- "16"
- "executorworkpoolsize"
- "8"
- "fullpushthreadnum"
- "4"
- "fullreceivethreadnum"
- "4"
- "garbage-delete-size"
- "30"
- "garbagedeletethreadnum"
- "1"
- "generallog"
- "no"
- "incrpushthreadnum"
- "4"
- "jeprof-auto-dump"
- "yes"
- "keysdefaultlimit"
- "100"
- "kvstorecount"
- "10"
- "lockdbxwaittimeout"
- "1"
- "lockwaittimeout"
- "3600"
- "logdir"
- ""./store/log""
- "loglevel"
- ""notice""
- "logrecyclethreadnum"
- "4"
- "lua-time-limit"
- "5000"
- "luastatemaxidletime"
- "3600000"
- "masterauth"
- ""YWExYTdmZmRlMGZk""
- "maxbinlogkeepnum"
- "1"
- "maxclients"
- "10000"
- "migrate-gc-enabled"
- "yes"
- "migrate-snapshot-key-num"
- "100000"
- "migrate-snapshot-retry-num"
- "1000"
- "migratereceivethreadnum"
- "4"
- "migratesenderthreadnum"
- "4"
- "minbinlogkeepsec"
- "3600"
- "netbatchsize"
- "1048576"
- "netbatchtimeoutsec"
- "10"
- "netiothreadnum"
- "8"
- "noexpire"
- "no"
- "pausetimeindexmgr"
- "10"
- "pidfile"
- ""./store/tendisplus.pid""
- "port"
- "6501"
- "proto-max-bulk-len"
- "536870912"
- "requirepass"
- ""YWExYTdmZmRlMGZk""
- "rocks.blockcache_num_shard_bits"
- "6"
- "rocks.blockcache_strict_capacity_limit"
- "no"
- "rocks.blockcachemb"
- "20971"
- "rocks.compress_type"
- ""snappy""
- "rocks.disable_wal"
- "no"
- "rocks.flush_log_at_trx_commit"
- "no"
- "rocks.level0_compress_enabled"
- "no"
- "rocks.level1_compress_enabled"
- "yes"
- "rocks.wal_dir"
- """"
- "scancntindexmgr"
- "1000"
- "scandefaultlimit"
- "10"
- "scandefaultmaxiteratetimes"
- "10000"
- "scanjobcntindexmgr"
- "1"
- "slave-migrate-enabled"
- "no"
- "slavebinlogkeepnum"
- "1"
- "slowlog"
- ""./store/log/slowlog""
- "slowlog-file-enabled"
- "yes"
- "slowlog-flush-interval"
- "1000"
- "slowlog-log-slower-than"
- "100000"
- "slowlog-max-len"
- "128"
- "storage"
- ""rocks""
- "timeoutsecbinlogwaitrsp"
- "30"
- "truncatebinlogintervalms"
- "1000"
- "truncatebinlognum"
- "50000"
- "version-increase"
- "yes"
你好,分析慢查询的方式
- 判断当时系统负载
- 判断慢查询的时间戳是否集中,慢查询的比例如何
- 分析rocksdb日志,搜索compaction相关日志,看下在慢查询对应时间是否存在大量compaction
- 通过monitor分析是否存在大key
另外,尝试修改这个参数 binlogdelrange 10000