Re: static files, nginx, memcached

2010-06-20 Thread Gabriel Gunderson
On Fri, Jun 18, 2010 at 11:22 AM, TheIvIaxx wrote: > I will just have a cron job populate memcached separately. > > Is this a common practice or is there a better method for this? I think the overall approach might need a little more thought, but if you end up doing something like this, incron wo

Re: static files, nginx, memcached

2010-06-19 Thread Javier Guerra Giraldez
On Fri, Jun 18, 2010 at 5:52 PM, TheIvIaxx wrote: > Its a lot of little files and from what i've seen, the stat call is a > bottleneck.  If they are all in memcache, then it should scream. yes, this sounds like memcached territory. still, we can argue all we want but a little benchmark would t

Re: static files, nginx, memcached

2010-06-18 Thread TheIvIaxx
Its a lot of little files and from what i've seen, the stat call is a bottleneck. If they are all in memcache, then it should scream. Which "hints" would you be referring? On Jun 18, 10:56 am, Javier Guerra Giraldez wrote: > On Fri, Jun 18, 2010 at 12:22 PM, TheIvIaxx wrote: > > My thoughts ri

Re: static files, nginx, memcached

2010-06-18 Thread Javier Guerra Giraldez
On Fri, Jun 18, 2010 at 12:22 PM, TheIvIaxx wrote: > My thoughts right now are for it to check memcached for the key, if > not found, then serve up the file from disk.  Everything else goes to > apache.  I will just have a cron job populate memcached separately. > > Is this a common practice or is

static files, nginx, memcached

2010-06-18 Thread TheIvIaxx
This probably isnt the *best* place to post this, but I figured a lot of folks here have had experience with this. I am switching off lighty to nginx for static file serving as it handles memcached (as far as i know, lighty does not). Anyhow, I have it up and running ok, but im not sure what the