Which container state attributes in Docker Compose or Kubernetes should you monitor during a load test?
Asked at
AI answer
During a load test, it’s important to monitor not only CPU and memory, but also resource trends and signs of degradation. For containers: CPU usage and throttling, working set/RSS and OOM kills, limits and restarts, network traffic and errors, disk I/O, and volume usage. For Kubernetes, also monitor the status and number of ready replicas, restarts and termination reasons, pending pods, scheduling events and errors, resource usage relative to requests/limits, HPA behavior, and node status. At the application level, useful metrics include RPS, p50/p95/p99 latency, errors, request queues, and connection-pool saturation. With Compose, similarly check service status and restarts, logs, application and host metrics. Collect metrics with timestamps and correlate them with the load profile.
Also asked at Т1
- What enables the OpenSearch engine to return results quickly across a huge database (what algorithm is it based on)?
- How can you tell that a service is showing signs of degradation or has stopped functioning? What error codes would you expect?
- Why is Object Storage used in this architecture, and what exactly do we store there?
- Based on your experience, name an example of a task similar to the architecture we discussed. How exactly were the microservices interactions and event delivery set up?
- How would you handle user authorization when they sign in to the interface and upload documents?
Similar questions
- How did you determine when a particular service needed to be scaled in Kubernetes?
- How would you organize load testing for the designed service: what baseline scenarios, signs of degradation, and Kubernetes container metrics should be monitored?
- Do you use Docker or Docker Compose?
- What do you consider a high load: how many requests per second or per minute?
- Have you ever written a Dockerfile or `docker-compose.yml` yourself?