Skip to content
This repository was archived by the owner on Aug 16, 2023. It is now read-only.

Commit 70a87ea

Browse files
authored
Enable active standby for milvus coordinator components (#397)
Signed-off-by: Edward Zeng <jie.zeng@zilliz.com>
1 parent 4ee38cf commit 70a87ea

8 files changed

Lines changed: 26 additions & 5 deletions

File tree

charts/milvus/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: milvus
33
appVersion: "2.2.2"
44
kubeVersion: "^1.10.0-0"
55
description: Milvus is an open-source vector database built to power AI applications and vector similarity search.
6-
version: 4.0.3
6+
version: 4.0.4
77
keywords:
88
- milvus
99
- elastic

charts/milvus/README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,7 @@ The following table lists the configurable parameters of the Milvus Root Coordin
245245
| `rootCoordinator.tolerations` | Toleration labels for Milvus Root Coordinator pods assignment | `[]` |
246246
| `rootCoordinator.heaptrack.enabled` | Whether to enable heaptrack | `false` |
247247
| `rootCoordinator.profiling.enabled` | Whether to enable live profiling | `false` |
248+
| `rootCoordinator.activeStandby.enabled` | Whether to enable active-standby | `false` |
248249
| `rootCoordinator.extraEnv` | Additional Milvus Root Coordinator container environment variables | `[]` |
249250
| `rootCoordinator.service.type` | Service type | `ClusterIP` |
250251
| `rootCoordinator.service.port` | Port where service is exposed | `19530` |
@@ -269,6 +270,7 @@ The following table lists the configurable parameters of the Milvus Query Coordi
269270
| `queryCoordinator.tolerations` | Toleration labels for Milvus Query Coordinator pods assignment | `[]` |
270271
| `queryCoordinator.heaptrack.enabled` | Whether to enable heaptrack | `false` |
271272
| `queryCoordinator.profiling.enabled` | Whether to enable live profiling | `false` |
273+
| `queryCoordinator.activeStandby.enabled` | Whether to enable active-standby | `false` |
272274
| `queryCoordinator.extraEnv` | Additional Milvus Query Coordinator container environment variables | `[]` |
273275
| `queryCoordinator.service.type` | Service type | `ClusterIP` |
274276
| `queryCoordinator.service.port` | Port where service is exposed | `19530` |
@@ -310,6 +312,7 @@ The following table lists the configurable parameters of the Milvus Index Coordi
310312
| `indexCoordinator.tolerations` | Toleration labels for Milvus Index Coordinator pods assignment | `[]` |
311313
| `indexCoordinator.heaptrack.enabled` | Whether to enable heaptrack | `false` |
312314
| `indexCoordinator.profiling.enabled` | Whether to enable live profiling | `false` |
315+
| `indexCoordinator.activeStandby.enabled` | Whether to enable active-standby | `false` |
313316
| `indexCoordinator.extraEnv` | Additional Milvus Index Coordinator container environment variables | `[]` |
314317
| `indexCoordinator.service.type` | Service type | `ClusterIP` |
315318
| `indexCoordinator.service.port` | Port where service is exposed | `19530` |
@@ -351,6 +354,7 @@ The following table lists the configurable parameters of the Milvus Data Coordin
351354
| `dataCoordinator.tolerations` | Toleration labels for Milvus Data Coordinator pods assignment | `[]` |
352355
| `dataCoordinator.heaptrack.enabled` | Whether to enable heaptrack | `false` |
353356
| `dataCoordinator.profiling.enabled` | Whether to enable live profiling | `false` |
357+
| `dataCoordinator.activeStandby.enabled` | Whether to enable active-standby | `false` |
354358
| `dataCoordinator.extraEnv` | Additional Milvus Data Coordinator container environment variables | `[]` |
355359
| `dataCoordinator.service.type` | Service type | `ClusterIP` |
356360
| `dataCoordinator.service.port` | Port where service is exposed | `19530` |

charts/milvus/templates/config.tpl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,7 @@ rootCoord:
164164
address: localhost
165165
{{- end }}
166166
port: {{ .Values.rootCoordinator.service.port }}
167+
enableActiveStandby: {{ .Values.rootCoordinator.activeStandby.enabled }} # Enable active-standby
167168

168169
proxy:
169170
port: 19530
@@ -177,6 +178,8 @@ queryCoord:
177178
{{- end }}
178179
port: {{ .Values.queryCoordinator.service.port }}
179180

181+
enableActiveStandby: {{ .Values.queryCoordinator.activeStandby.enabled }} # Enable active-standby
182+
180183
queryNode:
181184
port: 21123
182185
{{- if .Values.cluster.enabled }}
@@ -192,6 +195,7 @@ indexCoord:
192195
address: localhost
193196
{{- end }}
194197
port: {{ .Values.indexCoordinator.service.port }}
198+
enableActiveStandby: {{ .Values.indexCoordinator.activeStandby.enabled }} # Enable active-standby
195199

196200
indexNode:
197201
port: 21121
@@ -209,6 +213,7 @@ dataCoord:
209213
address: localhost
210214
{{- end }}
211215
port: {{ .Values.dataCoordinator.service.port }}
216+
enableActiveStandby: {{ .Values.dataCoordinator.activeStandby.enabled }} # Enable active-standby
212217

213218
dataNode:
214219
port: 21124

charts/milvus/templates/datacoord-deployment.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ metadata:
1111
{{ include "milvus.ud.annotations" . | indent 4 }}
1212

1313
spec:
14-
replicas: 1
14+
replicas: {{ .Values.dataCoordinator.replicas }}
1515
strategy:
1616
type: Recreate
1717
selector:

charts/milvus/templates/indexcoord-deployment.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ metadata:
1111
{{ include "milvus.ud.annotations" . | indent 4 }}
1212

1313
spec:
14-
replicas: 1
14+
replicas: {{ .Values.indexCoordinator.replicas }}
1515
strategy:
1616
type: Recreate
1717
selector:

charts/milvus/templates/querycoord-deployment.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ metadata:
1111
{{ include "milvus.ud.annotations" . | indent 4 }}
1212

1313
spec:
14-
replicas: 1
14+
replicas: {{ .Values.queryCoordinator.replicas }}
1515
strategy:
1616
type: Recreate
1717
selector:

charts/milvus/templates/rootcoord-deployment.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ metadata:
1111
{{ include "milvus.ud.annotations" . | indent 4 }}
1212

1313
spec:
14-
replicas: 1
14+
replicas: {{ .Values.rootCoordinator.replicas }}
1515
strategy:
1616
type: Recreate
1717
selector:

charts/milvus/values.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,7 @@ proxy:
226226

227227
rootCoordinator:
228228
enabled: true
229+
# You can set the number of replicas greater than 1, only if enable active standby
229230
replicas: 1 # Run Root Coordinator mode with replication disabled
230231
resources: {}
231232
nodeSelector: {}
@@ -236,6 +237,8 @@ rootCoordinator:
236237
enabled: false
237238
profiling:
238239
enabled: false # Enable live profiling
240+
activeStandby:
241+
enabled: false # Enable active-standby when you set multiple replicas for root coordinator
239242

240243
service:
241244
port: 53100
@@ -245,6 +248,7 @@ rootCoordinator:
245248

246249
queryCoordinator:
247250
enabled: true
251+
# You can set the number of replicas greater than 1, only if enable active standby
248252
replicas: 1 # Run Query Coordinator mode with replication disabled
249253
resources: {}
250254
nodeSelector: {}
@@ -255,6 +259,8 @@ queryCoordinator:
255259
enabled: false
256260
profiling:
257261
enabled: false # Enable live profiling
262+
activeStandby:
263+
enabled: false # Enable active-standby when you set multiple replicas for query coordinator
258264

259265
service:
260266
port: 19531
@@ -284,6 +290,7 @@ queryNode:
284290

285291
indexCoordinator:
286292
enabled: true
293+
# You can set the number of replicas greater than 1, only if enable active standby
287294
replicas: 1 # Run Index Coordinator mode with replication disabled
288295
resources: {}
289296
nodeSelector: {}
@@ -294,6 +301,8 @@ indexCoordinator:
294301
enabled: false
295302
profiling:
296303
enabled: false # Enable live profiling
304+
activeStandby:
305+
enabled: false # Enable active-standby when you set multiple replicas for index coordinator
297306

298307
service:
299308
port: 31000
@@ -323,6 +332,7 @@ indexNode:
323332

324333
dataCoordinator:
325334
enabled: true
335+
# You can set the number of replicas greater than 1, only if enable active standby
326336
replicas: 1 # Run Data Coordinator mode with replication disabled
327337
resources: {}
328338
nodeSelector: {}
@@ -333,6 +343,8 @@ dataCoordinator:
333343
enabled: false
334344
profiling:
335345
enabled: true # Enable live profiling
346+
activeStandby:
347+
enabled: false # Enable active-standby when you set multiple replicas for data coordinator
336348

337349
service:
338350
port: 13333

0 commit comments

Comments
 (0)