Varnish seems to restart itself every so often, usually after a few days. We finally installed some SSD's, which made all the difference and our system load came down to the .02 - .2 range.<br><br>I don't currently have any logging turned on. If I did, would it have any useful information for me? <br>
<br>We typically don't have more that 700k objects cached. I also never see the worker threads go above 400. We are running on CentOS 5.<br><br>Our config:<br><br>NFILES=131072<br>MEMLOCK=90000<br>DAEMON_COREFILE_LIMIT="unlimited"<br>
VARNISH_VCL_CONF=/etc/varnish/instructables.vcl<br>VARNISH_LISTEN_ADDRESS=<br>VARNISH_LISTEN_PORT=80<br>VARNISH_ADMIN_LISTEN_ADDRESS=127.0.0.1<br>VARNISH_ADMIN_LISTEN_PORT=82<br>VARNISH_MIN_THREADS=400<br>VARNISH_MAX_THREADS=4000<br>
VARNISH_THREAD_TIMEOUT=60<br>VARNISH_STORAGE_FILE=/var/lib/varnish/mmap<br>VARNISH_STORAGE_SIZE=50G<br>VARNISH_STORAGE="file,${VARNISH_STORAGE_FILE},${VARNISH_STORAGE_SIZE}"<br>VARNISH_TTL=1800<br><br>DAEMON_OPTS="-a ${VARNISH_LISTEN_ADDRESS}:${VARNISH_LISTEN_PORT} \<br>
-f ${VARNISH_VCL_CONF} \<br> -T ${VARNISH_ADMIN_LISTEN_ADDRESS}:${VARNISH_ADMIN_LISTEN_PORT} \<br> -t ${VARNISH_TTL} \<br> -w ${VARNISH_MIN_THREADS},${VARNISH_MAX_THREADS},${VARNISH_THREAD_TIMEOUT} \<br>
-u varnish -g varnish \<br> -s ${VARNISH_STORAGE} \<br> -p obj_workspace=4096 \<br> -p sess_workspace=262144 \<br> -p lru_interval=3600 \<br> -p listen_depth=8192 \<br>
-p log_hashstring=off \<br> -p sess_timeout=10 \<br> -p shm_workspace=32768 \<br> -p ping_interval=1 \<br> -p thread_pools=4 \<br> -p thread_pool_min=100 \<br>
-p thread_pool_max=4000 \<br> -p srcaddr_ttl=0 \<br> -p esi_syntax=1 "<br><br>I don't think out load is all that heavy and we have a high hitrate ratio. Our varnishstat output.<br>
<br>0+11:02:14 <br>Hitrate ratio: 10 100 133<br>Hitrate avg: 0.9875 0.9833 0.9832<br><br> 15370527 325.94 386.84 Client connections accepted<br>
15370517 325.94 386.84 Client requests received<br> 14604988 320.94 367.57 Cache hits<br> 182795 4.00 4.60 Cache hits for pass<br> 581426 1.00 14.63 Cache misses<br>
765513 5.00 19.27 Backend connections success<br> 1 0.00 0.00 Backend connections failures<br> 119 . . N struct sess_mem<br> 10 . . N struct sess<br>
447866 . . N struct object<br> 440545 . . N struct objecthead<br> 913238 . . N struct smf<br> 4490 . . N small free smf<br>
2 . . N large free smf<br> 0 . . N struct vbe_conn<br> 112 . . N struct bereq<br> 400 . . N worker threads<br>
400 0.00 0.01 N worker threads created<br> 313048 0.00 7.88 N worker threads limited<br> 1 . . N backends<br> 126326 . . N expired objects<br>
1250255 . . N LRU moved objects<br> 18 0.00 0.00 HTTP header overflows<br> 13645614 292.95 343.42 Objects sent with write<br> 15370518 327.94 386.84 Total Sessions<br>
15370510 327.94 386.84 Total Requests<br> 7 0.00 0.00 Total pipe<br> 191394 5.00 4.82 Total pass<br> 765481 9.00 19.27 Total fetch<br> 7252376430 156332.93 182523.19 Total header bytes<br>
74103505138 772233.39 1864989.81 Total body bytes<br> 15370160 327.94 386.83 Session Closed<br> 365 0.00 0.01 Session herd<br> 758091326 15625.09 19079.16 SHM records<br>
62365137 1317.75 1569.57 SHM writes<br> 468 0.00 0.01 SHM flushes due to overflow<br> 589 0.00 0.01 SHM MTX contention<br> 307 0.00 0.01 SHM cycles through buffer<br>
1573886 15.00 39.61 allocator requests<br> 908746 . . outstanding allocations<br> 7766196224 . . bytes allocated<br> 45920894976 . . bytes free<br>
<br clear="all"><br>-- <br>
VP of Product Development<br>Instructables.com<br><br><a href="http://www.instructables.com/member/lebowski" target="_blank">http://www.instructables.com/member/lebowski</a><br>