Solana Mainnet Validator - Schnellstart
Einleitung
Zur Bereitstellung eines Solana-Mainnet-Validators verwenden Sie das SLV-Befehlszeilentool.
Dieser Schnellstart-Leitfaden erklärt, wie Sie einen Mainnet-Validator als Hot Spare starten und bereitstellen.
Auf Ihrem Server muss Ubuntu 24.04 LTS frisch installiert sein.
Vorbereitung eines Bare-Metal-Servers
Ein Solana-Knoten lässt sich zwar auf einem VPS oder auf virtuellen Maschinen (VM) betreiben, doch optimale Leistung und einen stabilen Betrieb zu erreichen, ist schwierig. Solana empfiehlt offiziell den Einsatz von Bare-Metal-Servern.
Mainnet-Validatoren sollten so dimensioniert sein, dass sie auch bei Netzwerküberlastung stabil bleiben.
Im Folgenden finden Sie Richtwerte auf Grundlage der offiziellen Dokumentation von Solana / Agave / Firedancer.
Im Folgenden finden Sie Richtwerte auf Grundlage der offiziellen Dokumentation von Solana / Agave / Firedancer.
Agave Validator (offizielle Anforderungen und Empfehlungen)
SOL-Anforderungen
- An jeder Epochengrenze muss der Vote-Account mindestens den rent-exempt-Mindestbetrag plus ein Validator Admission Ticket enthalten (0,8 SOL bei einer Slot-Zeit-Einstellung von 200 ms)
- Das Validator Admission Ticket wird im ersten Block jeder Epoche vom Vote-Account abgebucht
- Den rent-exempt-Mindestbetrag prüfen Sie mit
solana rent 3762(3762 ist die Größe des Vote-Accounts in Byte) - Der Identity-Schlüssel zahlt keine Gebühr mehr pro Vote — unter Alpenglow werden Votes nicht mehr als Transaktionen gesendet
Hardware-Anforderungen (Richtwerte)
| Komponente | Validator | RPC-Knoten (Referenz) |
|---|---|---|
| CPU | 2,8 GHz+ / AMD Gen3+ / Intel Ice Lake+ / SHA-Erweiterungen / AVX2 | 16 Kerne / 32 Threads+ |
| RAM | 256 GB+ | 512 GB+ |
| Datenträger | NVMe Gen3 x4 oder besser / Trennung von Accounts, Ledger und Snapshots empfohlen | Größere Kapazität empfohlen |
| GPU | Nicht erforderlich | Nicht erforderlich |
Hinweis:
Taktfrequenz und effektiver Durchsatz gelten als wichtiger als die Anzahl der Kerne.
Firedancer (Frankendancer)
Firedancer (Frankendancer) ist derzeit von Agave abhängig,
daher setzt es mindestens die von Agave empfohlene Konfiguration oder eine höhere voraus.
daher setzt es mindestens die von Agave empfohlene Konfiguration oder eine höhere voraus.
Minimum
- 24-Core-CPU @ >2,8 GHz
- 256 GB RAM
- 2 TB NVMe (hohe TBW)
Empfohlen
- 32-Core-CPU @ >3 GHz (AVX512 unterstützt)
- 512 GB RAM (ECC)
- Trennung von Accounts / Ledger
- Netzwerkbandbreite von 1 Gbps oder höher
Für ein ausgewogenes Preis-Leistungs-Verhältnis ist Agave mit einer 24-Core-CPU und 384 GB RAM ein praxistauglicher Richtwert.
Wenn Sie den Befehl
slv v init ausführen, werden Sie gefragt, ob Ihr Bare-Metal-Server bereits eingerichtet ist:bash
➜ slv v init
? Select Solana Network (testnet) › mainnet
? 🛡️ Do you have a Solana Node Compatible Server? (no)
❯ yes
no➜ slv v init
? Select Solana Network (testnet) › mainnet
? 🛡️ Do you have a Solana Node Compatible Server? (no)
❯ yes
noIn diesem Tutorial wird davon ausgegangen, dass Sie
yes auswählen.Wenn Sie Ihren Bare-Metal-Server noch nicht vorbereitet haben, lesen Sie bitte den Leitfaden zur Einrichtung des Bare-Metal-Servers.
Außerdem können die folgenden Ressourcen hilfreich sein:
Solana Mainnet Firedancer Jito Validator bereitstellen
Neue SLV-Bereitstellungen verwenden immer
unstaked-keypair.json als Identity-Schlüssel.
Dies ist eine bewährte Vorgehensweise, um Double Voting und andere Probleme zu vermeiden.Verwenden Sie daher nach der Bereitstellung
slv v set:identity, um den autorisierten Identity-Schlüssel festzulegen.Im Betrieb von Mainnet-Validatoren verwenden Sie in den meisten Fällen
slv v switch, um den Identity-Schlüssel zu wechseln.
Für eine Migration ohne Ausfallzeit lesen Sie bitte diese Anleitung.Solana-Netzwerk auswählen
Wählen Sie das Solana-Netzwerk aus, das Sie bereitstellen möchten.
bash
slv v init
? Select Solana Network (mainnet)
testnet
❯ mainnetslv v init
? Select Solana Network (mainnet)
testnet
❯ mainnetStandard-Benutzernamen des Servers eingeben
In den meisten Fällen lautet der Standard-Benutzername
ubuntu oder root.bash
? What's the user for the server? (ubuntu) › ubuntu? What's the user for the server? (ubuntu) › ubuntuIP-Adresse des Servers eingeben
Geben Sie die IP-Adresse des Servers ein.
bash
? What's the IP address of the server? ›? What's the IP address of the server? ›RSA-Schlüssel für SSH festlegen
※ Bitte legen Sie den Pfad zu Ihrem RSA-Schlüssel fest. Der Standardpfad ist
~/.ssh/id_rsa.bash
? What's the path to your RSA key? (~/.ssh/id_rsa) › ~/.ssh/id_rsa
🔍 Checking SSH connection...
✔︎ SSH connection succeeded? What's the path to your RSA key? (~/.ssh/id_rsa) › ~/.ssh/id_rsa
🔍 Checking SSH connection...
✔︎ SSH connection succeededAnschließend prüft SLV die Verbindung zum Server. Wenn die Verbindung
erfolgreich ist, wird der nächste Schritt angezeigt.
Solana-Validator-Typ auswählen
Wählen Sie den Typ des Solana-Validators aus.
bash
? Select Validator Type (firedancer-jito)
agave
jito
jito-bam
firedancer-agave
❯ firedancer-jito? Select Validator Type (firedancer-jito)
agave
jito
jito-bam
firedancer-agave
❯ firedancer-jitoProvisionssatz festlegen
Legen Sie den Provisionssatz für Ihren Validator fest.
※ 1000 entspricht 10 %.
bash
? Enter Commission BPS (Max 1000 = 10%) (1000)? Enter Commission BPS (Max 1000 = 10%) (1000)Identity-Schlüssel des Solana-Validators generieren oder festlegen
Sie können einen neuen Identity-Schlüssel generieren oder einen vorhandenen Identity-Schlüssel festlegen.
Dieses Beispiel zeigt, wie Sie einen vorhandenen Identity-Schlüssel mit dem Namen "epics-sub" festlegen.
bash
? Do you want to create a new identity key now? (Y/n) › No
? Please Enter Your Identity Public Key › KTMkUG8WCw9FdH44jLMBpc1teGafnYL6SgP4fHHbsNM
? Enter Inventory Name (KTMkUG8WCw9FdH44jLMBpc1teGafnYL6SgP4fHHbsNM) › epics-sub
⚠️ Please place your identity key in
~/.slv/keys/KTMkUG8WCw9FdH44jLMBpc1teGafnYL6SgP4fHHbsNM.json
.
.
✔︎ Success
✔ Inventory updated to ~/.slv/inventory.yml
✔ Successfully created solv user on x.x.x.x? Do you want to create a new identity key now? (Y/n) › No
? Please Enter Your Identity Public Key › KTMkUG8WCw9FdH44jLMBpc1teGafnYL6SgP4fHHbsNM
? Enter Inventory Name (KTMkUG8WCw9FdH44jLMBpc1teGafnYL6SgP4fHHbsNM) › epics-sub
⚠️ Please place your identity key in
~/.slv/keys/KTMkUG8WCw9FdH44jLMBpc1teGafnYL6SgP4fHHbsNM.json
.
.
✔︎ Success
✔ Inventory updated to ~/.slv/inventory.yml
✔ Successfully created solv user on x.x.x.xBitte legen Sie Ihren Identity-Schlüssel unter
~/.slv/keys/<your-pubkey>.json ab.Automatische Regionserkennung
Als Nächstes pingt das System von Ihrem konfigurierten Knoten aus jede Block Engine an, um automatisch die nächstgelegene Region zu ermitteln. Anhand der tatsächlich gemessenen Ping-Werte können Sie die optimale Region auswählen.
bash
✔ Inventory updated to ~/.slv/inventory.mainnet.validators.yml
📍 Measuring latencies from x.x.x.x to mainnet regions...
Pinging Amsterdam (amsterdam.mainnet.block-engine.jito.wtf)...
Pinging Dublin (dublin.mainnet.block-engine.jito.wtf)...
Pinging Frankfurt (frankfurt.mainnet.block-engine.jito.wtf)...
Pinging London (london.mainnet.block-engine.jito.wtf)...
Pinging New York (ny.mainnet.block-engine.jito.wtf)...
Pinging Salt Lake City (slc.mainnet.block-engine.jito.wtf)...
Pinging Singapore (singapore.mainnet.block-engine.jito.wtf)...
Pinging Tokyo (tokyo.mainnet.block-engine.jito.wtf)...
✅ London: 8.801 ms
✅ Dublin: 12.946 ms
✅ Frankfurt: 5.888 ms
✅ Amsterdam: 0.169 ms
✅ New York: 74.321 ms
✅ Salt Lake City: 115.577 ms
✅ Singapore: 154.200 ms
✅ Tokyo: 229.989 ms
🎯 Nearest region: 🇳🇱 Amsterdam
Latency: 0.169 ms
Block Engine: https://amsterdam.mainnet.block-engine.jito.wtf
Shred Receiver: 74.118.140.240:1002
Relayer: http://amsterdam.mainnet.relayer.jito.wtf:8100
NTP Server: ntp.amsterdam.jito.wtf✔ Inventory updated to ~/.slv/inventory.mainnet.validators.yml
📍 Measuring latencies from x.x.x.x to mainnet regions...
Pinging Amsterdam (amsterdam.mainnet.block-engine.jito.wtf)...
Pinging Dublin (dublin.mainnet.block-engine.jito.wtf)...
Pinging Frankfurt (frankfurt.mainnet.block-engine.jito.wtf)...
Pinging London (london.mainnet.block-engine.jito.wtf)...
Pinging New York (ny.mainnet.block-engine.jito.wtf)...
Pinging Salt Lake City (slc.mainnet.block-engine.jito.wtf)...
Pinging Singapore (singapore.mainnet.block-engine.jito.wtf)...
Pinging Tokyo (tokyo.mainnet.block-engine.jito.wtf)...
✅ London: 8.801 ms
✅ Dublin: 12.946 ms
✅ Frankfurt: 5.888 ms
✅ Amsterdam: 0.169 ms
✅ New York: 74.321 ms
✅ Salt Lake City: 115.577 ms
✅ Singapore: 154.200 ms
✅ Tokyo: 229.989 ms
🎯 Nearest region: 🇳🇱 Amsterdam
Latency: 0.169 ms
Block Engine: https://amsterdam.mainnet.block-engine.jito.wtf
Shred Receiver: 74.118.140.240:1002
Relayer: http://amsterdam.mainnet.relayer.jito.wtf:8100
NTP Server: ntp.amsterdam.jito.wtfVote-Account-Schlüssel des Solana-Validators generieren oder festlegen
Sie können einen neuen Vote-Account-Schlüssel generieren oder einen vorhandenen Vote-Account-Schlüssel festlegen.
Dieses Beispiel zeigt, wie Sie einen vorhandenen Vote-Account-Schlüssel festlegen.
bash
? Do you want to create a new vote account key now? (Y/n) › No
? Please Enter Your Vote Account Public Key > <your-vote-account>? Do you want to create a new vote account key now? (Y/n) › No
? Please Enter Your Vote Account Public Key > <your-vote-account>Die Informationen zum Validator-Knoten werden in
~/.slv/inventory.mainnet.validators.yml gespeichert.bash
✔︎ Success
✔ Inventory updated to ~/.slv/inventory.mainnet.validators.yml
✔ Successfully created solv user on epics-sub
✔︎ Validator Mainnet Config Saved To ~/.slv/inventory.mainnet.validators.yml
Now you can deploy with:
$ slv v deploy -n mainnet -p epics-sub✔︎ Success
✔ Inventory updated to ~/.slv/inventory.mainnet.validators.yml
✔ Successfully created solv user on epics-sub
✔︎ Validator Mainnet Config Saved To ~/.slv/inventory.mainnet.validators.yml
Now you can deploy with:
$ slv v deploy -n mainnet -p epics-subValidator bereitstellen
Sobald Sie die Konfiguration bestätigen, beginnt die Bereitstellung.
bash
slv v deploy -n mainnet -p epics-subslv v deploy -n mainnet -p epics-subbash
Your Mainnet Validators Settings:
┌────────────────┬──────────────────────────────────────────────┐
│ Identity Key │ KTMkUG8WCw9FdH44jLMBpc1teGafnYL6SgP4fHHbsNM │
├────────────────┼──────────────────────────────────────────────┤
│ Vote Key │ EpicsoqLdDP8qRn3wQRKTSKAXbjK9dUgFfNPRQS77MQD │
├────────────────┼──────────────────────────────────────────────┤
│ Authority Key │ authAccount │
├────────────────┼──────────────────────────────────────────────┤
│ IP │ x.x.x.x │
├────────────────┼──────────────────────────────────────────────┤
│ Validator Type │ firedancer-jito │
├────────────────┼──────────────────────────────────────────────┤
│ Version │ 0.712.30006 │
└────────────────┴──────────────────────────────────────────────┘
? Do you want to continue? (Y/n) › Yes
.
.
.
Successfully Deployed RPC on mainnet
You can monitor your Node with the following steps:
Log in to your server with SSH:
ssh [email protected]
Then, run the following command to monitor your node:
$ solv mYour Mainnet Validators Settings:
┌────────────────┬──────────────────────────────────────────────┐
│ Identity Key │ KTMkUG8WCw9FdH44jLMBpc1teGafnYL6SgP4fHHbsNM │
├────────────────┼──────────────────────────────────────────────┤
│ Vote Key │ EpicsoqLdDP8qRn3wQRKTSKAXbjK9dUgFfNPRQS77MQD │
├────────────────┼──────────────────────────────────────────────┤
│ Authority Key │ authAccount │
├────────────────┼──────────────────────────────────────────────┤
│ IP │ x.x.x.x │
├────────────────┼──────────────────────────────────────────────┤
│ Validator Type │ firedancer-jito │
├────────────────┼──────────────────────────────────────────────┤
│ Version │ 0.712.30006 │
└────────────────┴──────────────────────────────────────────────┘
? Do you want to continue? (Y/n) › Yes
.
.
.
Successfully Deployed RPC on mainnet
You can monitor your Node with the following steps:
Log in to your server with SSH:
ssh [email protected]
Then, run the following command to monitor your node:
$ solv mFertig! Ihr Solana-Validator ist jetzt bereitgestellt. Es dauert eine Weile, bis er
mit dem Solana-Netzwerk synchronisiert ist.
Debugging & Monitoring
Nach der Bereitstellung können Sie auf dem Solana-RPC-Knoten debuggen und überwachen.
Den Status des Solana-RPC-Knotens können Sie mit den folgenden Befehlen prüfen:
bash
$ solv m$ solv msolv ist ein Alias für agave-validator -l /mnt/ledger.
Diese Einstellung wird bei der Bereitstellung des RPC-Knotens zu ~/.profile hinzugefügt.Identity-Schlüssel wechseln
Nach der Bereitstellung müssen Sie vom Unstaked-Schlüssel auf den autorisierten Identity-Schlüssel wechseln.
bash
slv v set:identity -n mainnet --pubkey epics-subslv v set:identity -n mainnet --pubkey epics-subDieser Befehl wechselt den Identity-Schlüssel auf den autorisierten Identity-Schlüssel.
※ Für eine Migration ohne Ausfallzeit lesen Sie bitte diese Anleitung.
SLV-Validator-Befehle
bash
slv validator --help
Usage: slv validator
Version: 0.9.700
Description:
🛠️ Manage Solana Validator Nodes 🛠️
Options:
-h, --help - Show this help.
Commands:
init - 🚀 Initialize a new validator configuration
deploy - 📦 Deploy Validators
list - 📋 List validators
set:identity - 🪪 Set Validator Identity
set:unstaked - 📴 Set Validator Identity to Unstaked Key
setup:firedancer - 🔥 Setup/Update Firedancer Validator
update:firedancer - 🔄 Update Firedancer Version
build:solana-cli - 🛠️ Build Solana CLI from Source
install:solana - ➡️ Install Solana CLI Binary
update:script - ⚙️ Update Validator Startup Config
update:jinja - 🧩 Update Jinja Template
start - 🟢 Start Validator
stop - 🔴 Stop Validator
restart - ♻️ Restart Validator
cleanup - 🧹 Cleanup Validator - Remove Ledger/Snapshot Unnecessary Files
get:snapshot - 💾 Download Snapshot with aria2c
gen:vote-account - 🗳️ Generate Vote Account
switch - 🔁 Switch Validator Identity - No DownTime Migrationslv validator --help
Usage: slv validator
Version: 0.9.700
Description:
🛠️ Manage Solana Validator Nodes 🛠️
Options:
-h, --help - Show this help.
Commands:
init - 🚀 Initialize a new validator configuration
deploy - 📦 Deploy Validators
list - 📋 List validators
set:identity - 🪪 Set Validator Identity
set:unstaked - 📴 Set Validator Identity to Unstaked Key
setup:firedancer - 🔥 Setup/Update Firedancer Validator
update:firedancer - 🔄 Update Firedancer Version
build:solana-cli - 🛠️ Build Solana CLI from Source
install:solana - ➡️ Install Solana CLI Binary
update:script - ⚙️ Update Validator Startup Config
update:jinja - 🧩 Update Jinja Template
start - 🟢 Start Validator
stop - 🔴 Stop Validator
restart - ♻️ Restart Validator
cleanup - 🧹 Cleanup Validator - Remove Ledger/Snapshot Unnecessary Files
get:snapshot - 💾 Download Snapshot with aria2c
gen:vote-account - 🗳️ Generate Vote Account
switch - 🔁 Switch Validator Identity - No DownTime Migration