I have a NodeJs project on app engine (GAE) .
Whenever there is an unexpected crash in a service call the NodeJs has to restart (I believe this is normal) , however, this leaves the whole server unaivailable for a couple of seconds which may affect other users.
I was thinking on creating two instances of the server so that if one instance fails, the other can still attend the requests.
However, I’m not certain this will bring more work, as the node js project does some initialization procedures and has some cron tasks scheduled. If I create more instances will chron tasks be duplicated?
Or which is the best way to manage redundancy on this kind of environment?