Hello!
On Wed, Jul 9, 2014 at 2:42 AM, Ruoshan Huang wrote:
> if nginx receive HUP signal, and workers are restarted, what would
> happen to the JITed code( or the TRACE)? In other words, do I have to make
> some requests to make the reborn worker’s lua code being JITed again?
>
Upon HUP reload, the existing Lua VM will be shut down and a new Lua
VM is created from scratch (according to the potentially new
configuration). Because the old Lua VM is closed, all the VM-level
data (including the trace objects) will be destroyed.
You do not have to send warm-up requests yourself (though you always
could) because LuaJIT's JIT compiler usually runs very fast (usually
on the level of microseconds). And you should not worry about that.
Best regards,
-agentzh