You can replace the failure detector with something like this:
import akka.remote.PhiAccrualFailureDetector
import akka.event.EventStream
import com.typesafe.config.Config
class LoggingPhiAccrualFailureDetector(config: Config, ev: EventStream)
extends PhiAccrualFailureDetector(config, ev) {
override def phi: Double = {
val p = super.phi
println(s"current phi $p") // you could do proper logging with the
EventStream
p
}
}
and define the full class name in config property
akka.cluster.failure-detector.implementation-class
GC pauses are problematic and typically generates false positives, but you
have perhaps tuned your app for low latency GC.
Cheers,
Patrik
On Wed, Mar 25, 2015 at 8:51 PM, Anders Båtstrand <[email protected]>
wrote:
> Hi
>
> I am tuning a Akka Cluster, and is changing different parameters to see
> how fast it detects node failures etc. My project is in an internal
> network, so we try with much faster/more sensitive values than the default
> ones.
>
> In that regard, I am looking for how close I currently am to the threshold
> (phi) I have configured... But as far as I can see, there is no way to get
> this value?
>
> For monitoring purposes, it would be nice to know that a node is close to
> being marked unreachable....
>
> Best regards,
>
> Anders Båtstrand
>
> --
> >>>>>>>>>> Read the docs: http://akka.io/docs/
> >>>>>>>>>> Check the FAQ:
> http://doc.akka.io/docs/akka/current/additional/faq.html
> >>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user
> ---
> You received this message because you are subscribed to the Google Groups
> "Akka User List" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/akka-user.
> For more options, visit https://groups.google.com/d/optout.
>
--
Patrik Nordwall
Typesafe <http://typesafe.com/> - Reactive apps on the JVM
Twitter: @patriknw
--
>>>>>>>>>> Read the docs: http://akka.io/docs/
>>>>>>>>>> Check the FAQ:
>>>>>>>>>> http://doc.akka.io/docs/akka/current/additional/faq.html
>>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user
---
You received this message because you are subscribed to the Google Groups "Akka
User List" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.