Skip to content

Commit 2d943c9

Browse files
authored
Add lua memory option (#4736)
* Add lua memory option * Tree fixed * Tree fixed_1 * Tree fixed_2 * Tree fixed_3 * Tree fixed_4 * Tree fixed_5 * Tree fixed_6 * Tree fixed_7 * Tree fixed_8 * Tree fixed_9 * Tree fixed_10 * Tree fixed_11 * Tree fixed_12 * some reviewer's suggestions made * some reviewer's suggestions made
1 parent 8d203e1 commit 2d943c9

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

doc/reference/configuration/configuration_reference.rst

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3133,6 +3133,43 @@ log.syslog.*
31333133
| Default: box.NULL
31343134
| Environment variable: TT_LOG_SYSLOG_SERVER
31353135
3136+
.. _configuration_reference_lua:
3137+
3138+
lua
3139+
---
3140+
3141+
The ``lua`` section outlines the configuration parameters related to the Lua environment within Tarantool.
3142+
3143+
.. NOTE::
3144+
3145+
``lua`` can be defined in any :ref:`scope <configuration_scopes>`.
3146+
3147+
.. NOTE::
3148+
3149+
- :ref:`lua.memory <configuration_reference_lua>`
3150+
3151+
3152+
.. _configuration_reference_lua_memory:
3153+
3154+
.. confval:: lua.memory
3155+
3156+
Specifies the maximum memory amount available to Lua scripts, measured in bytes.
3157+
3158+
|
3159+
| Type: integer
3160+
| Default Value: 2147483648 (2GB)
3161+
| Environment variable: TT_LUA_MEMORY
3162+
3163+
When the specified value exceeds the current memory usage, the new limit takes effect immediately without a restart.
3164+
However, **when the specified value is lower than the current memory usage, a restart of the instance is required** for the change to take effect.
3165+
3166+
Example to set the Lua memory limit to 4 GB:
3167+
3168+
.. code-block:: yaml
3169+
3170+
lua:
3171+
memory: 4294967296
3172+
31363173
.. _configuration_reference_memtx:
31373174

31383175
memtx

0 commit comments

Comments
 (0)