-
Notifications
You must be signed in to change notification settings - Fork 420
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
timeout of wrk for hotel-reservation #265
Comments
Solved by modifying -- local socket = require("socket")
require("socket") However, new error messages occur as follows: ./wrk -D exp -t 5 -c 5 -d 30 -L -s ./wrk2/scripts/hotel-reservation/mixed-workload_type_1.lua http://localhost:5000 -R 2
./wrk2/scripts/hotel-reservation/mixed-workload_type_1.lua: ./wrk2/scripts/hotel-reservation/mixed-workload_type_1.lua:3: attempt to index global 'socket' (a nil value)
./wrk2/scripts/hotel-reservation/mixed-workload_type_1.lua: ./wrk2/scripts/hotel-reservation/mixed-workload_type_1.lua:3: attempt to index global 'socket' (a nil value)
./wrk2/scripts/hotel-reservation/mixed-workload_type_1.lua: ./wrk2/scripts/hotel-reservation/mixed-workload_type_1.lua:3: attempt to index global 'socket' (a nil value)
./wrk2/scripts/hotel-reservation/mixed-workload_type_1.lua: ./wrk2/scripts/hotel-reservation/mixed-workload_type_1.lua:3: attempt to index global 'socket' (a nil value)
./wrk2/scripts/hotel-reservation/mixed-workload_type_1.lua: ./wrk2/scripts/hotel-reservation/mixed-workload_type_1.lua:3: attempt to index global 'socket' (a nil value)
./wrk2/scripts/hotel-reservation/mixed-workload_type_1.lua: ./wrk2/scripts/hotel-reservation/mixed-workload_type_1.lua:3: attempt to index global 'socket' (a nil value)
Running 30s test @ http://localhost:5000
5 threads and 5 connections
Thread calibration: mean lat.: 3035.979ms, rate sampling interval: 9297ms
Thread calibration: mean lat.: 3269.293ms, rate sampling interval: 10117ms
Thread calibration: mean lat.: 3606.058ms, rate sampling interval: 11608ms
Thread calibration: mean lat.: 2063.866ms, rate sampling interval: 6012ms
Thread calibration: mean lat.: 2554.942ms, rate sampling interval: 7536ms
-----------------------------------------------------------------------
Test Results @ http://localhost:5000
Thread Stats Avg Stdev 99% +/- Stdev
Latency 5.85s 991.09ms 8.10s 66.93%
Req/Sec 6.98k 133.76 7.20k 55.56%
Latency Distribution (HdrHistogram - Recorded Latency)
50.000% 5.83s
75.000% 6.52s
90.000% 7.20s
99.000% 8.10s
99.900% 8.34s
99.990% 8.44s
99.999% 8.45s
100.000% 8.45s
Detailed Percentile spectrum:
Value Percentile TotalCount 1/(1-Percentile)
3004.415 0.000000 4 1.00
4583.423 0.100000 69586 1.11
5001.215 0.200000 139855 1.25
5296.127 0.300000 209343 1.43
5558.271 0.400000 278475 1.67
5832.703 0.500000 348425 2.00
5967.871 0.550000 382637 2.22
6098.943 0.600000 417746 2.50
6234.111 0.650000 452584 2.86
6377.471 0.700000 487131 3.33
6520.831 0.750000 522105 4.00
6598.655 0.775000 539182 4.44
6701.055 0.800000 556466 5.00
6819.839 0.825000 573661 5.71
6934.527 0.850000 591130 6.67
7057.407 0.875000 608295 8.00
7127.039 0.887500 617315 8.89
7200.767 0.900000 626080 10.00
7274.495 0.912500 634522 11.43
7356.415 0.925000 643433 13.33
7434.239 0.937500 651959 16.00
7483.391 0.943750 656144 17.78
7544.831 0.950000 660595 20.00
7622.655 0.956250 664880 22.86
7696.383 0.962500 669234 26.67
7770.111 0.968750 673770 32.00
7802.879 0.971875 675657 35.56
7852.031 0.975000 677990 40.00
7901.183 0.978125 680039 45.71
7954.431 0.981250 682182 53.33
8003.583 0.984375 684421 64.00
8036.351 0.985938 685480 71.11
8065.023 0.987500 686581 80.00
8085.503 0.989062 687629 91.43
8110.079 0.990625 688752 106.67
8138.751 0.992188 689831 128.00
8155.135 0.992969 690359 142.22
8171.519 0.993750 690875 160.00
8187.903 0.994531 691417 182.86
8204.287 0.995313 691936 213.33
8216.575 0.996094 692540 256.00
8224.767 0.996484 692846 284.44
8232.959 0.996875 693030 320.00
8241.151 0.997266 693311 365.71
8253.439 0.997656 693552 426.67
8265.727 0.998047 693821 512.00
8273.919 0.998242 693959 568.89
8282.111 0.998437 694131 640.00
8290.303 0.998633 694230 731.43
8314.879 0.998828 694368 853.33
8347.647 0.999023 694530 1024.00
8351.743 0.999121 694572 1137.78
8368.127 0.999219 694647 1280.00
8384.511 0.999316 694704 1462.86
8396.799 0.999414 694798 1706.67
8404.991 0.999512 694865 2048.00
8413.183 0.999561 694900 2275.56
8421.375 0.999609 694998 2560.00
8421.375 0.999658 694998 2925.71
8421.375 0.999707 694998 3413.33
8429.567 0.999756 695070 4096.00
8429.567 0.999780 695070 4551.11
8429.567 0.999805 695070 5120.00
8429.567 0.999829 695070 5851.43
8437.759 0.999854 695137 6826.67
8437.759 0.999878 695137 8192.00
8437.759 0.999890 695137 9102.22
8437.759 0.999902 695137 10240.00
8437.759 0.999915 695137 11702.86
8437.759 0.999927 695137 13653.33
8437.759 0.999939 695137 16384.00
8445.951 0.999945 695171 18204.44
8445.951 0.999951 695171 20480.00
8445.951 0.999957 695171 23405.71
8445.951 0.999963 695171 27306.67
8445.951 0.999969 695171 32768.00
8445.951 0.999973 695171 36408.89
8445.951 0.999976 695171 40960.00
8445.951 0.999979 695171 46811.43
8445.951 0.999982 695171 54613.33
8445.951 0.999985 695171 65536.00
8445.951 0.999986 695171 72817.78
8445.951 0.999988 695171 81920.00
8445.951 0.999989 695171 93622.86
8445.951 0.999991 695171 109226.67
8454.143 0.999992 695177 131072.00
8454.143 1.000000 695177 inf
#[Mean = 5851.785, StdDeviation = 991.094]
#[Max = 8445.952, Total count = 695177]
#[Buckets = 27, SubBuckets = 2048]
-----------------------------------------------------------------------
1044159 requests in 30.00s, 1.65GB read
Requests/sec: 34806.78
Transfer/sec: 56.20MB
PR#198 fixes this "attempt to index global 'socket' (a nil value)" error by adding |
-- local socket = require("socket")
require("socket") This change worked for me as well. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I deploy hotel-reservation by docker-compose and the page of 'http://localhost:5000' can be visited successfully.
However, when I try the command
./wrk -D exp -t 5 -c 5 -d 30 -L -s ./wrk2/scripts/hotel-reservation/mixed-workload_type_1.lua http://localhost:5000 -R 2
, the result is as follow:I note that
0 requests in 30.01s, 0.00B read Socket errors: connect 0, read 0, write 0, timeout 70
which means all requests are failed. Is there any problem?The text was updated successfully, but these errors were encountered: