How to Scale down Chrome Pod as soon as test execution completes #5062
Unanswered
kherath17
asked this question in
Q&A / Need Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi Everyone,
Context:
In Selenium Grid, I'm using KedaScaler to scale browser nodes depending on the incoming requests (Ques) in seperate new pods , so as of now it successfully identifies and scales up the pods accordingly but does not scale down until the cool down period is reached (5 mins by default) , I want to scale down the pods as soon as the test execution happening within the pod is completed , is there a way we could achieve this?
Following is My KedaScaler:
apiVersion: keda.sh/v1alpha1
kind: ScaledObject
metadata:
name: selenium-scaledobject
namespace: default
labels:
deploymentName: selenium-chrome-node
spec:
scaleTargetRef:
name: selenium-node-chrome
minReplicaCount: 0
maxReplicaCount: 80
pollingInterval: 2
cooldownPeriod: 200
triggers:
- type: selenium-grid
metadata:
url: 'http://selenium-hub-service:80/graphql'
browserName: 'chrome'
successCondition: 'true'
Beta Was this translation helpful? Give feedback.
All reactions