Jump to content

[HH#751047] Account Inquiry (Node.js limitations)


Recommended Posts

Posted
Username: chidera261, Server: Johnny, Main domain: gamevix.helioho.st

Good day,
Im a user of Helio host Johnny plan, and I have an inquiry to make
concerning the limits of using node.js to host a telegram bot or a web app.
Will my account get banned if the node.js or server is active 24/7 and also
is it possible to host a telegram bot using the node.js.

Posted

Hello! Running a Node.js app 24/7 will most likely cause account suspension, because Node is very demanding on server resources and is one of the top reasons for users getting their accounts suspended.

We have a Node.js guidance page in the Wiki here: https://wiki.helionet.org/tutorials/node.js and if you build your Node app with the same structure as in the tutorial, it will use Passenger. Passenger is a server feature that will stop your app from using the shared hosting server resources when there are no visitors to the app, which will help try to keep your account load within the allowed limits since it will stop Node from running 24/7.

I haven't heard of anyone creating a Node-based Telegram bot, but I see no reason why it wouldn't be possible, taking into account needing to make sure not to cause excessive account load. We've had a few users create Discord bots using Python, and we have a how-to page for that here: https://wiki.helionet.org/Discord_Bot 
Bots use a lot of system resources though, so whether you code it in Node or Python, you would probably not want to leave it running 24/7 and risk account suspension.

If you really need a Node app or a bot running 24/7, you may want to check out our scaling hosting server, Morty. On this server, instead of being suspended for account load that exceeds the allowed limits, you would simply be charged for overages.

Alternatively, you could move to a VPS where you have root SSH access, dedicated memory and CPU, and no load limits. We have a range of VPS plans available, and  you can get a 10% discount when you pay for 6 months upfront.

Posted

On Johnny you're limited to 100 GB per day, so if your bot or app is running 24/7 it can only use about 70 MB of memory to stay under the limit. If your app uses more than 70 MB of memory then you can upgrade to the Morty plan or the VPS plans.

You can follow our guide for Discord bots https://wiki.helionet.org/Discord_Bot The guide uses Python for the actual bot, but you can drop in your Node.js bot instead and use the same method to start and stop it. The extremely basic bot that the guide has the code for uses about 50 GB memory per day, but switching from Python to Node.js and adding more packages etc will probably increase the memory used.

  • Krydos locked this topic
Guest
This topic is now closed to further replies.
×
×
  • Create New...