Forum Discussion
Hamish
May 11, 2021Cirrocumulus
Hmm...
Thinking outside the box a bit.
You could keep a global variable that says whether to continue to service content. Then add an iRUle that triggers events for data received. So you effectively get an event triggered for pretty much every packet. When you get the event,
e.g.
https://clouddocs.f5.com/api/irules/SERVER_DATA.html
When you trigger , check the variable to say whether the service is up or down. if it's down, drop the connection. If it's up, let the data through. you'd need some way to control the global that states of the service is up or down, but apart from that and some minor concerns about scalability, it should work...
H