Forum Discussion
Jérôme_ANGLES
Nimbostratus
Apr 23, 2012reselect pool node based on http uri and status of the current selected node
Hi,
I have a problem creating an irules to force selection of another node based on the HTTP uri and the current selected node state.
I need this irules to help ou...
Jérôme_ANGLES
Nimbostratus
Apr 30, 2012I have some some new informations about my problem.
first, I saw that the LB::status command doesn't seem to work in the HTTP_REQUEST event. I put some log to see which node is select and there where no answer from the BigIP (null). The command was :
log local0. "server info pool [LB::server pool] member [LB::server addr] port [LB::server port]"
so i rebuilt my irule :
when HTTP_REQUEST {
set orig_uri [HTTP::uri]
}
when LB_SELECTED {
if {[LB::status] == "session_disabled" && $orig_uri == "/test/test.php"} {
just to be sure about the current selected node
log local0. "server info pool [LB::server pool] member [LB::server addr] port [LB::server port]"
now trying to select another node using the load balancing algorithm
log local0. "LB reslect"
LB::reselect
}
}
The problem is still there, the LB::reselect command doesn't seems to work...
If someone have an idea...
Thanks,
Jérôme
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