Re: advice on how to detect time change



John Hasler <john@xxxxxxxxxx> writes:

My application doesn't care what the system time is, or care that it is
correct, but it does need to detect if some external entity changes the
time out from under it (this is a master device which must globally
update slave devices with a time change if the user (or some other force
such as ntp) changes the time on the master system.

Then your program need not deal with system time at all. You should
install an NTP package such as Ntp or Chrony on the master and on each
slave

Aren't you making an assumption about what runs on 'each slave'?

For all we know, the slaves might all be 4-bit micros in his array of
washing machines. Good luck installing ntpd on them.

To OP:
You are still leaving out a lot of (possibly relevant) details.

The easiest solution is to simply set time on all slaves from
current master time every second. Presumably that doesn't work for
you (perhaps it generates too much traffic, or overloads slaves,
or ...).

You need to explain your design criteria better.

Cheers,
--
In order to understand recursion you must first understand recursion.
Remove /-nsp/ for email.
.



Relevant Pages

  • Re: Replikations Frage
    ... vom Master auf den Slave kopiert hast und dabei die Permissions auf ... Die Datenbanken auf den Slave Server laufen ohne Probleme. ... # If you want to know which options a program support, ...
    (de.comp.datenbanken.mysql)
  • Re: When caveman Uhg invented fire
    ... be a business owner. ... But even the smallest "ownership" makes one a slave. ... Any "slave" can become the master. ...
    (alt.lang.asm)
  • Re: One-sided authentication for small micros?
    ... The master has a lookup table of all 'known' slave id's. ... This would reset all the slave keys to their lookup values. ... decides that it is a valid slave and starts to communicate with the slave. ...
    (sci.crypt)
  • Re: FIXMBR redux
    ... William, I did the best I could for you under the circumstances and I did ... >> "To remove the recovery console, delete the cmdcons folder from the root ... > drive as Master and formatted it anew, as Active and Primary, ... I then jumpered it as Slave, ...
    (microsoft.public.windowsxp.basics)
  • Re: advice on how to detect time change
    ... Putting an NTP ... time out from under it (this is a master device which must globally ... such as ntp) changes the time on the master system. ... slave and configure the slaves to track the master. ...
    (comp.os.linux.development.apps)