Tarantool sphia make slow selects?

百般思念 提交于 2019-12-13 06:09:23

问题


Use tarantool version: Tarantool 1.6.8-586-g504e151 It installed from epel. I use tarantool on sphia mode:

log_space = box.schema.space.create('logs',
    {
        engine = 'sophia',
        if_not_exists = true
    }
)

log_space:create_index('primary', {
        parts = {1, 'STR'}
    }
)

I have 500.000 records and make select request:

box.space.logs:select({'log_data'})

it takes aboute 1min. Why so slow ?

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

回答1:


After direct on-site help and debugging with agent-0007, we have found several issues.

Most of them been related to slow virtual environment (openvz been used), which shows inadequate pread() stalls and io timings.

Additionally we have found two integration issues:

https://github.com/tarantool/tarantool/issues/1411 (SIGSEGV in eio_finish) https://github.com/tarantool/tarantool/issues/1401 (Bug in upsert applier callback function using sophia)

Thanks.




回答2:


Sophia engine is deprecated since 1.7.x . Please use vinyl engine instead of it.

Please take a look for more details: https://www.tarantool.io/en/doc/1.10/book/box/engines/vinyl/



来源:https://stackoverflow.com/questions/36215344/tarantool-sphia-make-slow-selects

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!