Ticket #230 (closed defect: fixed)

Opened 9 years ago

Last modified 9 years ago

SWARM and WINSTON ImportEW both use hard coded NTP servers

Reported by: paulf Owned by: tparker
Priority: major Milestone: All Platforms
Component: winston Version: 7.7
Keywords: Cc:

Description

Many folks have complained about this one over the years. It would be better to have the ntp servers configurable and defaults specified in the default config files handed out with Winston.

Many times the ntpd servers listed in the hardcoded are not reachable, when internal ones are.......but currently, as far as I know, there is no way to configure this.

The NTP servers are hardcoded in the Util/trunk/gov/usgs/util/CurrentTime.java Java class

Someone at the USGS let ISTI know if we should tackle this one or if AVO or Peter C. can knock it down. Thanks.

Paul

Change History

comment:1 Changed 9 years ago by philip

Configurable is good, but also the default should be 0.pool.ntp.org http://www.pool.ntp.org/en/use.html

Philip

comment:2 Changed 9 years ago by paulf

Okay, Angel pointed this out in the ewdev list and I am recording it here in trac, Swarm does allow an NTP.config. We should change the default as Philip suggests still since there are often many error messages from ImportEW and as far as I can tell, Winston has no way to specify an NTP server other than the defaults in the CurrentTime?.java code.

From the SWARM wiki, untested by me:

NTP.config

NTP.config resides in the Swarm directory. Here's an example:

servers=avontp.wr.usgs.gov,129.6.15.28,132.163.4.101,128.138.140.44,192.43.244.18,131.107.1.10 timeout=1000 recalibrationInterval=600000

The settable properties are:

    servers - A comma separated list of NTP servers
    timeout - Timeout value (in milliseconds) before giving up on a server and trying the next on the list
    recalibrationInterval - Sets how often the time is set (in milliseconds)


Angel's email:

I could be real wrong and it might not work but swarm looks for a file 
named NTP.config that has this format and then looks for those servers, 
this is what it looks like in one of my swarms.


angel@operations:~/Desktop/swarm$ cat NTP.config
servers=10.18.100.236,pa.pool.ntp.org
timeout=600000
recalibrationInterval=10000


comment:3 Changed 9 years ago by tparker

  • Status changed from new to closed
  • Resolution set to fixed

Default NTP servers have been updated. NTP.config works for both swarm and winston.

Note: See TracTickets for help on using tickets.