Forum Discussion
Antonio_349
Nimbostratus
Jul 05, 2016Use Datagroup like a Pool
Hi all,
I have a Datagroup with 2 values:
- IP Address of Servers;
- Value of Server Loads.
Is there a way to load balance connections to these Datagroup Members (related to their Servers Load)?...
Vijay_E
Cirrus
Jul 05, 2016I feel this is quite complicated way of distributing the load. Have you tried the simple methods first and failed ? My recommendations are "Least Connections (Member)" for starters and then try the Predictive method. Utilize OneConnect if you want to load balance HTTP Requests instead of connections.
If you still insist on using datagroup, this is a rough iRule for starters:
when CLIENT_ACCEPTED {
if { [class search -value CLASS_DATAGROUP] eq "1" } {
set IP [class search CLASS_DATAGROUP]
node $IP 80
}
}I would like to warn that using node in iRule can break certain persistence function and has caused trouble when upgrading between 10.x and 11.x code version.
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