]> git.ipfire.org Git - thirdparty/elfutils.git/commitdiff
tests: Lower parallel lookups in run-debuginfod-webapi-concurrency.sh
authorMark Wielaard <mark@klomp.org>
Sat, 23 Apr 2022 01:20:17 +0000 (03:20 +0200)
committerMark Wielaard <mark@klomp.org>
Sat, 23 Apr 2022 01:20:17 +0000 (03:20 +0200)
With 100 parallel lookups we sometimes see:
Server reached connection limit. Closing inbound connection.

Lower parallel lookups to 64

Signed-off-by: Mark Wielaard <mark@klomp.org>
tests/ChangeLog
tests/run-debuginfod-webapi-concurrency.sh

index c734b26098d7220bf3d80d96928d20bddddfa4c9..2286f53f5ad62b5c5db8b7f83e45d295e398aa66 100644 (file)
@@ -1,3 +1,7 @@
+2022-04-23  Mark Wielaard  <mark@klomp.org>
+
+       * run-debuginfod-webapi-concurrency.sh: Lower parallel lookups.
+
 2022-03-01  Di Chen <dichen@redhat.com>
 
        * alldts.c (dtflags): Put DT_NULL last.
index 402a6307013c4f6b8e0b392a932c5696e4024e3b..4928f6d00381fa4dc44239d7dc7e364bbe95a277 100755 (executable)
@@ -47,12 +47,13 @@ do
     wait_ready $PORT1 'thread_busy{role="scan"}' 0
 
     # Do a bunch of lookups in parallel
-    for jobs in `seq 100`; do
+    lookup_nr=64
+    for jobs in `seq $lookup_nr`; do
         curl -s http://localhost:$PORT1/buildid/cee13b2ea505a7f37bd20d271c6bc7e5f8d2dfcb/debuginfo > /dev/null &
     done
 
-    # all 100 curls should succeed
-    wait_ready $PORT1 'http_responses_transfer_bytes_count{code="200",type="debuginfo"}' 100
+    # all curls should succeed
+    wait_ready $PORT1 'http_responses_transfer_bytes_count{code="200",type="debuginfo"}' $lookup_nr
     
     (sleep 5;
      curl -s http://localhost:$PORT1/metrics | egrep 'error|responses';