You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
And I see following failure of the test (@i-rinat also observed this, but not always):
test_tls (tls.test_tls_stress.StressTls) ...
Init test case...
Starting Nginx on 127.0.0.1:8000
Starting TempestaFW on localhost
Running 1 HTTP clients on localhost
Running 10s test @ https://127.0.0.1/
2 threads and 10 connections
Thread Stats Avg Stdev Max +/- Stdev
Latency 6.86ms 6.74ms 35.80ms 74.63%
Req/Sec 27.71 14.47 134.00 75.44%
540 requests in 10.10s, 137.11KB read
Socket errors: connect 0, read 2639, write 0, timeout 0
Requests/sec: 53.46
Transfer/sec: 13.57KB
---- RESULTS --------
Status 200 : 540 times
---- END ------------
WARNING! Socket errors on wrk. Too many concurrent connections?
Client: errors: 2639, requests: 540, rate: 53
Clients in total: errors: 2639, requests: 540, rate: 53
errors 500: 0
errors 502: 0
errors 504: 0
errors connect: 0
errors read: 2639
errors write: 0
errors timeout: 0
FAIL
Stopping TempestaFW on localhost
Stopping Nginx on 127.0.0.1:8000
Removing Nginx config for 127.0.0.1:8000
======================================================================
FAIL: test_tls (tls.test_tls_stress.StressTls)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/root/tempesta-test/tls/test_tls_stress.py", line 39, in test_tls
self.generic_test_routine(config)
File "/root/tempesta-test/testers/stress.py", line 287, in generic_test_routine
self.generic_asserts_test()
File "/root/tempesta-test/testers/stress.py", line 277, in generic_asserts_test
self.assert_clients()
File "/root/tempesta-test/testers/stress.py", line 187, in assert_clients
self.assert_client(req, err, statuses)
File "/root/tempesta-test/testers/stress.py", line 171, in assert_client
self.assertEqual(err, e_500 + e_502 + e_504 + e_connect, msg=msg)
AssertionError: HTTP client detected 2639/540 errors. Results: {200: 540, 'write_error': 0, 'timeout_error': 0, 'connect_error': 0, 'read_error': 2639}
----------------------------------------------------------------------
Ran 1 test in 10.918s
FAILED (failures=1)
Need to understand the reason for read errors, use BPF or at least strace or systemtap to research the nature of the errors. When we understand the reason, we'll need to fix the test.
The test is written using the deprecated API, so please rewrite it using the new framework.
The text was updated successfully, but these errors were encountered:
As @avbelov23 mentioned in off-github discussion, the issue is highly likely caused by TLS encryption that garbles data pages from the pagecache.
Indeed, I can reproduce the same error on Tempesta from master branch, but code from #1264 which makes sure not to overwrite pages from cache, makes test failures go away. I also tried to turn off sendfile Nginx option in tests, and that also made the test pass.
Check that you have the latest wrk:
since today I observed that older wrk not always produce actual load (check fix tempesta-tech/tempesta-test#105 which makes corresponding assertion).
I have following config:
And I see following failure of the test (@i-rinat also observed this, but not always):
Need to understand the reason for read errors, use
BPF
or at leaststrace
orsystemtap
to research the nature of the errors. When we understand the reason, we'll need to fix the test.The test is written using the deprecated API, so please rewrite it using the new framework.
The text was updated successfully, but these errors were encountered: