Hi all,
I have a piece of code
servers.conf
FINAL 172.16.31.51:8080|172.16.31.49:8080
Rewritemap servers rnd:/usr/local/httpd/conf/servers.conf
RewriteRule ^/image/?file=(.*)$ http://${servers:FINAL}/upload/$1
servers.conf has two tomcat machines which does the same thing.To balance load i have created servers.conf. Now every http request of pattern /image?file="XYZ" will go to one of the machines in round robin fashion. Suppose if one of the machine is down due to some reasons or it is unable to upload the file. It is not giving any response. Then i automatically need to pass the request to the other server after a certain timeout...how can i do this??. Also How can i pass the request to two machines simultaneously (parallelism).