akougkas.io

Physical time as a sequencer

ChronoLog 1.0.0 is out. A distributed log can order by synchronized physical clocks and drop the central sequencer. Why that trade fits activity data, what 1.0 delivers, and what worries me about clocks.

Published
Updated
Reading
7 min read
Topics
systems, data, scientific computing

Every distributed log I studied in 2019 paid for ordering with a sequencer. BookKeeper, Corfu, and Kafka’s DistributedLog each had somewhere in the append path a component that handed out the next position, and under enough writers that component became the throughput ceiling. The order was exact. It was also expensive, and for the data I cared about, exact was more than I needed. It took me longer than I like to admit to see that as a design freedom rather than a compromise.

ChronoLog 1.0.0 shipped today. It is the first public beta of a system I designed around one blunt question: what if the clock did the ordering?

The idea

Activity data is different from state. A file system stores things that are; a log stores things that happened. Instruments, workflows, schedulers, and tracing tools produce streams of events that someone later needs to replay in the order they occurred. For that use, “the order they occurred” has a physical meaning, and modern clusters already synchronize their clocks well enough to recover it to within microseconds.

ChronoLog uses that. Each event carries a timestamp from the writer’s synchronized physical clock, and the log orders by timestamp. There is no central sequencer in the append path. New entries become visible the moment they land. Many writers and many readers work at once without coordinating through a single point.

Above, writers wait on a central sequencer before reaching the log. Below, writers with synchronized clocks append directly and the log orders by timestamp. before: the sequencer is the ceiling writers sequencer log chronolog: the clock does the ordering writers with clocks log by timestamp no central component in the append path;order bounded by clock skew
The top row shows the usual design, where every writer passes through one sequencer before its record reaches the log. The bottom row shows ChronoLog, where writers stamp records with a synchronized physical clock and append directly, so the log orders by timestamp with no central component in the path.

The cost is precision, and I want to be the one who says so before a reviewer does. Ordering is bounded by clock skew rather than exact, so two events from different nodes within the same skew window may be stored in either order. For a transaction log that would be disqualifying. For provenance, monitoring, telemetry, and workflow replay it is fine, because the questions those consumers ask are about ranges and sequences at a scale far coarser than the skew.

The second idea is that a log should scale in three dimensions at once. Horizontally across nodes, so ingest throughput grows with the cluster. Vertically across storage tiers, so capacity grows past memory into NVMe, the parallel file system, and the archive without the application noticing. And temporally by timestamp, so a range query knows where in the hierarchy to look without scanning everything.

I wrote the design up with Hariharan Devarajan, Keith Bateman, Jaime Cernuda, Neeraj Rajesh, and Xian-He Sun for MSST 2020, the storage systems conference where the field’s log and archive people meet. We measured the prototype at more than one million tail operations per second, an order of magnitude past the distributed logs we compared against.

I find every number I helped produce a little suspicious, which is why the release exists. In May 2021 NSF funded the full system as a CSSI Frameworks award, collaborative with Kyle Chard at the University of Chicago, whose interest is workflow provenance. I am a co-PI and the architect.

What 1.0 delivers

The release deploys the service pipeline from the paper as real software you can install from the repository and the documentation.

Three services carry the work.

  • ChronoVisor coordinates clients, metadata, and time.
  • ChronoKeeper ingests events into a distributed journal and serves tail reads.
  • ChronoGrapher collects events into stories and writes them down through the tiered pipeline.

Recording groups of Keepers and Graphers can join and leave dynamically, which is the elasticity the paper promised. Total ordering across client nodes holds within the bounds of the node synchronization protocol, and each client’s own causal order is retained. The client library is multi-threaded C++ with Python bindings, and the release ships example clients and an admin tool.

It is a beta and I want the word to carry weight. I have released things I called finished that were not, and I would rather not do that again with my name on the design. The pipeline is one direction: events in, stories down the tiers. Historical replay through a player service is designed and not yet shipped. Performance has been measured on our cluster and not yet by anyone else. What 1.0 establishes is that the design runs as a distributed system with real membership changes and real tiering, not only as a paper prototype.

Who built it

The distance between the MSST paper and this release is four years and a pandemic. Keith, Jaime, and Neeraj carried the design from the paper into the first services. Kun Feng has written much of the current code, and the project record at GRC lists everyone who has touched it. Eneko Gonzalez joined this month to take the release process forward. Inna Brodkin engineered the University of Chicago side and cut this release. Luke Logan connected ChronoLog to the runtime lineage that started in Hermes. My part was the design, the proposal, and keeping the architecture honest as the team grew. Keeping it honest mostly meant saying no to features I wanted.

What worries me about clocks

The whole design rests on clock quality, and clock quality is not something I control. I find that uncomfortable, and I think the discomfort is the correct response to having built a system on someone else’s guarantee.

Precision Time Protocol on a well-run cluster gives sub-microsecond agreement. NTP on a loosely managed one gives milliseconds. Between sites it can be worse. ChronoLog’s ordering guarantee is only as good as the synchronization underneath it, and the system has no way to know how good that is at any moment. A degraded clock on one node silently widens the window within which order is ambiguous, and nothing in 1.0 detects or reports that.

I think the answer is to make skew a first-class measured quantity that the log records alongside the events, so a reader can know the ordering confidence for any range. I do not yet know what that costs in the append path or how to expose it in a query without making every consumer reason about it. That is the design question I most want to answer before the next major release.

The other open question is smaller and harder to state. What is the smallest useful query surface over a log: time ranges, causal chains, or both? Every consumer we have talked to wants a slightly different one.

Update, September 2026

ChronoLog 2.0.0 in February 2025 added the player service and historical replay. v3.0.0 in May 2026 added ChronoSQL, a publish-subscribe plugin, and an MCP server so an agent can record and replay through CLIO. The ChronoLog story has the current state.

Sources, code, and records

  1. source

    ChronoLog 1.0.0 release

    The first public beta, published June 6, 2024.

  2. source

    ChronoLog at MSST 2020

    The design paper. Physical-time ordering, three-dimensional distribution, and the first evaluation.

  3. source

    NSF award OAC-2104013

    The CSSI Frameworks award with the University of Chicago, 2021 through 2026.

  4. source

    chronolog.dev

    Documentation and the deployment guide.

  • 2020–present
    active

    ChronoLog

    A distributed shared log ordered by physical time

More on ChronoLog

  1. essay

    One destination, N tiers

    Every tier supplies the application at once, and the application sees one destination. The thesis from a November 2026 talk to my group at the Gnosis Research Center, the six lines of I/O work behind it since 2016, and my bet that they are the foundation agents need for context.

    9 min
  2. essay

    Agent memory is a storage problem

    Memory for agents decomposes into tiers with different access patterns: episodic, semantic, procedural, working. Storage people already know how to build tiers, and a time-ordered shared log is the episodic one.

    8 min
  3. essay

    MCP for science: what sixteen servers taught us

    CLIO Kit ships sixteen MCP servers over scientific formats, schedulers, and a shared log. What they taught us about tool shapes, what a summarize tool must refuse, and where the protocol runs out.

    8 min