-2

I bough droplet on DigitalOcean 1GB and 1CPU. I'm running cronjob there. Currently I'm able to run 30 background tasks(processes) at once, once I go up server cannot handle that much.

Those background processes are sending requests to an endpoint, collect a data to array and then send it to another endpoint. Each task process 100 data.

Can you help me choose the right server. I'd like to run at least 100 tasks(processes) in the background at once. Should I buy more RAM or CPU?

Here is current usage, I don't see that server is overloaded with 40 tasks but it can't handle it: enter image description here

What am I doing wrong?

1 Answers1

1

Neither one directly correlates to the amount of processes you can run at once, but I would go for more RAM.

Also, if you spread out the timing each process occurs, you can lower the peak load. So if you run each process once every 2 minutes, instead of all 100 constantly- you may not need an upgrade at all.