Solana मेननेट RPC - क्विकस्टार्ट
परिचय
तैनात करने के लिए Solana मुख्य RPC, आप उपयोग करेंगे SLV कमांड लाइन टूल।
यह त्वरित स्टार्ट गाइड बताता है कि कैसे उपयोग करने के लिए SLV एक कमांड लाइन उपकरण को तैनात करने के लिए Solana मुख्य RPC जेज़र येलोस्टोन प्लगइन के साथ।
आपको होना चाहिए Ubuntu 24.04 LTS अपने सर्वर पर स्थापित किया गया।
एक Baremetal सर्वर तैयार करना
जबकि यह संभव है कि यह संभव हो सके Solana VPS या वर्चुअल मशीन (VM) पर क्लाइंट, इष्टतम प्रदर्शन और स्थिर संचालन को प्राप्त करना चुनौतीपूर्ण है। RPC नोड्स और सत्यापनकर्ता, विशेष रूप से उच्च लोड की स्थिति के तहत काम करते हैं, जिससे उचित सर्वर वातावरण स्थापित करना महत्वपूर्ण हो जाता है।
Solana आधिकारिक तौर पर नंगे धातु सर्वर का उपयोग करने की सिफारिश करता है।
RPC नोड्स कार्यभार के आधार पर बहुत भिन्न होते हैं।
मानक RPC (SendTx) Geyser gRPC(information) और इंडेक्स RPC (पूर्ण अनुक्रमण) काफी भिन्न होते हैं, खासकर स्मृति और भंडारण आवश्यकताओं में।
RPC हार्डवेयर की आवश्यकताएं (गाइडलाइन)
| घटक | RPC नोड | सूचकांक RPC (reference) |
|---|---|---|
| CPU | 24 कोर+ @ 2.8GHz+ / AMD Gen3+ / Intel ice Lake+ / SHA एक्सटेंशन / AVX2 | 32 कोर + (उच्च घड़ी की सिफारिश) |
| रैम | 512GB+ | 1152GB+ |
| डिस्क | NVMe Gen3 x4 या बेहतर / लेखा / लेजर / स्नैपशॉट अलगाव की सिफारिश की | बड़ी क्षमता + उच्च टीबीडब्ल्यू / अलगाव की सिफारिश की |
| नेटवर्क | 1 जीबीपीएस या उससे अधिक | 1 जीबीपीएस या उच्चतर (अधिक बैंडविड्थ बेहतर है) |
| जीपीयू | आवश्यकता नहीं | आवश्यकता नहीं |
ध्यान दें: घड़ी की गति और प्रभावी थ्रूपुट को कोर गिनती की तुलना में अधिक महत्वपूर्ण माना जाता है। सूचकांक RPC स्मृति और भंडारण द्वारा बोतलबंद किया जा सकता है, इसलिए पर्याप्त क्षमता और उच्च आईओपी सुनिश्चित करें।
यदि अनुक्रमण की आवश्यकता होती है, तो हम स्थिर संचालन के लिए 768GB या उससे अधिक की सिफारिश करते हैं।
SLV मेटल आपके बजट में उच्चतम प्रदर्शन देने के लिए डिज़ाइन किए गए नंगे धातु सर्वर प्रदान करता है।
जब निष्पादन
slv metal list आप कर सकते हैं पता लगाना RPC विशेष रूप से विकल्प के लिए अनुरूप Solana RPC नोड्सbash
slv metal list
? 🛡️ Select SLV BareMetal Type (APP)
📦 APP - For Trade Bot,Testnet Validator, DApp and More!
🚀 MV - For Solana Mainnet Validator
❯ 🛡️⚡️ RPC - For Solana RPC Nodeslv metal list
? 🛡️ Select SLV BareMetal Type (APP)
📦 APP - For Trade Bot,Testnet Validator, DApp and More!
🚀 MV - For Solana Mainnet Validator
❯ 🛡️⚡️ RPC - For Solana RPC Nodeयदि आपने अभी तक अपने नंगे धातु सर्वर को स्थापित नहीं किया है, तो कृपया अपना अनुसरण करें Baremetal सर्वर सेटअप गाइड.
इसके अतिरिक्त, निम्नलिखित संसाधनों का उल्लेख करें:
तैनाती Solana RPC नोड
पहले, शुरू करना Solana RPC विन्यास।
अपने वांछित के रूप में नेटवर्क का चयन करें Solana नेटवर्क
bash
slv rpc init
? Select Solana Network (mainnet)
testnet
devnet
❯ mainnetslv rpc init
? Select Solana Network (mainnet)
testnet
devnet
❯ mainnetइसके बाद, पुष्टि करें कि क्या आपके पास है? Solana नोड संगत सर्वर।
bash
? 🛡️ Do you have a Solana Node Compatible Server? (yes)
❯ yes
no? 🛡️ Do you have a Solana Node Compatible Server? (yes)
❯ yes
noयह ट्यूटोरियल आपको चुनने का फैसला करता है
yes.सर्वर उपयोगकर्ता सेट करें और IP पता
सर्वर उपयोगकर्ता सेट करें, IP पता, और आरएसए कुंजी पथ।
bash
? What's the user for the server? (root) › root
? Enter the server IP address › x.x.x.x
? What's the path to your RSA key? (~/.ssh/id_rsa)? What's the user for the server? (root) › root
? Enter the server IP address › x.x.x.x
? What's the path to your RSA key? (~/.ssh/id_rsa)स्वचालित क्षेत्र जांच
इसके बाद, सिस्टम आपके कॉन्फ़िगर किए गए नोड से प्रत्येक ब्लॉक इंजन को स्वचालित रूप से निकटतम क्षेत्र का पता लगाने के लिए पिंग करेगा। वास्तविक पिंग मूल्यों को मापने के द्वारा, आप इष्टतम क्षेत्र का चयन कर सकते हैं।
bash
🔍 Checking SSH connection...
✔︎ SSH connection succeeded
📍 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)...
✅ Singapore: 0.291 ms
✅ London: 154.071 ms
✅ Dublin: 167.267 ms
✅ Frankfurt: 149.081 ms
✅ Amsterdam: 154.501 ms
✅ New York: 228.624 ms
✅ Salt Lake City: 278.016 ms
✅ Tokyo: 376.816 ms
🎯 Nearest region: 🇸🇬 Singapore
Latency: 0.291 ms
Block Engine: https://singapore.mainnet.block-engine.jito.wtf
Shred Receiver: 202.8.11.224:1002
Relayer: http://singapore.mainnet.relayer.jito.wtf:8100
NTP Server: ntp.singapore.jito.wtf🔍 Checking SSH connection...
✔︎ SSH connection succeeded
📍 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)...
✅ Singapore: 0.291 ms
✅ London: 154.071 ms
✅ Dublin: 167.267 ms
✅ Frankfurt: 149.081 ms
✅ Amsterdam: 154.501 ms
✅ New York: 228.624 ms
✅ Salt Lake City: 278.016 ms
✅ Tokyo: 376.816 ms
🎯 Nearest region: 🇸🇬 Singapore
Latency: 0.291 ms
Block Engine: https://singapore.mainnet.block-engine.jito.wtf
Shred Receiver: 202.8.11.224:1002
Relayer: http://singapore.mainnet.relayer.jito.wtf:8100
NTP Server: ntp.singapore.jito.wtfपहचान कीpair उत्पन्न
यदि आपके पास कोई पहचान की मरम्मत नहीं है, तो आप एक नया उत्पन्न कर सकते हैं।
bash
? Do you want to create a new identity key now? (Y/n) › Yes
🔑 Generating new identity key...
✨ Generated Key: p3tnYqjciWz8DnjApUVDPWTEhdzdX6qvqTaRCrckSLV
✨ Moved Key to: ~/.slv/keys/p3tnYqjciWz8DnjApUVDPWTEhdzdX6qvqTaRCrckSLV.json? Do you want to create a new identity key now? (Y/n) › Yes
🔑 Generating new identity key...
✨ Generated Key: p3tnYqjciWz8DnjApUVDPWTEhdzdX6qvqTaRCrckSLV
✨ Moved Key to: ~/.slv/keys/p3tnYqjciWz8DnjApUVDPWTEhdzdX6qvqTaRCrckSLV.jsonचयन Solana CLI
चुनें Solana CLI संस्करण।
bash
? Select Solana CLI (jito)
agave
❯ jito
firedancer-agave
firedancer-jito? Select Solana CLI (jito)
agave
❯ jito
firedancer-agave
firedancer-jitoचयन RPC प्रकार
चुनें RPC प्रकार।
bash
? Select an RPC type
❯ Geyser gRPC
Index RPC
SendTx RPC
Index RPC + gRPC? Select an RPC type
❯ Geyser gRPC
Index RPC
SendTx RPC
Index RPC + gRPCइस ट्यूटोरियल में हम चयन करते हैं
Geyser gRPC.कॉन्फ़िगरेशन को पुष्टि करें
अंत में, विन्यास की पुष्टि करें।
bash
✔︎ Success
✔ Inventory updated to ~/.slv/inventory.mainnet.rpcs.yml
✔ Successfully created solv user on p3tnYqjciWz8DnjApUVDPWTEhdzdX6qvqTaRCrckSLV
✔︎ mainnet_rpcs inventory file has been saved to ~/.slv/inventory.mainnet.rpcs.yml
Now you can deploy with:
$ slv rpc deploy -n mainnet -p p3tnYqjciWz8DnjApUVDPWTEhdzdX6qvqTaRCrckSLV✔︎ Success
✔ Inventory updated to ~/.slv/inventory.mainnet.rpcs.yml
✔ Successfully created solv user on p3tnYqjciWz8DnjApUVDPWTEhdzdX6qvqTaRCrckSLV
✔︎ mainnet_rpcs inventory file has been saved to ~/.slv/inventory.mainnet.rpcs.yml
Now you can deploy with:
$ slv rpc deploy -n mainnet -p p3tnYqjciWz8DnjApUVDPWTEhdzdX6qvqTaRCrckSLVउसके बाद,
solv उपयोगकर्ता नंगे धातु सर्वर पर बनाया गया है, और
The the most important, the most important, the most important, the most important, the most important, the most important, the most important, the most important, the most important, the most important, the most important, the most important, the most important, the sor the sorry, the sorry, the sorry, the sorry, the sorry, the sorry, the sorry, the sorry, the sorry, the sorry, the sorry, the sor Solana RPC विन्यास को बचाया जाता है ~/.slv/inventory.mainnet.rpcs.yml.तैनाती Solana RPC नोड
एक बार जब आप विन्यास की पुष्टि करते हैं, तो तैनाती शुरू हो जाएगी।
bash
slv rpc deploy -n mainnet -p p3tnYqjciWz8DnjApUVDPWTEhdzdX6qvqTaRCrckSLVslv rpc deploy -n mainnet -p p3tnYqjciWz8DnjApUVDPWTEhdzdX6qvqTaRCrckSLVbash
Your mainnet RPC Nodes Settings:
┌──────────────┬─────────────────────────────────────────────┐
│ Identity Key │ p3tnYqjciWz8DnjApUVDPWTEhdzdX6qvqTaRCrckSLV │
├──────────────┼─────────────────────────────────────────────┤
│ Name │ p3tnYqjciWz8DnjApUVDPWTEhdzdX6qvqTaRCrckSLV │
├──────────────┼─────────────────────────────────────────────┤
│ IP │ x.x.x.x. │
├──────────────┼─────────────────────────────────────────────┤
│ Region │ singapore │
├──────────────┼─────────────────────────────────────────────┤
│ RPC Type │ Geyser gRPC │
├──────────────┼─────────────────────────────────────────────┤
│ Version │ 3.0.7-jito │
└──────────────┴─────────────────────────────────────────────┘
.
.
.
Successfully Deployed RPC on mainnet
⚡️⚡️⚡️ Enhanced Solana RPC Connection API Key ⚡️⚡️⚡️
We're excited to offer a free API key exclusively for the Validators DAO community 🎉
It's our way of supporting the community and empowering you with fast, reliable connections.
To get your Free API key, simply join us through the link below:
Validators DAO: `https://discord.gg/X4BgkBHavp`
Unlock fast connections and elevate your experience with your very own API key 🚀
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 RPC Nodes Settings:
┌──────────────┬─────────────────────────────────────────────┐
│ Identity Key │ p3tnYqjciWz8DnjApUVDPWTEhdzdX6qvqTaRCrckSLV │
├──────────────┼─────────────────────────────────────────────┤
│ Name │ p3tnYqjciWz8DnjApUVDPWTEhdzdX6qvqTaRCrckSLV │
├──────────────┼─────────────────────────────────────────────┤
│ IP │ x.x.x.x. │
├──────────────┼─────────────────────────────────────────────┤
│ Region │ singapore │
├──────────────┼─────────────────────────────────────────────┤
│ RPC Type │ Geyser gRPC │
├──────────────┼─────────────────────────────────────────────┤
│ Version │ 3.0.7-jito │
└──────────────┴─────────────────────────────────────────────┘
.
.
.
Successfully Deployed RPC on mainnet
⚡️⚡️⚡️ Enhanced Solana RPC Connection API Key ⚡️⚡️⚡️
We're excited to offer a free API key exclusively for the Validators DAO community 🎉
It's our way of supporting the community and empowering you with fast, reliable connections.
To get your Free API key, simply join us through the link below:
Validators DAO: `https://discord.gg/X4BgkBHavp`
Unlock fast connections and elevate your experience with your very own API key 🚀
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 mयह किया गया है! Solana RPC अब नोड तैनात है।
यह कुछ समय के साथ सिंक्रनाइज़ करने के लिए ले जाएगा Solana नेटवर्क
डीबगिंग और निगरानी
तैनाती के बाद, आप स्थिति की जांच कर सकते हैं Solana RPC निम्नलिखित आदेशों के साथ नोड:
bash
ssh solv@<your-server-ip>
solv mssh solv@<your-server-ip>
solv msolv के लिए एक आलिया है agave-validator -l /mnt/ledger.
इस सेटिंग में जोड़ा गया है ~/.profile दौरान RPC नोड तैनाती।SLV RPC कमांड
bash
Usage: slv rpc
Version: 0.9.700
Description:
🛠️ Manage Solana RPC Nodes 🛠️
Options:
-h, --help - Show this help.
Commands:
init - 🚀 Initialize a new RPC node configuration
deploy - 📦 Deploy RPC Nodes
list - 📋 List RPC Nodes
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 RPC Startup Config
update:geyser - ⚡️ Update Geyser Version
start - 🟢 Start RPC
stop - 🔴 Stop RPC
restart - ♻️ Restart RPC
cleanup - 🧹 Cleanup RPC - Remove Ledger/Snapshot Unnecessary Files
get:snapshot - 💾 Download Snapshot with aria2c
update:allowed-ips - 🛡️ Update allowed IPs for mainnet RPC nodesUsage: slv rpc
Version: 0.9.700
Description:
🛠️ Manage Solana RPC Nodes 🛠️
Options:
-h, --help - Show this help.
Commands:
init - 🚀 Initialize a new RPC node configuration
deploy - 📦 Deploy RPC Nodes
list - 📋 List RPC Nodes
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 RPC Startup Config
update:geyser - ⚡️ Update Geyser Version
start - 🟢 Start RPC
stop - 🔴 Stop RPC
restart - ♻️ Restart RPC
cleanup - 🧹 Cleanup RPC - Remove Ledger/Snapshot Unnecessary Files
get:snapshot - 💾 Download Snapshot with aria2c
update:allowed-ips - 🛡️ Update allowed IPs for mainnet RPC nodes