Friday, June 18, 2010

Re: static files, nginx, memcached

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 <jav...@guerrag.com>
wrote:
> On Fri, Jun 18, 2010 at 12:22 PM, TheIvIaxx <theivi...@gmail.com> 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 there a better method for this?
>
> be sure to benchmark it.  in many cases, nginx will serve from static
> files just as fast as from memcached.
>
> yeah sounds crazy, but if nginx give the OS some hints, it will cache
> the files in RAM, a lot more efficiently than memcached (less context
> switches, no TCP involved, can dynamically get hold and release RAM as
> available, etc...)
>
> --
> Javier

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate