Back to Firecrawl

Scraping Load Testing - Test #4

apps/test-suite/load-test-results/tests-1-5/load-test-4.md

2.9.03.8 KB
Original Source

Scraping Load Testing - Test #4

Summary

The load test was conducted with the Fly.io configuration set to a hard limit of 100 and a soft limit of 50. The test involved four phases with varying arrival rates. Despite the adjustments, there were 1329 timeouts (14.8%) but no HTTP 502 responses. The average response time was 3547.9 ms, with a peak response time of 9935 ms. Further adjustments to the artillery timeout configuration are recommended to improve performance.

Table of Contents

Test environment

Machines

MachineSize/CPUStatus
e286de4f711e86 mia (app)performance-cpu-1x@2048MBalways on
73d8dd909c1189 mia (app)performance-cpu-1x@2048MBalways on
6e82050c726358 mia (app)performance-cpu-1x@2048MBpaused
4d89505a6e5038 mia (app)performance-cpu-1x@2048MBpaused
48ed6e6b74e378 mia (app)performance-cpu-1x@2048MBpaused

Load Test Phases

Configuration

toml
# fly.staging.toml
[http_service.concurrency]
  type = "requests"
  hard_limit = 100
  soft_limit = 50
yml
# load-test.yml
- duration: 60
arrivalRate: 10  # Initial load
- duration: 120
arrivalRate: 20  # Increased load
- duration: 180
arrivalRate: 30  # Peak load
- duration: 60
arrivalRate: 10  # Cool down

Results

Date: 15:43:26(-0300)

MetricValue
errors.ETIMEDOUT1329
http.codes.2007671
http.downloaded_bytes0
http.request_rate23/sec
http.requests9000
http.response_time.min999
http.response_time.max9935
http.response_time.mean3547.9
http.response_time.median2836.2
http.response_time.p958352
http.response_time.p999607.1
http.responses7671
vusers.completed7671
vusers.created9000
vusers.created_by_name.Scrape a URL9000
vusers.failed1329
vusers.session_length.min1063.4
vusers.session_length.max10006.8
vusers.session_length.mean3616
vusers.session_length.median2893.5
vusers.session_length.p958352
vusers.session_length.p999607.1

Metrics


Conclusions and Next Steps

Conclusions

  1. Performance: The system handled 9000 requests with a mean response time of 3547.9 ms. There were 1329 timeouts but no HTTP 502 responses.
  2. Response Times: The peak response time was 9935 ms, indicating that the system struggled under peak load conditions.

Next Steps

  1. Adjust Timeout Configuration: Change the artillery timeout configuration to reduce the number of timeouts.
  2. Further Load Tests: Conduct additional load tests with the new timeout configuration to assess improvements.

By following these steps, we can enhance the system's performance and reliability under varying load conditions.