You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kvrocks.apache.org by GitBox <gi...@apache.org> on 2022/07/07 13:06:10 UTC

[GitHub] [incubator-kvrocks] xiaobiaozhao created a discussion: add EVAL_RO & EVALSHA_RO

GitHub user xiaobiaozhao created a discussion: add EVAL_RO & EVALSHA_RO

1. Each worker thread contains a Lua VM, the Lua VM shared with all connections on this thread. This VM specifically executes the EVAL_RO command.
2. Each connection's commends is pipeline runing.
3. Each worker's connetions send a lot of commands to kvrocks at the same time, but the same thread will exec command one by one. So the same thread can share one Lua VM.

![image](https://user-images.githubusercontent.com/52393536/177780481-05ae59e9-8778-4f69-8f6a-0f5387e75b0f.png)


GitHub link: https://github.com/apache/incubator-kvrocks/discussions/720

----
This is an automatically sent email for dev@kvrocks.apache.org.
To unsubscribe, please send an email to: dev-unsubscribe@kvrocks.apache.org


[GitHub] [incubator-kvrocks] git-hulk added a comment to the discussion: add EVAL_RO & EVALSHA_RO

Posted by GitBox <gi...@apache.org>.
GitHub user git-hulk added a comment to the discussion: add EVAL_RO & EVALSHA_RO

Cool, it's good to separate the Lua vm to improve the performance in the readonly mode.
You can go ahead implementing this if you're willing to do this.

GitHub link: https://github.com/apache/incubator-kvrocks/discussions/720#discussioncomment-3125458

----
This is an automatically sent email for dev@kvrocks.apache.org.
To unsubscribe, please send an email to: dev-unsubscribe@kvrocks.apache.org