Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Advantage of multiple pod on same node

I'm new with Kubernetes, i'm testing with Minikube locally. I need some advice with Kubernetes's horizontal scaling.
In the following scenario :

  • Cluster composed of only 1 node
  • There is only 1 pod on this node
  • Only one application running on this pod

Is there a benefit of deploying new pod on this node only to scale my application ?
If i understand correctly, pod are sharing the system's resources. So if i deploy 2 pods instead of 1 on the same node, there will be no performance increase.

There will be no availability increase either, because if the node fails, the two pods will also shut.

Am i right about my two previous statements ?

Thanks

like image 695
ShooShoo Avatar asked Oct 14 '25 08:10

ShooShoo


1 Answers

Yes, you are right. Pods on the same node are anyhow utilizing the same CPU and Memory resources and therefore are expected to go down in event of node failure.

But, you need to consider it at pod level also. There can be situation where the pod itself gets failed but node is working fine. In such cases, multiple pods can help you serve better and make application highly available. From performance perspective also, more number of pods can serve requests faster, thereby dropping down latency issues for your application.

like image 95
rkdove96 Avatar answered Oct 18 '25 04:10

rkdove96