title: Google Load-balancer randomly failing requests to backend
body: <p>I had done simple setup:<br />
  <strong>Backend(website):</strong>
  1 machine having tomcat installed and serving on 8080.<br />
  webapps folder of tomcat has two folder</p>
  <pre><code>1 withGoogleRule1
         |--test.html
  2 withoutGoogleRule1
         |--test.html
  </code></pre>
  <p>Now i have a google-load-balancer setup with below settings</p>
  <p><a href="https://i.stack.imgur.com/fhdG3.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/fhdG3.png" alt="enter image description here" /></a></p>
  <p>Now Backend machine <code>direct</code> ip is <a href="http://104.197.37.171:8080/withoutGoogleRule1/test.html" rel="nofollow noreferrer">http://104.197.37.171:8080/withoutGoogleRule1/test.html</a></p>
  <p>Load Balancer url is
  <a href="http://107.178.240.39:8080/withoutGoogleRule1/test.html" rel="nofollow noreferrer">http://107.178.240.39:8080/withoutGoogleRule1/test.html</a></p>
  <p><strong>PROBLEM:</strong></p>
  <p>No matter how many time we refresh url for direct machine, all requests always servers correctly.</p>
  <p>But if you access url using load balancer 1 out of 5 time it shows</p>
  <pre><code>The requested URL /withoutGoogleRule1/test.html was not found on this server.
  </code></pre>
  <p><strong>Details:</strong></p>
  <p><a href="https://www.youtube.com/watch?v=bwujqLucreg" rel="nofollow noreferrer">Youtube Video</a> showing the failure of request</p>
  <p><strong>PS:</strong></p>
  <p><strong>Instance group details:</strong></p>
  <p><a href="https://i.stack.imgur.com/k0XGz.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/k0XGz.png" alt="enter image description here" /></a></p>
  <h2><strong>LoadBalancer backend details</strong></h2>
  <p><a href="https://i.stack.imgur.com/0vESG.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/0vESG.png" alt="enter image description here" /></a></p>