Welcome! Log In Create A New Profile

Advanced

Re: dogpiling

Mark Maunder
March 29, 2010 08:42PM
He's referring to a cache stampede, when an item in the proxy cache
expires and multiple threads simultaneously try to repopulate it causing
load spikes and possible locking conditions. The item below from
memcache's faq has a few suggestions of how to avoid this for memcached.

http://code.google.com/p/memcached/wiki/FAQ#How_to_prevent_clobbering_updates,_stampeding_requests

After a quick look I didn't see any options to avoid stampede's in
nginx's proxy caching nor in the memcached module. Does nginx have this
built in? Or when a item in the proxy cache expires, is there a rush of
requests to the back-end to refresh it?

A useful method (if it isn't already built in) might be to block threads
that have requested the resource being refreshed until the thread doing
the refreshing completes. A configurable timeout might be helpful.

Mark.



Kiswono Prayogo wrote:
> Hi, could you explain more about dogpiling? i don't understand and
> haven't found any term related to web except for search engine named
> 'dogpile'
>

_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

dogpiling

vburshteyn March 29, 2010 11:10AM

Re: dogpiling

Kiswono Prayogo March 29, 2010 08:20PM

Re: dogpiling

Mark Maunder March 29, 2010 08:42PM

Re: dogpiling

Piotr Sikora March 29, 2010 10:48PM

Re: dogpiling (wiki broken)

Mark Maunder March 30, 2010 05:12AM

Re: dogpiling (wiki broken)

Maxim Dounin March 30, 2010 06:46AM

Re: dogpiling (wiki broken)

Cliff Wells March 30, 2010 11:44AM

Re: dogpiling (wiki broken)

Cliff Wells March 30, 2010 11:46AM

Re: dogpiling (wiki broken)

Cliff Wells March 30, 2010 11:56AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 275
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready