All posts

Spark Configuration Generator tool

Enter the node count, cores per node and memory per node for your cluster and get back executor count, executor cores, executor memory and memory overhead, ready to paste into spark-shell.

Interactive tool Spark

TL;DR

  • Enter total nodes, cores per node and memory per node; the tool returns executor count, executor cores, executor memory and memory overhead.
  • It offers three shapes: Tiny (one core per executor), Fat (one executor per node using every core) and Balanced (five cores per executor).
  • The Balanced calculation reserves one core per node for the OS and node manager, subtracts one executor for the YARN ApplicationMaster, and sets spark.executor.memoryOverhead to 10% of the per-executor memory.
  • Five cores per executor is a convention, not a derived number. Treat every output as a starting point and confirm it against your own stage metrics in the Spark UI.

Spark Configuration Generator

Spark Configuration Generator tool will generate the spark configuration based on hardware configuration.

Hardware Configuration
Name Value
Spark Configuration Approches
Executor Approch Type Executor Cores
(spark.executor.cores)
Number of Executors
(spark.executor.instances)
Executor Memory in GB
(spark.executor.memory)
Executor Memory Overhead in GB
(spark.executor.memoryOverhead)
Balanced Approach Spark Shell Command

References

Found this useful?

These posts and tools are free. If one saved you an afternoon, you can buy me a coffee.

Buy me a coffee