Danube Installation Guide
Danube is an open-source distributed Pub/Sub messaging platform written in Rust. It relies on ETCD for persistent metadata storage. This guide will walk you through installing Danube brokers and ETCD.
Prerequisites
ETCD: Follow the ETCD installation instructions to set up ETCD on a VM or bare metal server.
Number of VMs: Recommended 4 Linux machines or VMs:
- One or more VMs for running ETCD
- 3 VMs for running Danube brokers
Installation Steps
1. Install ETCD
- Follow the ETCD installation guide to set up ETCD on a separate VM or server.
- Configuration: Ensure ETCD listens on port
2379
for client requests.
2. Download Danube Broker
- Visit the Danube releases page.
- Download the latest binary for Linux named
danube-broker
.
3. Install Danube Brokers
-
Upload the
danube-broker
binary to each of the 3 VMs designated for brokers. -
Customize the Danube cluster config file
A sample file can be found HERE.
- Run the Broker: Start each broker with the appropriate configuration.
Example command to start a broker:
Replace ETCD_SERVER_IP
with the IP address of your ETCD server.
Repeat for each additional broker instance.
4. Verify the Setup
- ETCD: Ensure ETCD is running and accessible. You can check its status by accessing
http://<ETCD_SERVER_IP>:2379
from a browser or usingcurl
:
- Danube Brokers: Ensure each broker instance is running and listening on the specified port. You can check this with
netstat
orss
:
Log Files: For debugging, check the logs of each Danube broker instance.
Additional Information
For more details, visit the Danube GitHub repository or contact the project maintainers for support.