Skip to content
SHC Docs

Leader module

Layer 2. Core. Core It reads rqlite leadership and does not run an engine.

Source: modules/leader/ (ce module); the daemon-backed router/commands overlay lives in this repo’s modules/leader/.

CLINone
Subcommands0
HTTP endpointssee the route reference
Events emittedNone
Error codessee the error code reference
Service classesNone
Cross-module depscluster
modules/leader/
└── errors.go

Typed errors are catalogued in the error code reference with HTTP statuses and message templates.

The leader module reads who is leader (LeaderService in service.go) so other subsystems can decide whether to run on this node. It does not run the election. That is rqlite (core/db/driver.go), with bootstrap in cluster and node.