• Support
  • The Node.js project automatically stops

Hello!
My Next.js project is built using your Node project, but I encounter a situation where it automatically stops when there is a large amount of simultaneous traffic. This traffic can come from users or bots, and mostly from bots of data collection tools. Do you have any solutions for this? And why does it automatically stop like that? I do not face this issue with PHP projects. Please help me.
Thank you very much!

    aaP_kienvictory

    I think the node js deployment in aapanel is broken totally. It never use pm2 to loadbalance with cluster deployments. I wll suggest you to deploy with cloudpanel for node js based deployments. With now they take away wordpress deploy also, panel is literally useless.

      aaP_hareeshnarayan1982
      The WordPress dashboard has been integrated into the WP Toolkit, and it is paid. As for the Node project, I see it still works normally, but whenever a large number of bots access the website to retrieve data, it automatically stops. I'm not very clear on its mechanism, and I don't know how to limit the number of bots accessing simultaneously. In fact, the number of bots accessing at the same time is too many. My CPU is full whenever there's bot traffic on the website, even if I increase the CPU capacity, it still full.

        19 days later

        aaP_hareeshnarayan1982
        I have also used methods to block AI bots and rate limit on Cloudflare, but they haven’t been effective. It seems that there might be an issue with optimizing MySQL on aaPanel. I’m not sure, but I’ve noticed that when there are too many requests, MySQL often freezes and needs to be restarted to function normally again.