Closed suhaibmujahid closed 1 year ago
I just did a load test with ab and 1000 requests and all requests succeeded:
ab -n 1000 -c 10 https://whattrainisitnow.com/api/release/schedule/?version=beta
This is ApacheBench, Version 2.3 <$Revision: 1901567 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/
Benchmarking whattrainisitnow.com (be patient)
Completed 100 requests
Completed 200 requests
Completed 300 requests
Completed 400 requests
Completed 500 requests
Completed 600 requests
Completed 700 requests
Completed 800 requests
Completed 900 requests
Completed 1000 requests
Finished 1000 requests
Server Software: Apache
Server Hostname: whattrainisitnow.com
Server Port: 443
SSL/TLS Protocol: TLSv1.3,TLS_AES_128_GCM_SHA256,2048,128
Server Temp Key: X25519 253 bits
TLS Server Name: whattrainisitnow.com
Document Path: /api/release/schedule/?version=beta
Document Length: 759 bytes
Concurrency Level: 10
Time taken for tests: 40.007 seconds
Complete requests: 1000
Failed requests: 0
Total transferred: 1417000 bytes
HTML transferred: 759000 bytes
Requests per second: 25.00 [#/sec] (mean)
Time per request: 400.069 [ms] (mean)
Time per request: 40.007 [ms] (mean, across all concurrent requests)
Transfer rate: 34.59 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 171 180 5.2 181 208
Processing: 205 214 7.0 215 352
Waiting: 205 214 7.0 215 352
Total: 377 394 10.6 396 528
Percentage of the requests served within a certain time (ms)
50% 396
66% 400
75% 402
80% 403
90% 405
95% 407
98% 411
99% 419
100% 528 (longest request)
The error message talks about a proxy error, are the autonag scripts behind a proxy? Remove the proxy? Increase the timeout before failing?
Googling this error message, I saw a stackoverflow comment with a similar error message stating that updating the requests library fixed it for them, I don't know which version you use but maybe worth a shot.
Thank you, Pascal!
The error message talks about a proxy error, are the autonag scripts behind a proxy?
Yes
Remove the proxy?
It is an intermittent error
Increase the timeout before failing?
I will try to do that as a workaround if other solutions fail to solve the issue.
Googling this error message, I saw a stackoverflow comment with a similar error message stating that updating the requests library fixed it for them, I don't know which version you use but maybe worth a shot.
Currently we use v2.22.0
, I update it to the latest version in #1935; let's hope it will fix it :)