Openrtmfp/Cumulus primer (3) Principle of cumulusedge

Source: Internet
Author: User

Introduction to openrtmfp/Cumulus primer (3) Principle of cumulusedge
  • Author: Liu Da-poechant
  • Blog: blog.csdn.net/poechant
  • Email: zhongchao.ustc@gmail.com
  • Date: 10000l 9Th, 2012
  • Statement:
    • The image in this article is from the openrtmfp/cumlus open-source project homepage.
    • Reprinted, please indicate the csdn blog blog.csdn.net/poechant from LIU Da
1 cumulusedge provides scalability for cumulusserver

Cumulusedge is used to share the load of the cumulusserver "). What load does it share? The CPU resources and memory resources of a service are limited, that is, servers with higher configurations. For highly concurrent applications, the performance of a server is always insufficient. In addition, the port number is limited (65536 ).

If cumulusedge is used, cumulusserver can allocate new clients based on the cumulusedge list and the current status of these cumulusedge resources.

How to choose which cumulusedge? You can first understand it as a very natural and simple method:ping. Than whoping. When there are many clients connections, it is much faster to use cumulusedge.

From the openrtmfp/Cumulus project homepage.

Cumulusserver is the center of openrtmfp/Cumulus. It has the following features:

  • You can obtain information about all cumulusedge in the openrtmfp/Cumulus system;
  • Is the gateway of clients );

Cumulusserver and cumuluedge directly transmit requests and response in text data format. After the cumulusedge is assigned a clients by the cumulusserver, the clients then communicates directly with the cumulusedge and completes the decrypt and encoding of the exchangekey ), and completes some operations with high resource overhead and handshakes with high-Sales encryption.

In short, cumulusedge can help cumulusserver expand the number of clients connections.

2 Deployment principles

Cumulusserver and cumulusedge must have a public port for each client. For more information, see. A direct connection between the internal node and the outer ring (dotted line) indicates the connection with clients. The ports for such connections must be public. The connection between cumulusserver and cumulusedge is a private port.

If cumulusserver and cumulusedge are deployed in a local area network, the overall performance of cumulus is very good.

3. Redirection Algorithm

When the cumulusserver receives a request from a new client, it checks the cumulusedge list. If the list is empty, the cumulusserver will then "entertain" the client. · If the cumulusedge list is not empty, the list will be sorted by the number of clients connected by each cumulusedge (Descending OrderWhen a new client is connected to the cumulusserver, The cumulusserver extracts the first six digits from the cumulusedge list to the client. Why can I give this client so many cumulusedge at one time? Because Flash Player supports concurrent connections. When a flash client tries multiple connections (that is, when concurrent connections are started), the first cumulusedge to respond to the client will establish a connection with it and keep it, flash client closes other connections.

Of course, if cumulusserver throws the new client to cumulusedge but does not successfully establish a connection between the client and cumulusedge, then cumuluserver will have to "entertain" the client.

-

Reprinted, please indicate the csdn blog blog.csdn.net/poechant from LIU Da

-

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.