<div>Could you print the output for?<br /> $ ss -s</div>
<div>$ sudo sysctl -a|egrep "ip_local_port_range|tcp_max_tw_buckets|backlog|somaxconn"</div>
<div> </div>
<hr style="border-top: 1px solid #ccc;" />
<div><br /><strong>De:</strong> japrice@gmail.com<br /><strong>Enviada:</strong> Sexta-feira, 25 de Abril de 2014 22:10<br /><strong>Para:</strong> varnish-misc@varnish-cache.org<br /><strong>Assunto:</strong> System can't take more than 5k req /sec<br /><br />Note: this isn't a varnish question, per se, because varnish indicates it isn't the problem. </div>
<div> </div>
<div>What OS parameters has the community found valuable to tweak?</div>
<div> </div>
<div>Varnish 3.0.5, running on a c3.4xlarge amazon instance. 16 'cores', 30gb ram, amazon linux (aka RHEL 6ish) and half of a 10gb card to play with. Very recent linux kernel.</div>
<div> </div>
<div>We see approximately 50% cache hit. Payload is approximately 3.5kBytes compressed. Response times are averaging 10 milliseconds... Backend response time is around 17-20 milliseconds. We aren't seeing any lru_nuked objects, so the cache is sized appropriately for the cachability of the data (we can only cache for 15ish minutes due to the nature of the data).</div>
<div> </div>
<div>Threads set to 4k per thread pool. Two thread pools, increased sess-workspace. I see queued messages in varnish stat, but I never see dropped messages, and I don't see the thread count getting near max of 8k (usually hovers around 3300-3500). We have a very high requests to connections ratio (approximately 100:1).</div>
<div> </div>
<div>Vmod for url coding is in play, and occasionally some syslog messages.</div>
<div> </div>
<div>Tcp socket reuse and recycle got us some improvement. I've also played with the txqueuelen on the network interface, and a couple other related parameters to little avail.</div>
<div> </div>
<div>Anything I can do?</div>
<div> </div>
<div>-Jason</div>
<div>_______________________________________________<br />varnish-misc mailing list<br />varnish-misc@varnish-cache.org<br /><a href="https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc" target="_blank">https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc</a></div>