Hello,
I've got a simple application which has a periodic worker (timer.every) and other content_by_lua endpoints.
But I'd like to have isolation between this application and others that will be on the same host.
It seems that the way I set up the processes like init_by_lua_file (for requires), and the worker (with a lock using the shared dict) by init_worker_by_lua_file, would have all http workers for all servers run that code--which is not what I want as these will be different projects.
I looked around and it seems people suggest using multiple http blocks to get isolated lua VMs. But when I try that I get: [emerg] 8607#8607: "http" directive is duplicate in /usr/local/openresty/nginx/....
Is the solution to have separate openresty services / processes entirely? Or is there a way to have it all run under a single openresty master?
Thanks,