chore: reduce resources for update jobs

This commit is contained in:
Patrick Schratz 2024-10-31 23:48:03 +01:00
commit f576a01412
Signed by: pat-s
GPG key ID: 3C6318841EF78925

View file

@ -1,6 +1,6 @@
when:
- event: [cron]
cron: process-cran-updates
cron: process-cran-updates-alpine-320-arm64
- event: manual
evaluate: 'process_cran_updates == "all"'
- event: manual
@ -12,26 +12,21 @@ steps:
- name: 'Warming up'
image: busybox:latest
failure: ignore
environment:
PLATFORM: ubuntu-2204
BLOCK: 21389:length(pkgs)
NCPUS: 2
STRATEGY: multisession
commands:
- sleep 1
- sleep 300
- echo "Warmed Up"
backend_options:
kubernetes:
resources:
requests:
memory: 29Gi
memory: 14Gi
cpu: 4000m
limits:
memory: 29Gi
memory: 14Gi
cpu: 4000m
nodeSelector:
kubernetes.io/arch: arm64
node.kubernetes.io/instance-type: cax41
node.kubernetes.io/instance-type: cax31
tolerations:
- key: 'CI'
operator: 'Equal'
@ -40,7 +35,7 @@ steps:
- name: 'Processing Updates'
secrets: [red_hat_dev_pw, aws_access_key_id, aws_secret_access_key, pgpass, git_ro_token, GITHUB_PAT]
image: docker.io/devxygmbh/arm64-binaries-r-${PLATFORM}
image: docker.io/devxygmbh/arm64-binaries-r-alpine-320
pull: true
environment:
GIT_USER: pat-s
@ -51,12 +46,12 @@ steps:
PLATFORM: alpine-320
ARCH: arm64
NCPUS: 2
MEMORY: 29Gi
STRATEGY: multisession
INSTANCE_TYPE: cax41
INTERVAL: lubridate::interval(lubridate::today() - 3, lubridate::today() - 31)
MEMORY: 14Gi
STRATEGY: sequential
INSTANCE_TYPE: cax31
INTERVAL: lubridate::interval(lubridate::today() - 3, lubridate::today() - 40)
volumes:
- arm64-binaries-r-dep-cache-${PLATFORM}:/mnt/cache
- arm64-binaries-r-dep-cache-alpine-320:/mnt/cache
commands:
# download latest package version (avoid having to rebuild image every time)
- git clone https://pat-s:$$git_ro_token@git.devxy.io/devxy/r-pkg-binaries.git .
@ -74,10 +69,10 @@ steps:
### PROD
resources:
requests:
memory: 29Gi
memory: 14Gi
cpu: 4000m
limits:
memory: 29Gi
memory: 14Gi
cpu: 4000m
# DEBUG
# resources:
@ -89,7 +84,7 @@ steps:
# cpu: 2000m
nodeSelector:
kubernetes.io/arch: arm64
node.kubernetes.io/instance-type: cax41
node.kubernetes.io/instance-type: cax31
tolerations:
- key: 'CI'
operator: 'Equal'