Skip to content

Commit

Permalink
actor counter
Browse files Browse the repository at this point in the history
  • Loading branch information
rogeralsing committed Apr 6, 2024
1 parent c273f8b commit 8c90bda
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion cluster/gossiper.go
Original file line number Diff line number Diff line change
Expand Up @@ -240,13 +240,20 @@ breakLoop:

g.SetState(HearthbeatKey, &MemberHeartbeat{
// todo collect the actor statistics
ActorStatistics: &ActorStatistics{},
ActorStatistics: &ActorStatistics{
ActorCount: GetActorCount(),
},
})
g.SendState()
}
}
}

func GetActorCount() map[string]int64 {
m := make(map[string]int64)
return m
}

// blockExpiredHeartbeats blocks members that have not sent a heartbeat for a long time
func (g *Gossiper) blockExpiredHeartbeats() {
if g.cluster.Config.GossipInterval == 0 {
Expand Down

0 comments on commit 8c90bda

Please sign in to comment.