fixing resource limits #2276
No reviewers
Labels
No labels
1week
2weeks
Failed compliance check
IP cameras
NATS
Possible security concern
Review effort 1/5
Review effort 2/5
Review effort 3/5
Review effort 4/5
Review effort 5/5
UI
aardvark
accessibility
amd64
api
arm64
auth
back-end
bgp
blog
bug
build
checkers
ci-cd
cleanup
cnpg
codex
core
dependencies
device-management
documentation
duplicate
dusk
ebpf
enhancement
eta 1d
eta 1hr
eta 3d
eta 3hr
feature
fieldsurvey
github_actions
go
good first issue
help wanted
invalid
javascript
k8s
log-collector
mapper
mtr
needs-triage
netflow
network-sweep
observability
oracle
otel
plug-in
proton
python
question
reddit
redhat
research
rperf
rperf-checker
rust
sdk
security
serviceradar-agent
serviceradar-agent-gateway
serviceradar-web
serviceradar-web-ng
siem
snmp
sysmon
topology
ubiquiti
wasm
wontfix
zen-engine
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
carverauto/serviceradar!2276
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "refs/pull/2276/head"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from GitHub pull request.
Original GitHub pull request: #1704
Original author: @mfreeman451
Original URL: https://github.com/carverauto/serviceradar/pull/1704
Original created: 2025-10-05T17:30:18Z
Original updated: 2025-10-05T17:34:35Z
Original head: carverauto/serviceradar:k8s/oom_updates
Original base: main
Original merged: 2025-10-05T17:34:26Z by @mfreeman451
PR Type
Enhancement
Description
Increase CPU and memory limits across all ServiceRadar components
Scale memory from 512Mi-1Gi to 2Gi-4Gi ranges
Boost CPU requests from 100m to 250m consistently
Enhance resource allocation for better performance
Diagram Walkthrough
File Walkthrough
serviceradar-agent.yaml
Scale agent resource limits significantlyk8s/demo/base/serviceradar-agent.yaml
serviceradar-nats.yaml
Boost NATS server memory allocationk8s/demo/base/serviceradar-nats.yaml
serviceradar-poller.yaml
Double poller resource allocationsk8s/demo/base/serviceradar-poller.yaml
serviceradar-sync.yaml
Maximize sync service resource limitsk8s/demo/base/serviceradar-sync.yaml
Imported GitHub PR comment.
Original author: @qodo-code-review[bot]
Original URL: https://github.com/carverauto/serviceradar/pull/1704#issuecomment-3369203751
Original created: 2025-10-05T17:30:40Z
PR Compliance Guide 🔍
Below is a summary of compliance checks for this PR:
No security concerns identified
No security vulnerabilities detected by AI analysis. Human verification advised for critical code.🎫 No ticket provided
Codebase context is not defined
Follow the guide to enable codebase context checks.
No custom compliance provided
Follow the guide to enable custom compliance check.
Compliance status legend
🟢 - Fully Compliant🟡 - Partial Compliant
🔴 - Not Compliant
⚪ - Requires Further Human Verification
🏷️ - Compliance label
Imported GitHub PR comment.
Original author: @qodo-code-review[bot]
Original URL: https://github.com/carverauto/serviceradar/pull/1704#issuecomment-3369204378
Original created: 2025-10-05T17:31:45Z
PR Code Suggestions ✨
Explore these optional code suggestions:
Justify resource increases with performance data
The suggestion states that the substantial CPU and memory resource increases for
various services lack supporting performance data. It recommends justifying
these changes with metrics to validate their necessity and avoid unnecessary
infrastructure costs.
Examples:
k8s/demo/base/serviceradar-sync.yaml [37-42]
k8s/demo/base/serviceradar-nats.yaml [38-43]
Solution Walkthrough:
Before:
After:
Suggestion importance[1-10]: 9
__
Why: This suggestion addresses a critical operational concern, as blindly increasing resource allocations without performance data can lead to significant, unnecessary infrastructure costs.
Increase memory request ratio
Increase the memory request for
serviceradar-agentfrom1Gito1.5Gito betteralign with the
2Gilimit, potentially improving pod stability under load.k8s/demo/base/serviceradar-agent.yaml [58-64]
Suggestion importance[1-10]: 6
__
Why: The suggestion provides a valid Kubernetes best practice to align memory requests closer to limits, which can improve pod stability and its Quality of Service (QoS) class.
Reduce excessive memory request
Reduce the memory request for
serviceradar-syncfrom2Gito1Gias the current16x increase from
128Miseems excessive and may cause resource waste.k8s/demo/base/serviceradar-sync.yaml [36-42]
Suggestion importance[1-10]: 5
__
Why: The suggestion correctly questions the large increase in memory request, which could lead to resource waste, but it lacks specific data to definitively state the new value is wrong.