SLV Install - Kafka
SLV Install - Kafka

為什麼選擇 Kafka 叢集?
Apache Kafka 提供持久、高吞吐量的事件流式傳輸,驅動實時資料管道、分散式服務和分析。使用
slv install 部署 Kafka 叢集可以提供一致的 Broker 配置、主題預設值和可觀測性鉤子,無需維護定製指令碼。亮點
- Kafka:https://kafka.apache.org/
- 每秒處理數百萬條訊息,具有強大的永續性保證。
- 捆綁 AKHQ UI,用於快速主題檢查、消費者延遲監控和除錯。
執行安裝程式
將
slv install 指向將執行 Kafka Broker 的主機,並選擇 Kafka Cluster 選項。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 地址。
檢視詳細資訊
在繼續之前,請仔細檢查清單和 Playbook 路徑。如果您需要將範圍限制到清單檔案中的特定主機,請傳遞
--limit。bash
🚀 Installing software components...
? Select Software Component to Install (Redis) › Kafka Cluster
✅ You selected: Kafka Cluster
📋 Installation Details:
Software: Kafka Cluster
Inventory: 1.1.1.1,
Playbook: /Users/fumi/.slv/template/0.9.800/ansible/cmn/software/install-kafka.yml
? Do you want to proceed with the installation? (y/N) ›🚀 Installing software components...
? Select Software Component to Install (Redis) › Kafka Cluster
✅ You selected: Kafka Cluster
📋 Installation Details:
Software: Kafka Cluster
Inventory: 1.1.1.1,
Playbook: /Users/fumi/.slv/template/0.9.800/ansible/cmn/software/install-kafka.yml
? Do you want to proceed with the installation? (y/N) ›觀察 Ansible 執行
slv 呼叫 Ansible 來配置 Kafka Broker、systemd 服務和支援元件(如 ZooKeeper,如果您的模板需要)。bash
🚀 Running ansible: ansible-playbook -i 1.1.1.1, -u solv /Users/fumi/.slv/template/0.9.800/ansible/cmn/software/install-kafka.yml
PLAY [Install and configure Kafka Cluster] ***********************************************************
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-kafka.yml
PLAY [Install and configure Kafka Cluster] ***********************************************************
TASK [Gathering Facts] *******************************************************************************驗證端點
Playbook 完成後,CLI 會列印 Broker 端點和 AKHQ UI 地址,以便您可以立即開始釋出和檢查訊息。
bash
✅ Installation completed successfully!
🌐 Access Information:
Kafka Broker Endpoint: 1.1.1.1:9092
AKHQ UI: http://1.1.1.1:5000✅ Installation completed successfully!
🌐 Access Information:
Kafka Broker Endpoint: 1.1.1.1:9092
AKHQ UI: http://1.1.1.1:5000儀表板
訪問
http://1.1.1.1:5000 的 AKHQ 來瀏覽主題、檢查分割槽延遲和管理消費者組。將其與 Grafana 儀表板(例如 Kafka Exporter 指標)配合使用,以完善您的流式可觀測性堆疊。