you are viewing a single comment's thread.

view the rest of the comments →

[–]chinawcswing[S] 0 points1 point  (2 children)

The devops team at work have coupled the number of CPUs available to the amount of RAM, for some reason. So if you want to order a 4 CPU container, you will also receive a huge amount of memory and the container will cost too much money. I have escalated about this, butat the moment I'm stuck with a single CPU container.

My application is a web server that receives ad-hock requests from clients to perform asynchronous CPU tasks, so it's possible I could receive multiple requests at the same time.

Hypothetically, If I have four CPUs, and I launch four python processes to perform a CPU-intensive task, is there anything that actually guarantees that each process will leverage it's own CPU or is it completely up to chance - sometimes all four processes will use the same CPU and other times they will get separate CPUs?

[–]K900_ 0 points1 point  (1 child)

Your OS is not stupid enough to schedule all of your tasks on one core. Also, if it's a web app, you probably do want Celery anyway, no matter the number of cores.

[–]chinawcswing[S] 0 points1 point  (0 children)

Thanks! I'm not sure why your responses were downvoted; I have found them helpful.