The persistence method you mention is for HTTP traffic using the VS, not the HSL traffic. The HSL Pool configuration looks good. Do you know if the F5 is opening multiple connections or just one?
i did test on my 10.2.4 unit and got the same issue (i.e. hsl log is sent to only one pool member. additionally, only 3-way handshake is done). i think it could be a bug.
have you opened a support case? if not yet, would you mind logging a case to verify?
[root@ve10:Active] config b virtual bar list
virtual bar {
snat automap
pool foo
destination 172.28.19.252:80
ip protocol 6
rules myrule
profiles {
http {}
tcp {}
}
}
[root@ve10:Active] config b rule myrule list
rule myrule {
when RULE_INIT {
set static::i 0
}
when CLIENT_ACCEPTED {
if { $static::i == 0 } {
set loghost loghostp1
set static::i 1
} else {
set loghost loghostp2
set static::i 0
}
set hsl [HSL::open -proto TCP -pool $loghost]
}
when HTTP_REQUEST {
set host [HTTP::host]
set uri [HTTP::uri]
}
when HTTP_RESPONSE {
HSL::send $hsl "<190> [IP::client_addr]:[TCP::client_port] $host $uri\n"
}
}
[root@ve10:Active] config b pool loghostp1 list
pool loghostp1 {
members 200.200.200.101:514 {}
}
[root@ve10:Active] config b pool loghostp2 list
pool loghostp2 {
members 200.200.200.111:514 {}
}
send 500 requests to virtual server
[root@centos251 ~] ab -n 500 http://172.28.19.252/
This is ApacheBench, Version 2.0.40-dev <$Revision: 1.146 $> apache-2.0
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Copyright 2006 The Apache Software Foundation, http://www.apache.org/
Benchmarking 172.28.19.252 (be patient)
Completed 100 requests
Completed 200 requests
Completed 300 requests
Completed 400 requests
Finished 500 requests
Server Software: Apache/2.2.3
Server Hostname: 172.28.19.252
Server Port: 80
Document Path: /
Document Length: 89 bytes
Concurrency Level: 1
Time taken for tests: 2.145340 seconds
Complete requests: 500
Failed requests: 0
Write errors: 0
Total transferred: 175500 bytes
HTML transferred: 44500 bytes
Requests per second: 233.06 [/sec] (mean)
Time per request: 4.291 [ms] (mean)
Time per request: 4.291 [ms] (mean, across all concurrent requests)
Transfer rate: 79.71 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 0 0.6 0 3
Processing: 2 3 1.2 3 14
Waiting: 2 2 1.3 3 13
Total: 3 3 1.3 3 14
Percentage of the requests served within a certain time (ms)
50% 3
66% 4
75% 4
80% 4
90% 4
95% 5
98% 8
99% 10
100% 14 (longest request)
pool stats
[root@ve10:Active] config b pool loghostp1|grep -i request
| requests (total) = 250
[root@ve10:Active] config b pool loghostp2|grep -i request
| requests (total) = 250
SOL17398 covers this. Load balancing decisions are made in the logging profile, and HSL will stick to the pool member chosen until the server indicates it can’t keep up or the connection is lost, at which point another pool member is seleted. As of 12.0 you can change the distribution approach to “balanced” to spread the log messages evenly across pool members. This is done in the unformatted HSL log destination configuration setting for Distribution.
(old question but answer may help future searchers)