使用tarantool版本:Tarantool 1.6.8-586-g504e151 它从epel安装。 我在sphia模式下使用tarantool:
log_space = box.schema.space.create('logs',
{
engine = 'sophia',
if_not_exists = true
}
)
log_space:create_index('primary', {
parts = {1, 'STR'}
}
)
我有500.000条记录并发出选择请求:
box.space.logs:选择({ 'log_data'})
需要1分钟。 为什么这么慢?
unix/:/var/run/tarantool/g_sofia.control> box.stat()
—-
- DELETE:
total: 0
rps: 0
SELECT:
total: 587575
rps: 25
INSERT:
total: 815315
rps: 34
EVAL:
total: 0
rps: 0
CALL:
total: 0
rps: 0
REPLACE:
total: 1
rps: 0
UPSERT:
total: 0
rps: 0
AUTH:
total: 0
rps: 0
ERROR:
total: 23
rps: 0
UPDATE:
total: 359279
rps: 17
答案 0 :(得分:1)
自1.7.x
开始不推荐使用Sophia引擎。请使用vinyl
引擎代替它。
请查看更多详细信息:https://www.tarantool.io/en/doc/1.10/book/box/engines/vinyl/
答案 1 :(得分:0)
在使用agent-0007直接进行现场帮助和调试后,我们发现了几个问题。
它们中的大部分与慢速虚拟环境(使用openvz)有关,这表明pread()档位和io时间不足。
此外,我们发现了两个集成问题:
https://github.com/tarantool/tarantool/issues/1411(eio_finish中的SIGSEGV) https://github.com/tarantool/tarantool/issues/1401(使用sophia的upsert applier回调函数中的错误)
感谢。