MCPcopy Create free account
hub / github.com/eth-easl/dirigent / StartNodeMonitoringLoop

Method StartNodeMonitoringLoop

api/control_plane_api_server.go:115–125  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

113}
114
115func (c *CpApiServer) StartNodeMonitoringLoop() chan struct{} {
116 if !c.LeaderElectionServer.IsLeader() {
117 logrus.Errorf("Cannot start node monitoring loop as this " +
118 "instance of control plane is currently not the leader. " +
119 "Probably lost leadership in the meanwhile.")
120
121 return nil
122 }
123
124 return c.ControlPlane.StartNodeMonitoring()
125}
126
127func (c *CpApiServer) OnMetricsReceive(ctx context.Context, metric *proto.AutoscalingMetric) (*proto.ActionStatus, error) {
128 if !c.LeaderElectionServer.IsLeader() {

Callers 1

Calls 2

StartNodeMonitoringMethod · 0.80
IsLeaderMethod · 0.45

Tested by

no test coverage detected