diff --git a/src/common/confs/init-worker-lua.conf b/src/common/confs/init-worker-lua.conf index b8d17b2a8..7717dfe42 100644 --- a/src/common/confs/init-worker-lua.conf +++ b/src/common/confs/init-worker-lua.conf @@ -1,4 +1,4 @@ -lua_shared_dict worker_lock 16k; +lua_shared_dict worker_lock {{ WORKERLOCK_MEMORY_SIZE }}; init_worker_by_lua_block { -- Libs diff --git a/src/common/settings.json b/src/common/settings.json index 014b63240..83018e0c9 100644 --- a/src/common/settings.json +++ b/src/common/settings.json @@ -117,6 +117,15 @@ "regex": "^(?! )(( *[^ ]+)(?!.*\\2))*$", "type": "text" }, + "WORKERLOCK_MEMORY_SIZE": { + "context": "global", + "default": "48k", + "help": "Size of lua_shared_dict for initialization workers", + "id": "workerlock-memory-size", + "label": "Initialization Workerlock memory size", + "regex": "^\\d+[kKmMgG]?$", + "type": "text" + }, "DATASTORE_MEMORY_SIZE": { "context": "global", "default": "64m",