2024-05-02 09:25:53 -04:00
|
|
|
varnishtest "Preload counters via stats-file"
|
|
|
|
|
|
2024-05-03 10:32:30 -04:00
|
|
|
feature cmd "$HAPROXY_PROGRAM -cc 'version_atleast(3.0-dev9)'"
|
2024-05-02 09:25:53 -04:00
|
|
|
feature ignore_unknown_macro
|
|
|
|
|
|
|
|
|
|
haproxy h1 -conf {
|
|
|
|
|
global
|
2025-06-30 12:44:07 -04:00
|
|
|
.if feature(THREAD)
|
|
|
|
|
thread-groups 1
|
|
|
|
|
.endif
|
|
|
|
|
|
2024-05-02 09:25:53 -04:00
|
|
|
stats-file ${testdir}/sample-stats-file
|
|
|
|
|
|
2024-11-19 01:43:04 -05:00
|
|
|
defaults
|
|
|
|
|
timeout client 30s
|
|
|
|
|
timeout server 30s
|
|
|
|
|
timeout connect 30s
|
|
|
|
|
|
2024-05-02 09:25:53 -04:00
|
|
|
frontend fe
|
|
|
|
|
guid guid-fe
|
|
|
|
|
bind "fd@${feS}" guid-prefix guid-feS
|
|
|
|
|
|
|
|
|
|
frontend fe2
|
|
|
|
|
guid guid-fe2
|
|
|
|
|
option socket-stats
|
|
|
|
|
bind "fd@${fe2S}" guid-prefix guid-fe2S
|
|
|
|
|
|
|
|
|
|
backend be
|
|
|
|
|
guid guid-be
|
|
|
|
|
server srv ${s1_addr}:${s1_port} guid guid-srv
|
|
|
|
|
} -start
|
|
|
|
|
|
|
|
|
|
haproxy h1 -cli {
|
|
|
|
|
send "show stat fe 15 -1 typed"
|
2025-04-15 05:49:42 -04:00
|
|
|
expect ~ "F.*.*.*.stot.1:MCP.*:u64:1024"
|
2024-05-02 09:25:53 -04:00
|
|
|
|
|
|
|
|
send "show stat fe2 15 -1 typed"
|
2025-04-15 05:49:42 -04:00
|
|
|
expect ~ "L.*.*.*.stot.1:MCP.*:u64:1024"
|
2024-05-02 09:25:53 -04:00
|
|
|
|
|
|
|
|
send "show stat be 15 -1 typed"
|
2025-04-15 05:49:42 -04:00
|
|
|
expect ~ "B.*.*.*.stot.1:MCP.*:u64:1024"
|
2024-05-02 09:25:53 -04:00
|
|
|
send "show stat be 15 -1 typed"
|
2025-04-15 05:49:42 -04:00
|
|
|
expect ~ "S.*.*.*.stot.1:MCP.*:u64:1024"
|
2024-05-02 09:25:53 -04:00
|
|
|
}
|