I don't know if you have received my last message here. Written a
couple of times on here, but nothing appears (checked in after few
hours after original write to verify, but no).
I have searched under every rock I could find (read googled like
hell), but haven't found any information or documentation about
replica functions in libmemcached / PECL memcached?
Would you mind telling me more about it?
Thanks!
Google groups seems to be a bit fluctuating right now. Trying to post
here anyway.
Would you mind giving an example on how you would do it? Do you think
that a second instance for this case is a bad practice?
Persistent connections is a good idea. Definitely.
Thanks a lot for your help!
On 24 Maj, 10:41, Artur Ejsmont <ejsmont.ar...@gmail.com> wrote:
> hi, im not sure if i understand what you mean.
>
> I am not using this approach myself so im not sure if there is out of the
> box solution to your problem.
>
> If you wish to control caching and distribution etc you would write some
> classes to hide the complexity from the rest of the application. Then
> implement which ever way you like.
>
> I guess you would need persistent connections to speed things up. unless you
> have too many apache processes and cant afford to keep sockets all the time.
> then save data to 2 boxes (if any of saves fails rise alert). On read also
> hide complexity reading from any of 2 boxes in pair. If fails rise alert and
> try the second one. then you should have even spread of load.
>
> art
>
Trond Norbye, who added this feature into libmemcached, wrote a blog
entry describing how to use libmecached for replication. You can find it
at http://blogs.sun.com/trond/entry/replicate_your_keys_to_multiple
Good luck
Eric
From Andrei's blog:
"I�m working on next version (2.0) of the memcached extension. It�ll
have UDP support and replication (failover)."
May want to dig into the gitub repo for it.
http://github.com/andreiz/php-memcached
Brian.
--------
http://brian.moonspot.net/
What about doing something like this?
$m = new Memcached();
$m->addServer('localhost', 11211);
foreach ($array as $server) {
$m->setByKey('api-cache', 'block-ip:169.254.253.252',
$server['id']);
}
Would that be a better idea?
Remember, I am not going to fill up my memcached server like this :)
On 25 Maj, 23:39, Brian Moon <br...@moonspot.net> wrote:
> That is not super helpful however for users of pecl/memcached.
>
> From Andrei's blog:
>
> "I m working on next version (2.0) of the memcached extension. It ll
> have UDP support and replication (failover)."
>
> May want to dig into the gitub repo for it.http://github.com/andreiz/php-memcached
>
> Brian.
> --------http://brian.moonspot.net/
>
> On 5/25/10 4:34 PM, Eric Lambert wrote:
>
> > Hi Jay:
>
> > Trond Norbye, who added this feature into libmemcached, wrote a blog
> > entry describing how to use libmecached for replication. You can find it
> > athttp://blogs.sun.com/trond/entry/replicate_your_keys_to_multiple