Files
floci/docs
Priamo Germosen a1f3379198 fix(emr-serverless): report a Spark job run's total and billed resource utilization (#9187)
GetJobRun gave an ended run no totalResourceUtilization or
billedResourceUtilization, which a cost or usage report reads.

- An ended Spark run gives both, reckoned from the workers it asks for:
  its driver and the executors it starts with, sized as the user
  guide's supported worker configurations size them. A worker has the
  vCPUs its cores ask for, and memory for its Spark memory and its 10%
  overhead, at least 384 MB, rounded up to the sizes its vCPUs allow.
  Unset, a worker has 4 vCPUs, 14G and 20G of disk, and a run starts 3
  executors, as the Spark job properties give them; spark-submit's
  sizing options set over --conf, as Spark takes them. Sizes are read
  as the executors' capacity reads them, which a size too large for a
  long no longer breaks.
- The total covers the time "from the time the job starts to execute,
  until the time the job terminates, rounded up to the nearest second";
  the billed figure includes "a 1-minute minimum usage for workers,
  plus additional storage over 20 GB per worker".
- Its driver's worker counts for the whole attempt. Executors with
  containers of their own count for the time each container ran, as
  they come and go with Spark's target; otherwise the executors it
  starts with count for the whole attempt.
- Each attempt gives its own, and one that never started used nothing.
  A Hive run gives none, its Tez tasks coming and going with its query.
  A Spark run stored before this gets its workers as it ends.
2026-11-22 04:00:01 -04:00
..
2026-03-15 17:43:56 -05:00