Skip to content

Feature/cluster#79

Merged
jamals86 merged 4 commits intomainfrom
feature/cluster
Jan 10, 2026
Merged

Feature/cluster#79
jamals86 merged 4 commits intomainfrom
feature/cluster

Conversation

@jamals86
Copy link
Copy Markdown
Collaborator

No description provided.

Introduces a new cluster health endpoint with detailed OpenRaft metrics in the API, including node roles, replication lag, and catchup progress. Refactors Raft applier wiring to occur after AppContext initialization for correct dependency injection. Enhances Raft executor and cluster node info structures to support catchup progress and snapshot metrics. Updates tests and internal APIs to use unified Meta group naming and improves status handling for joining and catching up nodes.
Adds a unified applier abstraction to handle all database command execution through a single interface, supporting both standalone and cluster (Raft) modes. Implements new applier modules, command types, error handling, and event broadcasting. Refactors AppContext to wire up the unified applier and updates related initialization logic. This is part of the effort to unify command execution paths and prepare for cluster-wide Raft-based command replication.
Refactors the applier system to always use RaftExecutor and RaftApplier for both single-node and cluster modes, removing standalone and cluster-specific applier code. All commands now flow through Raft consensus, ensuring a single code path for DDL, DML, and metadata operations. Removes legacy applier, command, and forwarder modules, updates configuration defaults, and adjusts related initialization and test code for unified behavior.
Adds leader-only job execution in cluster mode, ensuring only the leader node processes jobs. Introduces failover handlers for jobs and live query subscriptions to recover or clean up orphaned resources when nodes fail or leadership changes. Updates job claiming, releasing, and failover logic, and refactors cluster configuration to support new snapshot and failover policies. Also adds new UI components and tests for cluster health and leader job handling.
@jamals86 jamals86 merged commit 87ba123 into main Jan 10, 2026
0 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant