backport of commit ccf91c7b7f (#17384)

Co-authored-by: Dan Bond <danbond@protonmail.com>
backport/f/metrics-collector-rename/highly-clean-elf
hc-github-team-consul-core 2023-05-16 06:17:02 -04:00 committed by GitHub
parent 0beb371485
commit 7dccf73d21
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 2 deletions

View File

@ -614,8 +614,10 @@ func (a *Agent) Start(ctx context.Context) error {
return err
}
// periodically write server metadata to disk.
go a.persistServerMetadata()
// Periodically write server metadata to disk.
if !consulCfg.DevMode {
go a.persistServerMetadata()
}
incomingRPCLimiter := consul.ConfiguredIncomingRPCLimiter(
&lib.StopChannelContext{StopCh: a.shutdownCh},