Skip to content

Commit

Permalink
fix: Rename nodes in cluster mode (#161)
Browse files Browse the repository at this point in the history
  • Loading branch information
KShivendu authored Jun 11, 2024
1 parent b66b4c5 commit 8a1c664
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions engine/servers/qdrant-cluster-mode/docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
version: "3.7"

services:
qdrant_node_1:
qdrant-node-0:
image: qdrant/qdrant:v1.7.3
environment:
- QDRANT__SERVICE__GRPC_PORT=6334
Expand All @@ -10,43 +10,43 @@ services:
ports:
- "6333:6333"
- "6334:6334"
command: ./qdrant --uri 'http://qdrant_node_1:6335'
command: ./qdrant --uri 'http://qdrant-node-0:6335'
# deploy:
# resources:
# limits:
# cpus: '0.07'


qdrant_node_follower:
qdrant-node-1:
image: qdrant/qdrant:v1.7.3
environment:
- QDRANT__SERVICE__GRPC_PORT=6334
- QDRANT__CLUSTER__ENABLED=true
- QDRANT__CLUSTER__P2P__PORT=6335
depends_on:
- qdrant_node_1
- qdrant-node-0
ports:
- "6433:6333"
- "6434:6334"
command: bash -c "sleep 5 && ./qdrant --bootstrap 'http://qdrant_node_1:6335' --uri 'http://qdrant_node_follower:6335'"
command: bash -c "sleep 5 && ./qdrant --bootstrap 'http://qdrant-node-0:6335' --uri 'http://qdrant-node-1:6335'"
# deploy:
# resources:
# limits:
# cpus: '0.05'


qdrant_node_follower_2:
qdrant-node-2:
image: qdrant/qdrant:v1.7.3
environment:
- QDRANT__SERVICE__GRPC_PORT=6334
- QDRANT__CLUSTER__ENABLED=true
- QDRANT__CLUSTER__P2P__PORT=6335
depends_on:
- qdrant_node_1
- qdrant-node-0
ports:
- "6533:6333"
- "6534:6334"
command: bash -c "sleep 6 && ./qdrant --bootstrap 'http://qdrant_node_1:6335' --uri 'http://qdrant_node_follower_2:6335'"
command: bash -c "sleep 6 && ./qdrant --bootstrap 'http://qdrant-node-0:6335' --uri 'http://qdrant-node-2:6335'"
# deploy:
# resources:
# limits:
Expand Down

0 comments on commit 8a1c664

Please sign in to comment.