LogStratav1.0.0
Reference

Configuration

Examine the full YAML schema specifications for LogAutoscalerPolicy Custom Resources.


YAML Schema Outline

Below is a fully featured LogAutoscalerPolicy resource. Use it as a configuration template:

apiVersion: core.logstrata.io/v1alpha1
kind: LogAutoscalerPolicy
metadata:
  name: billing-scaler-rules
  namespace: prod-services
spec:
  # Reference to target application
  scaleTargetRef:
    apiVersion: apps/v1
    kind: Deployment
    name: billing-worker

  # Scaling bounds limits
  minReplicas: 2
  maxReplicas: 30
  cooldownPeriod: "90s"

  # Metrics sources definitions
  metricSources:
    - type: ElasticSearchQuery
      elasticsearch:
        query: "status:500 AND service:billing"
        timeWindow: "60s"
        trigger:
          metricName: error_rate_pct
          threshold: 5.0
          scaleFactor: 2.0

  # Active Cybersecurity Modifiers
  securityModifications:
    lockMinReplicasOnDDoS: 10
    dynamicIpBlocking: true
    mitigationCooldown: "120s"

Field Descriptions

YAML PathTypeDescription
scaleTargetRefObjectDefines the deployment name and apiVersion to modify scaling bounds on.
minReplicasIntegerAbsolute minimum pod instances the controller can scale down to.
maxReplicasIntegerAbsolute ceiling pod limits to prevent budget runaway.
elasticsearch.queryStringThe Lucene-style search query executed against Elasticsearch indices.
elasticsearch.timeWindowDurationTime period range looked back (e.g. 30s, 2m, 5m).
securityModificationsObjectMitigation properties to lock bounds and trigger firewall gates during cyber attacks.