Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion core/src/main/scala/org/apache/spark/SparkContext.scala
Original file line number Diff line number Diff line change
Expand Up @@ -614,7 +614,7 @@ class SparkContext(config: SparkConf) extends Logging {
_heartbeater = new Heartbeater(
() => SparkContext.this.reportHeartBeat(_executorMetricsSource),
"driver-heartbeater",
conf.get(EXECUTOR_HEARTBEAT_INTERVAL))
conf.get(DRIVER_METRICS_POLLING_INTERVAL))
_heartbeater.start()

// start TaskScheduler after taskScheduler sets DAGScheduler reference in DAGScheduler's
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1209,6 +1209,14 @@ package object config {
.checkValue(v => v >= 0, "The value should be a non-negative time value.")
.createWithDefaultString("0min")

private[spark] val DRIVER_METRICS_POLLING_INTERVAL =
ConfigBuilder("spark.driver.metrics.pollingInterval")
.doc("How often to collect driver metrics (in milliseconds). " +
"If unset, the polling is done at the executor heartbeat interval. " +
"If set, the polling is done at this interval.")
.version("4.1.0")
.fallbackConf(EXECUTOR_HEARTBEAT_INTERVAL)

private[spark] val DRIVER_BIND_ADDRESS = ConfigBuilder("spark.driver.bindAddress")
.doc("Address where to bind network listen sockets on the driver.")
.version("2.1.0")
Expand Down