docs: add autoscaler and scaling policies guide#535
Merged
kcenon merged 2 commits intoFeb 8, 2026
Conversation
Comprehensive documentation for the autoscaling subsystem covering: - Architecture with monitor loop state machine diagram - Scaling policies: scale-up OR logic, scale-down AND logic - Complete autoscaler API reference - Pool integration via autoscaling_pool_policy - Metrics and observability (samples, decisions, stats, callbacks) - Configuration examples for basic, burst, and manual scaling - Best practices for thresholds, cooldowns, and production monitoring - Anti-patterns and troubleshooting guide
6 tasks
Contributor
📊 Performance Benchmark ResultsPerformance Benchmark ReportNo benchmark data available. ℹ️ No baseline reference availableThis is the first benchmark run or baseline file is missing. |
The autoscaling_pool_policy constructor takes thread_pool& but the example used pool (shared_ptr) instead of *pool.
Owner
Author
Test Plan Verification ResultsAll 4 test plan items have been verified against the source code. 1. Code Examples vs Current API
2. Scaling Thresholds and Defaults
3. Anti-Patterns vs
|
| Item | Status |
|---|---|
| Code examples compile against current API | Fixed 1 bug, rest OK |
| Scaling thresholds match source | All 18 values match |
| Anti-patterns match is_valid() | All 6 accurate |
| Documentation links resolve | All 10 links valid |
Contributor
📊 Performance Benchmark ResultsPerformance Benchmark ReportNo benchmark data available. ℹ️ No baseline reference availableThis is the first benchmark run or baseline file is missing. |
kcenon
added a commit
that referenced
this pull request
Apr 13, 2026
* docs: add autoscaler and scaling policies guide (#530) Comprehensive documentation for the autoscaling subsystem covering: - Architecture with monitor loop state machine diagram - Scaling policies: scale-up OR logic, scale-down AND logic - Complete autoscaler API reference - Pool integration via autoscaling_pool_policy - Metrics and observability (samples, decisions, stats, callbacks) - Configuration examples for basic, burst, and manual scaling - Best practices for thresholds, cooldowns, and production monitoring - Anti-patterns and troubleshooting guide * fix(docs): dereference pool pointer in composing policies example The autoscaling_pool_policy constructor takes thread_pool& but the example used pool (shared_ptr) instead of *pool.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
docs/AUTOSCALER_GUIDE.mddocumentation for the autoscaling subsystemCloses #530
Test Plan
autoscaler.h,autoscaling_policy.h,autoscaling_pool_policy.h)autoscaling_policy.hsourceis_valid()implementation