![]() ![]() In order to improve database performance, an independent server is used as the database server. 1.3 Architecture Designīuild an xmpp cluster based on more than 25 nodes. Registration rate, according to the most stringent centralized registration, a single server needs to carry 20,000 users centralized registration. At the same time online, because our remote control function uses a long link of websocket protocol, Need to achieve more than 20,000 ports at the same time in a concurrent link state 2. In order to solve this problem, we conducted a research on more than 25 xmpp clusters, and the expansion target is 500,000 online! 1.2 Project analysisĪccording to the requirements, if the expansion target is 500,000 online, 25 servers are used for sharing, that is, each one needs to bear the maximum pressure of 20,000, which involves two problems: 1. Node expansion service, but when the number is increased to 20, the cluster will hang! Among them, the number of users who have been online for a long time may reach more than 200,000. The 19 servers of the xmpp cluster cannot carry 500,000 to 600,000 users. System configuration and optimization 1ģ.4 Configuring Services and Environment 7ģ.5 Confirm that the firewall is closed, and the ssh configuration is mutually secretģ.7 Download the original library from github and import it 7ģ.8 Modify the configuration file ejabberd.yml 7ģ.11 Using registered account to access ejabberd test from browser 16ģ.12 Other node configuration and installation 16ģ.13 Join all new nodes that are started to the cluster 16Ĥ.1 Use WebSocket stress test software for concurrent testing 17Ĥ.2 Centralized registration test using tsung software 18Īt present, the analog remote control function of the set-top box app of our Suzhou business has encountered a bottleneck. XMPP (ejabberd) cluster deployment instructions (tested for 27 clusters)Ģ.
0 Comments
Leave a Reply. |