Connection retries to shutdown node, see #3326
* In EC2 connection time out is around 1 minute. A few messages were sent after quarantining and these caused endless restarts, and connect attempts with 1 minute interval. * This change makes sure that the endpoint is stopped after the first failed connection attempt. * Changed default settings for netty connection-timeout, and matching retry window to allow for 3 restarts
This commit is contained in:
parent
d0ed7385b2
commit
3d1c0a7325
4 changed files with 16 additions and 7 deletions
|
|
@ -374,7 +374,7 @@ private[remote] class EndpointManager(conf: Config, log: LoggingAdapter) extends
|
|||
else None
|
||||
|
||||
override val supervisorStrategy =
|
||||
OneForOneStrategy(settings.MaximumRetriesInWindow, settings.RetryWindow, loggingEnabled = false) {
|
||||
OneForOneStrategy(loggingEnabled = false) {
|
||||
case InvalidAssociation(localAddress, remoteAddress, _) ⇒
|
||||
log.error("Tried to associate with invalid remote address [{}]. " +
|
||||
"Address is now quarantined, all messages to this address will be delivered to dead letters.", remoteAddress)
|
||||
|
|
@ -467,6 +467,8 @@ private[remote] class EndpointManager(conf: Config, log: LoggingAdapter) extends
|
|||
case Some(endpoint) ⇒ context.stop(endpoint)
|
||||
case _ ⇒ // nothing to stop
|
||||
}
|
||||
log.info("Address [{}] is now quarantined, all messages to this address will be delivered to dead letters.",
|
||||
address)
|
||||
endpoints.markAsQuarantined(address, uid, Deadline.now + d)
|
||||
case _ ⇒ // Ignore
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue