For event-driven autoscaling, Perper Fabric implements the KEDA external scaler protocol.
Example usage:
apiVersion: keda.sh/v1alpha1
kind: ScaledObject
metadata:
name: scaledobject-name # Name of the ScaledObject resource itself
namespace: scaledobject-namespace
spec:
scaleTargetRef:
name: deployment-name # Name of the Deployment/etc. to scale
triggers:
- type: external
metadata:
scalerAddress: perper-fabric.svc.local:40400
agent: ScaledAgent # Name of the agent that the Deployment represents
targetExecutions: "10" # Target executions per instance
# OR: targetInstances: "10"