Merge pull request #1521 from PathToLife/master

fix ngx_slab_alloc() failed: no memory for arm64 linux rpi pagesize 16k
This commit is contained in:
Théophile Diot 2024-10-01 15:31:53 +02:00 committed by GitHub
commit 7b297ced63
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
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",