Skip to content
Snippets Groups Projects
Commit 1bc83ca7 authored by Prashant Sharma's avatar Prashant Sharma
Browse files

Changed defaults for akka to almost disable failure detector.

parent 3ec5d747
No related branches found
No related tags found
No related merge requests found
...@@ -39,21 +39,22 @@ private[spark] object AkkaUtils { ...@@ -39,21 +39,22 @@ private[spark] object AkkaUtils {
val akkaThreads = System.getProperty("spark.akka.threads", "4").toInt val akkaThreads = System.getProperty("spark.akka.threads", "4").toInt
val akkaBatchSize = System.getProperty("spark.akka.batchSize", "15").toInt val akkaBatchSize = System.getProperty("spark.akka.batchSize", "15").toInt
val akkaTimeout = System.getProperty("spark.akka.timeout", "60").toInt val akkaTimeout = System.getProperty("spark.akka.timeout", "100").toInt
val akkaFrameSize = System.getProperty("spark.akka.frameSize", "10").toInt val akkaFrameSize = System.getProperty("spark.akka.frameSize", "10").toInt
val lifecycleEvents = if (System.getProperty("spark.akka.logLifecycleEvents", "false").toBoolean) "on" else "off" val lifecycleEvents = if (System.getProperty("spark.akka.logLifecycleEvents", "false").toBoolean) "on" else "off"
val akkaHeartBeatPauses = System.getProperty("spark.akka.heartbeat.pauses", "60").toInt val akkaHeartBeatPauses = System.getProperty("spark.akka.heartbeat.pauses", "600").toInt
val akkaFailureDetector = val akkaFailureDetector =
System.getProperty("spark.akka.failure-detector.threshold", "12.0").toDouble System.getProperty("spark.akka.failure-detector.threshold", "300.0").toDouble
val akkaHeartBeatInterval = System.getProperty("spark.akka.heartbeat.interval", "5").toInt val akkaHeartBeatInterval = System.getProperty("spark.akka.heartbeat.interval", "1000").toInt
val akkaConf = ConfigFactory.parseString( val akkaConf = ConfigFactory.parseString(
s""" s"""
|akka.daemonic = on |akka.daemonic = on
|akka.loggers = [""akka.event.slf4j.Slf4jLogger""] |akka.loggers = [""akka.event.slf4j.Slf4jLogger""]
|akka.stdout-loglevel = "ERROR" |akka.stdout-loglevel = "ERROR"
|akka.jvm-exit-on-fatal-error = off
|akka.remote.transport-failure-detector.heartbeat-interval = $akkaHeartBeatInterval s |akka.remote.transport-failure-detector.heartbeat-interval = $akkaHeartBeatInterval s
|akka.remote.transport-failure-detector.acceptable-heartbeat-pause = $akkaHeartBeatPauses s |akka.remote.transport-failure-detector.acceptable-heartbeat-pause = $akkaHeartBeatPauses s
|akka.remote.transport-failure-detector.threshold = $akkaFailureDetector |akka.remote.transport-failure-detector.threshold = $akkaFailureDetector
...@@ -61,6 +62,7 @@ private[spark] object AkkaUtils { ...@@ -61,6 +62,7 @@ private[spark] object AkkaUtils {
|akka.remote.netty.tcp.transport-class = "akka.remote.transport.netty.NettyTransport" |akka.remote.netty.tcp.transport-class = "akka.remote.transport.netty.NettyTransport"
|akka.remote.netty.tcp.hostname = "$host" |akka.remote.netty.tcp.hostname = "$host"
|akka.remote.netty.tcp.port = $port |akka.remote.netty.tcp.port = $port
|akka.remote.netty.tcp.tcp-nodelay = on
|akka.remote.netty.tcp.connection-timeout = $akkaTimeout s |akka.remote.netty.tcp.connection-timeout = $akkaTimeout s
|akka.remote.netty.tcp.maximum-frame-size = ${akkaFrameSize}MiB |akka.remote.netty.tcp.maximum-frame-size = ${akkaFrameSize}MiB
|akka.remote.netty.tcp.execution-pool-size = $akkaThreads |akka.remote.netty.tcp.execution-pool-size = $akkaThreads
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment