Skip to content

Highway 3.0.0 — storage and replication on SystemD.Crystal

Latest

Choose a tag to compare

@net-wise net-wise released this 30 Oct 13:13

Description:

Highway 3.0 moves the broker's storage and replication to SystemD.Crystal 1.0, and brings protocol 5.0, storage format 4 and a failover that does not split under load.

3.0 is a breaking release. A 2.x client cannot talk to a 3.x broker, 2.x and 3.x nodes never replicate with each other, and 2.x data is not migrated. Upgrade side by side with the upgrade runbook; the public client API is unchanged.

Highlights

  • Storage and replication on SystemD.Crystal. Crystal is Highway's backend storage system: Highway's data lives in Crystal boxes, and every command commits one atomic batch. Replication comes with Crystal: batched WAL shipping on its own port, snapshot bootstrap, epochs and fencing, offline compaction. Highway's own storage engine and replication are removed; Highway keeps its failover policy.
  • Faster. Under the same load harness on the same machine, compared with Highway's previous storage engine: RPC handling p50 2.3 ms against 3.4 ms (about 30 % faster), and queue end-to-end p50 20 ms against 48 ms.
  • Failover that does not split under load. The herd hard-kill test passes 20/20 with a starved thread pool. A new standby is syncing, and never eligible to take over, until it has caught up. A client's wave of failures shares one failover search, so calls in flight converge together.
  • Protocol 5.0 and storage format 4. One work path for RPC and queues with claim tokens, a declarative session per node, and every queue, group and service in its own box.
  • One server directory per major version. The archive unpacks as server/3/, so 3.x installs beside 2.x with its own data, and rolling back means reinstalling the old line.
  • Server archives for Linux and Windows, with a systemd unit and a Windows service. highways --compact works again.

Install

Linux

sudo mkdir -p /opt/highway
sudo tar -xzf highway-3.0.0-linux-x64.tar.gz -C /opt/highway
sudo nano /opt/highway/server/3/config/highway.json
sudo bash /opt/highway/server/3/scripts/install-service.sh

Windows: unzip into C:\highway and run server\3\scripts\install-service.bat.

Ports: 6500 RESP, 7500 dashboard / /health / /ready, and 6501 (RESP + 1) for replication in a replica set. Open both RESP and replication ports between nodes.

Client packages (nuget.org):

dotnet add package Highway.Abstractions --version 3.0.0
dotnet add package Highway.Client --version 3.0.0

Also Highway.Client.Hosting and Highway.LocalServer (in-process tests).