Skip to content

Commit

Permalink
Merge pull request #25 from ethpandaops/feat/default-ntp-server
Browse files Browse the repository at this point in the history
feat(sentry): set ntp default server to gcp
  • Loading branch information
Savid authored Nov 24, 2022
2 parents 913cd89 + 4a9fb50 commit 01ed43e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion example_sentry.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ ethereum:
# time.aws.com - AWS
# time.windows.com - Azure
# time.google.com - GCP
ntp_server: pool.ntp.org
# pool.ntp.org - https://www.pool.ntp.org/zone/@
ntp_server: time.google.com

outputs:
- name: basic
Expand Down
2 changes: 1 addition & 1 deletion pkg/sentry/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ type Config struct {
Labels map[string]string `yaml:"labels"`

// NTP Server to use for clock drift correction
NTPServer string `yaml:"ntp_server" default:"pool.ntp.org"`
NTPServer string `yaml:"ntp_server" default:"time.google.com"`
}

func (c *Config) Validate() error {
Expand Down
2 changes: 1 addition & 1 deletion pkg/sentry/sentry.go
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ func (s *Sentry) syncClockDrift(ctx context.Context) error {
}

s.clockDrift = response.ClockOffset
s.log.WithField("drift", s.clockDrift).Debug("Updated clock drift")
s.log.WithField("drift", s.clockDrift).Info("Updated clock drift")

return err
}
Expand Down

0 comments on commit 01ed43e

Please sign in to comment.