公司业务升级,想要把单机运行升级成多台机器并行处理,但是数据库又不好分离出来,怕网络开销(对时间要求比较高)。又不能复制服务器,有些数据在MongoDB里面,如果复制服务器有些数据不好合并。但是数据库不单独拿出来就相当于是有一台业务服务器是能跑完整的流程,其他的只能处理业务,不能保存数据 。大神们有什么好的建议吗???
PHPz2017-04-18 10:53:06
All I can think of:
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.
怪我咯2017-04-18 10:53:06
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.