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 Path | Type | Description |
|---|---|---|
| scaleTargetRef | Object | Defines the deployment name and apiVersion to modify scaling bounds on. |
| minReplicas | Integer | Absolute minimum pod instances the controller can scale down to. |
| maxReplicas | Integer | Absolute ceiling pod limits to prevent budget runaway. |
| elasticsearch.query | String | The Lucene-style search query executed against Elasticsearch indices. |
| elasticsearch.timeWindow | Duration | Time period range looked back (e.g. 30s, 2m, 5m). |
| securityModifications | Object | Mitigation properties to lock bounds and trigger firewall gates during cyber attacks. |