nakama icon indicating copy to clipboard operation
nakama copied to clipboard

Need hot reloading of lua modules.

Open madclaws opened this issue 6 years ago • 18 comments

Description

Whenever we make a change in lua modules.The changes should be effective onspot rather than restarting server.

madclaws avatar Apr 23 '18 07:04 madclaws

yep, we want something like "nodemon" but for your server

mindfulme avatar Jun 25 '18 09:06 mindfulme

Because it is really inconvenient when you have to reload your docker container each time (in case you're not running it locally)

mindfulme avatar Jun 25 '18 09:06 mindfulme

or at least it will be fine if you guys will make a hot reload for docker

mindfulme avatar Jun 25 '18 09:06 mindfulme

an endpoint like /-/reload in Prometheus and alert manager .

BehroozBahrameh avatar Feb 20 '19 10:02 BehroozBahrameh

+1

selimanac avatar Jul 30 '19 20:07 selimanac

+1 Sir

nomi27951 avatar May 01 '21 23:05 nomi27951

+1

mrpuzzler avatar Dec 03 '21 18:12 mrpuzzler

+1

Otherwise really hard to develop and debug.

emircanerkul avatar Jul 15 '22 09:07 emircanerkul

Beside this feature it's easy to implement, its a must have. It's really annoying restart whole docker containers just to reload a module. +1

Mohsen7s avatar Aug 30 '22 16:08 Mohsen7s

+1 Would be good, even if just as a debug option (I realise it gets hairy across clusters, but dev is usually on single node servers)

shayneoneill avatar Nov 15 '22 03:11 shayneoneill

+1, and is there any plans for this? This remains open from 2018? Same situation for multiple clusters...

majstorki88 avatar Nov 16 '22 10:11 majstorki88

@majstorki88 It remains open because it's a very complex task. To introduce hot reloading within a running Nakama cluster is akin to code reloading as handled by the Erlang runtime. Pull requests are always welcome 🙏

novabyte avatar Nov 16 '22 11:11 novabyte

#965

deflinhec avatar Dec 24 '22 02:12 deflinhec

@deflinhec if it's done and tested could you please close this issue?

emircanerkul avatar Dec 26 '22 05:12 emircanerkul

It's done with final PR #966. I've tested with some of my scripts.

It would be great if someone else can test it also, just for making sure this feature works as expect.

@emircanerkul I don't think I have the permission to close this issue.

deflinhec avatar Dec 26 '22 14:12 deflinhec

+1 does it also work with typescript modules/go modules

dragonlobster avatar Mar 29 '23 14:03 dragonlobster

I'd create a PR for lua hot reload, for runtime match and rpc. Not so sure about how typescript perform a hot reload.

deflinhec avatar Mar 31 '23 19:03 deflinhec

In the earlier PR I didn't handle lua hot reload properly. It only affect to rpc runtime and matches which creates after the hot reload. The newer PR now takes effect to preexisting runtime rpc and matches.

deflinhec avatar Mar 31 '23 19:03 deflinhec