]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw/lua: Update background thread to handle config changes 61560/head
authorOshry Avraham <oshry.dev@gmail.com>
Wed, 19 Feb 2025 11:02:35 +0000 (13:02 +0200)
committerOshry Avraham <oshry.dev@gmail.com>
Wed, 19 Feb 2025 11:02:35 +0000 (13:02 +0200)
commit9a1ee7a3da6479d54cfc45e2f2afc5d9eceb9770
treeb99abc5ab55bbb57b49bedc8fe246b2ac4fe8fd8
parent3dbc971f8b6092d2de43e727774c4ab50f31bc1d
rgw/lua: Update background thread to handle config changes

Ensure Lua background thread updates memory and runtime limits when config changes.
- Added setters/getters for max memory and runtime limits in lua_state_guard.
- Implemented dynamic updates for memory and runtime limits in the background thread.
- Reset Lua state when memory limit require restart.
- Added a memory leak check after Lua cleanup to ensure proper resource deallocation.

Signed-off-by: Oshry Avraham <oshry.dev@gmail.com>
doc/radosgw/lua-scripting.rst
src/rgw/rgw_lua_background.cc
src/rgw/rgw_lua_background.h
src/rgw/rgw_lua_utils.cc
src/rgw/rgw_lua_utils.h