Skip to content

Commit

Permalink
[Bug] Allow zero replica for workers for Helm (ray-project#968)
Browse files Browse the repository at this point in the history
Allow zero replica for workers for Helm
  • Loading branch information
ducviet00 authored Jun 12, 2023
1 parent bf24da1 commit 92e150d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions helm-chart/ray-cluster/templates/raycluster-cluster.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ spec:
{{- end }}
{{- end }}
replicas: {{ $values.replicas }}
minReplicas: {{ $values.minReplicas | default (default 1 $values.miniReplicas) }}
minReplicas: {{ $values.minReplicas | default (default 0 $values.miniReplicas) }}
maxReplicas: {{ $values.maxReplicas | default (default 2147483647 $values.maxiReplicas) }}
groupName: {{ $groupName }}
template:
Expand Down Expand Up @@ -169,7 +169,7 @@ spec:
{{- end }}
{{- end }}
replicas: {{ .Values.worker.replicas }}
minReplicas: {{ .Values.worker.minReplicas | default (default 1 .Values.worker.miniReplicas) }}
minReplicas: {{ .Values.worker.minReplicas | default (default 0 .Values.worker.miniReplicas) }}
maxReplicas: {{ .Values.worker.maxReplicas | default (default 2147483647 .Values.worker.maxiReplicas) }}
groupName: {{ .Values.worker.groupName }}
template:
Expand Down
4 changes: 2 additions & 2 deletions helm-chart/ray-cluster/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -163,8 +163,8 @@ additionalWorkerGroups:
smallGroup:
# Disabled by default
disabled: true
replicas: 1
minReplicas: 1
replicas: 0
minReplicas: 0
maxReplicas: 3
labels: {}
serviceAccountName: ""
Expand Down

0 comments on commit 92e150d

Please sign in to comment.