erigon-seg-rebase

Rebase Erigon datadir step size to adjust snapshot segment granularity.

3.6k|1.5k|Updated May 27, 2019
One-click install
npx skills add https://github.com/erigontech/erigon --skill erigon-seg-rebase
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: erigon-seg-rebase
Source: https://github.com/erigontech/erigon/tree/main/.claude/skills/erigon-seg-rebase
Command: npx skills add https://github.com/erigontech/erigon --skill erigon-seg-rebase

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill rebases the step size of an Erigon datadir to adjust snapshot segment granularity.

Core Features & Use Cases

  • Datadir maintenance: Change snapshot segment granularity by rebasing to a new step size.
  • Operational safety: Includes pre-checks and clear usage patterns to minimize data risk.
  • Use Case: You need to adjust segment granularity to optimize query performance on a large datadir.

Quick Start

Run the rebase command to apply a new step size to your datadir: ./build/bin/erigon seg step-rebase --datadir=/path/to/datadir --new-step-size=<size>

Frequently Asked Questions about erigon-seg-rebase

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

FAQPage Schema
How do I rebase step sizes in an Erigon datadir?

Rebase step sizes by running the Erigon binary with the seg step-rebase command, specifying your datadir path and the new step size value. The operation adjusts snapshot segment granularity and includes safety checks before execution.

What does rebasing segment step size do for Erigon performance?

Rebasing segment step size changes snapshot segment granularity to tune query performance and storage efficiency on your datadir. Smaller step sizes increase granularity; larger ones reduce it based on your optimization needs.

Can I rebase step sizes on production Erigon datadirs?

Yes, the seg step-rebase command supports local, staging, and production environments. It performs datadir existence and binary readiness checks before executing to minimize data risk during the rebase operation.

What prerequisites do I need before rebasing an Erigon datadir?

You need an existing Erigon datadir path, the Erigon binary built and ready, and a target new-step-size value. The command verifies both the datadir and binary before proceeding with the rebase.

How do I know if the rebase operation completed successfully?

The seg step-rebase command includes post-operation verification that confirms the rebase completed. Check that your datadir now reflects the new step size and query performance meets your optimization goals.