Forum Discussion
SERVER_CONNECTED and oneconnect
SERVER_CONNECTED:Triggered when a connection has been established with the target node. OneConnect:The BIG-IP OneConnect feature allows the BIG-IP system to reuse existing server-side connections that have become idle.
I have one question: whether SERVER_CONNECTED be triggered if LTM reuse oneconnect connection (not a new connection,but an idle connection)
5 Replies
- The_Bhattman
Nimbostratus
I think the answer is that it does not get triggered because it's re-using a idle connection.
I hope this helps -=Bhattman=-
- Robert_47833
Altostratus
how to prove this?
- nitass
Employee
how to prove this?
you can just put log command in SERVER_CONNECTED. it won't be executed when re-using an existing server connection. :)
- nitass
Employee
e.g.
config root@(ve11a)(cfg-sync In Sync)(Active)(/Common)(tmos) list ltm virtual bar ltm virtual bar { destination 172.28.20.15:80 ip-protocol tcp mask 255.255.255.255 pool foo profiles { http { } oneconnect { } tcp { } } rules { myrule } source 0.0.0.0/0 source-address-translation { type automap } vs-index 24 } root@(ve11a)(cfg-sync In Sync)(Active)(/Common)(tmos) list ltm pool foo ltm pool foo { members { 200.200.200.101:80 { address 200.200.200.101 } } } root@(ve11a)(cfg-sync In Sync)(Active)(/Common)(tmos) list ltm rule myrule ltm rule myrule { when CLIENT_ACCEPTED { log local0. "[IP::client_addr]:[TCP::client_port]" } when SERVER_CONNECTED { log local0. "[IP::local_addr]:[TCP::local_port]" } } client [root@centos20 ~] ab -n 5 http://172.28.20.15/ 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.20.15 (be patient).....done Server Software: Apache/2.2.3 Server Hostname: 172.28.20.15 Server Port: 80 Document Path: / Document Length: 89 bytes Concurrency Level: 1 Time taken for tests: 0.31097 seconds Complete requests: 5 Failed requests: 0 Write errors: 0 Total transferred: 1917 bytes HTML transferred: 445 bytes Requests per second: 160.79 [/sec] (mean) Time per request: 6.219 [ms] (mean) Time per request: 6.219 [ms] (mean, across all concurrent requests) Transfer rate: 32.16 [Kbytes/sec] received Connection Times (ms) min mean[+/-sd] median max Connect: 1 1 0.0 1 1 Processing: 3 4 2.3 5 8 Waiting: 2 4 2.2 4 7 Total: 4 5 2.3 6 9 Percentage of the requests served within a certain time (ms) 50% 5 66% 7 75% 7 80% 9 90% 9 95% 9 98% 9 99% 9 100% 9 (longest request) bigip [root@ve11a:Active:In Sync] config tail -f /var/log/ltm Dec 24 01:25:42 ve11a info tmm[2836]: Rule /Common/myrule : 172.28.20.20:47046 Dec 24 01:25:42 ve11a info tmm[2836]: Rule /Common/myrule : 200.200.200.14:47046 Dec 24 01:25:42 ve11a info tmm1[2836]: Rule /Common/myrule : 172.28.20.20:47047 Dec 24 01:25:42 ve11a info tmm1[2836]: Rule /Common/myrule : 200.200.200.14:47047 Dec 24 01:25:42 ve11a info tmm[2836]: Rule /Common/myrule : 172.28.20.20:47048 Dec 24 01:25:42 ve11a info tmm1[2836]: Rule /Common/myrule : 172.28.20.20:47049 Dec 24 01:25:42 ve11a info tmm[2836]: Rule /Common/myrule : 172.28.20.20:47050 - Robert_47833
Altostratus
Thanks Nitass you are right
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com