]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr: add mgr_subinterpreter_modules config
authorSamuel Just <sjust@redhat.com>
Fri, 7 Nov 2025 23:56:14 +0000 (23:56 +0000)
committerPatrick Donnelly <pdonnell@ibm.com>
Fri, 8 May 2026 19:38:37 +0000 (15:38 -0400)
commitcf0c47452097499181db8b8029b46f4a67492665
treefb60db2001a0acdb8ba526062759bc3e2beb9dd8
parent00914e03e8982163b2c6d24c255e535b7a280577
mgr: add mgr_subinterpreter_modules config

This commit adds a mgr_subinterpreter_modules config to cause specified
modules (or all if * is specified) to be loaded in individual
subinterpreters.

This changes the default behavior of ceph-mgr from running each module
in a distinct subinterpreter to running them all in the same main
interpreter.  We can reintroduce subinterpreter support over time by
adding modules to the list as we test them.

Fixes: https://tracker.ceph.com/issues/73857
Fixes: https://tracker.ceph.com/issues/73859
Signed-off-by: Samuel Just <sjust@redhat.com>
(cherry picked from commit 239b0dc8a9c42449ee1faa1bf78bdcc380345ae2)

Conflicts:
  - src/mgr/PyModule.cc
     #include "common/JSONFormatter.h" - removed (missing commit 3ab70dd in tentacle), not in tentacle
     dtor - still missing commit 3366ef5 on tentacle causing conflicts,
      taking tentacle changes with use_main_interpreter and end the interpater pMyThreadState.ts
src/common/options/CMakeLists.txt
src/common/options/mgr.yaml.in
src/mgr/PyModule.cc
src/mgr/PyModule.h