What are the advantages and disadvantages for Master/Slave type mysql architectures vs load balancing web servers with read only db's in each using a separate server holding a mysql database just for the writes?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 8 years ago.
回答1:
Master/Slave type architecture is useful for when your application is "read heavy", that is a majority of connections to the database are for reading data as opposed to writing data.
Master/Slave allows you to scale out your application just by adding more hardware. Simply create a copy of the database on a new box and add it as a slave to the master.
With regards to
load balancing web servers with read only db's in each using a separate server holding a mysql database just for the writes?
This just sounds like a Master/Slave type architecture. With Master/Slave you want the slaves to be read only, as the master is the only place where data changes (and those changes propagate to the slaves).