QuestionQ81

VerifiedTroubleshooting and Tuning Apache Spark DataFrame API Applications.

Which of these cluster configurations is least likely to encounter delays from garbage collection when processing a large DataFrame?

Question Image

Note: Each configuration provides approximately the same compute capacity, using 100 GB of RAM and 200 cores.

Explanation

Garbage collection is performed independently in each executor JVM. Distributing the same total memory and compute capacity across more executors reduces the heap and DataFrame share managed by any one executor, which reduces the likelihood of long executor-level garbage-collection pauses. Scenario #6 uses eight 12.5-GB executors—the smallest per-executor heap—so it is the least likely configuration to experience such delays.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!