Open himanshusinha2022 opened 1 day ago
Why is there a gradual increase in container memory (RAM)? Over a 7-day period, memory usage is typically lower at the start of the week and gradually increases, peaking towards the end. The drop in usage often coincides with deployments, followed by a slow increase as usage resumes. We consistently average around 2 GB of memory usage (50%). 24hrs
30 days
HTTP Scaling Trigger:
Concurrent Requests in Container Apps:
resources.properties.template.scale
section in the JSON configuration file.concurrentRequests
increases, an additional replica is added instantly, not based on a time window.concurrentRequests
property is set to 100 and there are 1000 concurrent requests, 10 replicas will be deployed.
Scaling Behavior and Replica Count Correlation with Total Requests
From the data presented in the Azure monitoring dashboard, we can observe the following key points regarding the scaling behavior and replica count in relation to the total number of API requests:
Replica Count vs. Concurrent Requests:
Total API Requests Distribution:
Understanding Concurrent Requests:
Conclusion:
Container App - Performance and OOM Issue
After checking the last 30 days:
SIGKILL
, code 137), meaning the container ran out of memory unexpectedly (Not Exact root cause)Can We Handle 3X Load?
According to our last Infra dashboard discussion, we have some action items:
As we can see now the spikes in the container app CPU usage and Replica count graph actually correlated.