Forum Discussion
Chris_Stamm_183
Nimbostratus
Aug 10, 2005RPC load balancing among multiple tiers using iRules, pools and forwarding
Scenario:
We have an app that uses...
TCP port 7496 for one piece.
TCP port 3372 for another piece.
TCP port 135 for DTC that will renegotiate a high port in this case we set the RPC rang...
Chris_Stamm_183
Nimbostratus
Aug 11, 2005Ya, my post kept running on and on and I forgot to pose the question. Mainly my question was is this the proper way and is this the most efficient way. Both of which seem to be no. That makes sense on the client/server/remote/local so I will make that change and test it out.
If you have a device on the internal side is there a way to send directly to that machine through a vip. So...
If port equals 40000-40999 send to machine1
If port equals 41000-41999 send to machine2
If port equals 42000-42999 send to machine3
etc.
The only way I know how to do it is to create a pool with a single machine in it but I doubt that is the correct way to do it. So right now I have pool L6APP01 with a single device, pool L6APP02 with a single device, pool L6APP03 with a single device and pool L6APP04 with a single device.
when CLIENT_ACCEPTED { switch -glob [TCP::local_port] {
135 -
3372 -
749[6789] { pool APP_POOL }
40??? { pool L6APP01 }
41??? { pool L6APP02 }
42??? { pool L6APP03 }
43??? { pool L6APP04 }
default { discard }
}
}
Is there a better way?
I did find this but I dont see anywhere in the iRule that specifies the specific node - maybe it's a typo?
Selecting a specific server
As an alternative to the pool command, you can also write an iRule that directs traffic to a specific server within a pool. To do this, you use the node command. Figure 2 shows an example of this command.
Figure 2: Example of the node command within an iRule
iRule my_iRule1 {
when HTTP_REQUEST
if { [IP::remote_addr] ends_with ".gif" } {
node my_pool
}
}
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