Darren_M_19965
Jun 11, 2012Nimbostratus
Need some direction Monitor vs iRule to determine to fail over
So, as the title and summary state, I'm looking for some direction here.
I need to know how to accomplish the following.
One can assume the following simple configuration:
OS/Hardware: 2 Windows 2003r2 servers behind an F5.
We'll call them Svr1 and Svr2. They are effectively identical.
Purpose:
The servers are transactional and receive a plain text IP request string on port 1200. Process the request and respond on the same port to the client.
Simplified Sample Request:
VALIDATEADDRESS|ADDR_LINE1-1|East Street|ADDR_LINE2-1|Nickerson Road|ADDR_LINE3-1|MA|ADDR_CITY-1|Marlborough|ADDR_COUNTRY-1|US|ADDR_ZIP-1|01752|ADDR_STATE-1|MA|SFCUSTNUM|101|AUDIT_USER|mdarren|LANGUAGE|en_US|
Result:
TRANSTYPE|VALIDATEADDRESS|ERRCODE|000000000|ADDRVALIDATE_TYPE|CSZIP|
Normally, the F5 is weighted so that Svr1 gets all the messages. However, if Svr1, the service, or the port is down I want to fail over to Svr2. Also, if for any reason I get an error code NOT equal to ERRCODE|00000000 I want to fail over as well. And, when the fail over DOES occur, I want to send an email from the F5 notifying of the fault.
So, my question is, which tool set should I use to accomplish this?
Thanks in advance,
Darren M