Back to skills
SKILL.md
Slv Grpc Geyser
ASecurityAnsible playbooks and Jinja2 templates for deploying and managing Solana gRPC Geyser streaming nodes.
- 95 stars
- 0 votes
- 0 copies
- 3 views
- Added May 26, 2026
Works with
Security analysis
100/100Pro scans all 20 files and shows the line behind each finding
npx -y skills add ValidatorsDAO/slv --skill slv-grpc-geyser --agent claude-codeAre you the author of Slv Grpc Geyser?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/validatorsdao-slv-grpc-geyser)# SLV gRPC Geyser Skill
Ansible playbooks and Jinja2 templates for deploying and managing Solana gRPC Geyser streaming nodes.
## Supported Configurations
| Config | Description |
|---|---|
| Yellowstone gRPC | Standard Geyser gRPC plugin (Triton/rpcpool); the default |
| Richat gRPC | Richat Geyser plugin (lamports-dev); `geyser_plugin: richat`. Richat has no release for agave 4.3 or later yet, so `init.yml` stops on a node that is set to run such an agave |
## Directory Structure
```
ansible/
mainnet-rpc/ — Playbooks (gRPC Geyser uses mainnet-rpc playbooks)
cmn/ — Shared common playbooks
jinja/
mainnet-rpc/ — Jinja2 templates
cmn/ — Shared templates
```
## CLI Command ↔ Playbook Mapping
gRPC Geyser nodes are managed via `slv r` (RPC) commands with `rpc_type` set to `Geyser gRPC` or `Index RPC + gRPC`.
| CLI Command | Playbook | Description |
|---|---|---|
| `slv r deploy` | `mainnet-rpc/init.yml` | Full gRPC Geyser node initialization |
| `slv r start` | `mainnet-rpc/start_node.yml` | Start node |
| `slv r stop` | `mainnet-rpc/stop_node.yml` | Stop node |
| `slv r restart` | `mainnet-rpc/restart_node.yml` | Restart node |
| `slv r build:solana` | `mainnet-rpc/install_solana.yml` | Build Solana from source |
| `slv r update:geyser` | `mainnet-rpc/update_geyser.yml` | Update Geyser plugin |
| `slv r update:script` | `mainnet-rpc/update_startup_config.yml` | Update start-validator.sh |
| `slv r setup:firedancer` | `mainnet-rpc/setup_firedancer.yml` | Setup Firedancer |
## Key Playbooks
| Playbook | Description |
|---|---|
| `init.yml` | Full gRPC Geyser node initialization |
| `init_richat_geyser.yml` | Richat Geyser initialization (only for `geyser_plugin: richat`) |
| `cmn/stop_richat.yml` | Stop and disable `richat.service` on a node that ran richat, and move its plugin library aside (`librichat_plugin_agave.so.disabled`), after the Yellowstone build of `init.yml` |
| `cmn/check_alpenglow_floor.yml` | Stop `init.yml`, before it changes anything, on an agave or jito version or a Yellowstone plugin older than Alpenglow runs on (4.3.0 on mainnet) |
| `geyser_build.yml` | Build Yellowstone gRPC from GitHub source (the default of `init.yml`) |
| `geyser_richat_build.yml` | Build Richat plugin from GitHub source (only with `geyser_plugin: richat`) |
| `install_richat.yml` | Install Richat plugin (only with `geyser_plugin: richat`) |
| `update_geyser.yml` | Update Geyser plugin |
| `restart_node.yml` | Restart node |
| `start_node.yml` / `stop_node.yml` | Start/stop node |
| `update_startup_config.yml` | Update start-validator.sh from template |
| `setup_firedancer.yml` | Setup Firedancer |
| `run_snapshot_finder.yml` | Find and download best snapshot |
| `run_restarter.yml` | Run restarter script |
## Geyser Build Details
### Yellowstone gRPC (`geyser_build.yml`)
- Clones from https://github.com/rpcpool/yellowstone-grpc
- Builds with `cargo build --release`
- Produces `libyellowstone_grpc_geyser.so`
- Config template: `jinja/mainnet-rpc/geyser.json.j2`
### Richat (`geyser_richat_build.yml`)
- Only with `geyser_plugin: richat`. Richat has no release for agave 4.3 or later yet, so `init.yml` stops on a node set to run such an agave; the playbooks stay for when a release exists
- Clones from https://github.com/lamports-dev/richat
- Builds with `cargo build --release`
- Produces `librichat_plugin_agave.so`
- Config template: `jinja/mainnet-rpc/geyser-richat.json.j2`
- Service template: `jinja/mainnet-rpc/richat.service.j2`
- Settings template: `jinja/mainnet-rpc/richat-setting.yml.j2`
## Key Variables (extra_vars)
| Variable | Description | Default |
|---|---|---|
| `rpc_type` | Must be `Geyser gRPC` or `Index RPC + gRPC` | — |
| `validator_type` | Client type (`agave`, `jito`, `firedancer-agave`, etc.) | — |
| `agave_version` | Agave version of an `agave` node, without the leading `v` | `version_agave` of the `<network>_rpcs` section of `~/.slv/versions.yml` |
| `jito_version` | Jito version of a `jito` node, with the `-jito` suffix (e.g. `4.3.2-jito`) | `version_jito` of the same section |
| `allnodes_jito_version` | Allnodes-Jito version of an `allnodes-jito` node (e.g. `4.3.2-allnodes`) | — (the RPC sections hold no pin for it) |
| `geyser_plugin` | Geyser plugin, an inventory variable: `yellowstone` or `richat` | `yellowstone` |
| `geyser_version` | Yellowstone gRPC release tag | `geyser_version` of the network in `~/.slv/versions.yml` |
| `richat_version` | Richat plugin version, for `geyser_plugin: richat` (e.g. `richat-v8.1.0`) | — |
| `snapshot_url` | Snapshot download URL | — |
| `port_grpc` | gRPC listen port | `10000` |
| `limit_ledger_size` | Ledger size limit | `100000000` |
## Jinja Templates
| Template | Description |
|---|---|
| `start-validator.sh.j2` | Main start script (branches by `rpc_type`) |
| `start-mainnet-rpc-grpc.sh.j2` | gRPC-specific start script |
| `geyser.json.j2` | Yellowstone gRPC config |
| `geyser-richat.json.j2` | Richat gRPC config |
| `richat-setting.yml.j2` | Richat settings |
| `richat.service.j2` | Richat systemd service |
| `firedancer-config.toml.j2` | Firedancer config |
| `firedancer.service.j2` | Firedancer systemd service |
| `solv.service.j2` | Solv systemd service |
| `generate_configs.sh.j2` | Config generation script |
## Geyser Plugin Sources
Both plugins are built from source (no binary downloads):
- **Yellowstone gRPC**: https://github.com/rpcpool/yellowstone-grpc
- **Richat**: https://github.com/lamports-dev/richat
Yellowstone is the default plugin of `init.yml`. A node that ran Richat gets `richat.service` stopped and disabled when it is initialised with Yellowstone, so the two never share port 10000.
## Usage
```bash
# Deploy a new gRPC Geyser node
ansible-playbook -i inventory mainnet-rpc/init.yml \
-e '{"rpc_type":"Geyser gRPC","agave_version":"4.3.2","snapshot_url":"https://..."}'
# Build/update the Richat plugin, on a node whose agave is older than 4.3 (see Geyser Plugin Sources)
ansible-playbook -i inventory mainnet-rpc/geyser_richat_build.yml \
-e '{"richat_version":"richat-v8.1.0"}'
```
No `versions.yml` required — all variables can be passed via `extra_vars`.
## Interactive Deployment Flow
See `AGENT.md` for the full step-by-step flow and `examples/inventory.yml` for output format.
### Required Variables
| Variable | Prompt | Validation |
|---|---|---|
| `server_ip` | "Target server IP?" | Valid IPv4 |
| `region` | "Server region?" | String |
| `rpc_type` | "Geyser gRPC or Index RPC + gRPC?" | `Geyser gRPC`, `Index RPC + gRPC` |
| `validator_type` | "Underlying client?" | `agave`, `jito`, `allnodes-jito`, `firedancer-agave` |
| `agave_version`, `jito_version` or `allnodes_jito_version` (the one of the `validator_type`) | "Solana version? (default: 4.3.2)" | Semver without a leading `v`; `4.3.2-jito` for `jito`, `4.3.2-allnodes` for `allnodes-jito` |
| `identity_account` | "Node identity pubkey?" | Base58 pubkey |
| `snapshot_url` | "Snapshot URL? (auto for ERPC)" | URL (cannot be empty for init) |
### Plugin Selection (choose ONE)
| Plugin | Version Variable | Source | Output |
|---|---|---|---|
| Yellowstone gRPC (default) | `geyser_version` (optional) | github.com/rpcpool/yellowstone-grpc | `libyellowstone_grpc_geyser.so` |
| Richat (`geyser_plugin: richat`) | `richat_version` | github.com/lamports-dev/richat | `librichat_plugin_agave.so` |
Both are built from source (no pre-built binaries). Build time: ~15-30 min.
**Yellowstone is the default: leave `geyser_plugin` out of the inventory.** Richat needs `geyser_plugin: richat`, and richat has no release for agave 4.3 or later yet: `init.yml` stops, before it changes anything, on a node set to run such an agave.
### Conditionally Required Variables
| Variable | When Required |
|---|---|
| `jito_version` | `jito` type, in place of `agave_version` |
| `allnodes_jito_version` | `allnodes-jito` type, in place of `agave_version` (the RPC sections of `versions.yml` hold no pin for it) |
| `firedancer_version` | firedancer types |
| `shred_receiver_address` | jito/allnodes-jito (auto by region) |
| `block_engine_url` | jito/allnodes-jito (auto by region) |
### Optional Variables
| Variable | Default | When Required |
|---|---|---|
| `ssh_user` | `solv` | Always |
| `port_grpc` | `10000` | Always |
| `port_rpc` | `8899` (ERPC: `7211`) | Always |
| `limit_ledger_size` | `100000000` | Always |
| `dynamic_port_range` | `8000-8025` | Always |
| `allowed_ssh_ips` | — | Strongly recommended (UFW) |
| `allowed_ips` | — | Optional (UFW) |
### Optional: Reference RPC
| Variable | Description | Default |
|---|---|---|
| `reference_rpc_url` | Reference RPC endpoint for slot sync comparison (e.g., ERPC) | — |
ERPC API keys are free at https://erpc.global — enables full slot sync monitoring during deployment and updates.
### Pre-flight: Fresh Server Setup
```bash
ansible-playbook -i inventory.yml cmn/add_solv.yml \
-e '{"ansible_user":"ubuntu"}' --become
```
### Deployment Command
All paths relative to skill's `ansible/` directory:
```bash
cd /path/to/slv-grpc-geyser/ansible/
ansible-playbook -i inventory.yml mainnet-rpc/init.yml \
-e '{"rpc_type":"Geyser gRPC","agave_version":"<version>"}'
```
Pass `jito_version` (e.g. `4.3.2-jito`) or `allnodes_jito_version` (e.g. `4.3.2-allnodes`) in place of `agave_version` for a `jito` or `allnodes-jito` node. `solana_version` is not read by `init.yml`.
Files in this skill
- AGENT.md
- README.md
- SKILL.md
- ansible/cmn/build_agave.yml
- ansible/cmn/build_jito.yml
- ansible/cmn/build_solana.yml
- ansible/cmn/copy_restart_sh.yml
- ansible/cmn/disable_pwd_login.yml
- ansible/cmn/disable_swap.yml
- ansible/cmn/fix_permissions.yml
- ansible/cmn/install_package.yml
- ansible/cmn/install_rust.yml
- ansible/cmn/mount_disks.yml
- ansible/cmn/optimize_system.yml
- ansible/cmn/restart_solv.yml
- ansible/cmn/setup_logrotate.yml
- ansible/cmn/setup_node_exporter.yml
- ansible/cmn/setup_norestart.yml
- ansible/cmn/setup_unstaked_identity.yml
- ansible/cmn/start_firedancer.yml
Attribution
Related skills
View all in devops →Comments
Loading comments…
Newsletter
Get the weekly list of safe new skills, and the ones we pulled.