feat: per policy overridable stream limits - #18994
Conversation
This comment was marked as outdated.
This comment was marked as outdated.
55fa9e3 to
b1ba974
Compare
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
4082207 to
0b25718
Compare
This comment was marked as outdated.
This comment was marked as outdated.
|
Claude finished @salvacorts's task —— View job PR Review: Policy Stream Limits ImplementationI've completed a thorough review of this PR focusing on code quality, potential bugs, performance, security, and test coverage. Review Checklist
Implementation OverviewThis PR implements policy-specific stream limit overrides for Loki's ingestion system. The key changes include:
Code Quality & Best Practices ✅Positive aspects:
Areas for improvement:
Potential Bugs & Issues 🔍1. Good: Race condition properly handled: 2. Good: Proper stream removal tracking: 3. Consistent policy handling: 4. Excellent: Policy cleanup implementation: Performance Considerations ⚡Positive aspects:
Potential optimizations:
Security Concerns 🔒Low risk areas identified:
Recommendations:
Test Coverage 📝Excellent test coverage:
Areas that could use additional testing:
Key Technical Insights 🔧1. Policy Precedence Logic ( 2. Stream Ownership Tracking ( 3. Limit Enforcement ( 4. Memory Management ( Minor Recommendations 🔧
Overall Assessment ⭐This is a well-implemented feature that:
The implementation is production-ready with only minor documentation improvements suggested. |
JordanRushing
left a comment
There was a problem hiding this comment.
This LGTM, the abstraction makes sense and it seems correctly plumbed through the existing owned streams code.
What this PR does / why we need it:
Adds policy-specific overrides for
max_streams_per_userandmax_global_streams_per_userlimits.Special notes for your reviewer:
Checklist
CONTRIBUTING.mdguide (required)featPRs are unlikely to be accepted unless a case can be made for the feature actually being a bug fix to existing behavior.docs/sources/setup/upgrade/_index.mddeprecated-config.yamlanddeleted-config.yamlfiles respectively in thetools/deprecated-config-checkerdirectory. Example PR