| Crates.io | worterbuch-cluster-orchestrator |
| lib.rs | worterbuch-cluster-orchestrator |
| version | 1.3.4 |
| created_at | 2025-02-26 11:11:15.448677+00 |
| updated_at | 2025-04-01 08:01:17.55862+00 |
| description | An orchestrator for running Wörterbuch as a distributed cluster. |
| homepage | |
| repository | https://github.com/babymotte/worterbuch-cluster-orchestrator |
| max_upload_size | |
| id | 1570292 |
| size | 216,527 |
This is the orchestration layer of a Wörterbuch server cluster. It takes care of leader election and putting the node it manages in the correct mode as required.
The orchestrator offers the following endpoints (in addition to worterbuch's usual client end points):
Wörterbuch can be started in two modes, leader or follower mode.
In leader mode it loads its state from disk on startup and offers its regular client API end points, plus an additional TCP socket to which followers connect to receive the leader's current state + any subsequent state changes for state replication.
In follower mode worterbuch does not load state from disk, instead it connects to the leader's TCP port and receives the leader's state through it. It also does not accept any client connection, but instead receives any state changes directly from the leader directly through the same TCP connection. If the TCP connection fails, the follower must immediately shut down.