-
Hi, What is the expected behavior of "duration" of scale up triggers? I have the below configuration and I expected that the runners would be brought down if they are more than 90 mins old. However, I am seeing them run even after 4 hours. manifest apiVersion: actions.summerwind.dev/v1alpha1
kind: RunnerDeployment
metadata:
name: comtravo-github-actions-core-runner-deployment
namespace: ${kubernetes_namespace.ci.metadata[0].name}
spec:
template:
spec:
imagePullSecrets:
- name: ${kubernetes_secret.actions_docker_hub_regcred.metadata[0].name}
nodeSelector:
${var.eks_node_labels.core_runners.key}: ${var.eks_node_labels.core_runners.value}
image: harbor.infra.comtravo.com/cache/comtravo/actions-runner:v2.277.1
repository: ${local.actions.git_repository}
labels:
- core-runner
serviceAccountName: ${local.actions.service_account_name}
securityContext:
fsGroup: 1447
resources:
limits:
cpu: "6.0"
memory: "12Gi"
requests:
cpu: "6.0"
memory: "12Gi"
volumes:
- name: runner-var-lib-docker
hostPath:
path: /mnt/runner-var-lib-docker
type: DirectoryOrCreate
dockerVolumeMounts:
- mountPath: /var/lib/docker
name: runner-var-lib-docker
---
apiVersion: actions.summerwind.dev/v1alpha1
kind: HorizontalRunnerAutoscaler
metadata:
name: comtravo-github-actions-core-runner-deployment-autoscaler
namespace: ${kubernetes_namespace.ci.metadata[0].name}
spec:
scaleTargetRef:
name: comtravo-github-actions-core-runner-deployment
minReplicas: 1
maxReplicas: 85
scaleUpTriggers:
- githubEvent:
checkRun:
types: ["created"]
status: "queued"
amount: 1
duration: "90m" Running runners k -n ci get pods --sort-by=.status.startTime | grep core-runner
comtravo-github-actions-core-runner-deployment-nswk4-wpt6q 2/2 Running 0 4h37m
comtravo-github-actions-core-runner-deployment-nswk4-w6lmv 2/2 Running 0 4h37m
comtravo-github-actions-core-runner-deployment-nswk4-qvxgf 2/2 Running 0 4h36m
comtravo-github-actions-core-runner-deployment-nswk4-njfwb 2/2 Running 0 4h36m
comtravo-github-actions-core-runner-deployment-nswk4-m7tdd 2/2 Running 0 4h36m
comtravo-github-actions-core-runner-deployment-nswk4-4g5lb 2/2 Running 0 4h36m
comtravo-github-actions-core-runner-deployment-nswk4-v4sgd 2/2 Running 0 4h36m
comtravo-github-actions-core-runner-deployment-nswk4-mzx8k 2/2 Running 0 4h35m
comtravo-github-actions-core-runner-deployment-nswk4-g9wnc 2/2 Running 0 4h35m
comtravo-github-actions-core-runner-deployment-nswk4-7xbmn 2/2 Running 0 4h35m
comtravo-github-actions-core-runner-deployment-nswk4-m86r9 2/2 Running 0 4h35m
comtravo-github-actions-core-runner-deployment-nswk4-8mvvs 2/2 Running 0 4h34m
comtravo-github-actions-core-runner-deployment-nswk4-76w7f 2/2 Running 0 4h34m
comtravo-github-actions-core-runner-deployment-nswk4-6h8wq 2/2 Running 0 4h32m
comtravo-github-actions-core-runner-deployment-nswk4-p74hp 2/2 Running 0 4h29m
comtravo-github-actions-core-runner-deployment-nswk4-wnxfs 2/2 Running 0 4h28m
comtravo-github-actions-core-runner-deployment-nswk4-f7qkt 2/2 Running 0 4h28m
comtravo-github-actions-core-runner-deployment-nswk4-q2rwh 2/2 Running 0 111m
comtravo-github-actions-core-runner-deployment-nswk4-bkwsk 2/2 Running 0 111m
comtravo-github-actions-core-runner-deployment-nswk4-pnvlv 2/2 Running 0 111m
comtravo-github-actions-core-runner-deployment-nswk4-m2447 2/2 Running 0 111m
comtravo-github-actions-core-runner-deployment-nswk4-dhs78 2/2 Running 0 110m
comtravo-github-actions-core-runner-deployment-nswk4-f8zdq 2/2 Running 0 97m
comtravo-github-actions-core-runner-deployment-nswk4-7zbdm 2/2 Running 0 97m
comtravo-github-actions-core-runner-deployment-nswk4-jtnnz 2/2 Running 0 73m
comtravo-github-actions-core-runner-deployment-nswk4-fvpff 2/2 Running 0 73m
comtravo-github-actions-core-runner-deployment-nswk4-9cx5m 2/2 Running 0 73m
comtravo-github-actions-core-runner-deployment-nswk4-fzj57 2/2 Running 0 68m
comtravo-github-actions-core-runner-deployment-nswk4-jtqkp 2/2 Running 0 67m
comtravo-github-actions-core-runner-deployment-nswk4-tg97l 2/2 Running 0 67m
comtravo-github-actions-core-runner-deployment-nswk4-x562f 2/2 Running 0 67m
comtravo-github-actions-core-runner-deployment-nswk4-wh4v7 2/2 Running 0 67m
comtravo-github-actions-core-runner-deployment-nswk4-g69fs 2/2 Running 0 67m
comtravo-github-actions-core-runner-deployment-nswk4-w7qqn 2/2 Running 0 66m
comtravo-github-actions-core-runner-deployment-nswk4-7tlqs 2/2 Running 0 66m
comtravo-github-actions-core-runner-deployment-nswk4-mpmgc 2/2 Running 0 66m
comtravo-github-actions-core-runner-deployment-nswk4-8n722 2/2 Running 0 66m
comtravo-github-actions-core-runner-deployment-nswk4-4zpg9 2/2 Running 0 65m
comtravo-github-actions-core-runner-deployment-nswk4-mtmz8 2/2 Running 0 63m
comtravo-github-actions-core-runner-deployment-nswk4-mpnhb 2/2 Running 0 63m
comtravo-github-actions-core-runner-deployment-nswk4-cxqc7 2/2 Running 0 62m
comtravo-github-actions-core-runner-deployment-nswk4-jbwzc 2/2 Running 0 61m
comtravo-github-actions-core-runner-deployment-nswk4-mzftg 2/2 Running 0 59m
comtravo-github-actions-core-runner-deployment-nswk4-x8b6q 2/2 Running 0 59m
comtravo-github-actions-core-runner-deployment-nswk4-xrxj9 2/2 Running 0 59m
comtravo-github-actions-core-runner-deployment-nswk4-s5gd9 2/2 Running 0 59m
comtravo-github-actions-core-runner-deployment-nswk4-vl6m9 2/2 Running 0 59m
comtravo-github-actions-core-runner-deployment-nswk4-9cdxv 2/2 Running 0 59m
comtravo-github-actions-core-runner-deployment-nswk4-98r5z 2/2 Running 0 58m
comtravo-github-actions-core-runner-deployment-nswk4-6zjmv 2/2 Running 0 58m
comtravo-github-actions-core-runner-deployment-nswk4-56j7z 2/2 Running 0 58m
comtravo-github-actions-core-runner-deployment-nswk4-hqhtx 2/2 Running 0 58m
comtravo-github-actions-core-runner-deployment-nswk4-cxtsp 2/2 Running 0 58m
comtravo-github-actions-core-runner-deployment-nswk4-n55qn 2/2 Running 0 57m
comtravo-github-actions-core-runner-deployment-nswk4-thgh7 2/2 Running 0 57m
comtravo-github-actions-core-runner-deployment-nswk4-jhnz4 2/2 Running 0 57m
comtravo-github-actions-core-runner-deployment-nswk4-78n7l 2/2 Running 0 57m
comtravo-github-actions-core-runner-deployment-nswk4-hsgz6 2/2 Running 0 56m
comtravo-github-actions-core-runner-deployment-nswk4-lq57g 2/2 Running 0 56m
comtravo-github-actions-core-runner-deployment-nswk4-7nwhz 2/2 Running 0 52m
comtravo-github-actions-core-runner-deployment-nswk4-np957 2/2 Running 0 52m
comtravo-github-actions-core-runner-deployment-nswk4-6kcwm 2/2 Running 0 51m
comtravo-github-actions-core-runner-deployment-nswk4-ng8n7 2/2 Running 0 51m
comtravo-github-actions-core-runner-deployment-nswk4-np677 2/2 Running 0 50m
comtravo-github-actions-core-runner-deployment-nswk4-m5x8t 2/2 Running 0 47m
comtravo-github-actions-core-runner-deployment-nswk4-8dr8m 2/2 Running 0 47m
comtravo-github-actions-core-runner-deployment-nswk4-7clch 2/2 Running 0 27m
comtravo-github-actions-core-runner-deployment-nswk4-2spbc 2/2 Running 0 27m
comtravo-github-actions-core-runner-deployment-nswk4-gmxh4 2/2 Running 0 27m
comtravo-github-actions-core-runner-deployment-nswk4-l5brw 2/2 Running 0 27m
comtravo-github-actions-core-runner-deployment-nswk4-4tcn8 2/2 Running 0 27m
comtravo-github-actions-core-runner-deployment-nswk4-4rvkd 2/2 Running 0 17m
comtravo-github-actions-core-runner-deployment-nswk4-jf2jl 2/2 Running 0 17m
comtravo-github-actions-core-runner-deployment-nswk4-98b8g 2/2 Running 0 17m
comtravo-github-actions-core-runner-deployment-nswk4-d7d8l 2/2 Running 0 17m
comtravo-github-actions-core-runner-deployment-nswk4-sngnl 2/2 Running 0 16m |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 4 replies
-
https://github.com/actions-runner-controller/actions-runner-controller#runnerdeployments
As pointed out in the docs, you should not be using both the |
Beta Was this translation helpful? Give feedback.
-
@Puneeth-n It should be scale-down after 90m since the addition of the capacity. What's in your |
Beta Was this translation helpful? Give feedback.
-
Thanks for the clarification @mumoshu |
Beta Was this translation helpful? Give feedback.
@Puneeth-n It should be scale-down after 90m since the addition of the capacity.
What's in your
HRA.Spec.CapacityReservations
? Try runningkubectl get
on it to see. Each scale-up trigger results in adding an entry under that, and only "unexpired" capacity reservations count into the final desired replicas number.