fix ngx_slab_alloc() failed: no memory for arm64 linux rpi pagesize 16k. Increase initialization lua_shared_dict size to 48k

This commit is contained in:
PathToLife 2024-09-26 03:51:40 +12:00
parent b454f2cf86
commit 77b1b665f8
2 changed files with 10 additions and 1 deletions

View file

@ -1,4 +1,4 @@
lua_shared_dict worker_lock 16k;
lua_shared_dict worker_lock {{ WORKERLOCK_MEMORY_SIZE }};
init_worker_by_lua_block {
-- Libs

View file

@ -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",