# Physical time as a sequencer

https://akougkas.io/journal/2024/physical-time-as-a-sequencer/

Author: Anthony Kougkas

Published: 2024-06-06

Updated: 2026-09-06

Every distributed log I studied in 2019 paid for ordering with a sequencer. [BookKeeper](https://bookkeeper.apache.org/), [Corfu](https://github.com/CorfuDB/CorfuDB), 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](https://github.com/grc-iit/chronolog/releases/tag/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?

At a glance

Anchor

ChronoLog 1.0.0, released June 6, 2024

Systems

[ChronoLog](https://akougkas.io/work/chronolog/), [Hermes](https://akougkas.io/work/hermes/)

The claim

Synchronized physical clocks can order a distributed log without a sequencer in the append path.

Code

[grc-iit/chronolog](https://github.com/grc-iit/chronolog)

## 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.

Diagram: Above, writers wait on a central sequencer before reaching the log. Below, writers with synchronized clocks append directly and the log orders by timestamp.

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](https://grc.iit.edu/center/team/hariharan-devarajan/), [Keith Bateman](https://grc.iit.edu/center/team/keith-bateman/), [Jaime Cernuda](https://grc.iit.edu/center/team/jaime-cernuda/), [Neeraj Rajesh](https://grc.iit.edu/center/team/neeraj-rajesh/), and [Xian-He Sun](https://www.iit.edu/directory/people/xian-he-sun) for [MSST 2020](https://akougkas.io/publications/kougkas2020chronolog/), the [storage systems conference](https://www.msstconference.org/) 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](https://cs.uchicago.edu/people/kyle-chard/) at the [University of Chicago](https://www.uchicago.edu/), 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](https://github.com/grc-iit/chronolog) and the [documentation](https://chronolog.dev).

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.

A file system stores things that are; a log stores things that happened.

## 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](https://grc.iit.edu/center/team/kun-feng/) has written much of the current code, and the [project record at GRC](https://grc.iit.edu/research/projects/chronolog/) lists everyone who has touched it. [Eneko Gonzalez](https://grc.iit.edu/center/team/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](https://grc.iit.edu/center/team/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](https://en.wikipedia.org/wiki/Precision_Time_Protocol) on a well-run cluster gives sub-microsecond agreement. [NTP](https://en.wikipedia.org/wiki/Network_Time_Protocol) 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](https://github.com/grc-iit/chronolog/releases/tag/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](https://akougkas.io/work/clio/). The [ChronoLog story](https://akougkas.io/work/chronolog/) has the current state.
