I had done simple setup:
Backend(website):
1 machine having tomcat installed and serving on 8080.
webapps folder of tomcat has two folder
1 withGoogleRule1
|--test.html
2 withoutGoogleRule1
|--test.html
Now i have a google-load-balancer setup with below settings
Now Backend machine direct
ip is http://104.197.37.171:8080/withoutGoogleRule1/test.html
Load Balancer url is http://107.178.240.39:8080/withoutGoogleRule1/test.html
PROBLEM:
No matter how many time we refresh url for direct machine, all requests always servers correctly.
But if you access url using load balancer 1 out of 5 time it shows
The requested URL /withoutGoogleRule1/test.html was not found on this server.
Details:
Youtube Video showing the failure of request
PS:
Instance group details: