On Sat, 7 Nov 2026, at 10:15, Tom Hukins wrote:
> Setting a fixed per-host offset would cause all periodic jobs within
> jails to run at the same time.
>
>>  - cron derives a constant offset in the range 0-59 seconds from a hash of
>> kern.hostuuid (plus hostname, to cope with cloned VMs and jails sharing the
>> same hostuuid). Optionally, the user can override it with a fixed value via
>> cron_flags in rc.conf
>
> Here's what I see within a jail on 14-STABLE:
> % sysctl kern.hostuuid
> kern.hostuuid: 00000000-0000-0000-0000-000000000000
>
> Tom

It's configurable:

# /etc/jail.conf.d/myjail.conf
myjail {
    host.hostname = 'myjail';
    host.hostuuid = '0badcafe-0b55-47d0-8b57-f1a2c3db6d46';
...
 

+1 for making some jitter the default, in 16.0+. A major release is a good 
place for this sort of change, in both cron & periodic.

A+
Dave

Reply via email to