{"id":45460175,"url":"https://github.com/huiskylabs/solana-validator-switch","last_synced_at":"2026-02-22T07:20:15.029Z","repository":{"id":303505918,"uuid":"1015725313","full_name":"huiskylabs/solana-validator-switch","owner":"huiskylabs","description":"Solana Validator Switch (SVS) - 1-2s Hot Swap \u0026 Failover Solution","archived":false,"fork":false,"pushed_at":"2025-10-18T01:08:43.000Z","size":35942,"stargazers_count":16,"open_issues_count":4,"forks_count":6,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-10-19T01:04:47.937Z","etag":null,"topics":["agave","automation","autoswap","cli","failover","firedancer","jito","monitoring","rust","solana","ssh","telegram","validator","validator-tool","zerodowntime"],"latest_commit_sha":null,"homepage":"https://huisky.xyz","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/huiskylabs.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-07-08T00:24:24.000Z","updated_at":"2025-10-18T00:46:46.000Z","dependencies_parsed_at":"2025-10-02T06:13:30.729Z","dependency_job_id":"27b3d048-a42d-47ec-b939-d2d206168f98","html_url":"https://github.com/huiskylabs/solana-validator-switch","commit_stats":null,"previous_names":["xie-hui/solana-validator-switch","huiskylabs/solana-validator-switch"],"tags_count":25,"template":false,"template_full_name":null,"purl":"pkg:github/huiskylabs/solana-validator-switch","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/huiskylabs%2Fsolana-validator-switch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/huiskylabs%2Fsolana-validator-switch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/huiskylabs%2Fsolana-validator-switch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/huiskylabs%2Fsolana-validator-switch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/huiskylabs","download_url":"https://codeload.github.com/huiskylabs/solana-validator-switch/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/huiskylabs%2Fsolana-validator-switch/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29706569,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-22T05:59:28.568Z","status":"ssl_error","status_checked_at":"2026-02-22T05:58:46.208Z","response_time":110,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["agave","automation","autoswap","cli","failover","firedancer","jito","monitoring","rust","solana","ssh","telegram","validator","validator-tool","zerodowntime"],"created_at":"2026-02-22T07:20:14.305Z","updated_at":"2026-02-22T07:20:15.015Z","avatar_url":"https://github.com/huiskylabs.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Solana Validator Switch (SVS) - Ultra-Fast Hot Swap \u0026 Failover Tool\n\n**Solana Validator Switch (SVS)** is a professional CLI tool for instant hot swap and failover operations, enabling validator switching in just 1-3 seconds. Built in Rust for maximum performance, SVS provides automated failover capabilities, seamless hot swapping between active/standby nodes, and works with Firedancer, Agave, Solana, and Jito validators. Trusted by production validators for zero-downtime hot swaps and emergency failover scenarios to maintain 99.9%+ uptime.\n\n\u003cdiv align=\"center\"\u003e\n\n![Build Status](https://github.com/huiskylabs/solana-validator-switch/workflows/CI/badge.svg)\n![Version](https://img.shields.io/github/v/release/huiskylabs/solana-validator-switch)\n![License](https://img.shields.io/github/license/huiskylabs/solana-validator-switch)\n![Rust](https://img.shields.io/badge/rust-%23000000.svg?style=flat\u0026logo=rust\u0026logoColor=white)\n![Solana](https://img.shields.io/badge/Solana-00FFF0?style=flat\u0026logo=solana\u0026logoColor=black)\n![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)\n![Downloads](https://img.shields.io/github/downloads/huiskylabs/solana-validator-switch/total)\n![Last Commit](https://img.shields.io/github/last-commit/huiskylabs/solana-validator-switch)\n\n[Features](#key-features) • [Installation](#installation) • [Usage](#usage) • [Configuration](#configuration) • [Performance](#-performance--benchmarks) • [FAQ](#-frequently-asked-questions)\n\n\u003c/div\u003e\n\n\u003e **Built by validators, for validators** - Stop losing sleep over manual switches. Get the fastest switch possible.\n\n## 🎥 Demo\n\n![Solana Validator Switch Demo - Ultra-fast validator switching in action](assets/demo.gif)\n\n## 🚀 Why Solana Validator Switch?\n\n**SVS** is the industry-leading Solana validator hot swap and failover solution, trusted by professional validators to maintain 99.9%+ uptime. Whether you're running Firedancer, Agave, Solana, or Jito validators, SVS provides the fastest, most reliable hot swapping and failover capabilities:\n\n- **⚡ Lightning-fast hot swap**: 1-3 seconds total switch time\n- **🔄 Automated failover**: Zero-downtime automatic failover on validator failure\n- **🔥 Instant hot swapping**: Seamless hot swap between active/standby validators\n- **📊 Real-time monitoring**: Live dashboard tracks both nodes for failover readiness\n- **🔔 Failover alerts**: Telegram notifications for automatic failover events\n- **🛡️ Production-ready**: Battle-tested hot swap operations by Huisky Labs\n- **🔧 Universal compatibility**: Hot swap support for all major Solana clients\n\n## Installation\n\n### Quick Install (Recommended)\n\n```bash\n# Auto-detects your platform and installs the latest version\ncurl -sSL https://raw.githubusercontent.com/huiskylabs/solana-validator-switch/main/install.sh | bash\n\n# After installation, 'svs' is available immediately\nsvs\n```\n\n\u003cdetails\u003e\n\u003csummary\u003eAlternative installation methods (requires Rust and Cargo)\u003c/summary\u003e\n\n#### Clone and Run\n\n```bash\ngit clone https://github.com/huiskylabs/solana-validator-switch\ncd solana-validator-switch\ncargo run --release\n```\n\n#### Install with Cargo\n\n```bash\ncargo install --git https://github.com/huiskylabs/solana-validator-switch\n\n# Add to PATH if not already there\nexport PATH=\"$HOME/.cargo/bin:$PATH\"\nsvs\n```\n\n\u003c/details\u003e\n\n## Usage\n\n### Interactive Mode (Recommended)\n\n```bash\nsvs           # Opens interactive menu\nsvs -c /path/to/custom/config.yaml  # Use custom config file\n```\n\n### Command Line Mode\n\n```bash\nsvs status                    # Check validator status\nsvs status --validator 0      # Check specific validator by index\nsvs switch                    # Perform validator switch\nsvs switch --dry-run          # Preview switch without executing\nsvs switch --validator 1      # Switch specific validator by index\nsvs test-alert                # Test Telegram alert configuration\nsvs --config /path/to/config  # Use custom config file for any command\nsvs --version                 # Show version\nsvs --help                    # Show help\n```\n\n## Configuration\n\n### Default Configuration\n```bash\nmkdir -p ~/.solana-validator-switch\ncp config.example.yaml ~/.solana-validator-switch/config.yaml\nnano ~/.solana-validator-switch/config.yaml\n```\n\n### Multiple Configurations\nYou can manage multiple validator setups using custom config files:\n\n```bash\n# Create different configs for different validator pairs\ncp config.example.yaml ~/configs/mainnet-validators.yaml\ncp config.example.yaml ~/configs/testnet-validators.yaml\n\n# Use specific config\nsvs --config ~/configs/mainnet-validators.yaml status\nsvs -c ~/configs/testnet-validators.yaml switch\n```\n\nThis is useful for:\n- Managing multiple validator pairs\n- Separating mainnet/testnet configurations\n- Testing configurations before deployment\n\nSee [config.example.yaml](config.example.yaml) for the full configuration template.\n\n### Telegram Alerts Setup (Optional)\n\nTo enable Telegram notifications:\n\n1. **Create a Telegram Bot**:\n\n   - Message [@BotFather](https://t.me/botfather) on Telegram\n   - Send `/newbot` and follow the prompts\n   - Save the bot token (looks like `123456:ABC-DEF1234ghIkl-zyx57W2v1u123ew11`)\n\n2. **Get Your Chat ID**:\n\n   - Add the bot to a group or start a private chat with it\n   - Send a message to the bot\n   - Visit `https://api.telegram.org/bot\u003cYOUR_BOT_TOKEN\u003e/getUpdates`\n   - Find your chat ID in the response (negative for groups, positive for private chats)\n\n3. **Configure in config.yaml**:\n\n   ```yaml\n   alert_config:\n     enabled: true\n     delinquency_threshold_seconds: 30 # Alert after 30 seconds without voting\n     telegram:\n       bot_token: \"YOUR_BOT_TOKEN\"\n       chat_id: \"YOUR_CHAT_ID\"\n   ```\n\n4. **Test Your Configuration**:\n   ```bash\n   svs test-alert\n   ```\n\nYou'll receive notifications for:\n\n- **Validator Delinquency** (CRITICAL): When your validator stops voting for more than 30 seconds\n  - Only triggers when SSH and RPC are both working (no false alarms)\n  - Includes SSH and RPC connection status in the alert\n- **SSH Connection Failures** (LOW PRIORITY): When SSH connections fail repeatedly\n  - Triggers after 100 consecutive failures or 30 minutes of failures\n  - Very loose thresholds to avoid noise\n- **RPC Connection Failures** (LOW PRIORITY): When RPC calls fail due to throttling or network issues\n  - Triggers after 100 consecutive failures or 30 minutes of failures\n  - Very loose thresholds to avoid noise\n- **Switch Results**: Success/failure notifications with timing details\n\n## Key Features\n\n- **Ultra-Fast Hot Swap**: Instant 1-3 second hot swap operations with optimized streaming\n- **Automated Failover**: Automatic failover when primary validator goes down\n- **Runtime Status Detection**: Continuous monitoring for failover readiness\n- **SSH Connection Pooling**: Persistent connections enable instant hot swap execution\n- **Optimized Tower Transfer**: Lightning-fast tower hot swap via streaming operations\n- **Universal Hot Swap Support**: Works with Firedancer, Agave, Solana, and Jito validators\n- **Interactive Dashboard**: Real-time monitoring for hot swap and failover operations\n  - **Hot swap controls** - (S)witch for manual hot swap, auto-failover on detection\n  - **Multi-validator support** - Tab key to monitor multiple hot swap pairs\n  - Failover readiness indicators for both nodes\n  - Manual hot swap trigger with (S) key\n  - SSH connectivity monitoring for failover reliability\n  - RPC health checks ensure safe hot swapping\n  - Real-time hot swap status and countdown timers\n- **Failover Alerts**: Telegram notifications for critical events\n  - Automatic failover trigger notifications\n  - Hot swap completion confirmations\n  - Validator delinquency alerts (triggers failover)\n  - Failover failure alerts for manual intervention\n- **Hot Swap Status Display**: Live monitoring during operations\n  - Active/standby validator status for hot swap readiness\n  - Current validator identity for hot swap verification\n  - Version compatibility checks for safe hot swapping\n  - SSH and RPC health for reliable failover\n\n## Security\n\n- **No credential storage**: SSH private keys never leave your `~/.ssh/` directory\n- **Path-only configuration**: Only file paths and hostnames stored in config files\n- **No network exposure**: Tool operates through SSH connections only\n- **Local execution**: All operations run locally, no external services\n\n## Why SVS?\n\nBuilt by [Huisky Labs](https://huisky.xyz/) validator team who needed reliable switching tools for our own operations. After countless manual switches and near-misses, we built what we wished existed.\n\n- **Battle-tested**: Used in production by Huisky Labs validators\n- **Community-driven**: We actively use and improve this tool daily\n- **Open source**: Transparency and security through open development\n\n### Support Development\n\nIf SVS saves you time and SOL, consider:\n\n- ⭐ Starring this repo to help other validators find it\n- 🗳️ Delegating to [Huisky Labs validators](https://huisky.xyz/)\n- 🐛 Reporting issues or contributing improvements\n\n## Roadmap\n\n### ✅ Completed\n\n- [x] **Ultra-fast switching** - Sub-second identity switches with optimized streaming operations\n- [x] **Universal validator support** - Works with Firedancer, Agave, Solana, and Jito\n- [x] **Interactive CLI** - User-friendly menu system with guided workflows\n- [x] **Dry-run mode** - Test switches without executing for safety\n- [x] **SSH connection pooling** - Persistent connections with multiplexing for instant commands\n- [x] **Auto-detect active/standby** - Runtime detection of validator states\n- [x] **Optimized tower transfer** - Streaming base64 decode + dd for minimal latency\n- [x] **Interactive dashboard** - Real-time monitoring with Ratatui-based terminal UI\n- [x] **Modern async architecture** - Tokio-based async runtime with Arc\u003cSession\u003e efficiency\n- [x] **Telegram notifications** - Real-time alerts for validator health and switch events\n- [x] **Continuous monitoring** - Real-time validator health monitoring with delinquency alerts\n- [x] **Multi-validator support** - Manage multiple validator pairs with Tab key switching\n- [x] **Ultra-responsive UI** - Dedicated keyboard thread prevents blocking, action-based processing\n\n- [x] **Auto-switch on failure** - Automatic failover when primary validator goes down\n\nHave ideas? [Open an issue](https://github.com/huiskylabs/solana-validator-switch/issues) or contribute!\n\n## License\n\nMIT License\n\n---\n\n\u003cdiv align=\"center\"\u003e\nBuilt with ❤️ by \u003ca href=\"https://huisky.xyz/\"\u003eHuisky Labs\u003c/a\u003e • \u003ca href=\"https://github.com/huiskylabs\"\u003eGitHub\u003c/a\u003e • \u003ca href=\"https://twitter.com/huiskylabs\"\u003eTwitter\u003c/a\u003e\n\u003c/div\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhuiskylabs%2Fsolana-validator-switch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhuiskylabs%2Fsolana-validator-switch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhuiskylabs%2Fsolana-validator-switch/lists"}