Skip to content

Commit

Permalink
add resources to gateway and scheduler containers (#1357)
Browse files Browse the repository at this point in the history
* add resources to gateway and scheduler containers

Signed-off-by: Akihiko Kuroda <akihikokuroda2020@gmail.com>
  • Loading branch information
akihikokuroda committed Jun 7, 2024
1 parent babc84e commit 3fc78e4
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 11 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/kubernetes-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ jobs:
--set gateway.application.ray.cpu=1 \
--set gateway.application.limits.keepClusterOnComplete=false \
.
GATEWAY=$(kubectl get pod -l app.kubernetes.io/name=gateway -o name)
kubectl wait --for=condition=Ready "$GATEWAY" --timeout 5m
- name: setup python
uses: actions/setup-python@v4
with:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,8 @@ spec:
httpGet:
path: /readiness
port: http
initialDelaySeconds: 60
periodSeconds: 20
volumeMounts:
- mountPath: "/usr/src/app/media/"
name: gateway-pv-storage
Expand Down Expand Up @@ -253,6 +255,8 @@ spec:
name: gateway-pv-storage
- mountPath: "/tmp/templates/"
name: ray-cluster-template
resources:
{{- toYaml .Values.scheduler.resources | nindent 12 }}
env:
- name: DEBUG
value: {{ .Values.application.debug | quote }}
Expand Down
26 changes: 15 additions & 11 deletions charts/qiskit-serverless/charts/gateway/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -145,17 +145,21 @@ ingress:
# hosts:
# - chart-example.local

resources: {}
# We usually recommend not to specify default resources and to leave this as a conscious
# choice for the user. This also increases chances charts run on environments with little
# resources, such as Minikube. If you do want to specify resources, uncomment the following
# lines, adjust them as necessary, and remove the curly braces after 'resources:'.
# limits:
# cpu: 100m
# memory: 128Mi
# requests:
# cpu: 100m
# memory: 128Mi
resources:
limits:
cpu: "1500m"
memory: "1Gi"
requests:
cpu: "500m"
memory: "700Mi"
scheduler:
resources:
limits:
cpu: "1500m"
memory: "270Mi"
requests:
cpu: "100m"
memory: "180Mi"

autoscaling:
enabled: false
Expand Down

0 comments on commit 3fc78e4

Please sign in to comment.