Skip to content

Commit

Permalink
Merge pull request #1521 from PathToLife/master
Browse files Browse the repository at this point in the history
fix ngx_slab_alloc() failed: no memory for arm64 linux rpi pagesize 16k
  • Loading branch information
TheophileDiot authored Oct 1, 2024
2 parents 782ae97 + 77b1b66 commit 7b297ce
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/common/confs/init-worker-lua.conf
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
lua_shared_dict worker_lock 16k;
lua_shared_dict worker_lock {{ WORKERLOCK_MEMORY_SIZE }};

init_worker_by_lua_block {
-- Libs
Expand Down
9 changes: 9 additions & 0 deletions src/common/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 7b297ce

Please sign in to comment.