Letsgetdugg

Random tech jargon

Browsing the 2009 December archive

Ted Dziuba beautifully articulated why deadlines go to crap and seemingly straight forward tasks go out the window. You sir have done a public service for us all, thank you. What I hate is fording endless rivers of horseshit that are in the way of seemingly simple tasks. And I hate it even more when […]

I needed a thread-safe JSMin library for compressing javascripts on the fly on UploadBooth, so I took an existing ruby implementation and made it thread safe. I don’t think there was license defined when I got it, so I am re-releasing it as-is. require ‘monitor’ class JSMin   EOF = –1   include MonitorMixin   […]

Tagged with ,

Since Varnish did not work out on Solaris yet again. I have decided to bite the bullet and write a headers normalization patch for Squid 2.7. This patch should produce much better cache hit rates with Squid. Efficiency++ What the patch does: 1. Removes Cache-Control request headers, don’t let clients by-pass cache if it is […]

Clearing stale cache by domain You can clear a site’s cache by domain, this is really nifty if you have Varnish in front of multiple sites. You can log into Varnish’s administration console via telnet and execute the following purge command to wipe out the undesired cache. purge req.http.host ~ letsgetdugg.com Monitor Response codes Worried […]

Tagged with , ,

Update 2010-02-19: Seems other people are also affected by the Varnish LINGER crash on OpenSolaris. This does not address the core problem but removes the “fail fast” behavior with no negative side effects. r4576 has been running reliably with the fix below. In varnishd/bin/cache_acceptor.c if (need_linger)                 setsockopt(sp->fd, […]

Tagged with , ,