Skip to main content

Module engine

Module engine 

Source

Structsยง

ConsensusEngine
Runs the main server consensus loop
ScheduledShutdown
A shutdown scheduled through the admin API.

Enumsยง

ConsensusStop
Why the consensus loop returned without an error.
ShutdownRequest
How an admin scheduled a shutdown.

Constantsยง

DB_CHECKPOINTS_DIR ๐Ÿ”’
MAX_ITEM_PROCESSING_ATTEMPTS ๐Ÿ”’
How many times a single ordered consensus item is processed before we give up. Only a database transaction that could not be validated at commit time costs an attempt, and reprocessing takes a fresh snapshot, so needing more than a couple of these means something is wrong beyond a stale snapshot.

Functionsยง

due_shutdown ๐Ÿ”’
The request of a shutdown that takes effect now that completed_session has completed: at the first session boundary at or after the scheduled session, so a schedule that arrives after its session completed still stops at the next boundary rather than never.
get_finished_session_count_static