Looks fine to me. Although perhaps we could use a better description.
The text 'mem_requested' is a little unclear to me. May be we call it
bytes_used_in_slab but that's a bit wordy
Also I wonder if we should represent this value a little differently.
So the point of this is to
Is it possible to implement distributed resource blocking using
memcached ?
Is it possible to implement them using following scheme (pseudocode)
lock(a)
1. if (add( key=a, expiration=5min )) {
2. if (cas( key=a, expiration=5min )) {
// resource locked by us
}
//
Its possible... but really... its a cache. Thats what it is designed to do,
and that is what it is good for. memcached is not optimized at all to be a
lock server, why exactly are you wanting to use memcached for this instead
of an actual lock server?
That being said, there are a number of
We actually use memcached as a lock server for certain very rare,
per-user transactions. It's less than ideal, but we scrambled to
write it in a pinch when our previous solution had problems and it's
held up thus far. It's something we've had on the fix when we have
time list since, but it does
And I wrote IPC::Lock::Memcached for it.
http://search.cpan.org/~earl/IPC-Lock-0.14/lib/IPC/Lock/Memcached.pm
Earl
http://blog.spack.net
http://holaservers.com
From: Dustin dsalli...@gmail.com
To: memcached memcached@googlegroups.com
Sent: Wednesday, April
On Apr 8, 4:37 pm, Earl Cahill cahi...@yahoo.com wrote:
And I wrote IPC::Lock::Memcached for it.
http://search.cpan.org/~earl/IPC-Lock-0.14/lib/IPC/Lock/Memcached.pm
Yes, but there are undesirable properties:
1) May release locks unexpectedly and without warning (and not just
when
I second the idea of making the value a little more clear/useful. My only
reservation is to not convert it to a lossy calculated value... It's
useful to be able to write a monitor to watch the more exact ratios, or
graph exact sizes. Which you lose if you calculate down the information
too far.
Hi,
We have a requirement for caching outside the Java heap. As of
now we have not made provision for a cache farm.
Our requirements are
1. Multilingual caching
2. Access from a Java client
Are they any examples of existing Java - memcached applications on the
internet ?
Thanks,