On 08/27/2018 10:46 PM, PiBa-NL wrote:
Hi Frederic, Oliver,

Thanks for your investigations :).
I've made a little reg-test (files attached). Its probably not 'correct' to commit as-is, but should be enough to get a reproduction.. I hope..

changing it to nbthread 1 makes it work every time..(that i tried)

The test actually seems to show a variety of issues.
## Every once in a while it takes like 7 seconds to run a test.. During which cpu usage is high..

do you think we can reproduce this 200% CPU usage issue after having disabled ssl like that:

diff --git a/reg-tests/lua/b00002.lua b/reg-tests/lua/b00002.lua
index 1053430f..c623d229 100644
--- a/reg-tests/lua/b00002.lua
+++ b/reg-tests/lua/b00002.lua
@@ -164,7 +164,7 @@ end

 core.register_service("fakeserv", "http", function(applet)
        core.Info("APPLET START")
-       local mc = Luacurl("127.0.0.1",8443, true)
+       local mc = Luacurl("127.0.0.1",8443, false)
        local headers = {}
        local body = ""
        core.Info("APPLET GET")
diff --git a/reg-tests/lua/b00002.vtc b/reg-tests/lua/b00002.vtc
index 1d634d56..11d4d5ae 100644
--- a/reg-tests/lua/b00002.vtc
+++ b/reg-tests/lua/b00002.vtc
@@ -2,6 +2,11 @@ varnishtest "Lua: txn:get_priv() scope"
 feature ignore_unknown_macro

 haproxy h1 -conf {
+       defaults
+               timeout connect 1s
+               timeout client 1s
+               timeout server 1s
+
     global
         nbthread 3
         lua-load ${testdir}/b00002.lua
@@ -14,7 +19,7 @@ haproxy h1 -conf {

     frontend fe2
         mode http
-        bind ":8443" ssl crt ${testdir}/common.pem
+        bind ":8443" #ssl crt ${testdir}/common.pem
         stats enable
         stats uri /

Reply via email to