@@ -3138,9 +3138,13 @@ log.syslog.*
31383138lua
31393139---
31403140
3141- The `` lua `` section outlines the configuration parameters related to the `` lua `` environment within Tarantool.
3141+ The lua section outlines the configuration parameters related to the Lua environment within Tarantool.
31423142
3143- Below is an overview of the available configuration options for ``lua ``:
3143+ .. NOTE ::
3144+
3145+ ``lua `` can be defined in any :ref: `scope <configuration_scopes >`.
3146+
3147+ .. NOTE ::
31443148
31453149- :ref: `lua.memory <configuration_reference_lua >`
31463150
@@ -3149,18 +3153,20 @@ Below is an overview of the available configuration options for ``lua``:
31493153
31503154.. confval :: lua.memory
31513155
3152- Specifies the amount of memory allocated to ``lua ``, measured in bytes.
3153-
3154- - **Type **: integer
3155- - **Default Value **: 2GB
3156- - **Minimum Value **: 256MB
3156+ Specifies the amount of memory allocated to lua, measured in bytes.
31573157
3158+ |
3159+ | Type: integer
3160+ | Default Value: 2147483648 (2GB)
3161+ | Environment variable: TT_LUA_MEMORY for the cast value and TT_LUA_MEMORY_DEFAULT for the default value
31583162
3159- **Dynamic adjustment behavior: **
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.
31603165
3161- - If the specified value is **greater ** than the current memory usage, the new limit is applied immediately without requiring a restart.
3162- - If the specified value is **less ** than the current memory usage, a **restart ** of the instance is required for the change to take effect.
3166+ Example to set the Lua memory limit for 4 GB:
31633167
3168+ ``lua:
3169+ memory: 4294967296 ``
31643170
31653171.. _configuration_reference_memtx :
31663172
0 commit comments