Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

resources benchmarking #126

Open
wants to merge 10 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions charts/devtron/devtron-bom.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ components:
image: "quay.io/devtron/postgres:11.9.0-debian-10-r26"

migrator:
image: "quay.io/devtron/migrator:9c933d29-149-10140"
image: "quay.io/devtron/migrator:cb494756-390-10883"
envVars:
devtron:
GIT_BRANCH: "main"
GIT_HASH: "299b90b9322f40d84ebac23a9b43d0bbe23c56ca"
GIT_HASH: "0499da447c5ade0d8b607efe03a7326aaaa3fd85"
casbin:
GIT_BRANCH: "main"
GIT_HASH: "299b90b9322f40d84ebac23a9b43d0bbe23c56ca"
GIT_HASH: "0499da447c5ade0d8b607efe03a7326aaaa3fd85"
25 changes: 23 additions & 2 deletions charts/devtron/templates/app-sync-job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,16 @@ spec:
- name: migration-wait
image: "quay.io/devtron/kubectl:latest"
command: ['sh', '-c', 'while [ ! $(kubectl -n devtroncd get $(kubectl -n devtroncd get job -l job=postgresql-migrate-devtron -o name) -o jsonpath="{.status.succeeded}") ]; do sleep 10; done']
resources:
limits:
cpu: 25m
memory: 50Mi
requests:
cpu: 25m
memory: 50Mi
containers:
- name: chart-sync
image: quay.io/devtron/chart-sync:57e17953-373-10147
image: quay.io/devtron/chart-sync:07ac8fd7-132-10782
env:
- name: PG_ADDR
value: postgresql-postgresql.devtroncd
Expand All @@ -28,6 +35,13 @@ spec:
envFrom:
- secretRef:
name: devtron-secret
resources:
limits:
cpu: 50m
memory: 200Mi
requests:
cpu: 50m
memory: 200Mi
restartPolicy: OnFailure
backoffLimit: 4
---
Expand All @@ -50,7 +64,7 @@ spec:
spec:
containers:
- name: chart-sync
image: quay.io/devtron/chart-sync:57e17953-373-10147
image: quay.io/devtron/chart-sync:07ac8fd7-132-10782
env:
- name: PG_ADDR
value: postgresql-postgresql.devtroncd
Expand All @@ -61,5 +75,12 @@ spec:
envFrom:
- secretRef:
name: devtron-secret
resources:
limits:
cpu: 50m
memory: 200Mi
requests:
cpu: 50m
memory: 200Mi
restartPolicy: Never
backoffLimit: 4
7 changes: 7 additions & 0 deletions charts/devtron/templates/dashboard.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -90,5 +90,12 @@ spec:
- secretRef:
name: devtron-dashboard-secret
volumeMounts: []
resources:
limits:
cpu: 25m
memory: 50Mi
requests:
cpu: 25m
memory: 50Mi
revisionHistoryLimit: 3
{{- end }}
7 changes: 7 additions & 0 deletions charts/devtron/templates/devtron.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,13 @@ spec:
image: {{ $.Values.components.devtron.image }}
{{- end }}
imagePullPolicy: {{ .imagePullPolicy }}
resources:
limits:
cpu: 50m
memory: 100Mi
requests:
cpu: 50m
memory: 100Mi
lifecycle:
preStop:
exec:
Expand Down
14 changes: 14 additions & 0 deletions charts/devtron/templates/dex.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,13 @@ spec:
- /shared/authenticator
- rundex
image: {{ .image }}
resources:
limits:
cpu: 25m
memory: 50Mi
requests:
cpu: 25m
memory: 50Mi
imagePullPolicy: {{ .imagePullPolicy }}
name: dex
ports:
Expand All @@ -81,6 +88,13 @@ spec:
volumeMounts:
- mountPath: /shared
name: static-files
resources:
limits:
cpu: 10m
memory: 20Mi
requests:
cpu: 10m
memory: 20Mi
serviceAccountName: argocd-dex-server
volumes:
- emptyDir: {}
Expand Down
10 changes: 5 additions & 5 deletions charts/devtron/templates/install.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -96,15 +96,15 @@ spec:
protocol: TCP
resources:
limits:
cpu: 50m
memory: 500Mi
cpu: 100m
memory: 250Mi
requests:
cpu: 10m
memory: 100Mi
cpu: 100m
memory: 250Mi
restartPolicy: Always
serviceAccountName: installer
terminationGracePeriodSeconds: 30
{{- end }}
{{- end }}
{{- end }}
{{- end }}
{{- end }}
9 changes: 8 additions & 1 deletion charts/devtron/templates/kubelink.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,13 @@ spec:
containers:
- name: kubelink
image: {{ .image }}
resources:
limits:
cpu: 150m
memory: 300Mi
requests:
cpu: 150m
memory: 300Mi
imagePullPolicy: {{ .imagePullPolicy }}
ports:
- name: app
Expand Down Expand Up @@ -58,4 +65,4 @@ spec:
app: kubelink
sessionAffinity: None
type: ClusterIP
{{- end }}
{{- end }}
21 changes: 19 additions & 2 deletions charts/devtron/templates/migrator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,13 @@ spec:
envFrom:
- secretRef:
name: postgresql-migrator
resources:
requests:
memory: "250Mi"
cpu: "100m"
limits:
memory: "250Mi"
cpu: "100m"
restartPolicy: OnFailure
backoffLimit: 20
activeDeadlineSeconds: 1500
Expand All @@ -62,6 +69,13 @@ spec:
- name: devtron-rollout
image: "quay.io/devtron/kubectl:latest"
command: ['sh', '-c', 'kubectl rollout restart deployment/devtron -n devtroncd']
resources:
requests:
memory: "50Mi"
cpu: "25m"
limits:
memory: "50Mi"
cpu: "25m"
initContainers:
- name: postgresql-migrate-casbin
image: {{ .image }}
Expand Down Expand Up @@ -91,8 +105,11 @@ spec:
name: postgresql-migrator
resources:
requests:
cpu: 0.5
memory: 500Mi
memory: "250Mi"
cpu: "100m"
limits:
memory: "250Mi"
cpu: "100m"
restartPolicy: OnFailure
backoffLimit: 20
activeDeadlineSeconds: 1500
Expand Down
23 changes: 22 additions & 1 deletion charts/devtron/templates/postgresql.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,13 @@ spec:
initContainers:
- name: init-chmod-data
image: "quay.io/devtron/minideb:latest"
resources:
limits:
cpu: 10m
memory: 20Mi
requests:
cpu: 10m
memory: 20Mi
imagePullPolicy: "IfNotPresent"
command:
- /bin/sh
Expand All @@ -140,6 +147,13 @@ spec:
containers:
- name: postgresql-postgresql
image: {{ .image }}
resources:
limits:
cpu: 100m
memory: 200Mi
requests:
cpu: 100m
memory: 200Mi
imagePullPolicy: {{ .imagePullPolicy }}
securityContext:
runAsUser: 1001
Expand Down Expand Up @@ -203,6 +217,13 @@ spec:
subPath:
- name: metrics
image: quay.io/devtron/postgres_exporter:v0.4.7
resources:
limits:
cpu: 10m
memory: 20Mi
requests:
cpu: 10m
memory: 20Mi
imagePullPolicy: "IfNotPresent"
env:
- name: DATA_SOURCE_URI
Expand Down Expand Up @@ -253,4 +274,4 @@ spec:
resources:
requests:
storage: {{ .persistence.volumeSize }}
{{- end }}
{{- end }}
9 changes: 8 additions & 1 deletion charts/devtron/templates/workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,14 @@ spec:
apiVersion: v1
fieldPath: metadata.name
image: {{ $.Values.workflowController.image }}
resources:
limits:
cpu: 25m
memory: 50Mi
requests:
cpu: 25m
memory: 50Mi
name: workflow-controller
serviceAccountName: argo
{{- end }}
{{- end }}
{{- end }}
4 changes: 2 additions & 2 deletions charts/devtron/values.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
installer:
repo: "devtron-labs/devtron"
# For Kubernetes version < 1.16, set release: legacy. You won't be able to upgrade Devtron unless you upgrade the K8s version to 1.16 or above.
release: "v0.6.0" #You can use a branch name or a release tag name as a release, for gitee as source only "main" is supported as of now
release: "resources_test" #You can use a branch name or a release tag name as a release, for gitee as source only "main" is supported as of now
image: quay.io/devtron/inception
tag: c62d4c30-185-9354
source: "github" # Available options are github and gitee
Expand Down Expand Up @@ -90,7 +90,7 @@ components:
volumeSize: "20Gi"

migrator:
image: "quay.io/devtron/migrator:9c933d29-149-10140"
image: "quay.io/devtron/migrator:cb494756-390-10883"
envVars:
devtron:
GIT_BRANCH: "main"
Expand Down
10 changes: 5 additions & 5 deletions charts/gitsensor/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ gitsensor:
image:
pullPolicy: Always
repository: quay.io/devtron/git-sensor
tag: 5d527335-200-4349
tag: 0360b73a-198-10935
service:
metadata:
labels:
Expand All @@ -25,11 +25,11 @@ gitsensor:
serviceName: git-sensor
resources:
limits:
cpu: 1
memory: 800Mi
cpu: 100m
memory: 200Mi
requests:
cpu: 1
memory: 500Mi
cpu: 100m
memory: 200Mi
template:
metadata:
labels:
Expand Down
10 changes: 5 additions & 5 deletions charts/rollout/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ rollout:
image: "quay.io/devtron/rollout:v0.6.2"
resources:
limits:
memory: 200Mi
cpu: 250m
memory: 50Mi
cpu: 25m
requests:
memory: 100Mi
cpu: 50m
memory: 50Mi
cpu: 25m
tolerations: []
podLabels: {}
podAnnotations: {}
replicaCount: 1
replicaCount: 1