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,并指向上面打印的端点。