How many instances of my Node.js server?
In my project, I just have 1x HTTP Node.js webserver. I'd like to clarify: Is there just 1x instance of the server running?
This is as I have a cron job that runs once an hour. It's important for me to know whether it's just running once per hour. If there are multiple servers, it might run twice as much as I think it does!
If I then install a horizontal scaler and it scales my Node.js webserver to 2x units, is it then running exactly 2 servers? Do servers ever reboot other than what is set in the settings (mine is set to restart on failure)?
6 Replies
Project ID:
f6715065-b0f7-43c6-a428-9e04a504e882
Yes, there is just 1 instance of the server running. If you install a horizontal scaler and it scales your Node.js webserver to 2x units, then it will be running exactly 2 servers. Servers may reboot other than what is set in the settings, depending on the scaler you are using.
⚠️ experimental feature
f6715065-b0f7-43c6-a428-9e04a504e882
yes yes no
(outside of extreme circumstances)
Thanks
there does seem to be a bug with ghost deploys where sometimes a deploy will be doubled, with a normal one, and the other just stuck in the system and unable to be controlled
but thats quite rare now