mirror of
https://github.com/gravitl/netmaker.git
synced 2026-04-23 00:17:10 +08:00
NM-311: Remove support for the -V installer flag in scripts/nm-quick.sh.
The script now always uses the default LATEST/BRANCH values and no longer accepts user-specified release overrides.
This commit is contained in:
@@ -150,6 +150,7 @@ func Keepalive(ctx context.Context) {
|
||||
warmPeerCaches()
|
||||
StartPeerUpdateWorker(ctx)
|
||||
go PublishPeerUpdate(true)
|
||||
metricIntervalReset := logic.SubscribeMetricExportIntervalReset()
|
||||
metricsTicker := time.NewTicker(normalizedMetricsExportInterval())
|
||||
defer metricsTicker.Stop()
|
||||
if servercfg.CacheEnabled() {
|
||||
@@ -166,7 +167,7 @@ func Keepalive(ctx context.Context) {
|
||||
logic.FlushNodeCheckins()
|
||||
case <-metricsTicker.C:
|
||||
PushAllMetricsToExporter()
|
||||
case <-logic.MetricExportIntervalReset():
|
||||
case <-metricIntervalReset:
|
||||
metricsTicker.Stop()
|
||||
metricsTicker = time.NewTicker(normalizedMetricsExportInterval())
|
||||
}
|
||||
@@ -180,7 +181,7 @@ func Keepalive(ctx context.Context) {
|
||||
sendPeers()
|
||||
case <-metricsTicker.C:
|
||||
PushAllMetricsToExporter()
|
||||
case <-logic.MetricExportIntervalReset():
|
||||
case <-metricIntervalReset:
|
||||
metricsTicker.Stop()
|
||||
metricsTicker = time.NewTicker(normalizedMetricsExportInterval())
|
||||
}
|
||||
|
||||
+4
-1
@@ -58,8 +58,11 @@ func handleServerSync(_ mqtt.Client, msg mqtt.Message) {
|
||||
|
||||
switch syncMsg.SyncType {
|
||||
case logic.SyncTypeSettings:
|
||||
oldInterval := logic.GetMetricInterval()
|
||||
logic.InvalidateServerSettingsCache()
|
||||
logic.NotifyMetricExportIntervalChanged()
|
||||
if logic.GetMetricInterval() != oldInterval {
|
||||
logic.NotifyMetricExportIntervalChanged()
|
||||
}
|
||||
case logic.SyncTypePeerUpdate:
|
||||
logic.InvalidateHostPeerCaches()
|
||||
go warmPeerCaches()
|
||||
|
||||
Reference in New Issue
Block a user