Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SPARK-13776][WEBUI] Limit the max number of acceptors and selectors …
…for Jetty ## What changes were proposed in this pull request? As each acceptor/selector in Jetty will use one thread, the number of threads should at least be the number of acceptors and selectors plus 1. Otherwise, the thread pool of Jetty server may be exhausted by acceptors/selectors and not be able to response any request. To avoid wasting threads, the PR limits the max number of acceptors and selectors and also updates the max thread number if necessary. ## How was this patch tested? Just make sure we don't break any existing tests Author: Shixiong Zhu <[email protected]> Closes apache#11615 from zsxwing/SPARK-13776.
- Loading branch information