SLV Install - Kafka
SLV Install - Kafka

Tại sao nên dùng Kafka Cluster?
Apache Kafka cung cấp khả năng streaming sự kiện bền vững, thông lượng cao, hỗ trợ các pipeline dữ liệu thời gian thực, dịch vụ phân tán và phân tích. Triển khai Kafka cluster với
slv install mang lại cấu hình broker nhất quán, thiết lập topic mặc định và các hook giám sát mà không cần duy trì script tùy chỉnh.Điểm nổi bật
- Kafka: https://kafka.apache.org/
- Xử lý hàng triệu message mỗi giây với đảm bảo độ bền cao.
- Đi kèm giao diện AKHQ UI để kiểm tra topic nhanh, theo dõi consumer lag và gỡ lỗi.
Chạy trình cài đặt
Trỏ
slv install đến các host sẽ chạy Kafka broker và chọn tùy chọn 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 ClusterLưu ý: Thay1.1.1.1bằng địa chỉ IP máy chủ của bạn.
Xem lại chi tiết
Kiểm tra kỹ inventory và đường dẫn playbook trước khi tiếp tục. Nếu bạn cần giới hạn phạm vi đến các host cụ thể trong inventory, hãy truyền
--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) ›Theo dõi quá trình thực thi Ansible
slv gọi Ansible để cấu hình Kafka broker, dịch vụ systemd và các thành phần hỗ trợ như ZooKeeper (nếu template của bạn yêu cầu).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] *******************************************************************************Xác minh các endpoint
Khi playbook hoàn tất, CLI in ra endpoint broker và địa chỉ AKHQ UI để bạn có thể bắt đầu publish và kiểm tra message ngay lập tức.
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:5000Dashboard
Truy cập AKHQ tại
http://1.1.1.1:5000 để duyệt topic, kiểm tra partition lag và quản lý consumer group. Kết hợp với Grafana dashboard (ví dụ: Kafka Exporter metric) để hoàn thiện bộ công cụ giám sát streaming của bạn.