GitHub user aosagie opened a pull request: https://github.com/apache/spark/pull/18499
[SPARK-21176][WEB UI] Use a single ProxyServlet to proxy all workers and applications ## What changes were proposed in this pull request? Currently, each application and each worker creates their own proxy servlet. Each proxy servlet is backed by its own HTTP client and a relatively large number of selector threads. This is excessive but was fixed (to an extent) by https://github.com/apache/spark/pull/18437. However, a single HTTP client (backed by a single selector thread) should be enough to handle all proxy requests. This PR creates a single proxy servlet no matter how many applications and workers there are. ## How was this patch tested? The unit tests for rewriting proxied locations and headers were updated. I then spun up a 100 node cluster to ensure that proxy'ing worked correctly and was scalable. @jiangxb1987 Please let me know if there's anything else I can do to help push this thru. Thanks! You can merge this pull request into a Git repository by running: $ git pull https://github.com/aosagie/spark fix/minimize-proxy-threads Alternatively you can review and apply these changes as the patch at: https://github.com/apache/spark/pull/18499.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #18499 ---- commit 2b907df1f56e36c6265e8ada59843bb456a24943 Author: Anderson Osagie <osa...@gmail.com> Date: 2017-07-01T08:02:48Z [SPARK-21176][WEB UI] Use a single ProxyServlet to proxy all workers and applications ---- --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. --- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org