﻿# Make chrony waitsync a bounded startup observation

Bound waitsync attempts and interpret correction and skew criteria explicitly; daemon presence and one successful check do not establish ongoing readiness.

Author: Retrivium editorial team
Updated: 2026-11-04
Canonical URL: https://retrivium.ai/journal/guide-dc-chrony-waitsync/
Language: en

A service starts because chronyd is running, then fails certificate checks while the node clock is still settling. Process availability is different from synchronization criteria. Chrony's waitsync command can provide a bounded startup observation, but its arguments and outcome need an explicit contract. An unqualified wait can also block indefinitely instead of producing a useful readiness decision.

## Choose the daemon being observed

Confirm the chronyc endpoint and the chronyd instance that disciplines the worker's clock. A command pointed at another host can return a valid report about the wrong system. Record effective configuration and access outcome. Failure to contact the daemon is a different condition from a contacted daemon whose clock has not yet met synchronization criteria.

## Bound the waiting policy

Waitsync supports a maximum attempt count and checking interval. The documentation distinguishes a finite limit from an unlimited default or explicitly unlimited choice. Preserve the selected policy and actual exit outcome. Do not add an indefinite gate to a startup path while describing it as a fixed timeout merely because the surrounding deployment has an unrelated health-check period.

## Define correction and skew criteria

The optional criteria refer to remaining system-clock correction and estimated frequency skew reported by tracking. They are separate quantities with different units and meaning. An omitted or disabled criterion is not a strict zero-error requirement. Choose limits from the application's accepted time assumptions, preserving those assumptions without publishing a universal tolerance for all inference nodes or certificate-validation environments.

## Keep preparation dependencies visible

Source configuration, name resolution, network access and supported authentication can affect synchronization. Inspect those dependencies when waitsync fails rather than repeatedly restarting the model process. The command observes the daemon's state; it does not repair unavailable sources or authorize changing clock discipline. Also distinguish a configured local-reference arrangement from an independently verified external timescale when defining what startup acceptance means.

## Verify later behavior separately

Test finite failure, success after accepted samples and loss of synchronization after startup in an isolated equivalent. A successful waitsync is a point-in-time observation, not continuous monitoring or proof that TLS trust and model readiness are correct. Preserve a later degraded-time policy separately. The useful result prevents daemon presence from being mistaken for a clock-quality gate while keeping the application's other readiness requirements explicit.

## Primary references

[chrony Monitoring and Synchronization Criteria](https://chrony-project.org/doc/latest/chronyc.html).

[chrony Source Selection and Local Reference Configuration](https://chrony-project.org/doc/latest/chrony.conf.html).

[chrony Accuracy and Unreachable Source Behavior](https://chrony-project.org/faq.html).

Related reading: [Wrong time after restart: TLS errors and misleading log chronology](/journal/clock-skew-tls-telemetry/); [GPU autoscaling: a free card is not a ready replica](/journal/autoscaling-gpu-cold-start/).
