By using AWS re:Post, you agree to the Terms of Use

EKS Node Group Strategy

0

We are planning to use EKS Nodegroup specific applications which will be running on one EKS cluster like below .

Lets consider , if we can consider below setup - application are bound to specific node groups. EKS total Nodes - 4 ,

EKS application namespace - 2 (app1 & app2 ) ,

EKS Node group - 2 ,

EKS node per node group - 2

Enter image description here

Question is

  • Where it is best practice/recommended patterns to create node group ?
  • if we create node groups per applications ( logical isolation - namespace & hard isolation - node group ) which can help each application can scale and running independently without effecting each other - is there any side effect for this ?

It would he very help if someone can provide insight of EKS nodegroup and what purpose we can use.

asked 18 days ago42 views
2 Answers
0

It is important to know the goals that you need to achieve by creating multiple node groups. Possible goals are

  • physical app segregation by creating worker node group per application type (the one depicted in your diagram)
  • Ensure high availability of worker nodes in case of AZ failure by creating minimal worker node groups
  • Cost optimization by allowing multiple application co-exist in the same group of worker nodes
  • Node groups to provide different memory to CPU ratio (compute and memory optimized worker node groups). High cpu intensive apps can be deployed on cpu optimized worker node group.
  • Node groups based on reservation vs spot instances. Application which tolerate failures can be deployed on spot instances node group

Based on the goal, you need to design the node-group.

Additionally, you can consider EKS Fargate with well defined memory and cpu "requests".

answered 18 days ago
  • Thanks for your prompt and brief reply. So let me summarize the goals -

    1. Cost Optimization - One NodeGroup for all application type Nodegroup based on fault tolerance type - for fault tolerant workload like batch can be use Spot instance and critical application will go for reservation instance node group

    2. Resource Optimization - More than one NodeGroups based on type of application CPU intensive vs memory vs general load

    3. Resource Isolation & HA - Node group per Application type create separate node groups for each critical application

    Please feel to add any other goals we can think for node group decisions.

    So, I have two public website NodeJS angular applications which are both critical and deployed on same cluster. Then what would best node group strategy? I would say - each application will have separate node group. Need to understand it has any impact?

  • it would be helpful if anyone can address above queries ?

0

It is difficult to recommend a best practice for how you isolate your applications and provision your node groups, without data about the nominal resource footprints of your applications, and the affect these applications have, under load, on your node, kubelets, and cluster API server. That said, application isolation to nodes is doable and may be recommended when the aggregate collection of applications, running on the same nodes, causes your nodes to thrash, kubelets to load the API server with queries, and evict or constantly autoscale pods and nodes. Node isolation is generally used for multi-tenancy and data classification isolation (PCI, etc.). For data classification, cluster isolation, network segmentation, and even account isolation is also used.

All that said, isolating to node groups is not the only way. You may want to look into Karpenter. I have included some links below:

If you do decide to isolate applications to specific nodes or node groups, then I would also recommend this EKS Best Practices Guide document on multi-tenant isolation with Policy-as-Code for mutation and validation.

profile picture
answered 17 days ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions