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:
What am I doing wrong?