How to set up iRules to create a generic site that will distribute to multiple servers/pools
We wouold like to set up a generic site using LTM that will distribute out to multiple servers/pools.
I currently have it working by storing pool info in a Cookie and the checking the Cookie everytime through the iRule. It works well, except if the client tries to use a second window or tab to go to a second site through the iRule. I only have one Cookie, so it can only track one session.
I've thought of creating multiple cookies, like poolcookie1, poolcookie2, etc., but I don't know how I would tie the proper cookie to the proper window. Does anybody have any ideas on how I might do this?
As an example, we want ltm.xxx.com/accounting to go to a pool of accounting servers, ltm.xxx.com/email to go to a pool of Mail servers, and so on. We do have an irule that figures out whi8ch pool to go to, changes the URI to the appropriate URI, and also sets and reads a cookie to keep track of what pools to use.