We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

MySQL Replication, failover to read-only and EE

Development and Programming

interactive @dvl's avatar
interactive @dvl
144 posts
15 years ago
interactive @dvl's avatar interactive @dvl

Client is hosting their own sites on W2kServer with IIS. I have already discussed the EngineHosting option and they prefer to manage their own hosting. They want to use 2 servers; one to host and one to replicate. I am guessing load balance, etc. I am NOT a server admin so I am only relaying as much as I am able.

We have already developed one EE 2.0 site using XAMPP as a hosting option but we are changing that, etc. We will be building another EE 2.0 site and they would like to have a situation where they can replicate the databases across 2 servers. One of their IT team had a question I am not sure I can answer.

So what happens if we failover to the read-only copy? What functionality of the site writes information to the database? If it’s a small amount of the site that needs the write functionality this configuration may work well enough until we get the master back online. Most of the time we are talking only a few min for maintenance purposes. I think we can probably live with the few issues it may have until we either get the master back up or promote the slave to be the master. I am working with our network team to provide the hardware load balancer for the mysql servers. This will provide a way to failover to the slave database in the event the master is ever down. I still need to know what happens when it does failover to the read only copy, will the site really work well enough to get by until the master is brought back up?

Can anyone help me with this question?

Thanks …

       
BigCItyShelts's avatar
BigCItyShelts
35 posts
15 years ago
BigCItyShelts's avatar BigCItyShelts

There is some writing to the DB on each and every page load. Turn on “Display SQL queries” in Output and Debugging, and you will see a handfull of UPDATE queries happening every time you load a page on the front-end. Sessions, template hit counters, captcha, forms, searches,.. I think most EE functionality would be in some way “broken” with no write access to the DB. But I haven’t tried it myself.

Interesting that your failover copy is read-only. Is that normal? While casually researching co-located servers, and other such options, I never realized that the copy might be read-only. We need an all-knowing System Administrator to comment on this post. I’m all software and no hardware.

       
interactive @dvl's avatar
interactive @dvl
144 posts
15 years ago
interactive @dvl's avatar interactive @dvl

It doesn’t look like anyone will address your response. Thanks for taking a stab at it.

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.