-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstart-cluster.sh
More file actions
executable file
Β·31 lines (26 loc) Β· 882 Bytes
/
start-cluster.sh
File metadata and controls
executable file
Β·31 lines (26 loc) Β· 882 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/bin/bash
echo "π Starting LSMTree Distributed Cluster..."
# Build and start all services
echo "π¦ Building and starting services..."
docker-compose up -d --build
# Wait for services to be ready
echo "β³ Waiting for services to start..."
sleep 30
# Check service health
echo "π Checking service health..."
docker-compose ps
echo "β
Cluster started successfully!"
echo ""
echo "π Service URLs:"
echo " Coordinator: http://localhost:8080"
echo " Storage Node 1: http://localhost:8081"
echo " Storage Node 2: http://localhost:8082"
echo " Storage Node 3: http://localhost:8083"
echo ""
echo "π Next steps:"
echo " 1. Register nodes with coordinator"
echo " 2. Update shard mappings"
echo " 3. Test data ingestion and queries"
echo ""
echo "π§ To view logs: docker-compose logs -f [service-name]"
echo "π To stop cluster: docker-compose down"