CN111586434A - Load balancing method based on edge device and distributed mixed screen server - Google Patents

Load balancing method based on edge device and distributed mixed screen server Download PDF

Info

Publication number
CN111586434A
CN111586434A CN202010375003.9A CN202010375003A CN111586434A CN 111586434 A CN111586434 A CN 111586434A CN 202010375003 A CN202010375003 A CN 202010375003A CN 111586434 A CN111586434 A CN 111586434A
Authority
CN
China
Prior art keywords
server
screen
service
line
mixed
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.)
Granted
Application number
CN202010375003.9A
Other languages
Chinese (zh)
Other versions
CN111586434B (en
Inventor
郭志鸣
时杰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Century TAL Education Technology Co Ltd
Original Assignee
Beijing Three Body Cloud Times Technology Co ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Beijing Three Body Cloud Times Technology Co ltd filed Critical Beijing Three Body Cloud Times Technology Co ltd
Priority to CN202010375003.9A priority Critical patent/CN111586434B/en
Publication of CN111586434A publication Critical patent/CN111586434A/en
Application granted granted Critical
Publication of CN111586434B publication Critical patent/CN111586434B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/21Server components or server architectures
    • H04N21/226Characteristics of the server or Internal components of the server
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/21Server components or server architectures
    • H04N21/218Source of audio or video content, e.g. local disk arrays
    • H04N21/2187Live feed
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/231Content storage operation, e.g. caching movies for short term storage, replicating data over plural servers, prioritizing data for deletion
    • H04N21/23103Content storage operation, e.g. caching movies for short term storage, replicating data over plural servers, prioritizing data for deletion using load balancing strategies, e.g. by placing or distributing content on different disks, different memories or different servers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/234Processing of video elementary streams, e.g. splicing of video streams, manipulating MPEG-4 scene graphs
    • H04N21/23424Processing of video elementary streams, e.g. splicing of video streams, manipulating MPEG-4 scene graphs involving splicing one content stream with another content stream, e.g. for inserting or substituting an advertisement

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Business, Economics & Management (AREA)
  • Marketing (AREA)
  • Databases & Information Systems (AREA)
  • Computer And Data Communications (AREA)

Abstract

The invention provides a load balancing method based on edge equipment and a distributed mixed screen server, wherein the distributed mixed screen server comprises a multi-line central server, a single-line edge server and a service server, the method is applied to the service server, and the method comprises the following steps: the method comprises the steps that a service server determines a service to be mixed with a screen, wherein the service to be mixed with the screen corresponds to a plurality of target single-line edge servers and a target multi-line center server; the service server determines the load states of a plurality of target single-line edge servers and a target multi-line center server; the service server sends a screen mixing request to a server which is idle in the target single-line edge servers or the target multi-line center server according to the load states of the target single-line edge servers and the target multi-line center server, and the screen mixing request indicates the idle server to perform screen mixing on the screen to be mixed. The invention can relieve the mixed screen service pressure of the multi-line central server and reduce the service risk.

Description

Load balancing method based on edge device and distributed mixed screen server
Technical Field
The invention relates to the technical field of mixed screen servers, in particular to a load balancing method based on edge equipment and a distributed mixed screen server.
Background
In the internet cloud era today, various calculations of real-time audio and video are also developed towards the cloud, and due to the fact that the data calculation amount of the audio and video is huge and the problems of intercommunication among operators such as mobile operators, telecom operators and the like are solved, the calculation pressure of the central cloud is greatly increased, and therefore people use a multi-line central server as a central calculation node to carry out screen mixing, and intercommunication among all the operators is achieved. However, the multi-line central server needs to load all screen mixing tasks, and is high in pressure and high in business risk.
Disclosure of Invention
In view of this, the present invention provides a load balancing method based on edge devices and a distributed mixed-screen server, so as to alleviate the mixed-screen service pressure of a multi-line central server and reduce service risks.
In a first aspect, an embodiment of the present invention provides a load balancing method based on edge devices, where a distributed mixed-screen server includes a multi-line central server, a single-line edge server, and a service server, and the method is applied to the service server, and includes:
the method comprises the steps that a service server determines a service to be mixed with a screen, wherein the service to be mixed with the screen corresponds to a plurality of target single-line edge servers and a target multi-line center server;
the service server determines the load states of a plurality of target single-line edge servers and a target multi-line center server;
the service server sends a screen mixing request to a relatively idle server or a target multi-line center server in the target single-line edge servers according to the load states of the target single-line edge servers and the target multi-line center server, and the screen mixing request indicates the relatively idle server or the target multi-line center server to perform screen mixing on the screen to be mixed.
In a second aspect, an embodiment of the present invention provides a load balancing method based on edge devices, where a distributed mixed-screen server includes a multi-line central server, a single-line edge server, and a service server, and the method is applied to the multi-line central server, and includes:
the multiline central server periodically sends the current load state to the service server;
the method comprises the steps that a multi-line center server receives a screen mixing request sent by a service server based on the current load state, the screen mixing request is used for indicating that screen mixing is carried out on data of a service to be mixed, and the service to be mixed corresponds to a plurality of clients;
and the multi-line central server performs screen mixing on the received data of the service to be subjected to screen mixing to obtain a screen mixing signal, and sends the screen mixing signal to the plurality of clients so that the clients can play the screen mixing signal conveniently.
In a third aspect, an embodiment of the present invention provides a load balancing method based on edge devices, where a distributed mixed-screen server includes a multi-line central server, a single-line edge server, and a service server, and the method is applied to the single-line edge server, and includes:
the single-line edge server periodically sends the current load state to the service server;
the method comprises the steps that a single-line edge server receives a screen mixing request sent by a service server based on the current load state, the screen mixing request is used for indicating that screen mixing is carried out on data of a service to be mixed, and the service to be mixed corresponds to a plurality of clients;
and the single-line edge server performs screen mixing on the received data of the service to be subjected to screen mixing to obtain a screen mixing signal, and transmits the screen mixing signal to a plurality of clients so that the clients can play the screen mixing signal conveniently.
In a fourth aspect, an embodiment of the present invention provides a distributed mixed-screen server, where the distributed mixed-screen server includes a multi-line central server, a single-line edge server, and a service server;
the business server is used for determining a business to be mixed with the screen, and the business to be mixed with the screen corresponds to a plurality of target single-line edge servers and a target multi-line center server; the system is also used for sending a screen mixing request to a plurality of idle target single-line edge servers and/or target multi-line central servers according to the load states of the target single-line edge servers and the target multi-line central servers;
the multi-line center server and the single-line edge server are used for receiving and executing the screen mixing request and forwarding data of the service to be mixed.
In one embodiment, the distributed mixed screen server further comprises: and the single-wire access server is used for accessing data of the service to be mixed.
In a fifth aspect, an embodiment of the present invention provides an edge device-based load balancing apparatus, where a distributed mixed-screen server includes a multi-line central server, a single-line edge server, and a service server, and the apparatus is applied to the service server, and includes:
the service determining module is used for the service server to determine a service to be mixed with the screen, and the service to be mixed with the screen corresponds to a plurality of target single-line edge servers and a target multi-line center server;
the load state determining module is used for the service server to determine the load states of the plurality of target single-line edge servers and the target multi-line center server;
and the mixed screen request sending module is used for sending a mixed screen request to a relatively idle server or a target multi-line central server in the target single-line edge servers by the service server according to the load states of the target single-line edge servers and the target multi-line central server, wherein the mixed screen request indicates the relatively idle server to mix the screen of the mixed screen service.
In a sixth aspect, an embodiment of the present invention provides an apparatus for load balancing based on edge devices, where a distributed mixed-screen server includes a multi-line central server, a single-line edge server, and a service server, and the apparatus is applied to the multi-line central server, and includes:
the first sending module is used for periodically sending the current load state to the service server by the multi-line central server;
the system comprises a first receiving module, a second receiving module and a third receiving module, wherein the first receiving module is used for receiving a screen mixing request sent by a service server based on the current load state by a multi-line center server, the screen mixing request is used for indicating that the data of a service to be mixed is subjected to screen mixing, and the service to be mixed is provided with a plurality of clients correspondingly;
and the first screen mixing module is used for mixing the screen of the received data of the service to be mixed with the screen by the multi-line central server to obtain a screen mixing signal, and sending the screen mixing signal to the plurality of clients so that the clients can play the screen.
In a seventh aspect, an embodiment of the present invention provides an apparatus for load balancing based on edge devices, where a distributed mixed-screen server includes a multi-line central server, a single-line edge server, and a service server, and the apparatus is applied to the single-line edge server, and includes:
the second sending module is used for periodically sending the current load state to the service server by the single-line edge server;
the second receiving module is used for receiving a screen mixing request sent by the service server based on the current load state by the single-line edge server, wherein the screen mixing request is used for indicating that the data of the service to be mixed is subjected to screen mixing, and the service to be mixed is provided with a plurality of clients correspondingly;
and the second screen mixing module is used for mixing the screen of the received data of the service to be mixed by the single-line edge server to obtain a screen mixing signal, and transmitting the screen mixing signal to the plurality of clients so that the clients can play the screen.
In an eighth aspect, an embodiment of the present invention provides an electronic device, which includes a processor and a memory, where the memory stores computer-executable instructions capable of being executed by the processor, and the processor executes the computer-executable instructions to implement the steps of the method provided in any one of the first to third aspects.
In a ninth aspect, the present invention provides a computer-readable storage medium, on which a computer program is stored, where the computer program is executed by a processor to perform the steps of the method provided in any one of the first to third aspects.
The embodiment of the invention provides a load balancing method based on edge equipment and a distributed mixed screen server, wherein the distributed mixed screen server comprises a multi-line center server, a single-line edge server and a service server, and after receiving a service to be mixed screen (the service to be mixed screen corresponds to a plurality of target single-line edge servers and one target multi-line center server), the service server can send a mixed screen request to a more idle server according to the load states of the plurality of target single-line edge servers (the mixed screen request indicates the more idle server to mix screen for the service to be mixed screen), or send the mixed screen request to the target multi-line center server when the load state of the target single-line edge server is saturated. According to the method, the business server can be used for distributing the business to be mixed to the idle single-line edge mixed screen server or the multi-line central server, so that the screen mixing capability of the single-line edge server is fully utilized, the screen mixing business pressure of the multi-line central server is relieved, and the business risk is reduced.
Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. The objectives and other advantages of the invention will be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
In order to make the aforementioned and other objects, features and advantages of the present invention comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings can be obtained by those skilled in the art without creative efforts.
Fig. 1 is a schematic flowchart of a load balancing method based on an edge device according to an embodiment of the present invention;
fig. 2 is a schematic flowchart of another method for load balancing based on an edge device according to an embodiment of the present invention;
fig. 3 is a schematic flowchart of another method for load balancing based on an edge device according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a distributed mixed-screen server according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of another distributed mixed-screen server according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of an apparatus for load balancing based on edge devices according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of another apparatus for load balancing based on edge devices according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of another apparatus for load balancing based on edge devices according to an embodiment of the present invention;
fig. 9 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Icon:
10-a multi-line central server; 20-single-line edge server; 30-service server.
Detailed Description
To make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings, and it is apparent that the described embodiments are some, but not all embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
At present, a multi-line central server needs to load all mixed screen tasks, the pressure is high, and the business risk is high. Based on this, the load balancing method and apparatus, the distributed mixed screen server and the electronic device provided by the embodiments of the present invention can alleviate the mixed screen service pressure of the multi-line central server, and reduce the service risk.
To facilitate understanding of the present embodiment, first, a method for load balancing based on an edge device disclosed in the embodiment of the present invention is described in detail, referring to a schematic flow chart of the method for load balancing based on an edge device shown in fig. 1, where a distributed mixed-screen server includes a multi-line center server, a single-line edge server, and a service server, the method may be applied to the service server, and mainly includes the following steps S101 to S103:
step S101: the service server determines a service to be mixed with the screen, and the service to be mixed with the screen corresponds to a plurality of target single-line edge servers and a target multi-line center server.
Specifically, for a scene that a plurality of anchor broadcasters in a live video broadcast are connected with the wheat, when the anchor broadcasters are connected with the wheat, a plurality of paths of audio and/or video signals need to be mixed and then broadcast, so that a service server can receive a service to be mixed with a screen, the service to be mixed with the screen is a live broadcast room, and the live broadcast room corresponds to a plurality of target single-line edge servers and a target multi-line center server.
Step S102: the service server determines the load states of a plurality of target single-line edge servers and a target multi-line center server.
Considering that the target single-line edge server and the target multi-line center server have limited service load capacity, when the target single-line edge server and the target multi-line center server are in a saturated state, new mixed screen services cannot be received, and when the same server simultaneously loads excessive mixed screen services, the efficiency and the stability of the server are also influenced. Therefore, the service server can collect the load states of the servers with the screen mixing function (namely the single-line edge server and the multi-line center server) in real time, and select the optimal server to distribute the service according to the load states of the plurality of single-line edge servers. For example, each single-line edge server may send its load capacity and occupancy status to the traffic server, such as: the load capacity of a single-line edge server is 5, and the occupied condition is 2; the load capacity of one multi-line central server is 15 and the occupied case is 5.
Step S103: and the service server sends a screen mixing request to the idle server target single-line edge server or the target multi-line central server according to the load states of the target single-line edge servers and the target multi-line central server, and the screen mixing request indicates the idle server to mix the screen to be mixed with the screen service.
Specifically, the service server may select a server that is idle (i.e., the server with the best screen mixing effect) from the target single-line edge servers according to the load states of the target single-line edge servers and the target multi-line center server determined in step S102, such as: the load capacity of the target multi-line server is 10 and the target multi-line server is occupied 2; the load capacity of the first target single-line edge server is 5, and the first target single-line edge server is occupied by 0; the load capacity of the second target single-line edge server is 5, and the second target single-line edge server is occupied by 4, so that the first target single-line edge servers are all idle, and the service server can select to send a mixed screen request to the first target single-line edge server. And when the loads of all target single-line edge servers are saturated or the corresponding single-line edge server is not found by the screen mixing service, the service server can send a screen mixing request to the target central server. The target multi-line center server or the target single-line edge server can mix the received audio and/or video signals after receiving the screen mixing request, and send the audio and/or video signals after screen mixing to the client for playing.
Furthermore, because the processing resources needed by the video are more than the audio, and the single-line edge server is generally a slicing virtual machine and has weaker processing capacity, the audio mixing request can be sent to the first target single-line edge server, and the video mixing request can be sent to the target multi-line center server, so that the mixing capacity of the multi-line center server and the single-line edge server is reasonably utilized, and the mixing pressure of the multi-line center server is reduced. The first target single-line edge server can send the audio signal after screen mixing to the client, and the audio signal is combined with the video signal of the screen mixing of the target multi-line center server and then played.
In the method for load balancing based on the edge device provided by the embodiment of the present invention, after receiving a service to be mixed with a screen (the service to be mixed with a plurality of target single-line edge servers and a target multi-line center server), a service server may send a screen mixing request to a target single-line edge server that is relatively idle according to a load state of the plurality of target single-line edge servers (the screen mixing request may indicate the target single-line edge server that is relatively idle to perform screen mixing on the service to be mixed with a screen), or send the screen mixing request to the target multi-line center server when the load state of the target single-line edge server is saturated. According to the method, the business server can be used for distributing the business to be mixed with the screen to the idle single-line edge server or the multi-line center server, so that the screen mixing capability of the single-line edge server is fully utilized, the screen mixing business pressure of the multi-line center server is relieved, and the business risk is reduced.
Further, another load balancing method based on edge devices is provided in an embodiment of the present invention, see a flow diagram of another load balancing method based on edge devices shown in fig. 2, where the method may be applied to a multi-line central server, where the multi-line central server has 3 network cards respectively accessing 3 operators, so that there are 3 different IP addresses (telecom, connected, mobile), and then users of each line access sites of the same line through intelligent DNS domain name resolution, thereby improving access speed. The method mainly comprises the following steps S201 to S203:
step S201: the multi-line central server periodically sends the current load state to the service server.
Considering that the service server performs service distribution according to the load status of the multi-line center server and needs to acquire the load status information thereof, the multi-line center server may periodically send the current load status to the service server, such as: sending the current load status to the service server every 10 seconds, where the load status may include the load capacity and occupancy of the multiline center server, for example: load capacity 15 and occupied case 5.
Step S202: the multi-line center server receives a screen mixing request sent by the service server based on the current load state, the screen mixing request is used for indicating that the data of the service to be mixed is subjected to screen mixing, and the service to be mixed is provided with a plurality of clients correspondingly.
In a specific application, when the service server judges that the multi-line central server is idle based on the current load state, the service server can send the mixed screen request to the multi-line central server; the screen mixing request received by the multi-line center server can be an audio screen mixing request or a video screen mixing request, and can also be an audio video screen mixing request.
Step S203: and the multi-line central server performs screen mixing on the received data of the service to be subjected to screen mixing to obtain a screen mixing signal, and sends the screen mixing signal to the plurality of clients so that the clients can play the screen mixing signal conveniently.
For a better understanding of the above method, the following is exemplified: supposing that a first client user and a second client user carry out microphone connection in a live broadcast room, wherein the first client corresponds to a plurality of single-line edge servers and a multi-line center server, and the single-line edge servers and the multi-line center server send the current load state to a service server; the first client and the second client respectively send the data of the service to be mixed to the service server; after receiving the mixed screen service, the service server judges that no single-line edge server meeting the mixed screen requirement exists according to the load states of the single-line edge servers (namely the single-line edge server is saturated in load state or low in mixed screen speed, low in efficiency and the like), and then sends a mixed screen request to the multi-line center server; the first client and the second client respectively send the data of the screen mixing service to the multi-line central server; the multi-line center server receives the data of the service to be mixed and then performs screen mixing on the data to obtain a screen mixing signal, and sends the screen mixing signal to the first client and the second client for playing, so that the microphone connecting operation of the first client user and the second client user is realized.
Further, another load balancing method based on an edge device is provided in an embodiment of the present invention, referring to a flow diagram of another load balancing method based on an edge device shown in fig. 3, where the method is applied to a single-line edge server, the single-line edge server may be disposed on the same physical machine as an original single-line access server, and the single-line edge server has forwarding and screen mixing capabilities at the same time, and the method mainly includes the following steps S301 to S303:
step S301: the single-line edge server periodically sends the current load status to the traffic server.
Considering that the service server performs service distribution according to the load status of the single-line edge server, it needs to acquire its load status information in real time, so the single-line edge server may periodically send the current load status to the service server, such as: the current load status is sent to the traffic server every 10 seconds, and may include the load capacity and occupancy of a single-line edge server, such as: load capacity is 5 and occupied case is 3.
Step S302: the single-line edge server receives a screen mixing request sent by the service server based on the current load state, wherein the screen mixing request is used for indicating that screen mixing is carried out on data of a service to be mixed, and the service to be mixed corresponds to a plurality of clients.
In a specific application, when the service server judges that the single-line edge server is idle based on the current load state, the mixed screen request can be sent to the single-line edge server; the screen mixing request received by the single-line edge server can be an audio screen mixing request or a video screen mixing request, and can also be an audio video screen mixing request. When the single-line edge server and the multi-line center server are idle, the service server can preferentially send the video mixed screen request to the multi-line center server and send the audio mixed screen signal to the single-line edge server, so that the mixed screen server is used more evenly, and the service pressure of the center server is reduced.
Step S303: and the single-line edge server performs screen mixing on the received data of the service to be subjected to screen mixing to obtain a screen mixing signal, and transmits the screen mixing signal to a plurality of clients so that the clients can play the screen mixing signal conveniently.
For a better understanding of the above method, the following is exemplified: supposing that a first client user and a second client user are connected in a live broadcast room, wherein the first client corresponds to a plurality of single-line edge servers and a multi-line center server, and the single-line edge servers and the multi-line center server send the current load state of the single-line edge servers and the multi-line center server to a service server; the first client and the second client respectively send the data of the service to be mixed to the service server; after receiving the mixed screen service, the service server judges to obtain an optimal single-line edge server according to the load states of the plurality of single-line edge servers (namely, the load is small, the mixed screen efficiency is high, the speed is high and the like), and sends a mixed screen request to the optimal single-line edge server; the first client and the second client respectively send the data of the service to be mixed to the single-line edge server; and the optimal single-line edge server receives the data of the service to be mixed with the screen, then mixes the screen to obtain a mixed screen signal, and sends the mixed screen signal to the first client and the second client for playing, so that the microphone connecting operation of the first client user and the second client user is realized.
Further, an embodiment of the present invention further provides a distributed mixed-screen server, referring to a schematic structural diagram of the distributed mixed-screen server shown in fig. 4, which illustrates that the distributed mixed-screen server includes a multi-line center server 10, a single-line edge server 20, and a service server 30.
The service server 30 is configured to determine a service to be mixed, where the service to be mixed corresponds to a plurality of target single-line edge servers and a target multi-line center server; and the system is also used for sending a screen mixing request to the idle target single-line edge server and/or the target multi-line central server according to the load states of the target single-line edge servers and the target multi-line central server.
The multi-line center server 10 and the single-line edge server 20 are used for receiving and executing the screen mixing request and forwarding data of the service to be screen mixed.
The distributed mixed screen server provided by the embodiment of the invention comprises a multi-line center server, a single-line edge server and a service server, wherein the service server can send a mixed screen request to a relatively idle server (the mixed screen request indicates that the relatively idle server mixes the screen to the mixed screen service) according to the load states of a plurality of target single-line edge servers and a target multi-line center server after receiving the to-be-mixed screen service (the to-be-mixed screen service corresponds to a plurality of target single-line edge servers and one target multi-line center server). According to the method, the business server can be used for distributing the business to be mixed to the idle single-line edge mixed screen server or the multi-line central server, so that the screen mixing capability of the single-line edge server is fully utilized, the screen mixing business pressure of the multi-line central server is relieved, and the business risk is reduced.
Further, the distributed mixed-screen server further includes: and the single-wire access server is used for forwarding the data of the service to be mixed. The single-wire access server and the single-wire edge server can be arranged on the same physical machine, and the mixed screen service function is added to the node which is responsible for forwarding at the original value.
In order to better understand the functions of the distributed screen mixing server, an embodiment of the present invention further provides another structural schematic diagram of the distributed screen mixing server, and reference is made to fig. 5, where two clients, a client C1, correspond to a single-line edge server as an example, and the distributed screen mixing server is illustrated to include: the system comprises a client C1, a client C2, a first single-line access server, a single-line edge server, a multi-line center server, a service server and a second single-line access server.
When the client C1 and the client C2 are connected in a live broadcast room, the service client receives the mixed screen service sent by the client C1 and the client C2, and the client C1 sends first data of the mixed screen service to the single-line edge server through the first single-line access server; the client C2 sends the second data of the mixed screen service to the multi-line center server through the second single-line access server, and the multi-line center server forwards the second data to the single-line edge server; the single-wire edge server performs screen mixing on the received first data and the received second data to obtain a screen mixing signal; the single-wire edge server sends the mixed screen signal to the client C1 through the first single-wire access server for playing, meanwhile, the single-wire edge server forwards the mixed screen signal to the second single-wire access server through the multi-wire center server, and the second single-wire access server sends the mixed screen signal to the client C2 for playing, so that the wheat connecting operation of the client C1 and the client C2 is achieved.
When the single-line edge server is saturated or the mixed screen effect is poor, a mixed screen request can be sent to the multi-line center server, namely the client C1 sends first data of the mixed screen service to the single-line edge server through the first single-line access server, and the single-line edge server forwards the first data to the multi-line center server; the client C2 sends the second data of the mixed screen service to the multi-line central server through a second single-line access server; the multiline central server performs screen mixing on the received first data and the received second data to obtain a screen mixing signal; the multi-line center server forwards the mixed screen signal to the first single-line access server through the single-line edge server, the first single-line access server sends the mixed screen signal to the client C1 to be played, and meanwhile, the multi-line center server sends the mixed screen signal to the client C2 to be played through the second single-line access server, so that the wheat connecting operation of the client C1 and the client C2 is achieved.
The distributed mixed screen server distributes the mixed screen service to the idle servers through the service server, so that the mixed screen pressure of the multi-line central server is relieved, and the stability of a system and data transmission in the live broadcast process is effectively improved.
For the method for load balancing based on edge devices provided in the foregoing embodiments, an embodiment of the present invention further provides an apparatus for load balancing based on edge devices, referring to a schematic structural diagram of an apparatus for load balancing based on edge devices shown in fig. 6, where the apparatus may be applied to a service server, and the apparatus may include the following components:
the service determining module 601 is configured to determine a service to be mixed by a service server, where the service to be mixed corresponds to a plurality of target single-line edge servers and a target multi-line center server.
A load status determining module 602, configured to determine load statuses of a plurality of target single-line edge servers and a target multi-line center server by a service server.
And a mixed screen request sending module 603, configured to send, by the service server, a mixed screen request to a relatively idle server in the target single-line edge servers or the target multi-line center server according to load states of the multiple target single-line edge servers and the target multi-line center server, where the mixed screen request indicates that the relatively idle server performs mixed screen processing on the mixed screen service.
Further, another apparatus for load balancing based on edge devices is provided in the embodiments of the present invention, referring to a schematic structural diagram of another apparatus for load balancing based on edge devices shown in fig. 7, where the apparatus may be applied to a multi-line central server, and the apparatus may include the following parts:
the first sending module 701 is configured to send the current load status to the service server periodically by the multi-line center server.
The first receiving module 702 is configured to receive, by a multi-line center server, a screen mixing request sent by a service server based on a current load state, where the screen mixing request is used to indicate that screen mixing is performed on data of a service to be screen mixed, and the service to be screen mixed corresponds to multiple clients.
The first screen mixing module 703 is configured to perform screen mixing on the received data of the service to be screen mixed by the multi-line central server to obtain a screen mixing signal, and send the screen mixing signal to the multiple clients so that the clients can play the screen mixing signal.
Further, another apparatus for load balancing based on edge devices is provided in the embodiments of the present invention, referring to a schematic structural diagram of another apparatus for load balancing based on edge devices shown in fig. 8, where the apparatus may be applied to a single-line edge server, and the apparatus may include the following components:
and a second sending module 801, configured to send the current load status to the service server periodically by the single-line edge server.
A second receiving module 802, configured to receive, by the single-line edge server, a screen mixing request sent by the service server based on the current load state, where the screen mixing request is used to indicate that screen mixing is performed on data of a service to be screen mixed, and the service to be screen mixed corresponds to multiple clients.
And the second screen mixing module 803 is configured to perform screen mixing on the received data of the service to be screen mixed by the single-line edge server to obtain a screen mixing signal, and send the screen mixing signal to the multiple clients so that the clients can play the screen mixing signal.
According to the load balancing device based on the edge device provided by the embodiment of the invention, after the service server receives the service to be mixed with the screen (the service to be mixed with the screen corresponds to a plurality of target single-line edge servers and a target multi-line central server), the service server can send the screen mixing request to the idle server according to the load states of the plurality of target single-line edge servers and the target multi-line central server (the screen mixing request indicates the idle server to mix the screen with the service to be mixed with the screen). According to the method, the business server can be used for distributing the business to be mixed to the idle single-line edge mixed screen server or the multi-line central server, so that the screen mixing capability of the single-line edge server is fully utilized, the screen mixing business pressure of the multi-line central server is relieved, and the business risk is reduced.
The device provided by the embodiment of the present invention has the same implementation principle and technical effect as the method embodiments, and for the sake of brief description, reference may be made to the corresponding contents in the method embodiments without reference to the device embodiments.
The embodiment of the invention also provides electronic equipment, which specifically comprises a processor and a storage device; the storage means has stored thereon a computer program which, when executed by the processor, performs the method of any of the above embodiments.
Fig. 9 is a schematic structural diagram of an electronic device according to an embodiment of the present invention, where the electronic device 100 includes: the system comprises a processor 90, a memory 91, a bus 92 and a communication interface 93, wherein the processor 90, the communication interface 93 and the memory 91 are connected through the bus 92; the processor 90 is arranged to execute executable modules, such as computer programs, stored in the memory 91.
The Memory 91 may include a high-speed Random Access Memory (RAM) and may further include a non-volatile Memory (non-volatile Memory), such as at least one disk Memory. The communication connection between the network element of the system and at least one other network element is realized through at least one communication interface 93 (which may be wired or wireless), and the internet, a wide area network, a local network, a metropolitan area network, and the like can be used.
Bus 92 may be an ISA bus, PCI bus, EISA bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one double-headed arrow is shown in FIG. 9, but this does not indicate only one bus or one type of bus.
The memory 91 is used for storing a program, the processor 90 executes the program after receiving an execution instruction, and the method executed by the apparatus defined by the flow process disclosed in any of the foregoing embodiments of the present invention may be applied to the processor 90, or implemented by the processor 90.
The processor 90 may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware or instructions in the form of software in the processor 90. The Processor 90 may be a general-purpose Processor, and includes a Central Processing Unit (CPU), a Network Processor (NP), and the like; the device can also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field-Programmable Gate Array (FPGA) or other Programmable logic device, a discrete Gate or transistor logic device, or a discrete hardware component. The various methods, steps and logic blocks disclosed in the embodiments of the present invention may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in connection with the embodiments of the present invention may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software module may be located in ram, flash memory, rom, prom, or eprom, registers, etc. storage media as is well known in the art. The storage medium is located in the memory 91, and the processor 90 reads the information in the memory 91 and performs the steps of the above method in combination with the hardware thereof.
The computer program product of the readable storage medium provided in the embodiment of the present invention includes a computer readable storage medium storing a program code, where instructions included in the program code may be used to execute the method described in the foregoing method embodiment, and specific implementation may refer to the foregoing method embodiment, which is not described herein again.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
Finally, it should be noted that: the above-mentioned embodiments are only specific embodiments of the present invention, which are used for illustrating the technical solutions of the present invention and not for limiting the same, and the protection scope of the present invention is not limited thereto, although the present invention is described in detail with reference to the foregoing embodiments, those skilled in the art should understand that: any person skilled in the art can modify or easily conceive the technical solutions described in the foregoing embodiments or equivalent substitutes for some technical features within the technical scope of the present disclosure; such modifications, changes or substitutions do not depart from the spirit and scope of the embodiments of the present invention, and they should be construed as being included therein. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (10)

1. A method for load balancing based on edge equipment is characterized in that a distributed mixed screen server comprises a multi-line center server, a single-line edge server and a service server, and the method is applied to the service server and comprises the following steps:
the service server determines a service to be mixed with a screen, wherein the service to be mixed with the screen corresponds to a plurality of target single-line edge servers and a target multi-line center server;
the service server determines the load states of a plurality of target single-line edge servers and a target multi-line center server;
the service server sends a screen mixing request to a relatively idle server or the target multi-line center server in the target single-line edge servers according to the load states of the target single-line edge servers and the target multi-line center server, wherein the screen mixing request indicates the relatively idle server or the target multi-line center server to mix the screen of the service to be mixed.
2. A method for load balancing based on edge devices is characterized in that a distributed mixed-screen server comprises a multi-line central server, a single-line edge server and a service server, and the method is applied to the multi-line central server and comprises the following steps:
the multiline central server periodically sends the current load state to the service server;
the multi-line central server receives a screen mixing request sent by the service server based on the current load state, wherein the screen mixing request is used for indicating that the data of the service to be mixed is subjected to screen mixing, and the service to be mixed is provided with a plurality of clients correspondingly;
and the multi-line central server performs screen mixing on the received data of the service to be subjected to screen mixing to obtain a screen mixing signal, and sends the screen mixing signal to the plurality of clients so as to be played by the clients.
3. A method for load balancing based on edge equipment, wherein a distributed mixed screen server comprises a multi-line center server, a single-line edge server and a service server, and the method is applied to the single-line edge server, and comprises the following steps:
the single-line edge server periodically sends the current load state to the service server;
the single-line edge server receives a screen mixing request sent by the service server based on the current load state, wherein the screen mixing request is used for indicating that screen mixing is carried out on data of a service to be mixed, and the service to be mixed corresponds to a plurality of clients;
and the single-line edge server performs screen mixing on the received data of the service to be subjected to screen mixing to obtain a screen mixing signal, and sends the screen mixing signal to the plurality of clients so as to be played by the clients.
4. A distributed mixed screen server is characterized by comprising a multi-line center server, a single-line edge server and a service server;
the service server is used for determining a service to be mixed with a screen, and the service to be mixed with the screen corresponds to a plurality of target single-line edge servers and a target multi-line center server; the system is also used for sending a screen mixing request to the idle target single-line edge server and/or the target multi-line center server according to the load states of the target single-line edge servers and the target multi-line center server;
the multi-line center server and the single-line edge server are used for receiving and executing the screen mixing request and forwarding the data of the service to be mixed.
5. The distributed mixed screen server of claim 4, further comprising:
and the single-wire access server is used for accessing the data of the service to be mixed.
6. An apparatus for load balancing based on edge devices, wherein a distributed mixed-screen server includes a multi-line center server, a single-line edge server and a service server, and the apparatus is applied to the service server, and the apparatus includes:
the service determining module is used for the service server to determine a service to be mixed with a screen, and the service to be mixed with the screen corresponds to a plurality of target single-line edge servers and a target multi-line center server;
a load state determination module, configured to determine load states of the plurality of target single-line edge servers and the target multi-line center server by the service server;
and the mixed screen request sending module is used for sending a mixed screen request to a relatively idle server in the target single-line edge servers or the target multi-line center server by the service server according to the load states of the target single-line edge servers and the target multi-line center server, wherein the mixed screen request indicates the relatively idle server or the target multi-line center server to mix the screen of the service to be mixed.
7. An apparatus for load balancing based on edge devices, wherein a distributed mixed-screen server includes a multi-line center server, a single-line edge server and a service server, and the apparatus is applied to the multi-line center server, and the apparatus includes:
the first sending module is used for periodically sending the current load state to the service server by the multi-line central server;
the multi-line central server is used for receiving a screen mixing request sent by the service server based on the current load state, wherein the screen mixing request is used for indicating that screen mixing is carried out on data of a service to be mixed, and the service to be mixed corresponds to a plurality of clients;
and the first screen mixing module is used for mixing the screen of the received data of the service to be mixed by the multi-line central server to obtain a screen mixing signal, and sending the screen mixing signal to the plurality of clients so as to be played by the clients.
8. An apparatus for load balancing based on edge devices, wherein a distributed mixed-screen server includes a multi-line center server, a single-line edge server and a service server, and the apparatus is applied to the single-line edge server, and the apparatus includes:
the second sending module is used for periodically sending the current load state to the service server by the single-line edge server;
a second receiving module, configured to receive, by the single-line edge server, a screen mixing request sent by the service server based on the current load state, where the screen mixing request is used to instruct to perform screen mixing on data of a service to be screen mixed, and the service to be screen mixed corresponds to multiple clients;
and the second screen mixing module is used for mixing the screen of the received data of the service to be mixed by the single-line edge server to obtain a screen mixing signal, and sending the screen mixing signal to the plurality of clients so as to be played by the clients.
9. An electronic device comprising a processor and a memory, the memory storing computer-executable instructions executable by the processor, the processor executing the computer-executable instructions to perform the steps of the method of any one of claims 1 to 3.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method according to any one of the preceding claims 1 to 3.
CN202010375003.9A 2020-05-06 2020-05-06 Load balancing method based on edge device and distributed mixed screen server Active CN111586434B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010375003.9A CN111586434B (en) 2020-05-06 2020-05-06 Load balancing method based on edge device and distributed mixed screen server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010375003.9A CN111586434B (en) 2020-05-06 2020-05-06 Load balancing method based on edge device and distributed mixed screen server

Publications (2)

Publication Number Publication Date
CN111586434A true CN111586434A (en) 2020-08-25
CN111586434B CN111586434B (en) 2022-07-15

Family

ID=72111996

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010375003.9A Active CN111586434B (en) 2020-05-06 2020-05-06 Load balancing method based on edge device and distributed mixed screen server

Country Status (1)

Country Link
CN (1) CN111586434B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112202833A (en) * 2020-08-26 2021-01-08 网宿科技股份有限公司 CDN system, request processing method and scheduling server

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102469409A (en) * 2010-11-02 2012-05-23 中国移动通信集团公司 Multimedia conference realization method and device
CN103780585A (en) * 2012-10-23 2014-05-07 北京网动网络科技股份有限公司 Internet-based multi-line multi-IP server data exchange method
CN105991459A (en) * 2015-02-15 2016-10-05 上海帝联信息科技股份有限公司 Source-returning route distribution method, apparatus and system of CDN node
CN106254899A (en) * 2016-08-16 2016-12-21 网宿科技股份有限公司 The control method of a kind of live even wheat and system
CN106385375A (en) * 2015-07-31 2017-02-08 北京国双科技有限公司 Load balancing method used for message queues and apparatus thereof
US20170150216A1 (en) * 2011-06-29 2017-05-25 Igt External video mixing control
CN108881396A (en) * 2018-05-24 2018-11-23 平安普惠企业管理有限公司 Loading method, device, equipment and the computer storage medium of network data
CN110971863A (en) * 2019-11-21 2020-04-07 厦门亿联网络技术股份有限公司 Multi-point control unit cross-area conference operation method, device, equipment and system

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102469409A (en) * 2010-11-02 2012-05-23 中国移动通信集团公司 Multimedia conference realization method and device
US20170150216A1 (en) * 2011-06-29 2017-05-25 Igt External video mixing control
CN103780585A (en) * 2012-10-23 2014-05-07 北京网动网络科技股份有限公司 Internet-based multi-line multi-IP server data exchange method
CN105991459A (en) * 2015-02-15 2016-10-05 上海帝联信息科技股份有限公司 Source-returning route distribution method, apparatus and system of CDN node
CN106385375A (en) * 2015-07-31 2017-02-08 北京国双科技有限公司 Load balancing method used for message queues and apparatus thereof
CN106254899A (en) * 2016-08-16 2016-12-21 网宿科技股份有限公司 The control method of a kind of live even wheat and system
CN108881396A (en) * 2018-05-24 2018-11-23 平安普惠企业管理有限公司 Loading method, device, equipment and the computer storage medium of network data
CN110971863A (en) * 2019-11-21 2020-04-07 厦门亿联网络技术股份有限公司 Multi-point control unit cross-area conference operation method, device, equipment and system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
罗家锋: "新型云计算服务器的设计与实现", 《建材与装饰》 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112202833A (en) * 2020-08-26 2021-01-08 网宿科技股份有限公司 CDN system, request processing method and scheduling server

Also Published As

Publication number Publication date
CN111586434B (en) 2022-07-15

Similar Documents

Publication Publication Date Title
WO2020253266A1 (en) Method for providing edge service, apparatus and device
CN107566786B (en) Method and device for acquiring monitoring video and terminal equipment
CN110336885B (en) Edge node distribution method, device, scheduling server and storage medium
CN111787069A (en) Method, device and equipment for processing service access request and computer storage medium
CN109547286B (en) CDN node selection method, device and storage medium
CN111163130B (en) Network service system and data transmission method thereof
CN111541711B (en) Live broadcast data mixing method and device based on edge calculation
CN104836821A (en) Method, device and equipment for network acceleration based on router
CN111355971B (en) Live streaming transmission method and device, CDN server and computer readable medium
WO2021023042A1 (en) Method for searching edge computing server and related device
CN111447447A (en) Live broadcast encoding method and device and electronic equipment
CN113612640A (en) Data communication method and device, electronic equipment and storage medium
CN110022335B (en) Data packet transmitting method, device, server and computer readable storage medium
CN111586434B (en) Load balancing method based on edge device and distributed mixed screen server
US20240106891A1 (en) Peer-to-peer network scheduling method and system
CN107148035B (en) Frequency band selection method and device and wireless equipment
US20240106890A1 (en) Peer-to-peer network scheduling method and system
CN111538572A (en) Task processing method, device, scheduling server and medium
CN109495773B (en) Multicast traffic configuration method and device and electronic equipment
CN109413117B (en) Distributed data calculation method, device, server and computer storage medium
CN106330504B (en) Method for realizing application and service controller
CN112714146B (en) Resource scheduling method, device, equipment and computer readable storage medium
CN110708293B (en) Method and device for distributing multimedia service
CN111526386A (en) Data transmission method and device based on auxiliary mixed screen equipment and data transmission system
CN110597631A (en) Resource management method, monitoring server, proxy server, and storage medium

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
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20210302

Address after: Room 1702-03, Lantian Hesheng building, 32 Zhongguancun Street, Haidian District, Beijing 100082

Applicant after: BEIJING CENTURY TAL EDUCATION TECHNOLOGY Co.,Ltd.

Address before: 102200 b5-005 maker Plaza, 338 Huilongguan East Street, Huilongguan town, Changping District, Beijing

Applicant before: Beijing three body cloud times Technology Co.,Ltd.

GR01 Patent grant
GR01 Patent grant