lua-nginx-module
lua-nginx-module copied to clipboard
how to create to or three privileged worker
ngx.process.enable_privileged_agent() can only create one special worker 。how can I create more then one special worker process ?
Openresty currently only supports starting one privileged agent. I would like to know your use case for starting multiple privileged agent processes, because usually with timer and light-thread you can acommplish multi tasks in one privileged agent.
for example , I wan to reject the ip identify by ip country ,so i have to download the ipinfo from APNIC,and the APNIC text is an huge file ,it will take a lot of time to parse the text。when parse this text,privileged agent is blocking so that is unable to do other things ,such as sync config from my gateway。
is there any one???
maybe this PR would help: https://github.com/openresty/lua-nginx-module/pull/1861
maybe this PR would help: #1861
not merge yet!!!!!
hello。。。is there any one ???
Hi @kiss291323003, the PR #1861 is already merged.