CN117596360A - Cluster construction system and method - Google Patents
Cluster construction system and method Download PDFInfo
- Publication number
- CN117596360A CN117596360A CN202311658263.7A CN202311658263A CN117596360A CN 117596360 A CN117596360 A CN 117596360A CN 202311658263 A CN202311658263 A CN 202311658263A CN 117596360 A CN117596360 A CN 117596360A
- Authority
- CN
- China
- Prior art keywords
- server
- information
- streaming media
- application
- registered
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 25
- 238000010276 construction Methods 0.000 title claims abstract description 13
- 230000004044 response Effects 0.000 claims description 11
- 238000001514 detection method Methods 0.000 claims description 4
- 238000012545 processing Methods 0.000 description 4
- 230000008569 process Effects 0.000 description 3
- 230000004083 survival effect Effects 0.000 description 3
- 238000010586 diagram Methods 0.000 description 2
- 238000012423 maintenance Methods 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000004891 communication Methods 0.000 description 1
- 238000012217 deletion Methods 0.000 description 1
- 230000037430 deletion Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 238000013508 migration Methods 0.000 description 1
- 230000005012 migration Effects 0.000 description 1
- 230000000737 periodic effect Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N7/00—Television systems
- H04N7/14—Systems for two-way working
- H04N7/15—Conference systems
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/10—Active monitoring, e.g. heartbeat, ping or trace-route
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L65/00—Network arrangements, protocols or services for supporting real-time applications in data packet communication
- H04L65/40—Support for services or applications
- H04L65/403—Arrangements for multi-party communication, e.g. for conferences
Landscapes
- Engineering & Computer Science (AREA)
- Signal Processing (AREA)
- Multimedia (AREA)
- Computer Networks & Wireless Communication (AREA)
- Health & Medical Sciences (AREA)
- Cardiology (AREA)
- General Health & Medical Sciences (AREA)
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
Abstract
The embodiment of the invention discloses a cluster construction system and method. The system comprises: a plurality of streaming media servers and an application coordination server; each streaming media server is used for establishing long connection with the application program coordination server when the service is started, and sending server information of the streaming media server to the application program coordination server; the application coordination server is used for receiving the server information sent by each streaming media server, detecting the registration condition of the server information aiming at each server information, storing the server information according to a preset storage form when the server information is unregistered information so as to finish the registration of the server information, establishing connection among registered servers and constructing a streaming media server cluster. According to the technical scheme provided by the embodiment of the invention, the pressure of a single server can be reduced, and the number of people participating in a video conference can be effectively increased.
Description
Technical Field
The embodiment of the invention relates to the technical field of computers, in particular to a cluster construction system and method.
Background
With the continuous development of the Internet, the network speed is continuously improved, the interconnection and intercommunication of the network gradually goes deep into the life of people, the habit of people is changed, and an online video conference is a typical scene. KMS (Kurento Media Server) as a mature streaming server can support small conferences of more than ten people.
In the prior art, video conference services are usually provided based on a single streaming media server, but for the case that a large number of users are participating simultaneously, the KMS server is crashed. Therefore, constructing a KMS server cluster to share the pressure of a single server, so that more people can participate in the video conference becomes a current urgent problem to be solved.
Disclosure of Invention
The embodiment of the invention provides a cluster construction system and a cluster construction method, which are used for realizing the purposes of reducing the pressure of a single server and effectively improving the number of people participating in a video conference.
According to an aspect of the present invention, there is provided a cluster building system including: a plurality of streaming media servers and an application coordination server;
each streaming media server is used for establishing long connection with the application program coordination server when the service is started, and sending server information of the streaming media server to the application program coordination server;
the application coordination server is used for receiving the server information sent by each streaming media server, detecting the registration condition of the server information aiming at each piece of server information, storing the server information according to a preset storage form when the server information is unregistered information so as to finish the registration of the server information, establishing connection among registered servers and constructing a streaming media server cluster.
According to another aspect of the present invention, there is provided a cluster construction method, including: the method is applied to a plurality of streaming media servers and an application coordination server; the method comprises the following steps:
establishing long connection with the application program coordination server through each streaming media server when the service is started, and sending server information of the streaming media server to the application program coordination server;
and receiving server information sent by each streaming media server through the application coordination server, detecting the registration condition of the server information aiming at each piece of server information, storing the server information according to a preset storage form when the server information is unregistered information so as to finish registration of the server information, and establishing connection among registered servers to construct a streaming media server cluster.
The cluster construction system provided by the embodiment of the invention comprises: a plurality of streaming media servers and an application coordination server; when the service is started, each streaming media server establishes long connection with the application program coordination server, and server information of the streaming media server is sent to the application program coordination server; the method comprises the steps that server information sent by each streaming media server is received through an application coordination server, registration conditions of the server information are detected for each piece of server information, the server information is stored according to a preset storage form when the server information is unregistered information, registration of the server information is completed, connection among registered servers is established, and a streaming media server cluster is constructed. The embodiment of the invention constructs the streaming media server cluster, reduces the pressure of a single server and can effectively improve the number of people participating in the video conference.
It should be understood that the description in this section is not intended to identify key or critical features of the embodiments of the invention or to delineate the scope of the invention. Other features of the present invention will become apparent from the description that follows.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for the description of the embodiments will be briefly described below, and it is apparent that the drawings in the following description are only some embodiments of the present invention, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a schematic diagram of a cluster building system according to an embodiment of the present invention;
fig. 2 is a flowchart of a cluster construction method according to an embodiment of the present invention.
Detailed Description
In order that those skilled in the art will better understand the present invention, a technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in which it is apparent that the described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present invention without making any inventive effort, shall fall within the scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and the claims of the present invention and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the invention described herein may be implemented in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "includes," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
It should be noted that, in the technical solution of the present disclosure, the related aspects of collecting, updating, analyzing, processing, using, transmitting, storing, etc. of the personal information of the user all conform to the rules of the related laws and regulations, and are used for legal purposes without violating the public order colloquial. Necessary measures are taken for the personal information of the user, illegal access to the personal information data of the user is prevented, and the personal information security, network security and national security of the user are maintained.
FIG. 1 is a schematic diagram of a cluster building system according to an embodiment of the present invention; as shown in fig. 1, the cluster building system includes: a plurality of streaming media servers 10 and application coordination servers 11;
each streaming media server 10 is configured to establish a long connection with the application coordination server 11 when a service is started, and send server information of the streaming media server 10 to the application coordination server 11;
the application coordination server 11 is configured to receive the server information sent by each streaming media server 10, detect a registration condition of the server information for each server information, store the server information according to a preset storage form when the server information is unregistered information, complete registration of the server information, and establish connection between registered servers to construct a streaming media server cluster.
The streaming server 10 includes a KMS server, and the application coordination server 11 includes a Zookeeper server.
In particular implementations, each streaming server 10 is configured to provide services for video applications, such as online video conferencing applications, live streaming applications, and the like. The operation state of each streaming media server 10 may be detected, and when the start of the video conference service is detected, a request for establishing a communication connection may be sent to the application coordination server 11 to establish a long connection with the application coordination server 11, and server information of the streaming media server 10 after the establishment of the long connection may be sent to the application coordination server 11.
The application coordination server 11 may receive server information transmitted from the streaming server 10 after the long connection has been established. The server information includes at least one of an identification of the streaming server 10, memory status information, central processor status information, disk status information, network status information, path information, and connection information with the user terminal.
In a specific implementation, the application coordination server 11 may determine a registration condition of the received server information, i.e. determine whether the server information is registered information that has been registered on the application coordination server 11. Specifically, whether the server information is registered information may be determined based on at least one of memory state information, central processor state information, disk state information, network state information, connection state information, path information, and identification of the streaming media server. And storing the server information according to a preset storage form under the condition that the server information is unregistered information so as to finish registering the server information. The preset storage form comprises a storage form of a file tree structure. By storing the server information, the server information is used as registered information, the streaming media server corresponding to the server information is used as a registered server, the application coordination server 11 establishes the connection between the registered servers, and the streaming media server cluster is formed based on the mutually connected registered servers, so that the number of video participants can be increased when the streaming media server cluster provides video services.
The cluster construction system provided by the embodiment of the invention comprises: a plurality of streaming media servers and an application coordination server; when the service is started, each streaming media server establishes long connection with the application program coordination server, and server information of the streaming media server is sent to the application program coordination server; the method comprises the steps that server information sent by each streaming media server is received through an application coordination server, registration conditions of the server information are detected for each piece of server information, the server information is stored according to a preset storage form when the server information is unregistered information, registration of the server information is completed, connection among registered servers is established, and a streaming media server cluster is constructed. The embodiment of the invention constructs the streaming media server cluster, reduces the pressure of a single server and can effectively improve the number of people participating in the video conference.
Optionally, the application coordination server includes: the registration detection unit is used for detecting whether the history storage information corresponding to the server information exists, if so, determining that the registration condition of the server information is registered, and if not, determining that the registration condition of the server information is unregistered, and determining that the server information is unregistered.
For example, if the identifier in the server information is the same as the identifier of the registered streaming media server recorded in the history storage information, it may be determined that there is history storage information consistent with the server information; or if the memory state information, the central processing unit state information, the disk state information, the network state information and the connection information between the user terminal in the server information are all found in the history storage information, the memory state information, the central processing unit state information, the disk state information, the network state information and the connection information which are matched with each other, the existence of the history storage information consistent with the server information can be determined. Still alternatively, whether there is history storage information corresponding to the server information may be detected based on the path information in the server information. For example, the protocol address of the streaming media server may be encrypted by SHA256 algorithm to obtain the current path information as server information. The protocol address of the streaming media server is as follows: 192.168.2.11, the current path information obtained after encryption by SHA256 algorithm is: 74405417662957b48e29a70cad4f203c790ab9512188ffe3eed db7cd09517c.
According to the embodiment, the registration condition of the server information can be rapidly determined by detecting the history storage record, and whether the server information is unregistered information can be effectively determined.
In this embodiment, the application coordination server is further configured to delete the history storage information and store the server information in a preset storage form when the server information is registered information.
Specifically, if the server information is registered information, in order to ensure accurate and comprehensive storage of the server information, so that a proper streaming media server can be allocated to a target user in the subsequent process of providing video services, the historical storage information corresponding to the server information can be deleted, and the server information can be stored according to a preset storage form. For example, delete interface may be invoked to complete the deletion of the history stored information, and server information may be stored by invoking create interface.
In the embodiment, the historical storage information is replaced by the server information, so that the registered information is updated, and the timeliness and the accuracy of the recorded server information are ensured.
In this embodiment, the application coordination server is further configured to, when receiving an application request for applying for a video conference sent by the user terminal, determine, based on a pre-acquired resource usage amount of each registered server and a preset resource amount threshold, a target streaming media server for providing a video service, generate, based on the application request, a conference generation instruction, and send the conference generation instruction to the target streaming media server.
The user terminal that needs to obtain the video service can be connected with the streaming media server and the application coordination server respectively, and the application coordination server is used for distributing the streaming media server to the target user by sending an application request for applying the video conference to the application coordination server, and the streaming media server is used for providing the video conference service to the target user.
The application request comprises information such as the number of participants, the participant terminals, the conference starting time and the like of the video conference.
In implementations, the application coordination server may pre-obtain the resource usage of each registered server. The resource usage includes at least one of CPU resource usage, memory resource usage, disk resource usage, and network resource usage. Correspondingly, the preset resource amount threshold comprises at least one of a preset central processor resource amount threshold, a memory resource amount threshold, a disk resource amount threshold and a network resource amount threshold.
In a specific implementation, a target streaming media server for providing services for conference videos corresponding to application requests may be determined based on registered servers for which the resource usage is less than a preset resource amount threshold. Specifically, for each registered server, if the registered server satisfies a preset condition, the registered server may be determined as a target server.
Wherein the preset conditions include at least one of the following: the central processor resource usage is less than a central processor resource amount threshold; the memory resource usage is less than a memory resource threshold; the disk resource usage is less than a disk resource threshold; the network resource usage is less than the network resource amount threshold.
According to the method and the device, whether the resource usage amount is smaller than the preset resource amount threshold is determined, and the target streaming media server is determined, so that the target streaming media server can have enough residual resources to meet the requirements of the video conference, the fluency of the video conference is improved, and the user experience is improved.
Optionally, the application coordination server is further configured to send a resource amount acquisition request to each registered server according to a preset acquisition period, receive a resource usage amount sent by each registered server, and store the resource usage amount.
Specifically, when the resource usage is acquired, a periodic acquisition mode may be adopted, and a resource amount acquisition request is sent to each registration server according to a preset acquisition period. Illustratively, the get interface is used to poll server state information under the sysInfo node of the registered server to request acquisition of resource usage. After the registered server receives the resource amount acquisition request, at least one of the central processing unit resource usage amount, the memory resource usage amount, the disk resource usage amount and the network resource usage amount can be sent to the application coordination server. The application coordination server receives and stores the resource usage amount sent by each registered server, thereby completing the acquisition of the resource usage amount.
Further, when the latest resource usage is acquired, the stored historical resource usage is deleted, so that the storage space is saved, and the validity of the acquired resource usage is ensured.
Or, after receiving the application request, the resource usage amount of each registered server may be obtained, the obtained resource usage amount may be the latest resource usage amount, and the stored historical resource usage amounts may be deleted.
Optionally, the application coordination server includes: the server determining unit is used for determining a registered server with the resource usage less than a preset resource amount threshold as an alternative streaming media server, determining an application resource amount corresponding to the application request, and determining a target streaming media server in the alternative streaming media server based on the application resource amount.
In this embodiment, in order to improve accuracy of the determined target streaming media server, factors of the application resource amount corresponding to the application request may also be considered, so as to determine the target streaming media server capable of meeting the requested video conference resource amount requirement.
Specifically, a registered server whose resource usage is less than a preset resource amount threshold may be determined as an alternative streaming media server, and among the alternative streaming media servers, a registered server whose remaining resource amount is greater than or equal to the application resource amount is determined as a target streaming media server. Therefore, the target streaming media server is ensured to have sufficient resources to provide video services for the applied video conference, and the fluency of the video conference is ensured.
In this embodiment, the application coordination server is further configured to send a heartbeat message to each registered server according to a preset time interval, determine a downtime server from the registered servers based on response information corresponding to the heartbeat message and fed back by the registered servers, and delete downtime server information corresponding to the downtime server.
In order to ensure that the registered servers are in a survival state, video services can be provided for the applied conferences in time, and heartbeat messages can be sent to each registered server according to preset time intervals, so that the survival state of each registered server is detected. The preset time interval is, for example, 1 second. And if the registered server survives, receiving the heartbeat message, and generating response information to feed back to the application coordination server. If the registered server is down, the heartbeat message cannot be received. The application coordination server may determine whether each registered server survives through the received response information.
Specifically, a registered server for which the response information is not received by the application coordination server is determined as a downtime server. And deleting the information of the downtime server, thereby canceling the registration of the downtime server.
In this embodiment, heartbeat messages are sent to registered servers at regular time, and the survival states of the registered servers are effectively detected. And timely deleting the information of the downtime server, so that the downtime server is prevented from influencing the normal running of the video conference.
Further, the application coordination server includes: and the downtime server determining unit is used for determining the registered server which does not feed back the response information within the preset time period as the downtime server.
In order to save time, for a registered server that does not receive the response information of the feedback within the preset duration, the registered server may be determined to be a downtime server, so as to avoid long-time waiting of the application coordination server. And the server information of the downtime server can be sent to the operation and maintenance terminal, so that operation and maintenance personnel can find and solve the problem in time.
In this embodiment, the application coordination server is further configured to obtain user information of the conference user associated with the downtime server, and distribute the user information to the non-downtime server.
Because there may be a case where conference users who need to provide video resources are allocated to the downtime server, in order to ensure that video resources can be effectively provided for the conference users, user information of the conference users associated with the downtime server may be allocated to the non-downtime server. The non-downtime server is a registered server which is not downtime. The user information of the conference user is distributed to the non-downtime server, so that the service migration effect is achieved, the service is ensured to be recovered in a short time, the phenomenon that the downtime server affects the conference user to participate in the conference is avoided, and the loss is reduced to the minimum.
Further, when determining the non-downtime server to be allocated, determining the server with the largest residual resource amount in each non-downtime server, and allocating the user information to the largest resource server.
In addition, the overall resource condition of the streaming media server cluster can be detected, so that the streaming media server cluster can provide conference services for a large number of participating users. Specifically, the resource usage amount of each registered server in the streaming media server cluster may be periodically determined, and the number of servers of the registered servers whose resource usage amount is greater than or equal to a preset resource amount threshold may be determined. It is determined whether the ratio of the number of servers to the total number of registered servers is greater than a preset ratio. Wherein, the preset ratio can be 0.8. If the ratio of the number of servers to the total number of registered servers is greater than a preset ratio, new streaming media servers are required to be added in the streaming media server cluster and registered, and application requests for video conferences received in a future time period are distributed to the newly added streaming media servers, so that the quality of service provided by the cluster is ensured.
It should be noted that, in the embodiment of the cluster building system, each unit and module included are only divided according to the functional logic, but not limited to the above division, so long as the corresponding functions can be implemented; in addition, the specific names of the functional units are also only for distinguishing from each other, and are not used to limit the protection scope of the present invention.
Fig. 2 is a flowchart of a cluster construction method according to an embodiment of the present invention. The method may be performed by a cluster building system, which may be implemented in hardware and/or software.
As shown in fig. 1, the method of the present embodiment is applied to a plurality of streaming media servers and an application coordination server; the method specifically comprises the following steps:
s110, when the service is started, the streaming media servers establish long connection with the application program coordination server, and server information of the streaming media servers is sent to the application program coordination server.
S120, receiving server information sent by each streaming media server through an application coordination server, detecting the registration condition of the server information aiming at each server information, storing the server information according to a preset storage form when the server information is unregistered information, completing registration of the server information, establishing connection among registered servers, and constructing a streaming media server cluster.
On the basis of any optional technical scheme in the embodiment of the invention, optionally, the application coordination server comprises a registration detection unit;
for each piece of server information, detecting the registration condition of the server information includes:
and detecting whether the history storage information corresponding to the server information exists or not through a registration detection unit, if so, determining that the registration condition of the server information is registered, and if not, determining that the registration condition of the server information is unregistered, and determining that the server information is unregistered.
On the basis of any optional technical scheme in the embodiment of the invention, the method further comprises the following steps:
and under the condition that the server information is registered information, the application program coordination server deletes the historical storage information and stores the server information according to a preset storage form.
On the basis of any optional technical scheme in the embodiment of the invention, the method further comprises the following steps:
under the condition that an application program coordination server receives an application request for applying for a video conference sent by a user terminal, a target streaming media server for providing video services is determined based on the resource usage amount of each registered server and a preset resource amount threshold value, a conference generation instruction is generated based on the application request, and the conference generation instruction is sent to the target streaming media server.
On the basis of any optional technical scheme in the embodiment of the invention, the method further comprises the following steps:
and sending a resource quantity acquisition request to each registered server by the application coordination server according to a preset acquisition period, receiving the resource usage quantity sent by each registered server, and storing the resource usage quantity.
On the basis of any optional technical scheme in the embodiment of the invention, optionally, the application coordination server comprises: a server determination unit;
determining a target streaming server for providing video services, comprising:
and determining a registered server with the resource usage less than a preset resource amount threshold as an alternative streaming media server through a server determination unit, determining an application resource amount corresponding to the application request, and determining a target streaming media server in the alternative streaming media server based on the application resource amount.
On the basis of any optional technical scheme in the embodiment of the invention, the method further comprises the following steps:
and sending heartbeat messages to each registered server by the application coordination server according to a preset time interval, determining a downtime server in each registered server based on response information corresponding to the heartbeat messages fed back by the registered servers, and deleting the downtime server information corresponding to the downtime server.
On the basis of any optional technical scheme in the embodiment of the invention, optionally, the application coordination server comprises: a downtime server determining unit;
based on the received response information corresponding to the heartbeat message and fed back by the registered servers, determining a downtime server in each registered server, including:
and determining the registered server which does not feed back response information within a preset time period as the downtime server by the downtime server determining subunit.
On the basis of any optional technical scheme in the embodiment of the invention, the method further comprises the following steps:
and acquiring the user information of the conference user associated with the downtime server through the application coordination server, and distributing the user information to the non-downtime server.
The cluster construction system provided by the embodiment of the invention comprises: a plurality of streaming media servers and an application coordination server; when the service is started, each streaming media server establishes long connection with the application program coordination server, and server information of the streaming media server is sent to the application program coordination server; the method comprises the steps that server information sent by each streaming media server is received through an application coordination server, registration conditions of the server information are detected for each piece of server information, the server information is stored according to a preset storage form when the server information is unregistered information, registration of the server information is completed, connection among registered servers is established, and a streaming media server cluster is constructed. The embodiment of the invention constructs the streaming media server cluster, reduces the pressure of a single server and can effectively improve the number of people participating in the video conference.
It should be appreciated that various forms of the flows shown above may be used to reorder, add, or delete steps. For example, the steps described in the present invention may be performed in parallel, sequentially, or in a different order, so long as the desired results of the technical solution of the present invention are achieved, and the present invention is not limited herein.
The above embodiments do not limit the scope of the present invention. It will be apparent to those skilled in the art that various modifications, combinations, sub-combinations and alternatives are possible, depending on design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the scope of the present invention.
Claims (10)
1. A cluster building system, comprising: a plurality of streaming media servers and an application coordination server;
each streaming media server is used for establishing long connection with the application program coordination server when the service is started, and sending server information of the streaming media server to the application program coordination server;
the application coordination server is used for receiving the server information sent by each streaming media server, detecting the registration condition of the server information aiming at each piece of server information, storing the server information according to a preset storage form when the server information is unregistered information so as to finish the registration of the server information, establishing connection among registered servers and constructing a streaming media server cluster.
2. The system of claim 1, wherein the application coordination server comprises:
the registration detection unit is used for detecting whether the history storage information corresponding to the server information exists, if so, determining that the registration condition of the server information is registered, and if not, determining that the registration condition of the server information is unregistered, and if not, determining that the server information is unregistered.
3. The system according to claim 2, wherein the application coordination server is further configured to delete the history storage information and store the server information in a preset storage form, in a case where the server information is registered information.
4. The system according to claim 1, wherein the application coordination server is further configured to, when receiving an application request for applying for a video conference sent by a user terminal, determine a target streaming server for providing a video service based on a pre-acquired resource usage amount of each of the registered servers and a preset resource amount threshold, generate a conference generation instruction based on the application request, and send the conference generation instruction to the target streaming server.
5. The system of claim 4, wherein said application coordination server is further configured to send a resource amount acquisition request to each of said registered servers according to a preset acquisition period, receive a resource usage amount sent by each of said registered servers, and store said resource usage amount.
6. The system of claim 4, wherein the application coordination server comprises:
and the server determining unit is used for determining the registered server with the resource usage amount smaller than the preset resource amount threshold as an alternative streaming media server, determining the application resource amount corresponding to the application request, and determining the target streaming media server in the alternative streaming media server based on the application resource amount.
7. The system of claim 1, wherein the application coordination server is further configured to send heartbeat messages to each of the registered servers at a preset time interval, determine a downtime server from the registered servers based on response information corresponding to the heartbeat messages fed back by the registered servers, and delete downtime server information corresponding to the downtime server.
8. The system of claim 7, wherein the application coordination server comprises:
and the downtime server determining unit is used for determining the registered server which does not feed back the response information within the preset time length as the downtime server.
9. The system of claim 7, wherein the application coordination server is further configured to obtain user information of conference users associated with the downtime server, and to distribute the user information to non-downtime servers.
10. A cluster construction method, comprising: the method is applied to a plurality of streaming media servers and an application coordination server; the method comprises the following steps:
establishing long connection with the application program coordination server through each streaming media server when the service is started, and sending server information of the streaming media server to the application program coordination server;
and receiving server information sent by each streaming media server through the application coordination server, detecting the registration condition of the server information aiming at each piece of server information, storing the server information according to a preset storage form when the server information is unregistered information so as to finish registration of the server information, and establishing connection among registered servers to construct a streaming media server cluster.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311658263.7A CN117596360A (en) | 2023-12-05 | 2023-12-05 | Cluster construction system and method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311658263.7A CN117596360A (en) | 2023-12-05 | 2023-12-05 | Cluster construction system and method |
Publications (1)
Publication Number | Publication Date |
---|---|
CN117596360A true CN117596360A (en) | 2024-02-23 |
Family
ID=89916614
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202311658263.7A Pending CN117596360A (en) | 2023-12-05 | 2023-12-05 | Cluster construction system and method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN117596360A (en) |
-
2023
- 2023-12-05 CN CN202311658263.7A patent/CN117596360A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10367852B2 (en) | Multiplexed demand signaled distributed messaging | |
CN103731341B (en) | A kind of method and system that instant messaging business is handled | |
CN110213522B (en) | Video data processing method and device and related equipment | |
CN108881354B (en) | Push information storage method and device, server and computer storage medium | |
CN115004673B (en) | Message pushing method, device, electronic equipment and computer readable medium | |
JP2022534179A (en) | DATA TRANSMISSION METHOD, DEVICE, COMPUTER PROGRAM AND COMPUTER DEVICE | |
CN110635921B (en) | Group-based interaction method, device, equipment and readable medium | |
EP2140609A2 (en) | Method and system for identifying a multipoint control unit for hosting a conference | |
CN111131443B (en) | Task pushing method and system | |
CN111355986B (en) | Message processing method and device in live broadcast room and storage medium | |
CN112995266B (en) | Information pushing method and related equipment | |
CN109495378A (en) | Detect method, apparatus, server and the storage medium of abnormal account number | |
JP2009206601A (en) | Information distribution system | |
CN108540367A (en) | A kind of message treatment method and system | |
CN111131843A (en) | Network live broadcast system and method | |
CN106411713B (en) | State notification method and server | |
CN109413117B (en) | Distributed data calculation method, device, server and computer storage medium | |
CN112169312A (en) | Queuing scheduling method, device, equipment and storage medium for cloud game service | |
CN112733051A (en) | Websocket-based information push management system and method | |
US9374328B1 (en) | Selective messaging using online presence information | |
CN102209313A (en) | Presence information subscribing method and system, resource list server and presence server | |
US8331543B2 (en) | Resynchronization of call events after trigger event | |
CN117596360A (en) | Cluster construction system and method | |
CN105979225A (en) | Monitoring method and device for group video room | |
CN112104888B (en) | Method and system for grouping live broadcast users |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |