java - 公司业务架构升级,请大神们给点建议
阿神
阿神 2017-04-18 10:51:06
0
2
439

公司业务升级,想要把单机运行升级成多台机器并行处理,但是数据库又不好分离出来,怕网络开销(对时间要求比较高)。又不能复制服务器,有些数据在MongoDB里面,如果复制服务器有些数据不好合并。但是数据库不单独拿出来就相当于是有一台业务服务器是能跑完整的流程,其他的只能处理业务,不能保存数据 。大神们有什么好的建议吗???

阿神
阿神

闭关修行中......

reply all(2)
PHPzhong

All I can think of:

  1. Upgrade the disk array cabinet, and several servers share the disk array cabinet. One of them serves as the database host, and the remaining ones serve as business servers.

2. In-memory database.

刘奇

1. It is recommended that the database be deployed and run on a separate server.
2. Deploying the database server separately, the network overhead of business access to the database has not increased much compared to before and can be ignored (access via the intranet, network bandwidth is not a problem).
3. It is recommended that MongoDB be deployed as a shard + replSet cluster to support horizontal expansion.
4. Business can also be made into distributed services, such as access clusters and distribution clusters.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!