How to disable heart rate logging in Akka.NET

When trying to fix a problem with installing a cluster in Akka.NET, heart rate messages populate the log.

[DEBUG] [8/9/2016 6:04:32 PM] [Topic 0011] [[Akka: // mysystem / system / cluster / kernel / daemon # 1680718572]] [Initialized] Received Akka.Cluster.GossipStatus

Is there a way to prevent this log event selectively since it exists with Akka for the JVM ?

+4
source share
2 answers

I ran into the same problem. There were too many gossip reports in the magazine, and I wanted to prevent that.

Here is the solution.

https://github.com/akkadotnet/akka.net/blob/v1.1.2/src/core/Akka.Cluster/Configuration/Cluster.conf#L77

, GossipStatus, ( ):

[DEBUG][2016-12-26 1:48:36 PM][Thread 0004][[akka://mysystem/system/cluster/core/daemon#1458732427]] [Initialized] Received Akka.Cluster.GossipStatus

:

cluster {
    log-info = off
}

, :

remote {
    log-received-messages = on
}

cluster gossip ( @Aaronontheweb), . , , :

[DEBUG][2016-12-26 1:41:03 PM][Thread 0008][[akka://mysystem/system/endpointManager/reliableEndpointWriter-akka.tcp%3A%2F%2Fmysystem%40127.0.0.1%3A4053-1/endpointWriter#1021888826]] received local message [RemoteMessage: Akka.Cluster.ClusterHeartbeatSender+HeartbeatRsp to [akka://mysystem/system/cluster/core/daemon/heartbeatSender#647951916]<+akka://mysystem/system/cluster/core/daemon/heartbeatSender from [akka.tcp://mysystem@127.0.0.1:4053/system/cluster/heartbeatReceiver#497245242]]
[DEBUG][2016-12-26 1:41:04 PM][Thread 0010][[akka://mysystem/system/endpointManager/reliableEndpointWriter-akka.tcp%3A%2F%2Fmysystem%40127.0.0.1%3A4053-1/endpointWriter#1021888826]] received local message [RemoteMessage: ActorSelectionMessage - Message: Akka.Cluster.GossipStatus - WildCartFanOut: False - Elements: system/cluster/core/daemon to [akka://mysystem/]<+akka://mysystem/ from [akka.tcp://mysystem@127.0.0.1:4053/system/cluster/core/daemon#1365688409]]
[DEBUG][2016-12-26 1:41:04 PM][Thread 0009][[akka://mysystem/system/endpointManager/reliableEndpointWriter-akka.tcp%3A%2F%2Fmysystem%40127.0.0.1%3A4053-1/endpointWriter#1021888826]] received local message [RemoteMessage: ActorSelectionMessage - Message: Akka.Cluster.ClusterHeartbeatSender+Heartbeat - WildCartFanOut: False - Elements: system/cluster/heartbeatReceiver to [akka://mysystem/]<+akka://mysystem/ from [akka.tcp://mysystem@127.0.0.1:4053/system/cluster/core/daemon/heartbeatSender#2069081679]]
+3

Source: https://habr.com/ru/post/1650706/


All Articles