Great work! Thanks a lot, I might need to use this soon.
Sincerely, Andre Terra (airstrike) On Wed, May 4, 2011 at 5:31 AM, Malcolm Box <malcolm....@gmail.com> wrote: > Hi, > > We recently hit a bottleneck accessing a memcached server from Django on a > big site. To solve it, I created two-level cache with a local cache on each > Django box, and a global cache on the memcached machines. > > Under the sort of loads we were seeing, this dramatically reduced the load > on the memcached servers. Best of all, it's a one line change to existing > code using Django's cache framework. > > I've released the code here: https://gist.github.com/953524 in case it's > useful to anyone else. Some more background here: > http://attentionshard.wordpress.com/2011/04/03/scaling-to-30k-two-level-caches/ > > Hope this helps someone. > > Cheers, > > Malcolm > > > -- > 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+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > -- 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+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.