I would like to have two tomcat servers behind a proxy_balancer so I can do rolling deploys.
I have this working so I can take down one tomcat and the other takes futire requests
<Proxy balancer://production>
BalancerMember http://10.10.10.111:8080 route=s1
BalancerMember http://10.10.10.112:8080 route=s2
ProxySet stickysession=ROUTEID
</Proxy>
ProxyPass /services balancer://production/services
Header add Set-Cookie "ROUTEID=.%{BALANCER_WORKER_ROUTE}e; path=/;" env=BALANCER_ROUTE_CHANGED
What I would now like to do is take down one server and take it off line from the pool which I can do with the balancer-manager. Then when I have upgraded and brought that server up and running - before returning to the pool I would like to be able to access it so I can sanity check it before returning to the pool. For example
ProxyPass /sanity_check http://10.10.10.111:8080/services
but that wont work becuase the server redirects itself to /services and goes through the balancer. I could do it with a separate domain but want to avoid this.
I thought of setting a cookie based on a URL param which might work but was awkward to do. Is there some feature to allow this easily. For example in HAProxy I can do this
use-server tomcat_01 if { path_end TOMCAT_01 }
use-server tomcat_02 if { path_end TOMCAT_02 }