dlegate_23320
Mar 09, 2012Nimbostratus
iRule to Migrate to new server based on URL (directory) text?
Can iRules direct requests to a specific server/s based on text in the URL?
Scenario:
We have an old production server (physical) that is NOT load balanced.
We have new virtual servers to replace that server.
Instead of doing one massive cut-over for all the applications on this server, we wondered if we put the phyiscal server behind the F5 (with the new virtual replacements).
At first, we make sure ALL requests only go to server1.com (original physical server).
Then, when each application is "ready" on the new servers, one-by-one we add their directory name to an iRule and based on that, the request goes to the new server/s instead of the old.
For example, let's say we have an application at:
https://server.com/app1/
still being delivered from server1.com. But we've moved all its code to server2.com and server3.com, and they are ready to start handling those requests.
We add an iRule that sees "app1" in the URL and makes sure those requests are ONLY handled by server2.com and server3.com and NEVER by server1.com.
Is that possible with an iRule?
Thanks!
Dan