50

搭建高可用mongo分布式---具体操作-技术成就梦想

 5 years ago
source link: https://blog.51cto.com/xinsir/2358314
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
首先还是上图看看mongodb通过哪些机制实现路由、分片:从图中可以看到有四个组件:mongos、config server、shard、replica set。mongos,数据库集群请求的入口,所有的请求都通过mongos进行协调,不需要在应用程序添加一个路由选择器,mongos自己就是一个请求分发中心,它负责把对应的数据请求请求转发到对应的shard服务器上。在生产环境通常有多mongos作

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK