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

v1.0.0 - Rabbitmq Scaler not scaling past 1. #503

Closed
Jinkxed opened this issue Dec 6, 2019 · 3 comments
Closed

v1.0.0 - Rabbitmq Scaler not scaling past 1. #503

Jinkxed opened this issue Dec 6, 2019 · 3 comments
Labels
bug Something isn't working

Comments

@Jinkxed
Copy link

Jinkxed commented Dec 6, 2019

A clear and concise description of what the bug is.

Expected Behavior

Scale target should scale to maxreplicaCount specification.

Actual Behavior

Scale target scales to 1.

Errors in the log show:

{"level":"error","ts":1575675604.989792,"logger":"scalehandler","msg":"Error updating scaledObject status","ScaledObject.Namespace":"us-east-1-stg","ScaledObject.Name":"signal-worker","ScaledObject.ScaleType":"deployment","error":"Operation cannot be fulfilled on scaledobjects.keda.k8s.io \"signal-worker\": the object has been modified; please apply your changes to the latest version and try again","stacktrace":"github.com/go-logr/zapr.(*zapLogger).Error\n\t/go/pkg/mod/github.com/go-logr/[email protected]/zapr.go:128\ngithub.com/kedacore/keda/pkg/handler.(*ScaleHandler).updateScaledObjectStatus\n\tkeda/pkg/handler/scale_handler.go:47\ngithub.com/kedacore/keda/pkg/handler.(*ScaleHandler).scaleDeployment\n\tkeda/pkg/handler/scale_deployments.go:35\ngithub.com/kedacore/keda/pkg/handler.(*ScaleHandler).handleScaleDeployment\n\tkeda/pkg/handler/scale_loop.go:130\ngithub.com/kedacore/keda/pkg/handler.(*ScaleHandler).handleScale\n\tkeda/pkg/handler/scale_loop.go:45\ngithub.com/kedacore/keda/pkg/handler.(*ScaleHandler).HandleScaleLoop\n\tkeda/pkg/handler/scale_loop.go:28"}

Seeing this error message for every scaled object deployed.

Code Used:

kind: ScaledObject
metadata:
  name: "signal-worker"
  labels:
    application: "signal-worker"
    namespace: "us-east-1-stg"
    helm.sh/chart: {{ include "..chart" . }}
spec:
  minReplicaCount: 0
  maxReplicaCount: 20
  scaleTargetRef:
    deploymentName: "signal-worker"
  triggers:
  - type: rabbitmq
    metadata:
      host: RABBITMQ_URL
      queueName: "some_rabbit_queue"
      queueLength: "1"
@Jinkxed Jinkxed added the bug Something isn't working label Dec 6, 2019
@jeffhollan
Copy link
Member

I think it's because you are missing the deploymentName label in the ScaledObject.

https://keda.sh/concepts/scaling-deployments/

Let me know if that fixes it, as at the very least we should make the error much better here

@Jinkxed
Copy link
Author

Jinkxed commented Dec 7, 2019

Yup - that fixed it. Not sure how I missed something so simple, but very much appreciate the quick response!

@Jinkxed Jinkxed closed this as completed Dec 7, 2019
@jeffhollan
Copy link
Member

Thanks - I'll create a bug right now that we should fix this error message.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants