Raise default IRONIC_DEFAULT_THREAD_SIZE

On Fedora and Gentoo kernels, this value is insufficiently small. Given
the worst case scenario is 19.2MB of extra wasted RAM for this being
raised, it's sensible to pick a default that'll work everywhere.

Change-Id: I548546e24bef90a27bff70906880f7779c29fcea
Signed-off-by: Jay Faulkner <jay@jvf.cc>
This commit is contained in:
Jay Faulkner
2025-08-25 09:41:15 -07:00
parent d13d488fdf
commit eeb7b3cd76
+3 -2
View File
@@ -24,7 +24,8 @@ from ironic.common import i18n # noqa
# NOTE(TheJulia): We are setting a default thread stack size for all the
# following thread invocations. Ultimately, while the python minimum is
# any positive number with a minimum of 32768 Bytes, in 4096 Byte
# increments, this appears to work well in basic benchmarking.
# increments. On some distributions/kernel configs this value can be
# smaller, however, this works on every tested linux distribution.
threading.stack_size(
int(os.environ.get('IRONIC_THREAD_STACK_SIZE', 65536)))
int(os.environ.get('IRONIC_THREAD_STACK_SIZE', 131072)))
i18n.install('ironic')