Forum Discussion
Pieter_72260
Nimbostratus
Feb 07, 2013High speed logging and round robin load balancing issues
Hi,
We have a couple of F5 servers that have an iRule that uses HSL to send log messages to a pool of remote rsyslog daemons.
The rsyslog daemons are added to one pool, and the pool is con...
nitass
Employee
Mar 20, 2013and this is on cmp platform.
root@(ve11a)(cfg-sync Changes Pending)(Active)(/Common)(tmos) show sys tmm-info |grep -i sys::tmm
Sys::TMM: 0.0
Sys::TMM: 0.1
root@(ve11a)(cfg-sync Changes Pending)(Active)(/Common)(tmos) list ltm virtual bar
ltm virtual bar {
destination 172.28.20.16:80
ip-protocol tcp
mask 255.255.255.255
pool foo
profiles {
http { }
tcp { }
}
rules {
myrule
}
source 0.0.0.0/0
source-address-translation {
type automap
}
vlans-disabled
}
root@(ve11a)(cfg-sync Changes Pending)(Active)(/Common)(tmos) list ltm rule myrule
ltm 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@(ve11a)(cfg-sync Changes Pending)(Active)(/Common)(tmos) list ltm pool loghostp1
ltm pool loghostp1 {
members {
200.200.200.101:514 {
address 200.200.200.101
}
}
}
root@(ve11a)(cfg-sync Changes Pending)(Active)(/Common)(tmos) list ltm pool loghostp2
ltm pool loghostp2 {
members {
200.200.200.111:514 {
address 200.200.200.111
}
}
}
pool stats
root@(ve11a)(cfg-sync Changes Pending)(Active)(/Common)(tmos) show ltm pool loghostp1|grep -i total\ requests
Total Requests : 250
root@(ve11a)(cfg-sync Changes Pending)(Active)(/Common)(tmos) show ltm pool loghostp2|grep -i total\ requests
Total Requests : 250
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* 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
Discover DevCentral Connects