Skip to content

Commit a1f4954

Browse files
authored
Merge pull request #18 from Fedosin/total-target-value
Add TotalTargetValue
2 parents d2a2644 + 645e1ef commit a1f4954

File tree

13 files changed

+437
-195
lines changed

13 files changed

+437
-195
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ This library extracts the battle-tested autoscaling algorithms from Knative Serv
1414
- **Configurable scale-up/down rates** to prevent flapping
1515
- **Scale-to-zero capabilities** with grace periods
1616
- **Support for multiple metrics**
17+
- **Flexible scaling targets** - scale based on per-pod targets or total targets across all pods
1718

1819
## Installation
1920

@@ -107,7 +108,8 @@ See the [examples/](examples/) directory for a complete example of integrating l
107108

108109
The library can be configured through environment variables (with `AUTOSCALER_` prefix) or programmatically. Key settings include:
109110

110-
- `AUTOSCALER_TARGET_VALUE`: Target metric value per pod
111+
- `AUTOSCALER_TARGET_VALUE`: Target metric value per pod (mutually exclusive with `TOTAL_TARGET_VALUE`)
112+
- `AUTOSCALER_TOTAL_TARGET_VALUE`: Total target metric value across all pods (mutually exclusive with `TARGET_VALUE`)
111113
- `AUTOSCALER_STABLE_WINDOW`: Time window for metric averaging (default: 60s)
112114
- `AUTOSCALER_PANIC_THRESHOLD_PERCENTAGE`: When to enter panic mode (default: 200%)
113115

0 commit comments

Comments
 (0)