-
Notifications
You must be signed in to change notification settings - Fork 1
/
host_all_coordnode_deployment.yml
113 lines (106 loc) · 3.41 KB
/
host_all_coordnode_deployment.yml
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
---
- name: Create milvus-index/data nodes coords, proxy
hosts: swarm-manager
become: yes
become_user: root
tags: docker
tasks:
- name: "{{pre}}datacoord"
docker_container:
name: "{{pre}}datacoord"
image: milvusdb/milvus:v2.0.1
command: ["milvus", "run", "datacoord"]
env:
ETCD_ENDPOINTS: "10.170.0.8:2379"
MINIO_ADDRESS: "10.170.0.8:9000"
PULSAR_ADDRESS: "pulsar://10.170.0.8:6650"
DATA_COORD_ADDRESS: "{{DATA_COORD_ADDRESS}}"
METRICS_PORT: "9091"
network_mode: "{{network}}"
- name: "{{pre}}indexcoord"
docker_container:
name: "{{pre}}indexcoord"
image: milvusdb/milvus:v2.0.1
command: ["milvus", "run", "indexcoord"]
env:
ETCD_ENDPOINTS: "10.170.0.8:2379"
MINIO_ADDRESS: "10.170.0.8:9000"
PULSAR_ADDRESS: "pulsar://10.170.0.8:6650"
METRICS_PORT: "9092"
INDEX_COORD_ADDRESS: "{{INDEX_COORD_ADDRESS}}"
network_mode: "{{network}}"
- name: "{{pre}}datanode"
docker_container:
name: "{{pre}}datanode"
image: milvusdb/milvus:v2.0.1
command: "milvus run datanode"
env:
ETCD_ENDPOINTS: "10.170.0.8:2379"
MINIO_ADDRESS: "10.170.0.8:9000"
PULSAR_ADDRESS: "pulsar://10.170.0.8:6650"
METRICS_PORT: "9093"
network_mode: "{{network}}"
- name: "{{pre}}indexnode"
docker_container:
name: "{{pre}}indexnode"
image: milvusdb/milvus:v2.0.1
command: "milvus run indexnode"
env:
ETCD_ENDPOINTS: "10.170.0.8:2379"
MINIO_ADDRESS: "10.170.0.8:9000"
PULSAR_ADDRESS: "pulsar://10.170.0.8:6650"
INDEX_COORD_ADDRESS: "{{INDEX_COORD_ADDRESS}}"
METRICS_PORT: "9094"
network_mode: "{{network}}"
- name: "{{pre}}proxy"
docker_container:
name: "{{pre}}proxy"
image: milvusdb/milvus:v2.0.1
command: "milvus run proxy"
env:
ETCD_ENDPOINTS: "10.170.0.8:2379"
MINIO_ADDRESS: "10.170.0.8:9000"
PULSAR_ADDRESS: "pulsar://10.170.0.8:6650"
METRICS_PORT: "9095"
network_mode: "{{network}}"
- name: Create milvus-index/data nodes coords, proxy
hosts: swarm-worker-01
become: yes
become_user: root
tags: docker
tasks:
- name: "{{pre}}rootcoord"
docker_container:
name: "{{pre}}rootcoord"
image: milvusdb/milvus:v2.0.1
command: ["milvus", "run", "rootcoord"]
env:
ETCD_ENDPOINTS: "10.170.0.8:2379"
MINIO_ADDRESS: "10.170.0.8:9000"
PULSAR_ADDRESS: "pulsar://10.170.0.8:6650"
QUERY_COORD_ADDRESS: "{{QUERY_COORD_ADDRESS}}"
METRICS_PORT: "9091"
network_mode: "{{ network }}"
- name: "{{pre}}querycoord"
docker_container:
name: "{{pre}}querycoord"
image: milvusdb/milvus:v2.0.1
command: "milvus run querycoord"
env:
ETCD_ENDPOINTS: "10.170.0.8:2379"
MINIO_ADDRESS: "10.170.0.8:9000"
PULSAR_ADDRESS: "pulsar://10.170.0.8:6650"
QUERY_COORD_ADDRESS: "{{QUERY_COORD_ADDRESS}}"
METRICS_PORT: "9092"
network_mode: "{{ network }}"
- name: "{{pre}}querynode"
docker_container:
name: "{{pre}}querynode"
image: milvusdb/milvus:v2.0.1
command: "milvus run querynode"
env:
ETCD_ENDPOINTS: "10.170.0.8:2379"
MINIO_ADDRESS: "10.170.0.8:9000"
PULSAR_ADDRESS: "pulsar://10.170.0.8:6650"
METRICS_PORT: "9093"
network_mode: "{{ network }}"