What is Master-Slave Replication?

 Posted by Niladri.Biswas on 12/12/2012 | Category: Others Interview questions | Views: 1964 | Points: 40

With master-slave distribution, the data is replicated across multiple nodes. One node is designated as the master, or primary. This master is the authoritative source for the data and is usually responsible for processing any updates to that data. The other nodes are slaves, or secondaries. A replication process synchronizes the slaves with the master.

a) Master-slave replication is most helpful for scaling when you have a read-intensive dataset. It will scale horizontally to handle more read.

b) A second advantage of master-slave replication is read resilience: Should the master fail, the slaves can still handle read requests.

Masters can be appointed manually or automatically. Manual appointing typically means that when we configure the cluster, we configure one node as the master. With automatic appointment, we create a cluster of nodes and they elect one of themselves to be the master. Apart from simpler configuration, automatic appointment means that the cluster can automatically appoint a new master when a master fails, reducing downtime

Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response