Skip to content

Conversation

@PragmaTwice
Copy link
Member

@PragmaTwice PragmaTwice commented Jan 24, 2025

It closes #2612.

After #2563, kvrocks have gained the chance to remove global locks for lua scripting (as well as lua functions). In this PR, we:

  • remove the server-level global lua vm; just keep these worker-level vms;
  • remove exclusive flag for EVAL, EVALSHA and FCALL;
  • dispatch all lua commands to worker-local vms.

It's expected that these commands will be more efficient after this patch, since the global lock is removed.

@PragmaTwice PragmaTwice marked this pull request as ready for review January 24, 2025 04:04
@PragmaTwice PragmaTwice requested a review from git-hulk January 24, 2025 05:37
git-hulk
git-hulk previously approved these changes Jan 24, 2025
@sonarqubecloud
Copy link

@PragmaTwice PragmaTwice merged commit c1009a9 into apache:unstable Jan 25, 2025
34 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Transaction support for scripting

2 participants