Repository navigation
Conversation
There was a problem hiding this comment.
Code Review
This pull request improves the autoscaling documentation by removing the explicit setting of metrics_interval_s in examples, thus promoting the use of the safer default value. It also adds a helpful warning about the risks of setting this interval too low. The changes are clear and correct. I've added one comment suggesting a further improvement for consistency in the documentation.
| ::{warning} | ||
| Setting `metrics_interval_s` too low (for example, `0.1`) can significantly | ||
| increase metrics traffic and overload the Serve controller running on the head | ||
| node. Keep the default value (`10`) unless you have validated controller | ||
| capacity for a lower interval. | ||
| :: |
There was a problem hiding this comment.
This is a great warning to add. For consistency with this new guidance, should the other examples in this file that set metrics_interval_s: 2 (e.g., on lines 372, 392, 464, 484, 504) also be updated to use the default value? Using the default value everywhere would make the documentation more consistent and less likely to mislead users.
|
fix the DCO, you need to sign your commits |
Signed-off-by: Paritosh Dwivedi <[email protected]>
ece69fe to
458fad8
Compare
|
This pull request has been automatically marked as stale because it has not had You can always ask for help on our discussion forum or Ray's public slack channel. If you'd like to keep this open, just leave any comment, and the stale label will be removed. |
Summary
metrics_interval_s=0.1from Serve autoscaling doc-code examples so they use the default intervalmetrics_interval_scan overload the Serve controller on the head nodeFiles changed
doc/source/serve/doc_code/custom_metrics_autoscaling.pydoc/source/serve/doc_code/autoscaling_policy.pydoc/source/serve/advanced-guides/advanced-autoscaling.mdValidation
python3 -m compileall doc/source/serve/doc_code/autoscaling_policy.py doc/source/serve/doc_code/custom_metrics_autoscaling.pyCloses #61043