SLV Install - Redis
SLV Install - Redis
為什麼選擇 Redis?
Redis 是一個久經考驗的記憶體資料儲存,將延遲保持在個位數毫秒範圍內,非常適合快取熱資料和協調實時工作負載。將
slv install 與 Redis 配合使用意味著您可以用一條命令在每個節點上啟動一致的、生產級的例項。亮點
- Redis:https://redis.io/
- 提供內建的複製、持久化和叢集選項,讓您無需重新設計架構即可擴充套件。
- 提供極快的響應時間,保護您的 Solana 服務免受不必要的瓶頸。
執行安裝程式
透過指定要執行服務的主機來觸發 Redis 部署:
bash
$ slv install -i 1.1.1.1,
🚀 Installing software components...
? Select Software Component to Install (Redis)
❯ Redis
TiDB (MySQL Cluster)
Grafana
Prometheus
Node Exporter
Kafka Cluster$ slv install -i 1.1.1.1,
🚀 Installing software components...
? Select Software Component to Install (Redis)
❯ Redis
TiDB (MySQL Cluster)
Grafana
Prometheus
Node Exporter
Kafka Cluster注意:請將1.1.1.1替換為您自己伺服器的 IP 地址。
檢視詳細資訊
slv 在執行 Ansible 之前會列印確切的 Playbook 和清單資訊,以便您驗證目標並在需要時取消。bash
🚀 Installing software components...
? Select Software Component to Install (Redis) › Redis
✅ You selected: Redis
📋 Installation Details:
Software: Redis
Inventory: 1.1.1.1,
Playbook: /Users/fumi/.slv/template/0.9.800/ansible/cmn/software/install-redis.yml
? Do you want to proceed with the installation? (y/N) ›🚀 Installing software components...
? Select Software Component to Install (Redis) › Redis
✅ You selected: Redis
📋 Installation Details:
Software: Redis
Inventory: 1.1.1.1,
Playbook: /Users/fumi/.slv/template/0.9.800/ansible/cmn/software/install-redis.yml
? Do you want to proceed with the installation? (y/N) ›觀察 Ansible 執行
確認後,
slv 啟動 Ansible 在每個主機上配置服務及其依賴項。bash
🚀 Running ansible: ansible-playbook -i 1.1.1.1, -u solv /Users/fumi/.slv/template/0.9.800/ansible/cmn/software/install-redis.yml
PLAY [Install and configure Redis] *******************************************************************
TASK [Gathering Facts] *******************************************************************************🚀 Running ansible: ansible-playbook -i 1.1.1.1, -u solv /Users/fumi/.slv/template/0.9.800/ansible/cmn/software/install-redis.yml
PLAY [Install and configure Redis] *******************************************************************
TASK [Gathering Facts] *******************************************************************************驗證端點
成功執行後會顯示摘要,展示 Redis 例項的可訪問地址。在您的應用或監控檢查中使用此端點。
bash
✅ Installation completed successfully!
🌐 Access Information:
Redis Endpoint: redis://<IP>:6379✅ Installation completed successfully!
🌐 Access Information:
Redis Endpoint: redis://<IP>:6379儀表板
Redis 不附帶原生儀表板。如需可選的視覺化管理,請在您的工作站上安裝 Redis Insight,並指向上面列印的端點。