0

I've been doing some work on Wordpress and just stumbled across database scaling.

I was wondering if it was at all possible to implement this with Magento as we have an increasingly large database and thousands of products still to add (with various options for configurable products!!)

0

3 Answers 3

1

You can setup master slave replication for mysql so that you have a customer facing server on the master database and a admin only server on the slave database. You can edit /app/etc/local.xml on the slave so that it reads from the slave but writes to the master. In that way you can upload loads of products, do loads of reports and the live system only has to slow down for the occasional write to the db. You can also have your slave system in your office on the end of an ADSL line. For this to work standard mysql master slave settings work fine, it also does rather well in catching up with itself if the slave needs rebooting. The only gotcha of note is that mysql log files get big and your mysql my.cnf needs to have the setting on to delete the log files after n days.

Sign up to request clarification or add additional context in comments.

2 Comments

I've seen examples of master-slave replication causing problems in Magento - it can happen when saving during a transaction and trying to read back from the slave, of course the transaction hasn't ended so the slave hasn't been updated. A master-master configuration gets around this problem and is fairly similar to manage.
How would I go about setting up a master-master config?
0

Magento has recently certified ClustrixDB to be the scale-out database solution: http://www.marketwired.com/press-release/clustrix-selected-as-magento-technology-partner-2010010.htm

Disclaimer: I work at Clustrix and I know this is just a press release, but I have been also involved in the testing and it really works!

Comments

0

Disclaimer - I work at Clustrix.

Magento solution architect and certified developer, Kevin Bortnick, recently gave a webinar entiteld "Scaling Techniques to Increase Magento Capacity" at Meet Magento NY. Kevin currently works for clustrix but prior to joining this year, he worked on large Magento sites such as The Home Depot and Dr. Jays. In the webinar he shares his practical experiences. He covers 3 front end strategies and 8 RDBMS scaling strategies including:

  1. Percona
  2. Faster hardware
  3. Master with read slaves
  4. Master/Master, Store/Admin
  5. True Multi-master
  6. Partitioning (Magento 2 feature CQRS)
  7. NoSQL
  8. ClustrixDB

I hope this webinar helps you find the right solution for your use case.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.