lua-nginx-module icon indicating copy to clipboard operation
lua-nginx-module copied to clipboard

how to create to or three privileged worker

Open kiss291323003 opened this issue 3 years ago • 7 comments

ngx.process.enable_privileged_agent() can only create one special worker 。how can I create more then one special worker process ?

kiss291323003 avatar Mar 13 '21 15:03 kiss291323003

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.

xiaocang avatar Mar 20 '21 03:03 xiaocang

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。

kiss291323003 avatar Mar 23 '21 09:03 kiss291323003

is there any one???

kiss291323003 avatar Apr 01 '21 03:04 kiss291323003

maybe this PR would help: https://github.com/openresty/lua-nginx-module/pull/1861

xiaocang avatar Apr 01 '21 05:04 xiaocang

maybe this PR would help: #1861

not merge yet!!!!!

kiss291323003 avatar Apr 26 '21 07:04 kiss291323003

hello。。。is there any one ???

kiss291323003 avatar May 14 '21 06:05 kiss291323003

Hi @kiss291323003, the PR #1861 is already merged.

xiaocang avatar Jul 27 '22 10:07 xiaocang