I wrote a small tool to reload lua modules online. ( https://github.com/cloudwu/luareload )It can load lua modules already loaded before, and replace all the old functions in VM with new version.