PT Workload Modeling Ramp-Up Duration & User Load Calc
PT Workload Modeling Ramp-Up Duration & User Load Calc
Workload modeling is a crucial step in performance testing that defines how users interact with a
system over time. The key components include:
• User Load (Concurrency): The number of virtual users (VUs) interacting with the system
simultaneously.
• Ramp-Up Strategy: The rate at which users are introduced into the system.
• Steady-State Duration: The time for which the system is tested at peak load.
These components ensure that the test accurately simulates real-world user behavior and helps in
identifying system bottlenecks.
Workload modeling must align with business goals and Service Level Agreements (SLAs). Key
business requirements include:
1. Expected Peak Load: How many concurrent users does the system need to handle?
Example:
For an e-commerce platform expecting 10,000 concurrent users on Black Friday with an SLA of ≤
2s response time, the performance test should simulate:
1. Monitoring Tools:
▪ Session durations.
o Use log analysis tools like Splunk or ELK Stack to visualize trends.
o The ramp-up should match the auto-scaling threshold (e.g., every 5 minutes).
o Example: If AWS Auto Scaling Group (ASG) scales every 2 minutes, the ramp-up
should introduce 100 users every 2 minutes.
Example:
o JMeter Configuration: Set Thread Group Ramp-Up = 1200 seconds (20 min).
Rather than adding users continuously, they are injected in batches to prevent early failures.
JMeter Configuration:
Example Calculation
• JMeter Configuration:
• Max Load Capacity: If the database supports 2,000 TPS, and avg response time is 3 sec,
then: 2000×3=6000 concurrent users
• SLA-Based Load Testing: Adjust user load to find the maximum sustainable number of
users under the SLA constraints.
Peak Load Simulates the highest expected user load. SLA validation
Step Load Gradually increases load in steps to find breaking Capacity planning
points.
Soak Test Sustains load for long periods. Memory leaks, stability
testing
7. Conclusion
• JMeter can implement these strategies using Thread Groups & Timers.
Below are other 3 ramp-up models, each with detailed calculations and examples.
• All users are injected within a short time (e.g., 1-2 minutes).
• Used for stress testing, DDoS simulation, and flash sales scenarios.
Example Calculation:
JMeter Configuration:
Use Case:
• Designed for AWS Auto Scaling, Kubernetes Horizontal Pod Autoscaler (HPA), Azure VM
Scale Sets.
Use Case:
A retail website expecting 50,000 concurrent users during Black Friday should use a hybrid
ramp-up strategy:
1. Stepwise Ramp-Up for first 10,000 users (to warm up caches, CDNs).
3. Wave-Based Load (±5,000 users every 10 min) to mimic real-world purchase behavior.
Test Configuration
Conclusion
5. Spike ramp-up is essential for stress testing and event-driven traffic surges.