<div dir="ltr">sorry but I failed to understand "same storage space". Even I have not done any such configuration tewak.<div><br></div><div>Though I like to share first few lines of varnishstat which shows the poor cache_hit</div>
<div><br></div><div><div>0+00:57:24</div><div>Hitrate ratio: 2 2 2</div><div>Hitrate avg: 0.0149 0.0149 0.0149</div><div><br></div><div> 35062 0.00 10.18 client_conn - Client connections accepted</div>
<div> 35062 0.00 10.18 client_req - Client requests received</div><div> 2 0.00 0.00 cache_hit - Cache hits</div><div> 34994 0.00 10.16 cache_hitpass - Cache hits for pass</div>
<div> 66 0.00 0.02 cache_miss - Cache misses</div><div> 34975 0.00 10.16 backend_conn - Backend conn. success</div></div><div><br></div></div><div class="gmail_extra"><br><br>
<div class="gmail_quote">On Wed, Apr 23, 2014 at 1:49 PM, Guillaume Quintard <span dir="ltr"><<a href="mailto:guillaume.quintard@smartjog.com" target="_blank">guillaume.quintard@smartjog.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000"><div><div class="h5">
<div>On 04/23/2014 10:13 AM, Joydeep Bakshi
wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">Dear list,
<div><br>
</div>
<div>When use nginx+apache the web hit rates maximize
dramatically. But when introduce varnish in between as
nginx->varnish->apache the hit rates reduce.</div>
<div>How to optimize varnish to get higher hit rates ?</div>
<br>
</div>
</blockquote>
<br></div></div>
Did you give the same storage space to varnish as you did to nginx?<br>
This can be of interest:
<a href="https://www.varnish-cache.org/docs/3.0/tutorial/increasing_your_hitrate.html" target="_blank">https://www.varnish-cache.org/docs/3.0/tutorial/increasing_your_hitrate.html</a><span class="HOEnZb"><font color="#888888"><br>
<pre cols="72">--
Guillaume Quintard</pre>
</font></span></div>
</blockquote></div><br></div>