Re: Three Node Replication (US West, US East and Europe)
Posted by:
Rick James
Date: March 23, 2012 07:55PM
Most databases are read more than written. So, if most of the reads hit slaves, there is less load on the Master. I know of cases with a single writable master plus 20-30 slaves scattered around the world.
"Reports" should hit Slaves.
"Viewing" things should hit the slaves.
There is no magical way to split your reads and writes; any attempt at automating such will lead to problems, such as "critical read". Example:
1. a user posts a blog comment (to the Master)
2. the UI immediately goes to the page showing all the postings for that user (using a nearby slave)
3. BUT, due to replication issues, his posting is not yet on the Slave.
There are many ways to solve (or lessen) the problem:
* Changes to the UI to avoid situations that would make the user think his posting was lost.
* Use a heartbeat to see if the Slave is caught up.
* Send critical reads (but not other reads) to the Master.
Bottom line: The application needs to be modified to do the read-write split "correctly".
Subject
Views
Written By
Posted
3439
March 22, 2012 01:44AM
1201
March 22, 2012 09:02PM
1066
March 22, 2012 11:22PM
Re: Three Node Replication (US West, US East and Europe)
1059
March 23, 2012 07:55PM
1179
March 25, 2012 12:59AM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.