Forum Discussion
keegan_morrison
Nimbostratus
Jul 27, 2012Create pool with existing node memners
I am trying to create a new pool using tmsh with already existing node members. I am using the following syntax: tmsh create ltm pool /demo-dashboard/ddsdemo-web_http_pool memb...
Lee_Sutcliffe
Nacreous
Aug 22, 2018I’ve written this on my phone so apologies if it’s not 100% correct as I’ve not tested it. This example will take the first field of the Host header up to th first “.” Which in your example is admin, but it could be anything. It then replaces the host header using the test2 host and adding the dynamic first field.
when HTTP_REQUEST {
set hostField [getfield [HTTP::host] “.” 1]
HTTP::header replace "Host" ${hostField}.test2.mycompany.com
}
- Jérôme_ANGLESApr 24, 2012
Nimbostratus
I think the node command will work, but it doesn't use the load balancing method. - Jérôme_ANGLESApr 30, 2012
Nimbostratus
I have some some new informations about my problem.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 } }