raft-cluster-drill

Simulate failover scenarios and verify leader election in a 3-node RobustMQ Raft cluster.

1.8k|249|Updated Aug 3, 2023
One-click install
npx skills add https://github.com/robustmq/robustmq --skill raft-cluster-drill
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: raft-cluster-drill
Source: https://github.com/robustmq/robustmq/tree/main/.claude/skills/raft-cluster-drill
Command: npx skills add https://github.com/robustmq/robustmq --skill raft-cluster-drill

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires robustmq, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill provides a way to run a failover drill for a 3-node meta-service Raft cluster on RobustMQ, allowing users to verify cluster startup, node removal/recovery, leader election, snapshot replication, and graceful shutdown.

Core Features & Use Cases

  • Cluster Failover: Test the failover process when a node is removed or recovers.
  • Leader Election: Verify that the leader is correctly elected after a node failure.
  • Snapshot Replication: Ensure that snapshots are correctly replicated across nodes.
  • Graceful Shutdown: Confirm that nodes can be shut down gracefully without data loss.
  • Use Case: Ideal for DevOps teams to ensure that their RobustMQ Raft clusters are resilient and can handle failures.

Quick Start

Run the raft-cluster-drill skill to perform a failover drill on your RobustMQ Raft cluster.

Frequently Asked Questions about raft-cluster-drill

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I test Raft cluster failover and leader election in RobustMQ?

To test Raft cluster failover in RobustMQ, you can run a failover drill that simulates node removal, recovery, and leader election on a 3-node meta-service cluster. This verifies that the cluster maintains data consistency and membership after disruptions.

What is the best way to verify node recovery and snapshot replication in a RobustMQ Raft cluster?

Verifying node recovery and snapshot replication in a RobustMQ Raft cluster involves running a dedicated failover drill. The drill tests whether snapshots are correctly replicated across nodes and if recovered nodes rejoin the cluster without data loss.

Does the RobustMQ Raft failover drill support graceful shutdown testing?

Yes, the RobustMQ Raft failover drill supports graceful shutdown testing to confirm that nodes can be shut down gracefully without data loss. It ensures the 3-node cluster maintains data consistency throughout the shutdown process.

Can I use this failover drill on a RobustMQ cluster with more than 3 nodes?

This failover drill is specifically designed to verify the robustness of a 3-node Raft cluster in RobustMQ. Testing clusters with a different number of nodes is not covered by the current drill implementation.

Do I need a pre-configured RobustMQ broker to run a Raft cluster failover drill?

Yes, you need the RobustMQ broker and its associated configuration files set up before running the drill. The skill requires this environment to simulate cluster startup, node removal, and leader election scenarios effectively.

Why does my RobustMQ Raft cluster lose data consistency after a node failure?

Data consistency loss after a node failure indicates an issue with leader election or snapshot replication. Running a failover drill helps verify the cluster's leader election mechanism and snapshot replication to ensure data consistency is maintained.