Saltar al contenido principal

A Zaris Cluster on Windows, Without a Container in Sight

· 10 min de lectura
Clustron Team
Ingeniería de Sistemas Distribuidos

The default story for running a distributed data store in 2026 is a container story. The quickstart hands you a Dockerfile, the production guide hands you a Helm chart, and the implicit assumption is that somewhere underneath there is a Linux kernel and an orchestrator. For a great many teams that assumption holds. For a great many others it simply does not: a fleet of domain-joined Windows Servers, a change-control process that treats a new container runtime as a six-week project, a security posture that wants services registered with the Service Control Manager where the existing tooling can see them. These are not teams that are behind the times. They are teams whose times are different, and a store that can only be run as a container is, to them, a store that cannot be run at all.

Zaris runs natively on Windows. Not in a Linux VM, not in a container on Windows, but as an ordinary Windows service that the Service Control Manager starts, the event log watches, and the existing fleet management already knows how to patch. The cluster forms over PowerShell cmdlets, the data plane speaks the same protocols it speaks everywhere, and nothing in the path wants Docker. This post walks the shape of a two-node native deployment and flags the two things that are not obvious — the ones that turn a ten-minute setup into a lost afternoon.

What the installer actually puts on the box​

A native install is driven by the release package's installer, run elevated, and it is worth knowing what lands so you can reason about it later. Three things get installed, and they are deliberately separate concerns.

First, a management service — a long-running Windows service, registered with the SCM, listening on the management port. This is the control plane for the box: it is what you talk to when you create or start anything, and it is the one component that is always running whether or not any data nodes are. Second, the host runtime — the executable the management service launches to run an actual data node. You do not start these by hand; the management service supervises them. Third, a pair of PowerShell modules — an admin shell for operating the cluster and a client shell for reading and writing data — plus the Windows Firewall rules that open the port ranges the cluster needs.

Those ports follow a convention worth internalising, because every address you type later lands in one of three bands: the management plane in the low range, the inter-node cluster traffic in the middle range, and the client-facing data ports in the high range. When a connection does not work, the first diagnostic is almost always "am I talking to the right band?" — a client pointed at a management port, or an admin tool pointed at a data port, fails in ways that look mysterious until you notice the number.

Gotcha one: it is PowerShell 7, not the one already on the box​

Here is the first afternoon-killer. Every Windows Server already has Windows PowerShell 5.1 installed, and it is the one your muscle memory opens. The Zaris admin and client shells will not load there. They are binary modules built against the modern .NET runtime, and Windows PowerShell 5.1 runs on the old .NET Framework, which cannot load them. Import the module in 5.1 and you get an assembly-load error that does not obviously say "wrong PowerShell."

The fix is simply to use PowerShell 7, which installs side by side with 5.1 and does not replace it. The distinction matters enough to make a habit of it: launch pwsh, not powershell, for anything Zaris. If a cmdlet that you know exists reports as not recognised, or a module import throws about a framework version, you are almost certainly in 5.1. This is not a Zaris quirk so much as a .NET-era fact — modern binary PowerShell modules live in PowerShell 7 — but it is the single most common first-run stumble, so it goes first.

The supervisor model: how the cluster comes together​

With the management service running on each machine, forming a cluster is a short sequence of admin cmdlets. The mental model is a supervisor: you do not launch data-node processes yourself and hope they find each other; you describe the cluster you want to the management service, and it supervises the host processes into existence and keeps them alive.

# In PowerShell 7 (pwsh), with the admin shell imported.
# Talk to the management service on the first machine.
Connect-ZrManager -Address server-a:7801

# Define a workspace (the logical cluster), then enroll each machine's
# management service as a server in it.
New-ZrWorkspace -Name prod
Add-ZrServer -Address server-a:7801
Add-ZrServer -Address server-b:7801

# Create a store on the workspace and start it. The managers supervise
# the host processes onto both machines and wire up replication.
New-ZrStore -Name app -Workspace prod
Start-ZrStore -Name app

The supervisor model is why the cluster is operable without a human babysitting processes. A supervised host that dies is restarted by its management service; a store you declared is a store the managers keep trying to make real. This is the same division of labour an orchestrator gives you in the container world — a thing that holds the desired state and reconciles toward it — except here the thing is a Windows service you already trust, not a second platform you had to adopt.

server-amanagement svc :7801host (node) :7861server-bmanagement svc :7801host (node) :7861one workspacestore replicatesClient (pwsh / app)Connect-ZrStore by nameSet / Get → :7861 (server-a, server-b)

Gotcha two: address everything by machine name, never localhost​

This is the second afternoon-killer, and it is the one that produces the most baffling symptom. When you connect the management service, enroll servers, or point a client at the cluster, use the machine's name, not 127.0.0.1 or localhost — even for the box you are standing on.

The reason is that Zaris treats a loopback address as a deliberate signal, not a convenience. A node that advertises itself on loopback is, by definition, unreachable from any other machine, so a cluster built on loopback addresses is a cluster whose members cannot talk to each other. Rather than let you build that and discover it at replication time, the software treats loopback addressing as not-for-clustering. The failure mode, if you ignore this, is quietly empty: you connect, you enroll, you start a store — and you end up with zero running instances and no loud error explaining why, because each step individually "succeeded" against an address that cannot form a cluster. Address server-a:7801, not 127.0.0.1:7801, and the whole thing comes together; use loopback and you will spend an hour reading logs that each look fine.

Reading and writing​

Once the store is started, the client shell talks to the data ports — again, by machine name — and the API is the same one you would use from application code anywhere:

# Client shell in pwsh. Endpoints are the DATA ports, by machine name.
Connect-ZrStore -StoreName app -Endpoints @('server-a:7861','server-b:7861')

Set-ZrItem -StoreName app -Key 'user:42' -Value 'ada'
Get-ZrItem -StoreName app -Key 'user:42' # -> ada

A write lands on its owning node and replicates to the other; a read is served from whichever node owns the key. From the client's point of view there is one store with two endpoints for failover, and the fact that it is two Windows services on two domain-joined boxes rather than two pods is invisible — which is exactly the point.

Wrap-up​

A distributed store that assumes a container runtime quietly excludes a large and entirely legitimate part of the world: the Windows fleets, the change-controlled estates, the shops for whom adopting Kubernetes to run a cache is the tail wagging the dog. Zaris installs as a native Windows service, supervises its own data nodes through a management service the SCM already understands, and forms a cluster over a short sequence of PowerShell cmdlets — no Docker in the path at any point. Two things will save you the afternoon everyone else loses: run the shells under PowerShell 7, not the 5.1 that is already open, because the modules are modern binary modules; and address every node by machine name, never loopback, because Zaris reads a loopback address as "not for clustering" and will hand you a silent, empty cluster if you insist on it. Get those two right and a native two-node cluster is a ten-minute job on hardware your organisation already runs and already trusts.