You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
i am trying to execute a job per message in rabbitmq.
Setting maxReplicaCount for ScaledObject of 'job' type is not doing anything. i would expect that if i set this value to x, and there is x messages in the queue, x jobs will be created.
my yaml file looks like this:
i am trying to execute a job per message in rabbitmq.
Setting maxReplicaCount for ScaledObject of 'job' type is not doing anything. i would expect that if i set this value to x, and there is x messages in the queue, x jobs will be created.
my yaml file looks like this:
apiVersion: keda.k8s.io/v1alpha1
kind: ScaledObject
metadata:
name: {scaled-object-name}
spec:
scaleType: job
jobTargetRef:
deploymentName: {scaled-object-name}
parallelism: 1
completions: 1
activeDeadlineSeconds: 300
backoffLimit: 1
template:
# job description - starting image with nodejs app with rabbit listener
pollingInterval: 5
cooldownPeriod: 5
minReplicaCount: 0
maxReplicaCount: 20
triggers:
- type: prometheus
metadata:
serverAddress: {promotheus address}
metricName: {metric name for rabbit metrics in promotheus}
threshold: 1
query: {queue-name}
Expected Behavior
for x messages in the queue i would expect x jobs would be created.
Actual Behavior
only 1 job is created and only after termination a new job spawns.
Steps to Reproduce the Problem
Specifications
The text was updated successfully, but these errors were encountered: