Comments (6)
Hello @MichaelMayer-askui ,
Thanks for reporting! Do you see any error in keda-operator logs? Could you confirm the KEDA version you are using?
from keda.
Hello @JorTurFer ,
The versions i can confirm, all keda components on version 2.13.1, see screeshoot.
The only error message from keda-operator which i receive is the following:
mongodb_scaler failed to query DATABASE in COLLECTION_NAME, because of server selection error: context deadline exceeded, current topology: { Type: ReplicaSetNoPrimary, Servers: [{ Addr: ATLAS_URL.mongodb.net:27017, Type: RSSecondary, Tag sets: diskState=READY,availabilityZone=AZ,nodeType=ELECTABLE,provider=AWS,region=AZ,workloadType=OPERATIONAL, Average RTT: 1230992348 }, { Addr: ATLAS_URL.mongodb.net:27017, Type: RSSecondary, Tag sets: provider=AWS,diskState=READY,region=AZ,workloadType=OPERATIONAL,availabilityZone=AZ,nodeType=ELECTABLE, Average RTT: 3196250 }, { Addr: ATLAS_URL.mongodb.net:27017, Type: Unknown, Last error: dial tcp IP:27017: connect: connection refused }, ] } {"type": "ScaledJob", "namespace": "NAMESPACE_NAME", "name": "SCALED_JOB_NAME", "error": "server selection error: context deadline exceeded, current topology: { Type: ReplicaSetNoPrimary, Servers: [{ Addr: ATLAS_URL.mongodb.net:27017, Type: RSSecondary, Tag sets: diskState=READY,availabilityZone=AZ,nodeType=ELECTABLE,provider=AWS,region=AZ,workloadType=OPERATIONAL, Average RTT: 1230992348 }, { Addr: ATLAS_URL.mongodb.net:27017, Type: RSSecondary, Tag sets: provider=AWS,diskState=READY,region=AZ,workloadType=OPERATIONAL,availabilityZone=AZ,nodeType=ELECTABLE, Average RTT: 3196250 }, { Addr: ATLAS_URL.mongodb.net:27017, Type: Unknown, Last error: dial tcp IP:27017: connect: connection refused }, ] }"}
github.com/kedacore/keda/v2/pkg/scalers.(*mongoDBScaler).getQueryResult
/workspace/pkg/scalers/mongo_scaler.go:231
github.com/kedacore/keda/v2/pkg/scalers.(*mongoDBScaler).GetMetricsAndActivity
/workspace/pkg/scalers/mongo_scaler.go:240
github.com/kedacore/keda/v2/pkg/scaling/cache.(*ScalersCache).GetMetricsAndActivityForScaler
/workspace/pkg/scaling/cache/scalers_cache.go:130
github.com/kedacore/keda/v2/pkg/scaling.(*scaleHandler).getScaledJobMetrics
/workspace/pkg/scaling/scale_handler.go:830
github.com/kedacore/keda/v2/pkg/scaling.(*scaleHandler).isScaledJobActive
/workspace/pkg/scaling/scale_handler.go:879
github.com/kedacore/keda/v2/pkg/scaling.(*scaleHandler).checkScalers
/workspace/pkg/scaling/scale_handler.go:262
github.com/kedacore/keda/v2/pkg/scaling.(*scaleHandler).startScaleLoop
/workspace/pkg/scaling/scale_handler.go:182
This message occurs after the high amount of connection is open and the database refused more.
from keda.
Is your connection using mongo+svr
scheme? v2.13.1 doesn't support it. I mean, if you are using Mongo Atlas based on mongo+srv
scheme, it could be the problem itself. The support for the scheme was added 3 weeks ago: #5566
Maybe you could try the main
tag setting the scheme as it's explained in next version docs: https://keda.sh/docs/2.14/scalers/mongodb/
from keda.
Yes the connection string is in mongo+svr
scheme. I will test, if the problem will be resolved by adjusting the connection string.
Now I am surprised that it works. I used this config for now ~1 year without any issues. The problems occurred right after the update to v2.13 from v2.12.
Should this not produce an error regarding wrong configuration?
from keda.
Should this not produce an error regarding wrong configuration?
It could be, I don't remind related changes but they definitively could be there, for example the mongo pkg has been updated too
from keda.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. Thank you for your contributions.
from keda.
Related Issues (20)
- Getting " no matches for kind "TriggerAuthentication" in version "keda.k8s.io/v1alpha1" ensure CRDs are installed first" while spplying scaledobject for Keda HOT 1
- leaderelection.go:320] error retrieving resource lock keda/operator.keda.sh: invalid character ', after object key HOT 3
- minReplicaCount not applied on a trigger type: cron
- GCP Stackdriver scaler doesn't work with centralized metrics scope project HOT 2
- Refactor Scalers with new declarative scaler config HOT 3
- After completing a task, the Pod consistently enters the CrashLoopBackOff state repeatedly with the same Pod. HOT 1
- Upgrade KEDA to use Debian 12 Distroless
- Add support for Cassandra TLS auth
- desiredReplicas ignored in scaledObject with trigger cron HOT 4
- Scaler not being properly closed HOT 1
- Add Scaler that Read Metrics From Current Custom Metrics Adapter HOT 3
- Keda operator pod restarts because of objectScaler HOT 5
- cron-scaler scales higher than expected HOT 2
- Continuous HPA updates with CPU Utilization trigger HOT 1
- Add support for access token authentication to an Azure Postgres Flexible Server - Postgres scaler
- Service bus scaler whith workload-identity (override) HOT 3
- Unable to scale with AmbiguousSelector message when there are multiple HPA HOT 1
- Unable to Use Behavior Field with KEDA ScaledObject HOT 1
- Support for Kubernetes v1.30 HOT 1
- ScaledObject for RabbitMQ with Quorum Queues Not Scaling
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from keda.