Score:0

Can node and nginx use the same cores simultaneously on a dedicated server safely (no docker)?

it flag

I have a 16 core 64 gigs of ram dedicated server running ubuntu 20.4.

I'm running node / express in pm2 cluster mode and also a nginx reverse proxy on the same server without docker. No other services are running on this server.

Is it safe to run 1 node process per core (16 total) and also set nginx worker_processes to use all 16 cores at the same time? Will node and nginx using the same cores at the same time conflict / cause issues?

Or do I have to set 8 cores for node and 8 cores for nginx?

jfriend00 avatar
in flag
The operating system will share the CPUs among all processes as required regardless of how many you have. You don't generally need to set specific processes to specific cores. Keep in mind that there are dozens of other processes/services running in the OS that are also using CPUs form time to time as they need to do their work so you can't precisely account for all possible processes via just your applications anyway.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.