Questions related to cores vs executors are asked number of times on SO.
Apache Spark: The number of cores vs. the number of executors
As each case is different, I'm asking similar question again.
I'm running a cpu intensive application with same number of cores with different executors. Below are the observations.
Resource Manager : Kubernetes
Case 1: Executors - 6, Number of cores for each executor -2, Executor Memory - 3g, Amount of Data processing ~ 10GB, Partitions -36, Job Duration : 75 mins
Case 2: Executors - 4, Number of cores for each executor -3, Executor Memory - 3g, Amount of Data processing ~ 10GB, Partitions -36, Job Duration : 101 mins
As per the above link anything less than 5 cores per executor is good for IO operations.
In both my cases cores are same(12), however both jobs took different times. Any thoughts?
Updated
Case 3: Executors - 12, Number of cores for each executor -1, Executor Memory - 3g, Amount of Data processing ~ 10GB, Partitions -36, Job Duration : 81 mins