市场上有很多关于业务服务器的集群部署的商业方案,可能一般的小客户承受力部署的成本。以前关注过ClusterLabs 这个开源项目,但是一直没有真正去搭建测试。通过技术资料研究,很多Asterisk/FreeSWITCH用户开始慢慢使用此集群解决方案。今天给大家推荐一下,希望在今后的集群部署中可以考虑作为一个集群软交换/媒体服务器的办法。
![2a245e04c74a161414fc836970371aa3.png](https://img-blog.csdnimg.cn/img_convert/2a245e04c74a161414fc836970371aa3.png)
具体支持功能包括(官方原文):
The ClusterLabs stack, incorporating Corosync and Pacemaker defines an Open Source, High Availability cluster offering suitable for both small and large deployments.
- Detection and recovery of machine and application-level failures
- Supports practically any redundancy configuration
- Supports both quorate and resource-driven clusters
- Configurable strategies for dealing with quorum loss (when multiple machines fail)
- Supports application startup/shutdown ordering, regardless of which machine(s) the applications are on
- Supports applications that must/must-not run on the same machine
- Supports applications which need to be active on multiple machines
- Supports applications with multiple modes (eg. master/slave)
以下是一个用户的配置示例:
![51f5ff4ef13587fdd028a9f4bdadb516.png](https://img-blog.csdnimg.cn/img_convert/51f5ff4ef13587fdd028a9f4bdadb516.png)
Asterisk集群配置方式参考:
http://ittroubleshooter.in/configure-asterisk-ha-cluster-drbd-rhelcentos-7/
FreeSWITCH集群配置方式参考:
https://inside-out.xyz/technology/how-to-configure-freeswitch-for-ha.html
注意,笔者仅分享此集群解决方案的资料,没有经过测试,读者可以参考官方文档来搭建测试。