<div dir="ltr"><div>Hi Per,<br><br></div><div>From the tcpdump, the request was passed to the varnish listening port (80) and then passed to the wrong backend. The weird thing was all the bad transaction passed to backend do not have any varnish related header as it should be.<br>
</div><div><br>Good one<br>GET /6/3/3/6/4/221446336.ea HTTP/1.1<br>User-Agent: Java/1.4.2_19<br>Host: <a href="http://cache.internal.myserver.com">cache.internal.myserver.com</a><br>Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2<br>
X-Forwarded-For: 10.150.4.118, 10.150.0.220<br>X-Varnish: 570940624<br><br>Bad one<br>GET /6/3/3/6/4/221446336.ea HTTP/1.1<br>User-Agent: Java/1.4.2_19<br>Host: <a href="http://cache.internal.myserver.com">cache.internal.myserver.com</a><br>
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2<br>X-Forwarded-For: 10.150.0.220<br><br></div>Thanks,<br><br>Lei<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Aug 16, 2013 at 6:20 AM, Per Buer <span dir="ltr"><<a href="mailto:perbu@varnish-software.com" target="_blank">perbu@varnish-software.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi Lei,<div><br></div><div>It sounds like they are somehow bypassing your Varnish installation. If they where handled by Varnish they would be in varnishlog. Maybe the loadbalancer is doing something weird? Or the webservers have an exposed IP address outside the LB?</div>
<span class="HOEnZb"><font color="#888888">
<div><br></div><div>Per.</div></font></span></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Aug 16, 2013 at 2:21 PM, Lei Wang <span dir="ltr"><<a href="mailto:leiwang@rhapsody.com" target="_blank">leiwang@rhapsody.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div>Hi Per,<br><br></div>There are not in varnishlog and even varnishncsa log. There only trace may useful is the captured network tcpdump. It is quite big ans shows load balance sent correct header and url to varnish listen port, then passed to wrong backend.<br>
<br></div>Thanks,<br><br>Lei<br></div><div><div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Aug 16, 2013 at 1:10 AM, Per Buer <span dir="ltr"><<a href="mailto:perbu@varnish-software.com" target="_blank">perbu@varnish-software.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Hi Lei,</div><div><div><br></div>On Thu, Aug 15, 2013 at 8:09 PM, Lei Wang <span dir="ltr"><<a href="mailto:leiwang@rhapsody.com" target="_blank">leiwang@rhapsody.com</a>></span> wrote:<br>
</div><div class="gmail_extra">
<div class="gmail_quote"><div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I have varnish 3 (varnish-3.0.4 revision 9f83e8f) installed to cache multi-site in one configuration. Sometimes Varnish switched to use the first backend in the configuration for all the requests to the other sites. As in the sample configuration below, the request to backend2, backend3, backend4 sometimes forwarded to backend1. Does anyone have the same problem or know any solution, suggestion?</div>
</blockquote><div><br></div></div><div>Could you see if you can post a varnishlog statement showing this behaviour? It should be fairly easy to find one if it happens regularly.</div><div><br></div><div><br></div><div>Cheers,</div>
<div><br></div><div>Per.</div><span><font color="#888888"><div><br></div></font></span></div><span><font color="#888888">-- <br><div dir="ltr"><div style="color:rgb(34,34,34);font-size:12.727272033691406px;font-family:arial,sans-serif;margin:5px 15px 0px 0px;padding-bottom:5px">
<table style="text-align:start;font-size:12px;line-height:1.5em;font-family:'Helvetica Neue',Arial,sans-serif;color:rgb(102,102,102);width:550px;border-top-width:1px;border-top-style:solid;border-top-color:rgb(238,238,238);border-bottom-width:1px;border-bottom-style:solid;border-bottom-color:rgb(238,238,238);margin-top:20px;padding-top:5px;padding-bottom:5px" border="0" cellpadding="0" cellspacing="0">
<tbody><tr><td style="font-family:arial,sans-serif;margin:0px" width="100"><a href="http://www.varnish-software.com/" style="color:rgb(17,85,204)" target="_blank"><img style="float:left;margin-left:10px"></a></td>
<td style="font-family:arial,sans-serif;margin:0px"><b style="font-size:14px;color:rgb(34,34,34)">Per Buer</b><br>CTO | Varnish Software AS<br>Phone: <a href="tel:%2B47%20958%2039%20117" value="+4795839117" target="_blank">+47 958 39 117</a> | Skype: per.buer<br>
<span style="font-weight:bold">We Make Websites Fly!<br>
<br></span><span style="font-family:'Helvetica Neue',Arial,sans-serif;font-size:14px;font-weight:bold">Winner of the Red Herring Top 100 Europe Award 2013<br></span><p style="margin:0px;line-height:normal;font-family:Helvetica">
<img></p><span style="font-weight:bold"><br></span></td></tr></tbody></table><div></div></div><div style="clear:both;color:rgb(34,34,34);font-size:12.727272033691406px;font-family:arial,sans-serif;margin:15px 0px">
</div></div>
</font></span></div></div>
</blockquote></div><br></div>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr"><div style="color:rgb(34,34,34);font-size:12.727272033691406px;font-family:arial,sans-serif;margin:5px 15px 0px 0px;padding-bottom:5px">
<table style="text-align:start;font-size:12px;line-height:1.5em;font-family:'Helvetica Neue',Arial,sans-serif;color:rgb(102,102,102);width:550px;border-top-width:1px;border-top-style:solid;border-top-color:rgb(238,238,238);border-bottom-width:1px;border-bottom-style:solid;border-bottom-color:rgb(238,238,238);margin-top:20px;padding-top:5px;padding-bottom:5px" border="0" cellpadding="0" cellspacing="0">
<tbody><tr><td style="font-family:arial,sans-serif;margin:0px" width="100"><a href="http://www.varnish-software.com/" style="color:rgb(17,85,204)" target="_blank"><img style="float:left;margin-left:10px"></a></td>
<td style="font-family:arial,sans-serif;margin:0px"><b style="font-size:14px;color:rgb(34,34,34)">Per Buer</b><br>CTO | Varnish Software AS<br>Phone: <a href="tel:%2B47%20958%2039%20117" value="+4795839117" target="_blank">+47 958 39 117</a> | Skype: per.buer<br>
<span style="font-weight:bold">We Make Websites Fly!<br>
<br></span><span style="font-family:'Helvetica Neue',Arial,sans-serif;font-size:14px;font-weight:bold">Winner of the Red Herring Top 100 Europe Award 2013<br></span><p style="margin:0px;line-height:normal;font-family:Helvetica">
<img></p><span style="font-weight:bold"><br></span></td></tr></tbody></table><div></div></div><div style="clear:both;color:rgb(34,34,34);font-size:12.727272033691406px;font-family:arial,sans-serif;margin:15px 0px">
</div></div>
</div>
</div></div></blockquote></div><br></div>