IT Community - Software Programming, Web Development and Technical Support

Memcached Replication

This is a discussion on Memcached Replication within the PHP Programming forums, part of the Web Development category; Hi, We have recently implemented memcached into one of our high availability web application. It's working great! Now that ...


Go Back   IT Community - Software Programming, Web Development and Technical Support > Web Development > PHP Programming

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 04-23-2008, 10:06 PM
Jeyaseelansarc Jeyaseelansarc is offline
D-Web Genius
 
Join Date: Mar 2007
Location: Chennai
Posts: 1,162
Jeyaseelansarc is on a distinguished road
Send a message via AIM to Jeyaseelansarc
Default Memcached Replication

Hi,
We have recently implemented memcached into one of our high availability web application. It's working great! Now that it's working properly, I would like to improve upon it's infrastructure. I
would like to have a secondary server at a completely different service provider, for load balancing and failover purposes.

My question is: Is there a way to mirror a memcached server such that everything contained in one memcached server is contained in another, in almost real time?
__________________
With,
J. Jeyaseelan

Everything Possible

Last edited by Jeyaseelansarc : 04-23-2008 at 10:08 PM.
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 04-24-2008, 05:51 AM
Jeyaseelansarc Jeyaseelansarc is offline
D-Web Genius
 
Join Date: Mar 2007
Location: Chennai
Posts: 1,162
Jeyaseelansarc is on a distinguished road
Send a message via AIM to Jeyaseelansarc
Default Re: Memcached Replication

MySQL query caching is less than ideal, for a number of reasons:

* MySQL's query cache destroys the entire cache for a given table whenever that table is changed. On a high-traffic site with updates happening many times per second, this makes the the cache practically worthless. In fact, it's often harmful to have it on, since there's a overhead to maintain the cache.
* On 32-bit architectures, the entire server (including the query cache) is limited to a 4 GB virtual address space. memcached lets you run as many processes as you want, so you have no limit on memory cache size.
* MySQL has a query cache, not an object cache. If your objects require extra expensive construction after the data retrieval step, MySQL's query cache can't help you there.
If the data you need to cache is small and you do infrequent updates, MySQL's query caching should work for you. If not, use memcached.
__________________
With,
J. Jeyaseelan

Everything Possible
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 04-30-2008, 03:33 AM
senraj senraj is offline
D-Web Master
 
Join Date: Jul 2007
Posts: 418
senraj is on a distinguished road
Post Re: Memcached Replication

Hi jeyaseelansarc,

I am new to above enter the topic.So, please explain or sample example.

how to implement for Memcached Replication?

please Give the your valuable post.
__________________
Regards,
Senraj.A
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 04-30-2008, 07:18 AM
Jeyaseelansarc Jeyaseelansarc is offline
D-Web Genius
 
Join Date: Mar 2007
Location: Chennai
Posts: 1,162
Jeyaseelansarc is on a distinguished road
Send a message via AIM to Jeyaseelansarc
Default Re: Memcached Replication

Hi senraj,
Memcached Replication is the process of having master and slave servers. But i think it is not possible with memcached. Better we have to do this with mysql replication for memcached
__________________
With,
J. Jeyaseelan

Everything Possible
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 05-02-2008, 05:08 AM
senraj senraj is offline
D-Web Master
 
Join Date: Jul 2007
Posts: 418
senraj is on a distinguished road
Post Re: Memcached Replication

Hi Jeyaseelansarc,

thank you for your reply.now i am understand the memcached Replication.but

why you say it's not possible with memcache?
__________________
Regards,
Senraj.A
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 05-07-2008, 03:02 AM
Jeyaseelansarc Jeyaseelansarc is offline
D-Web Genius
 
Join Date: Mar 2007
Location: Chennai
Posts: 1,162
Jeyaseelansarc is on a distinguished road
Send a message via AIM to Jeyaseelansarc
Default Re: Memcached Replication

Memcached Replication is the process of having master and slave servers. I can say that there is minimum possibility to have this replication with memcache as a file.

I am still searching for this...
__________________
With,
J. Jeyaseelan

Everything Possible
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Mysql - Replication write2ashokkumar Database Support 2 08-19-2008 02:04 AM
How to enlarging an image by pixel replication? mobilegeek Mobile Software Development 1 07-24-2007 05:47 AM


All times are GMT -7. The time now is 06:17 PM.


Copyright ©2004 - 2007, DiscussWeb. All Rights Reserved.

SEO by vBSEO 3.0.0