Re: [chrony-users] Pseudo-pools

[ Thread Index | Date Index | More chrony.tuxfamily.org/chrony-users Archives ]


On Mon, Aug 21, 2023 at 10:34:47 +0200, Miroslav Lichvar wrote:
> On Thu, Aug 17, 2023 at 10:02:24AM -0400, Josef 'Jeff' Sipek wrote:
> > Suppose that there are 5 NTP servers, A-E.  Unfortunately, the admins didn't
> > set up a convenient pool DNS alias.  (Well, technically they made an alias
> > but it includes all their servers while I'd rather restrict it to their
> > servers "near me".)  Is there a way to tell chrony "use 3 of these 5
> > servers"?  If there was a pool, it'd be trivial:
> > 
> > 	pool pool.example.com maxsources 3
> > 
> > I'm imagining something like:
> > 
> > 	pseudopool A B C D E maxsources 3
> 
> That's not possible with the current chrony code and I don't see a
> simple way to implement it.
> 
> > I could make a pool from these under my domain, but I'd rather keep NTP
> > things in one place - chrony.conf.
> 
> I'd suggest to specify it in /etc/hosts.

I didn't make it clear enough, but A-E above are DNS A records for each of
the servers.  So, using /etc/hosts means hardcoding ignoring the individual
server's DNS entries and hardcoding the IPs.  Granted these are very
unlikely to ever change.

Currently I just specify servers A-C in my chrony.conf which is good enough,
but I'll mull over how much I like/dislike hardcoding IPs in /etc/hosts.

Thanks for the idea,

Jeff.

-- 
To unsubscribe email chrony-users-request@xxxxxxxxxxxxxxxxxxxx 
with "unsubscribe" in the subject.
For help email chrony-users-request@xxxxxxxxxxxxxxxxxxxx 
with "help" in the subject.
Trouble?  Email listmaster@xxxxxxxxxxxxxxxxxxxx.


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/