Skip to content

Instantly share code, notes, and snippets.

@agavra
Created November 1, 2023 03:12
Show Gist options
  • Select an option

  • Save agavra/b122b00168042675213e39f17946a9d7 to your computer and use it in GitHub Desktop.

Select an option

Save agavra/b122b00168042675213e39f17946a9d7 to your computer and use it in GitHub Desktop.
Sample Responsive Autoscaling Policy
apiVersion: "application.responsive.dev/v1"
kind: "ResponsivePolicy"
metadata:
name: example-policy
namespace: responsive
spec:
applicationNamespace: responsive
applicationName: example
status: POLICY_STATUS_MANAGED
policyType: KAFKA_STREAMS
kafkaStreamsPolicy:
maxReplicas: 10
minReplicas: 3
diagnosers:
- type: EXPECTED_LATENCY
expectedLatency:
maxExpectedLatencySeconds: 60
scaleUpStrategy:
type: RATE_BASED
- type: THREAD_SATURATION
threadSaturation:
threshold: .65
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment