xyz
xyz

Reputation: 2282

Memcache Synchronization

I would like to know if any of you had, or may propose a solution to increase efficiency for online store based on Magento platform.

We currently use multifront architecture (front == each separate server) using load-balancing and two Memcache servers.

We're considering connection for each separate front an Memcache server, but at this point a problem arises with memcache synchronization, so that each store the same value.

Any advice appreciated :)

Upvotes: 0

Views: 2879

Answers (2)

Marcelo Cantos
Marcelo Cantos

Reputation: 185962

If you are running memcached on its own hardware, there is no benefit to giving each store its own memcached server.

Configure all front ends to use both memcached instances. This way, all front ends will go to the same memcached instance for a given key. Plus, you get automatic fail-over if one instance croaks, and you can scale up almost linearly as the demand for cache increases.

Upvotes: 1

Joe Mastey
Joe Mastey

Reputation: 27119

One of the biggest improvements I've seen for more advanced setups like these is to use a PHP Opcode cache like Xcode. Since Magento uses many PHP files, the opcode cache will end up saving a lot of compilation between runs. Also make sure that all your caches are turned on and leveraged as much as possible. Enable flat catalog and flat product tables as well.

Upvotes: 0

Related Questions