Explore Scalers
Use events from MongoDB to trigger autoscaling with Kedify and KEDA
Book demo !MongoDB is a document-oriented NoSQL database designed for high performance, high availability, and automatic scaling.
Integrated with KEDA, it provides powerful event-driven autoscaling solutions for dynamic workload management based on real-time database queries.
Featured Use Cases
Scenario:
Scale a document management system dynamically as developers check-in or check-out code documents, ensuring optimal performance during peak development hours.
MongoDB Scaler Usage:
Scale based on the number of check-in and check-out operations logged in MongoDB.
KEDA Usage:
The version control system uses KEDA to monitor the transaction logs in MongoDB, dynamically adjusting the compute resources needed to handle peak loads.
Get Started
apiVersion: keda.sh/v1alpha1
kind: ScaledObject
metadata:
name: version-control-scaler
namespace: default
spec:
scaleTargetRef:
name: version-control-service
minReplicaCount: 2
maxReplicaCount: 10
triggers:
- type: mongodb
metadata:
dbName: "devops"
collection: "transactions"
query: '{"operation": {"$in": ["check-in", "check-out"]}}'
queryValue: "10"
activationQueryValue: "3"