Increase cores for Spark History Server

VMeghraj
New Contributor II

By default SHS uses spark.history.fs.numReplayThreads = 25% of avaliable cores (Number of threads that will be used by history server to process event logs)

How can we increase the number of cores for Spark History Server ?