Skip to content

EMR primary nodes

0

Goal : minimize the compute costs

Amazon EMR cluster that is using the EMR File System (EMRFS)

Customer is asking if shutting down primary nodes can help reducing their compute cost. They also have Savings plan in place. the EMR task runs every morning and the amount of time it takes to complete is not priority. They terminate task nodes once the task is completed but can they also terminate primary nodes? or this can not be done.

AWS

asked a year ago226 views

1 Answer
0

For an Amazon EMR cluster using EMRFS, terminating primary nodes is not a viable option for cost reduction while keeping the cluster functional. Primary nodes are essential for cluster management and run critical services like YARN ResourceManager and HDFS NameNode.

Instead, to minimize compute costs for your morning EMR tasks, I recommend the following approaches:

  1. Use auto-termination policy: Configure your entire cluster to automatically terminate after a specified idle period. This ensures you don't pay for resources when the cluster is not processing data.

  2. Create transient clusters: Set up your EMR cluster to terminate automatically after all steps complete. Since your task runs every morning and completion time isn't a priority, you can create a new cluster for each job execution rather than keeping it running continuously.

  3. Continue terminating task nodes: Your current practice of terminating task nodes after task completion is good. Task nodes perform parallel computation but don't store data in HDFS, making them safe to terminate.

  4. Consider multiple primary nodes for reliability: If you need high availability, Amazon EMR 5.23.0 and later allows you to launch clusters with three primary nodes to prevent single points of failure.

Since your data is stored in EMRFS (which uses Amazon S3), you can safely terminate the entire cluster after job completion without losing data. This approach, combined with your Savings Plan, would be the most cost-effective solution rather than attempting to terminate just the primary nodes while keeping the cluster alive.
Sources
Understand node types in Amazon EMR: primary, core, and task nodes - Amazon EMR
Control Amazon EMR cluster termination - Amazon EMR
Using an auto-termination policy for Amazon EMR cluster cleanup - Amazon EMR
Plan and configure primary nodes in your Amazon EMR cluster - Amazon EMR

answered a year 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.