Forum Discussion
Ross_Fitheridge
Nov 12, 2007Nimbostratus
list and RULE_INIT
We have multiple servers with the same content. Each server has its own certificate assigned.
What I am try to achieve is a round robin load balance of redirects to these HTTPS servers.
One of the problems is that there is no checking that the servers are available, and I need to modify the list in the event of failure or maintenance.
The code works with the exception of when I remove a host from the list, if I save the iRule with a new name and apply that to the virtual server it works again ok.
What appears to happen is that the host entry in the list is still there, even though it is not in the iRule if I just update the iRule, using the iRule editor to modify the iRule. I think the RULE_INIT is not resetting my list, is there a reset I need to be doing?
Rule attached.
V9.1.2
RossF
- hooleylistCirrostratusHi Ross,
- Ross_FitheridgeNimbostratusHi Aaron,
- hooleylistCirrostratusSorry, I thought you wanted to check the status of a member in a pool. Are you wanting to just remove a host from the list of hostnames when it's out of service? If so, it would be better to define the hosts in separate datagroup and then update the datagroup when necessary. The advantage to this is that you don't need to reload the rule to initialize the change to the hosts list. You could still reference the datagroup using the list commands (or the findclass command). If you wanted to stay with the list in the RULE_INIT event, you should be able to just modify the list to add/remove hosts.
- Ross_FitheridgeNimbostratusHi Aaron,
- hooleylistCirrostratusRoss,
- hooleylistCirrostratusHi Ross,
list {host1 pool1} {host2 pool2} {host3 pool3}
- Ross_FitheridgeNimbostratusHi Aaron,
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