Skip to content

Commit edde03c

Browse files
committed
LIHADOOP-38304 Missing one patch which enables configurable total jetty threads count in SHS
RB=1388604 BUG=LIHADOOP-38304 G=superfriends-reviewers R=fli,mshen,yezhou,edlu A=edlu
1 parent 35a763e commit edde03c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

core/src/main/scala/org/apache/spark/ui/JettyUtils.scala

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,9 @@ private[spark] object JettyUtils extends Logging {
305305
addFilters(handlers, conf)
306306

307307
// Start the server first, with no connectors.
308-
val pool = new QueuedThreadPool
308+
// Jetty threads count is configurable, default value is 200
309+
val maxThreadsCount = conf.getInt("spark.history.maxJettyThreadsCount", 200)
310+
val pool = new QueuedThreadPool(maxThreadsCount)
309311
if (serverName.nonEmpty) {
310312
pool.setName(serverName)
311313
}

0 commit comments

Comments
 (0)