haproxy/reg-tests/lua/httpclient_action.vtc
Willy Tarreau 48d5ef363d REGTESTS: restrict execution to a single thread group
When threads are enabled and running on a machine with multiple CCX
or multiple nodes, thread groups are now enabled since 3.3-dev2, causing
load-balancing algorithms to randomly fail due to incoming connections
spreading over multiple groups and using different load balancing indexes.

Let's just force "thread-groups 1" into all configs when threads are
enabled to avoid this.
2025-06-30 18:54:35 +02:00

45 lines
1009 B
Plaintext

varnishtest "Lua: test the httpclient when the lua action timeout"
#
# Start an httpclient from "lua.test" whose lua task will expire before the
# httpclient is ended.
feature cmd "$HAPROXY_PROGRAM -cc 'version_atleast(2.5-dev7)'"
feature ignore_unknown_macro
#REQUIRE_OPTIONS=LUA
haproxy h1 -conf {
global
.if feature(THREAD)
thread-groups 1
.endif
tune.lua.bool-sample-conversion normal
lua-load ${testdir}/httpclient_action.lua
defaults
mode tcp
timeout http-request 10s
timeout queue 1m
timeout connect 10s
timeout client 1m
timeout server 1m
timeout check 10s
listen li1
mode http
bind "fd@${fe1}"
tcp-request inspect-delay 10ms
tcp-request content lua.test
http-request return status 503
} -start
client c0 -connect ${h1_fe1_sock} {
txreq
rxresp
expect resp.status == 503
} -run