Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Replicate memc_* calls?
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  6 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Ludek Dolejsky  
View profile  
 More options May 4 2012, 4:09 am
From: Ludek Dolejsky <lu...@dolejsky.com>
Date: Fri, 4 May 2012 01:09:17 -0700 (PDT)
Local: Fri, May 4 2012 4:09 am
Subject: Replicate memc_* calls?

Hi all,

I'm using the multi master replication (fantastic piece of software btw.,
thanks!!!) and have installed memcached_functions_mysql functions that
allow to talk to a memcached daemon directly from within MySQL using UDFs,
i.e.:

SELECT memc_set('myid', 'myvalue');  --- to set value for given key

SELECT memc_get('myid'); --- to get value for given key

SELECT memc_delete('myid'); --- to delete key/value pair

It would be fantastic if one could replicate these calls (or triggers
utilizing these functions) across the cluster to be able to invalidate
local caches. It is my understanding that with ROW based bin log, only
INSERTs and UPDATEs are replicated, not the actual trigger calls.

Imagine that every cluster node has its own memcached instance (nodes are
across continents) and this could be used to invalidate cached data across
continents too.

Any ideas? Thanks.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Seppo Jaakola  
View profile  
 More options May 7 2012, 3:54 am
From: Seppo Jaakola <seppo.jaak...@codership.com>
Date: Mon, 7 May 2012 00:54:56 -0700 (PDT)
Local: Mon, May 7 2012 3:54 am
Subject: Re: Replicate memc_* calls?
What is the point of having node local memcaches? Would it not be more
effective to have shared cache for whole cluster?

Technically it would be quite straightforward to replicate these UDF
calls. UDF replication could go through same pipeline as we use for
MyISAM replication now. Only challenge is in identifying which calls
to replicate, and to make the replication generic enough. Maybe there
should be a list of to-be-replicated UDFs, like:

wsrep_replicate_UDFs='memc_set,memc_delete'

...and these could be caught in parser.

-seppo

On 4 touko, 11:09, Ludek Dolejsky <lu...@dolejsky.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Henrik Ingo  
View profile  
 More options May 7 2012, 7:15 am
From: Henrik Ingo <henrik.i...@avoinelama.fi>
Date: Mon, 7 May 2012 14:15:13 +0300
Local: Mon, May 7 2012 7:15 am
Subject: Re: [codership-team] Re: Replicate memc_* calls?
Wouldn't they get replicated already if instead of SELECT you use
UPDATE and a MyISAM table:

UPDATE myisamtable SET foo=memc_set(...)

henrik

On Mon, May 7, 2012 at 10:54 AM, Seppo Jaakola

--
henrik.i...@avoinelama.fi
+358-40-8211286 skype: henrik.ingo irc: hingo
www.openlife.cc

My LinkedIn profile: http://www.linkedin.com/profile/view?id=9522559


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
seppo.jaak...@codership.com  
View profile  
 More options May 7 2012, 7:21 am
From: seppo.jaak...@codership.com
Date: Mon, 07 May 2012 14:21:52 +0300
Local: Mon, May 7 2012 7:21 am
Subject: Re: [codership-team] Re: Replicate memc_* calls?
Yes, they indeed would. However, with the expense of table level  
locking on the myisamtable.

-seppo

Quoting Henrik Ingo <henrik.i...@avoinelama.fi>:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Henrik Ingo  
View profile  
 More options May 7 2012, 8:18 am
From: Henrik Ingo <henrik.i...@avoinelama.fi>
Date: Mon, 7 May 2012 15:18:07 +0300
Local: Mon, May 7 2012 8:18 am
Subject: Re: [codership-team] Re: Replicate memc_* calls?
Well, but the table is just bogus anyway. You could just create
table1, table2, ... table100 and update one of them at random.

henrik

--
henrik.i...@avoinelama.fi
+358-40-8211286 skype: henrik.ingo irc: hingo
www.openlife.cc

My LinkedIn profile: http://www.linkedin.com/profile/view?id=9522559


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ludek Dolejsky  
View profile  
 More options May 7 2012, 9:49 am
From: Ludek Dolejsky <lu...@dolejsky.com>
Date: Mon, 7 May 2012 06:49:38 -0700 (PDT)
Local: Mon, May 7 2012 9:49 am
Subject: Re: [codership-team] Re: Replicate memc_* calls?

Hi,

thanks for input.

Having local memcached(s) makes lot of sense as nodes are located on
different continents with quite some latency (typically >200 ms) between
them.

Using MyISAM tables is an interesting idea, but I'm using Percona Cluster
(should have mentioned that) which only replicates changes in InnoDB
tables... I might try installing pure galera and check that out.

Thanks
L.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »