CN115412738A - Server scheduling method and device and storage medium - Google Patents

Server scheduling method and device and storage medium Download PDF

Info

Publication number
CN115412738A
CN115412738A CN202110576513.7A CN202110576513A CN115412738A CN 115412738 A CN115412738 A CN 115412738A CN 202110576513 A CN202110576513 A CN 202110576513A CN 115412738 A CN115412738 A CN 115412738A
Authority
CN
China
Prior art keywords
server
current
determining
terminal
user terminal
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
CN202110576513.7A
Other languages
Chinese (zh)
Other versions
CN115412738B (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.)
Guangxi Sanfangda Supply Chain Technology Service Co ltd
Original Assignee
Wuhan Douyu Network 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 Wuhan Douyu Network Technology Co Ltd filed Critical Wuhan Douyu Network Technology Co Ltd
Priority to CN202110576513.7A priority Critical patent/CN115412738B/en
Publication of CN115412738A publication Critical patent/CN115412738A/en
Application granted granted Critical
Publication of CN115412738B publication Critical patent/CN115412738B/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/218Source of audio or video content, e.g. local disk arrays
    • H04N21/2187Live feed
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5027Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/104Peer-to-peer [P2P] networks
    • 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/25Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
    • H04N21/258Client or end-user data management, e.g. managing client capabilities, user preferences or demographics, processing of multiple end-users preferences to derive collaborative data
    • H04N21/25808Management of client data
    • H04N21/25841Management of client data involving the geographical location of the client
    • 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/25Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
    • H04N21/262Content or additional data distribution scheduling, e.g. sending additional data at off-peak times, updating software modules, calculating the carousel transmission frequency, delaying a video stream transmission, generating play-lists
    • H04N21/26208Content or additional data distribution scheduling, e.g. sending additional data at off-peak times, updating software modules, calculating the carousel transmission frequency, delaying a video stream transmission, generating play-lists the scheduling operation being performed under constraints

Abstract

The embodiment of the invention discloses a scheduling method and device of a server and a storage medium. The method comprises the following steps: when receiving notification information of broadcasting of a main broadcasting channel, determining a current server to be distributed in each server, which is used for providing live broadcast service for the current main broadcasting channel; acquiring terminal attribution information of a current user terminal corresponding to a current user requesting to watch a current anchor channel; the terminal attribution information comprises at least one of position attribution information and operator attribution information of the current user terminal; and according to the terminal attribution information, determining a target server matched with the current user terminal in the current server to be distributed, and establishing connection between the current user terminal and the target server to acquire the channel resource of the current anchor channel. According to the technical scheme of the embodiment of the invention, the sharing effect of the anchor channel can be improved, and the user experience can be improved.

Description

Server scheduling method and device and storage medium
Technical Field
The embodiment of the invention relates to the technical field of internet, in particular to a scheduling method and device of a server and a storage medium.
Background
With the rapid development of the internet technology, the audio and video live broadcast technology is widely applied, and the scheduling of the server is completed by utilizing the live broadcast point-to-point technology, which is an important link in a live broadcast technology stack.
In the prior art, when some P2P scheduling systems currently allocate servers as anchor channels, an allocation mode that is guided by load balancing of the servers is adopted. However, in the prior art, whether users on the same server are suitable for sharing is not considered, and when the logical distance between some users is large, the affinity between each user and the server is poor, the sharing effect is not good, and the user experience is poor.
Disclosure of Invention
The embodiment of the invention provides a server scheduling method, a server scheduling device and a storage medium, which are used for determining a corresponding target server based on terminal attribution information of a current user terminal, so that the user terminals which have smaller logic distance and are suitable for sharing are matched with the same target server, and the sharing effect of a main broadcasting channel is improved.
In a first aspect, an embodiment of the present invention provides a method for scheduling a server, which may include:
when receiving notification information of broadcasting of a main broadcasting channel, determining a current server to be distributed in each server, which is used for providing live broadcast service for the current main broadcasting channel;
acquiring terminal attribution information of a current user terminal corresponding to a current user requesting to view the current anchor channel; wherein the terminal attribution information comprises at least one of location attribution information and operator attribution information of the current user terminal;
and according to the terminal attribution information, determining a target server matched with the current user terminal in the current server to be distributed, and establishing connection between the current user terminal and the target server to acquire the channel resource of the current anchor channel.
Optionally, the determining a current server to be allocated in each server for providing a live broadcast service for a current anchor channel includes:
determining the current supply quantity of a server side and the current demand quantity of a user side;
calculating the area weight of each area based on the current supply quantity and the current demand quantity; calculating the number of the current servers to be distributed;
and determining the number of servers as the current servers to be distributed based on each region weight.
Optionally, the determining the current supply amount of the server and the current demand amount of the user includes:
determining an area to which a server belongs, and counting the first terminal quantity of the current user terminal in the area and the first quantity sum of the residual bearing user quantity of each server deployed in the area;
determining an operator to which the server belongs, and counting the second number sum of the second number of the current user terminals with the same operator and the remaining number of the load bearing users deployed in each server of the operator;
counting the third terminal quantity of the current user terminal and the third quantity sum of the remaining bearing user quantity of each server under the conditions of the area to which the server belongs and the operator;
and determining the sum of the first number sum, the second number sum and the third number sum as the current supply amount, and determining the sum of the first terminal number, the preset multiple of the second terminal number and the preset multiple of the third terminal number as the current demand amount.
Alternatively to this, the first and second parts may,
the calculating the area weight of each area based on the current supply amount and the current demand amount comprises:
calculating each of the region weights based on W = (X + Y + XY) ((a + B) × r + AB × r);
wherein, W is the area weight, X is the first quantity sum, Y is the second quantity sum, and XY is the third quantity sum; a is the first terminal quantity, B is the second terminal quantity, AB is the third terminal quantity, r is the preset multiple.
Optionally, the determining, based on each of the area weights, the number of servers as the current server to be allocated includes:
determining the fractional number of the servers to be distributed in the areas of the areas based on the proportional relation between the number of the servers to be distributed currently and the weight of each area;
sequencing the servers of each region according to the sequence of the number of the bearing channels from small to large, and selecting the servers with the number of the scores in the sequence as the servers to be distributed in the regions of the region from the front to the back;
and determining the server to be distributed in the area of each area as the current server to be distributed.
Optionally, the determining, according to the terminal attribution information, a target server matched with the current user terminal in the current server to be allocated includes:
determining a current server to be distributed which is consistent with the operator to which the current user terminal belongs in the current server to be distributed as a same operator server according to operator attribution information in the terminal attribution information;
and determining the same operator server consistent with the region of the current user terminal in the same operator server as the target server according to the position attribution information in the terminal attribution information.
Optionally, the determining, according to the location attribution information in the terminal attribution information, a same-operator server in the same-operator server, which is consistent with the area to which the current user terminal belongs, as the target server includes:
determining whether the same operator server exists in the city range to which the current user terminal belongs according to the position attribution information;
if the target server exists in the city range, determining the target server from the same operator server in the city range;
if the current user terminal does not exist in the city range, determining whether the operator server exists in the province range of the current user terminal;
if the province exists in the province range, determining the target server from the same operator server in the province range;
if the province range does not exist, determining whether the same operator server exists in a large area range to which the current user terminal belongs;
if the target server exists in the large area range, determining the target server from the same operator server in the large area range;
and if the target server does not exist in the large area range, the target server fails to be matched.
Optionally, the determining the target server from the same operator server within the city range includes:
acquiring the current bearing user number of each same operator server in the city range;
and determining the same operator server with the minimum number of the current bearing users as the target server.
In a second aspect, an embodiment of the present invention further provides a scheduling apparatus for a server, which may include:
the method comprises the steps of determining a current server module to be distributed, and determining a current server to be distributed, which is used for providing live broadcast service for a current anchor channel, in each server when notification information of the broadcast of the anchor channel is received;
an obtaining module, configured to obtain terminal affiliation information of a current user terminal corresponding to a current user requesting to view the current anchor channel; wherein the terminal attribution information comprises at least one of location attribution information and operator attribution information of the current user terminal;
and the target server determining module is used for determining a target server matched with the current user terminal in the current server to be distributed according to the terminal attribution information, and establishing connection between the current user terminal and the target server to acquire the channel resource of the current anchor channel.
In a third aspect, an embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the scheduling method for a server provided in any embodiment of the present invention.
The scheduling method of the server provided by the embodiment of the invention comprises the steps of determining the current server to be distributed for providing live broadcast service for the current anchor channel in each server when receiving the notification information of the broadcast of the anchor channel; acquiring terminal attribution information of a current user terminal corresponding to a current user requesting to watch a current anchor channel; the terminal attribution information comprises at least one of position attribution information and operator attribution information of the current user terminal; and according to the terminal attribution information, determining a target server matched with the current user terminal in the current server to be distributed, so that under the condition of considering at least one of the position attribution information and the operator attribution information, the current user terminal is connected with the target server to obtain the channel resource of the current anchor channel. Therefore, the corresponding target server is determined based on the terminal attribution information of the current user terminal, so that the user terminals with smaller logic distance and suitable for sharing are matched with the same target server, the sharing effect of the anchor channel is improved, and the user experience is favorably improved.
In addition, the scheduling device and the storage medium of the server provided by the invention correspond to the method, and have the same beneficial effects.
Drawings
In order to illustrate the embodiments of the present invention more clearly, the drawings that are needed in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and that other drawings can be obtained by those skilled in the art without inventive effort.
Fig. 1 is a flowchart of a scheduling method of a server according to an embodiment of the present invention;
fig. 2 is a flowchart of another scheduling method for a server according to an embodiment of the present invention;
fig. 3 is a flowchart of another scheduling method for a server according to an embodiment of the present invention;
fig. 4 is a schematic diagram of server scheduling in an application scenario according to an embodiment of the present invention;
fig. 5 is a structural diagram of a scheduling apparatus of a server according to an embodiment of the present invention;
fig. 6 is a structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
The core of the invention is to provide a server scheduling method, a server scheduling device and a server scheduling storage medium, so that the corresponding target server is determined based on the terminal attribution information of the current user terminal, the user terminals with smaller logic distance and suitable for sharing are matched with the same target server, and the sharing effect of the anchor channel is improved.
In order that those skilled in the art will better understand the disclosure, the invention will be described in further detail with reference to the accompanying drawings and specific embodiments.
Example one
Fig. 1 is a flowchart of a scheduling method of a server according to an embodiment of the present invention. The method may be performed by a scheduling apparatus of a server provided in an embodiment of the present invention, the apparatus may be implemented by software and/or hardware, and the apparatus may be integrated on various user terminals or servers.
Referring to fig. 1, the method of the embodiment of the present invention specifically includes the following steps:
s101, when the notification information of the broadcasting of the anchor channel is received, determining a current server to be distributed for providing live broadcast service for the current anchor channel in each server.
When the anchor channel is on air, server resources need to be scheduled to provide services for the anchor channel. Server scheduling systems typically provide a plurality of servers, each of which may carry a certain number of user terminals, with the servers and the user terminals requesting viewing of a main broadcast channel being distributed throughout the country.
In a specific implementation, the notification information is sent when the anchor channel is broadcast, and after the notification information for broadcasting the anchor channel is received, the current anchor channel can be determined according to the channel information of the current broadcast channel contained in the notification information. Optionally, the channel information includes room number information of the current anchor channel and definition information of the current anchor channel.
In specific implementation, in order to avoid network resource waste, a part of servers can be determined from currently deployed servers, and the servers are used as current servers to be allocated for providing live broadcast service for a current anchor channel. Optionally, if only one server is currently deployed, determining the server as a current server to be allocated; if a plurality of servers are deployed currently, the current server to be distributed can be determined according to the load condition of each server. Specifically, servers with lower loads in currently deployed servers can all be used as the current servers to be distributed; the servers can also be sorted according to the number of the load channels, and a preset number of servers with the minimum number of the load channels under the current condition are selected as the current to-be-distributed services, or the preset number of servers are randomly selected to be determined as the current to-be-distributed servers of the current anchor channel. A person skilled in the art may set a determination method of a current server to be allocated according to an actual application situation, which is not limited in the embodiment of the present invention.
S102, terminal attribution information of a current user terminal corresponding to a current user requesting to view a current anchor channel is obtained.
Optionally, the current user watching the current anchor channel sends a watching request through the corresponding current user terminal, and obtains the terminal attribution information of each current user terminal based on the received watching request. The terminal attribution information comprises at least one of position attribution information and operator attribution information of the current user terminal. Specifically, the location attribution information of the current user terminal is the region to which the current user terminal belongs, such as the province, city, town, etc. to which the current user terminal belongs. The operator attribution information of the current user terminal is an operator service used by the current user terminal, such as a unicom operator, a telecom operator, a mobile operator and the like.
S103, according to the terminal attribution information, a target server matched with the current user terminal is determined in the current server to be distributed, and the current user terminal is connected with the target server to obtain the channel resources of the current anchor channel.
Optionally, when only one of the servers to be currently allocated is present, determining the only server to be currently allocated as the target server; when at least two servers to be distributed are determined, and a target server matched with the current user terminal is determined from the current servers to be distributed, the number of current load bearing users of each current server to be distributed can be counted, and the current server to be distributed with the least number of current load bearing users is determined as the target server.
Optionally, a target server matched with the current user terminal may be determined in the current server to be allocated according to the location attribution information of the current user terminal or the operator attribution information. For example, the location attribution information of the current server to be allocated may be obtained, and the current server to be allocated, of which the location attribution information is consistent with the location attribution information of the current user terminal, is determined as the target server; and the current server to be distributed with the operator attribution information consistent with the operator attribution information of the current user terminal is determined as a target server.
Furthermore, two factors of the position attribution of the current server to be distributed and the operator attribution can be considered at the same time, the position attribution information is consistent with the position attribution information of the current user terminal, and the current server to be distributed with the operator attribution information consistent with the operator attribution information of the current user terminal is determined as the target server. And establishing connection between the current user terminal and the target server, and providing channel resources of the current anchor channel for the current user terminal through the target server.
Further, determining a target server matching the current user terminal in the current servers to be allocated may include determining the target server in the current servers to be allocated based on designation information for designating the target server providing services for the current user terminal, where the designation information may be sent by the current user terminal.
The scheduling method of the server provided by the embodiment of the invention comprises the steps of determining the current server to be distributed for providing live broadcast service for the current anchor channel in each server when receiving the notification information of the broadcast of the anchor channel; acquiring terminal attribution information of a current user terminal corresponding to a current user requesting to watch a current anchor channel; the terminal attribution information comprises at least one of position attribution information and operator attribution information of the current user terminal; and according to the terminal attribution information, determining a target server matched with the current user terminal in the current server to be distributed, so that under the condition of considering at least one of the position attribution information and the operator attribution information, the current user terminal is connected with the target server to acquire the channel resource of the current anchor channel. Therefore, the corresponding target server is determined based on the terminal attribution information of the current user terminal, so that the user terminals with smaller logic distance and suitable for sharing are matched with the same target server, the sharing effect of the anchor channel is improved, and the user experience is favorably improved.
Example two
Fig. 2 is a flowchart of another scheduling method for a server according to an embodiment of the present invention. The present embodiment is optimized based on the above technical solutions. Optionally, determining a current server to be allocated in each server for providing a live broadcast service for a current anchor channel includes: determining the current supply quantity of a server side and the current demand quantity of a user side; calculating the area weight of each area based on the current supply quantity and the current demand quantity; calculating the number of the current servers to be distributed; and determining the number of servers as the current servers to be distributed based on the weight of each region. The same or corresponding terms as those in the above embodiments are not explained in detail herein.
As shown in fig. 2, the method of the embodiment of the present invention specifically includes the following steps:
s201, when the notification information of the broadcasting of the main broadcasting channel is received, the current supply quantity of the server side and the current demand quantity of the user side are determined.
Specifically, the current supply amount of the server is used for reflecting the service resources currently available by the server, and the current demand amount of the client is used for reflecting the amount of users watching the current anchor channel. Those skilled in the art can determine the current supply amount of the server side and the current demand amount of the user side according to the actual application situation.
In one embodiment, when determining the current supply amount of the server and the current demand amount of the client, an area to which the server belongs may be determined, and the first number of the current user terminals in the area and the first sum of the remaining number of the bearer users of each server deployed in the area are counted. For example, if the area of the server is north Hu province, counting the number of current user terminals requesting to view the current anchor channel in north Hu province as a first terminal number; and counting the number of the remaining load bearing users which can still bear the load currently of each server deployed in Hubei province, and calculating the sum of the number of the remaining load bearing users of each server as a first number sum.
Further, an operator to which the server belongs is determined, and the second number sum of the second number of the current user terminals having the same operator and the remaining number of the bearer users deployed in each server of the operator is counted. For example, if it is determined that the operator to which the server belongs is mobile, the number of current user terminals of which the operator is mobile is counted as the second terminal number, the remaining number of bearer users of each server deployed as the mobile operator is counted, and the sum of the remaining number of bearer users of each server is calculated as the second number sum.
Further, the third terminal quantity of the current user terminal and the third quantity sum of the remaining bearing user quantity of each server under the conditions of the area to which the server belongs and the operator are counted. For example, if the area of the server is north Hu province and the operator is mobile, counting the number of current user terminals which are mobile by the operator in north Hu province, and determining the number as the third terminal number; and counting the number of the remaining load bearing users of each server of which the operators are mobile in Hubei province, and taking the sum of the number of the remaining load bearing users as a third number sum.
And determining the sum of the first number sum, the second number sum and the third number sum as the current supply amount, and determining the sum of the first terminal number, the preset multiple of the second terminal number and the preset multiple of the third terminal number as the current demand amount. It should be noted that, in the scheduling process of the server, the operator has a greater influence, so the priority of the operator is higher than the priority of the area to which the operator belongs. The technical personnel in the field can set the specific numerical value of the preset multiple according to the practical application condition, and the preset multiple is preset to improve the function of an operator in the server scheduling process.
S202, calculating the area weight of each area based on the current supply quantity and the current demand quantity; and calculating the number of the servers to be distributed currently.
Specifically, the area weight is used to indicate the current load capability of the server in the area, and the larger the weight is, the more user terminals that can be currently carried in the area are indicated. Based on the determined current supply quantity and current demand quantity, calculating the area weight, wherein the calculation formula is as follows:
W=(X+Y+XY)*(A+B*r+AB*r)
wherein, W is a region weight, X is a first quantity sum, Y is a second quantity sum, and XY is a third quantity sum; a is the first terminal quantity, B is the second terminal quantity, AB is the third terminal quantity, r is the preset multiple.
The embodiment can control the influence degree of the factor of the operator on the weight by setting r. When the factor of the operator has higher priority than the factor of the belonging area, the value of r is adjusted so that the calculation result of (a + B + AB + r) is greater than the calculation result of (X + Y + XY). When the factor of the belonging area has higher priority than the factor of the operator, the value of r is adjusted so that the calculation result of (X + Y + XY) is greater than the calculation result of (a + B × r + AB × r). Specifically, the factor of the operator is set to have higher priority than the factor of the region to which the operator belongs, and r may be set to be [0.1-100], preferably 2. For example, the calculation result of (X + Y + XY) is 100; the calculation result of (a + B + AB) is 90, the values of a and B are closer, and in order to ensure that the factor of the operator has higher priority than the factor of the belonging area, the value of r may be set to 5, and it is sufficient to ensure that the calculation result of (a + B x r + AB x r) is greater than 100.
In order to avoid the waste of server resources, when the number of currently deployed servers is large, part of the servers are generally selected as the current servers to be allocated for scheduling. Optionally, the minimum number of servers to be used is determined based on the number of current user terminals requesting to view the current anchor channel and the number of current remaining bearer users of each deployed server, where the minimum number of servers is determined when all current user terminals can view the current anchor channel. A number greater than or equal to the minimum number and less than or equal to the total number of deployed servers may be determined as the number of servers currently to be allocated, which is not limited by those skilled in the art.
And S203, determining the number of servers as the current servers to be distributed based on the weight of each area.
Optionally, based on the weight of each area, determining the number of servers as the current servers to be allocated includes: determining the number of the servers to be distributed in each area based on the proportional relation between the number of the servers to be distributed and the weight of each area; sequencing the servers of each region according to the sequence of the number of the bearing channels from small to large, and selecting the servers with the number of fractions in the sequence as the region to-be-distributed servers of the region from the front to the back; and determining the server to be distributed in each area as the current server to be distributed.
Illustratively, the number of the servers to be allocated in each area is determined according to a proportional relation in which the number of the servers to be allocated in each area is proportional to the weight of each area, and the sum of the numbers of the servers to be allocated in each area is the number of the servers to be allocated in each area. For example, if the area weight of the area accounts for one half of the total weight, the number of servers to be allocated in the area of the area should also account for one half of the number of servers to be allocated currently. Further, the number of the servers to be allocated in each area may also be determined according to a proportional relationship in which the number of the servers to be allocated currently and the weight of each area are in positive correlation, which is not specifically limited in the embodiment of the present invention.
Optionally, the area to which each server belongs may be determined, the determined number of the current servers to be allocated is divided equally into the areas to obtain the number of scores of the areas, the areas are sorted according to the number of the bearer channels, and the server with the smallest number of the bearer channels is determined as the current server to be allocated. For example, the area to which the current server belongs includes 10 areas such as the north of a lake, the south of a lake, the north of a river, the south of a river, and the like, and the number of the determined current servers to be allocated is 100, the 100 current servers to be allocated are divided equally, 10 servers are allocated to each area as the number of scores of each area, the servers in each area are sorted according to the number of the bearer channels, and the 10 servers with the smallest number of the bearer channels are determined as the current servers to be allocated corresponding to the area.
S204, acquiring terminal attribution information of a current user terminal corresponding to a current user requesting to view the current anchor channel.
S205, according to the terminal attribution information, a target server matched with the current user terminal is determined in the current server to be distributed, and the current user terminal is connected with the target server to obtain the channel resources of the current anchor channel.
The embodiment of the invention determines the current servers to be allocated in each area based on the determined weight values of each area and the number of the bearing channels, thereby comprehensively considering the number of the current servers to be allocated selected in each area in combination with the current supply quantity and the current demand quantity of each area, and selecting the server with less number of the bearing channels as the current server to be allocated in combination with the principle of load balancing, thereby improving the sharing effect of the anchor channels and being beneficial to improving the user experience.
EXAMPLE III
Fig. 3 is a flowchart of another scheduling method for a server according to an embodiment of the present invention. The present embodiment is optimized based on the above technical solutions. Optionally, determining, according to the terminal attribution information, a target server matched with the current user terminal from the current servers to be allocated, where the target server includes: determining a current server to be distributed which is consistent with an operator to which a current user terminal belongs in current servers to be distributed as a same operator server according to operator attribution information in the terminal attribution information; and determining the same operator server consistent with the area of the current user terminal in the same operator server as a target server according to the position attribution information in the terminal attribution information. The explanations of the same or corresponding terms as those in the above embodiments are omitted.
As shown in fig. 3, the method of the embodiment of the present invention specifically includes the following steps:
s301, when the notification information of the broadcast of the main broadcast channel is received, the current server to be distributed for providing the live broadcast service for the current main broadcast channel in each server is determined.
S302, terminal attribution information of a current user terminal corresponding to a current user requesting to view a current anchor channel is obtained.
And S303, according to the operator attribution information in the terminal attribution information, determining a current server to be distributed in the current servers to be distributed, which is consistent with the operator to which the current user terminal belongs, as a same operator server.
In a specific implementation, the target server providing services for the current user terminal may be determined according to the terminal attribution information of the current user terminal. In the scheduling process of the server, the influence brought by the operator is larger, and the priority is higher. Therefore, the current server to be distributed consistent with the operator to which the current user terminal belongs can be determined as the same operator server according to the operator attribution information, and the target server is determined within the range of the same operator server, so that the affinity between the server and the user terminal is improved.
Further, when there is no current server to be allocated that is consistent with the operator to which the current user terminal belongs, the server that is consistent with the area to which the current user terminal belongs may be determined based directly on the location attribution information of the current user terminal, and the target server is determined among the servers that are consistent with the area to which the current user terminal belongs.
S304, according to the position attribution information in the terminal attribution information, determining a same operator server consistent with the area of the current user terminal in the same operator server as a target server; and establishing connection between the current user terminal and the target server to acquire the channel resource of the current anchor channel.
Optionally, according to the location attribution information, a same operator server consistent with the current terminal belonging area is determined as a target server. Therefore, the current servers to be distributed of the same operator and the same region are determined as target servers.
Further, according to the location attribution information in the terminal attribution information, a current server to be allocated, which is in accordance with the area to which the current user terminal belongs, in the current server to be allocated may be determined as a same-area server, and a server in accordance with an operator may be determined as a target server in the same-area server. Therefore, the current server to be allocated, which belongs to the region and the operator and is consistent with the current user terminal, is used as the target server to provide channel resources, the affinity between the server and the user terminal is improved, and the sharing efficiency of the anchor channel is improved.
Optionally, the affiliated area may include a large area, the province, the city, and the like, and the affiliated large area includes a central large area, a north-central large area, a south-west large area, and the like. It should be noted that, the smaller the range of the area to which the target server and the current user terminal belong, the better the sharing effect. Therefore, whether the user terminal exists in the same operator server in the same belonging area can be sequentially judged according to the sequence of the belonging areas from small to large.
Exemplarily, determining, as the target server, the same-operator server that is consistent with the area to which the current user terminal belongs, from among the same-operator servers, according to the location attribution information in the terminal attribution information, includes: determining whether a same operator server exists in a city range to which the current user terminal belongs according to the position attribution information; if the target server exists in the city range, determining the target server from the same operator server in the city range; if the province server does not exist in the city range, determining whether the operator server exists in the province range of the current user terminal; if the province range exists, determining a target server from the same operator server in the province range; if the province range does not exist, determining whether the same operator server exists in the large area range to which the current user terminal belongs; if the target server exists in the large area range, determining the target server from the same operator server in the large area range; if the large-area range does not exist, the target server fails to be matched.
Further, if one same operator server exists in the city range to which the current user terminal belongs, the same operator server is directly determined as a target server; if at least two same operator servers exist in the city range to which the current user terminal belongs, the current number of the load-bearing users of the same operator servers in the city range can be obtained; and determining the same operator server with the minimum number of the current bearing users as a target server. And determining one of at least two same operator servers as a target server by adopting a random determination mode. Similarly, when the same operator server does not exist in the city range, and the same operator server exists in the province range or the large area range, the target server can be determined by adopting the mode.
Optionally, when the same-operator server does not exist in the large-area range, it may be determined that the target server fails to match, and it may be determined that the same-operator server with the smallest number of current bearer users is connected to the current user terminal among all the same-operator servers, so that the current user terminal obtains the channel resource of the current anchor channel. And the controller can also be fed back with the notification information of the failure of matching of the target server, and the target server for providing service for the current user terminal is specified according to the specified information fed back by the controller.
When the target server is distributed to the current user terminal, the same-region server with a small region range is selected as the target server as much as possible from the servers with the same operator as the current user terminal, so that the affinity between the target server and the current user terminal is improved, and the server with less bearing users is selected as the target server by combining the load balancing principle, so that the sharing effect of the anchor channel is improved.
Example four
The foregoing describes in detail an embodiment corresponding to a scheduling method of a server, and in order to make the technical solution of the method further clear to those skilled in the art, a specific application scenario is given below.
Fig. 4 is a schematic diagram of server scheduling in an application scenario according to an embodiment of the present invention. As shown in fig. 4, the anchor terminal is connected to a plurality of user terminals through a server to complete live sharing. When the anchor is broadcast, the dispatch server resources provide P2P (Point to Point) services for the anchor channel. The P2P system is provided with N servers called Tracker, each Tracker can bear a certain number of users and is distributed in each region of the country; the number of users requesting to watch the anchor channel is K, and the corresponding user terminals are distributed all over the country. According to the number K of users and the bearing capacity of each server, M current servers to be distributed are required to provide services. The operator to which the server belongs and the area to which the server belongs can be described by two-dimensional coordinates operator-isp, province-prv.
Determining a target server of a currently played anchor channel first needs to determine M current servers to be allocated from N servers. The method comprises the following specific steps:
1. calculating the area weight of each area, wherein the formula is as follows:
W=(X+Y+XY)*(A+B*r+AB*r)
wherein, W is a region weight, X is a sum of the number of remaining bearer users deployed at each server of the province, Y is a sum of the number of remaining bearer users deployed at each server of the operator, and XY is a sum of the number of remaining bearer users of each server corresponding to the operator deployed in the province; a is the number of current user terminals in the province, B is the number of current user terminals with the same operator, AB is the number of current user terminals under the conditions of the province and the operator to which the server belongs, r is a preset multiple, and r is set to be equal to 2. (X + Y + XY) represents the total amount of [ prv, isp ] supplied; (A + B r + AB r) represents the overall demand for [ prv, isp ].
For a preset multiple r, isp is higher priority than prv in scheduling, for example, 100 users [ Hubei, telecom ], [ Hunan, mobile ], and the weights of two regions are the same, and if there is no r, the weights of [ Hubei, telecom ], [ Hunan, mobile ] are still the same after ten users [ Hubei, unicom ] and [ Anhui, mobile ] are added. However, in actual scheduling, because the network loss of cross-operator scheduling is larger, the cross-operator scheduling needs to be reduced first, and the influence degree of the factor of the operator on the weight is improved through r.
2. And according to the weight values of all the regions and the required M Tracker, calculating the number of the required trackers of each region.
3. In the total J Tracker of a certain area, K servers are selected as the current servers to be allocated. Sorting according to the current channel number of Tracker from less to more, and selecting the first K channels; so that M equals the sum of the number of trackers for each region selection.
After the current server to be distributed is determined, the scheduling system determines a target server in the current server to be distributed, and schedules the current user terminal to the target server to enable the current user terminal to participate in P2P sharing. A description is made of a current user terminal requesting to view a current anchor channel according to a thinking coordinate city, province-prv, district-area, operator-isp. The steps of determining the target server are as follows:
1. finding the Tracker with the same operator as the current user terminal in the city to which the current user terminal belongs, finding 1 Tracker, then hitting, finding a plurality of trackers, and selecting the Tracker with the least number of bearing user terminals in the trackers as a target server. If not found, entering the step 2;
2. finding the Tracker with the same operator as the current user terminal in the prv to which the current user terminal belongs, finding 1 for hit, and finding a plurality of trackers for selecting the Tracker with the least number of user terminals as a target server. If not found, entering the step 3;
3. and finding the Tracker with the same operator as the current user terminal in the area to which the current user terminal belongs, finding 1 Tracker, hitting, finding a plurality of trackers, and selecting the Tracker with the least number of bearing user terminals in the trackers as a target server. If not, entering the step 4;
4. finding the trackers with the same operator as the current user terminal, finding 1 to hit, finding a plurality of trackers, and selecting the Tracker with the least number of bearing user terminals in the trackers as a target server; if not, the notification information used for indicating the failure of the target server determination is fed back.
According to the embodiment of the invention, the affinity between the target server and the current user terminal is improved, and the server with less number of load bearing users is selected as the target server by combining the principle of load balancing, so that the sharing effect of the anchor channel is improved.
EXAMPLE five
Fig. 5 is a block diagram of a scheduling apparatus for a server according to an embodiment of the present invention, where the apparatus is configured to execute a scheduling method for a server according to any of the embodiments described above. The device and the scheduling method of the server in the foregoing embodiments belong to the same inventive concept, and details that are not described in detail in the embodiment of the scheduling device of the server may refer to the embodiment of the scheduling method of the server. Referring to fig. 5, the apparatus may specifically include:
determining a current server module to be allocated 10, configured to determine, when receiving notification information of a broadcast of a main broadcast channel, a current server to be allocated, which is used to provide a live broadcast service for the current main broadcast channel, in each server;
an obtaining module 11, configured to obtain terminal affiliation information of a current user terminal corresponding to a current user requesting to view the current anchor channel; wherein the terminal attribution information comprises at least one of location attribution information and operator attribution information of the current user terminal;
and the target server determining module 12 is configured to determine, according to the terminal attribution information, a target server matched with the current user terminal from the servers to be currently allocated, and establish a connection between the current user terminal and the target server to obtain a channel resource of the current anchor channel.
On the basis of any optional implementation scheme in the embodiment of the present invention, determining the current server module to be allocated 10 may specifically include:
the determining unit is used for determining the current supply quantity of the server side and the current demand quantity of the user side; calculating the area weight of each area based on the current supply amount and the current demand amount; calculating the number of the servers to be distributed currently; and determining the number of servers as the current servers to be distributed based on the weight of each region.
On the basis of any optional implementation of the embodiment of the present invention, the determining unit may specifically include:
the statistical unit is used for determining the area to which the server belongs, and counting the first terminal quantity of the current user terminal in the area and the first quantity sum of the residual bearing user quantity of each server deployed in the area; determining an operator to which the server belongs, and counting the second number sum of the second number of the current user terminals with the same operator and the remaining bearing user number of each server deployed in the operator; counting the third terminal quantity of the current user terminal and the third quantity sum of the remaining bearing user quantity of each server under the conditions of the area to which the server belongs and the operator; and determining the sum of the first number sum, the second number sum and the third number sum as the current supply amount, and determining the sum of the first terminal number, the preset multiple of the second terminal number and the preset multiple of the third terminal number as the current demand amount.
On the basis of any optional implementation scheme in the embodiment of the present invention, the statistical unit may specifically include:
a weight calculation unit configured to calculate a weight of each region based on W = (X + Y + XY) × (a + B × r + AB × r); wherein, W is a region weight, X is a first quantity sum, Y is a second quantity sum, and XY is a third quantity sum; a is the first terminal quantity, B is the second terminal quantity, AB is the third terminal quantity, r is the preset multiple.
On the basis of any optional implementation of the embodiment of the present invention, the determining unit may specifically include:
the calculation region weight unit is used for determining the fractional number of the servers to be distributed in the regions of the regions based on the proportional relation between the number of the servers to be distributed and the weights of the regions; sequencing the servers of each region according to the sequence of the number of the bearing channels from small to large, and selecting the servers with the number of fractions in the sequence as the region to-be-distributed servers of the region from the front to the back; and determining the server to be allocated in each area as the current server to be allocated.
On the basis of any optional implementation of the embodiment of the present invention, determining the target server module 12 may specifically include:
the target server determining unit is used for determining a current server to be distributed which is consistent with the operator of the current user terminal in the current server to be distributed as the same operator server according to the operator attribution information in the terminal attribution information; and determining the same operator server consistent with the area of the current user terminal in the same operator server as a target server according to the position attribution information in the terminal attribution information.
On the basis of any optional implementation of the embodiment of the present invention, determining the target server unit may specifically include:
the judging unit is used for determining whether the same operator server exists in the city range to which the current user terminal belongs according to the position attribution information; if the target server exists in the city range, determining the target server from the same operator server in the city range; if the province server does not exist in the city range, determining whether the operator server exists in the province range of the current user terminal; if the province range exists, determining a target server from the same operator server in the province range; if the province range does not exist, determining whether the same operator server exists in the large area range to which the current user terminal belongs; if the server exists in the large area range, determining a target server from the same operator server in the large area range; if the large-area range does not exist, the target server fails to be matched.
On the basis of any optional implementation of the embodiment of the present invention, the determining unit may specifically include:
the unit for acquiring the number of the current load bearing users is used for acquiring the number of the current load bearing users of the same operator servers in the city range; and determining the same operator server with the minimum number of the current bearing users as a target server.
The scheduling device of the server provided by the embodiment of the invention can execute the scheduling method of the server provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the execution method.
It should be noted that, in the embodiment of the scheduling apparatus of the server, each included unit and module are only divided according to functional logic, but are not limited to the above division, as long as the corresponding function can be implemented; in addition, specific names of the functional units are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present invention.
EXAMPLE six
Fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present invention. FIG. 6 illustrates a block diagram of an exemplary electronic device 20 suitable for use in implementing embodiments of the present invention. The electronic device 20 shown in fig. 6 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiment of the present invention.
As shown in fig. 6, the electronic device 20 is embodied in the form of a general purpose computing device. The components of the electronic device 20 may include, but are not limited to: one or more processors or processing units 201, a system memory 202, and a bus 203 that couples various system components including the system memory 202 and the processing units 201.
Bus 203 represents one or more of any of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, and a processor or local bus using any of a variety of bus architectures. By way of example, such architectures include, but are not limited to, industry Standard Architecture (ISA) bus, micro-channel architecture (MAC) bus, enhanced ISA bus, video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.
Electronic device 20 typically includes a variety of computer system readable media. Such media may be any available media that is accessible by electronic device 20 and includes both volatile and nonvolatile media, removable and non-removable media.
The system memory 202 may include computer system readable media in the form of volatile memory, such as Random Access Memory (RAM) 204 and/or cache memory 205. The electronic device 20 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, the storage system 206 may be used to read from and write to non-removable, nonvolatile magnetic media. Although not shown in FIG. 6, a magnetic disk drive for reading from and writing to a removable, nonvolatile magnetic disk (e.g., a "floppy disk") and an optical disk drive for reading from or writing to a removable, nonvolatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to bus 203 by one or more data media interfaces. Memory 202 may include at least one program product having a set (e.g., at least one) of program modules that are configured to carry out the functions of embodiments of the invention.
A program/utility 208 having a set (at least one) of program modules 207 may be stored, for example, in memory 202, such program modules 207 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which examples or some combination thereof may comprise an implementation of a network environment. Program modules 207 generally perform the functions and/or methodologies of embodiments of the present invention as described herein.
The electronic device 20 may also communicate with one or more external devices 209 (e.g., keyboard, pointing device, display 210, etc.), with one or more devices that enable a user to interact with the electronic device 20, and/or with any devices (e.g., network card, modem, etc.) that enable the electronic device 20 to communicate with one or more other computing devices. Such communication may occur via input/output (I/O) interfaces 211. Also, the electronic device 20 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network, such as the Internet) via the network adapter 212. As shown, the network adapter 212 communicates with other modules of the electronic device 20 over the bus 203. It should be understood that although not shown in the figures, other hardware and/or software modules may be used in conjunction with the electronic device 20, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, to name a few.
The processing unit 201 executes various functional applications and data processing by running a program stored in the system memory 202.
The electronic equipment provided by the invention can realize the following method: when receiving notification information of broadcasting of a main broadcasting channel, determining a current server to be distributed in each server, wherein the current server to be distributed is used for providing live broadcasting service for the current main broadcasting channel; acquiring terminal attribution information of a current user terminal corresponding to a current user requesting to watch a current anchor channel; the terminal attribution information comprises at least one of position attribution information of the current user terminal and operator attribution information; and according to the terminal attribution information, determining a target server matched with the current user terminal in the current server to be distributed, and establishing connection between the current user terminal and the target server to acquire the channel resources of the current anchor channel. Therefore, the corresponding target server is determined based on the terminal attribution information of the current user terminal, so that the user terminals with smaller logic distance and suitable for sharing are matched with the same target server, the sharing effect of the anchor channel is improved, and the user experience is favorably improved.
EXAMPLE seven
An embodiment of the present invention provides a storage medium containing computer-executable instructions, which when executed by a computer processor, perform a method for scheduling a server, the method comprising:
when receiving notification information of broadcasting of a main broadcasting channel, determining a current server to be distributed in each server, which is used for providing live broadcast service for the current main broadcasting channel; acquiring terminal attribution information of a current user terminal corresponding to a current user requesting to watch a current anchor channel; the terminal attribution information comprises at least one of position attribution information and operator attribution information of the current user terminal; and according to the terminal attribution information, determining a target server matched with the current user terminal in the current server to be distributed, and establishing connection between the current user terminal and the target server to acquire the channel resources of the current anchor channel. Therefore, the corresponding target server is determined based on the terminal attribution information of the current user terminal, so that the user terminals with smaller logic distance and suitable for sharing are matched with the same target server, the sharing effect of the anchor channel is improved, and the user experience is favorably improved.
Of course, the storage medium containing the computer-executable instructions provided by the embodiments of the present invention is not limited to the method operations described above, and may also perform related operations in the scheduling method of the server provided by any embodiments of the present invention.
Computer storage media for embodiments of the present invention may take the form of any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for embodiments of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
It is to be noted that the foregoing description is only exemplary of the invention and that the principles of the technology may be employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (10)

1. A scheduling method of a server, comprising:
when receiving notification information of broadcasting of a main broadcasting channel, determining a current server to be distributed in each server, wherein the current server to be distributed is used for providing live broadcasting service for the current main broadcasting channel;
acquiring terminal attribution information of a current user terminal corresponding to a current user requesting to view the current anchor channel; wherein the terminal attribution information comprises at least one of location attribution information and operator attribution information of the current user terminal;
and according to the terminal attribution information, determining a target server matched with the current user terminal in the current server to be distributed, and establishing connection between the current user terminal and the target server to acquire the channel resource of the current anchor channel.
2. The method of claim 1, wherein the determining a current server to be allocated in the servers for providing live broadcast service for a current anchor channel comprises:
determining the current supply quantity of a server side and the current demand quantity of a user side;
calculating the area weight of each area based on the current supply quantity and the current demand quantity; calculating the number of the servers to be distributed currently;
and determining the number of servers as the current servers to be distributed based on each area weight.
3. The method according to claim 2, wherein the determining the current supply amount at the server side and the current demand amount at the user side comprises:
determining an area to which a server belongs, and counting the first terminal quantity of the current user terminal in the area and the first quantity sum of the residual bearing user quantity of each server deployed in the area;
determining an operator to which the server belongs, and counting a second number sum of the number of second terminals of the current user terminal with the same operator and the number of remaining bearer users of each server deployed in the operator;
counting the third terminal quantity of the current user terminal and the third quantity sum of the remaining bearing user quantity of each server under the conditions of the area to which the server belongs and the operator;
and determining the sum of the first number sum, the second number sum and the third number sum as the current supply quantity, and determining the sum of the first terminal number, the second terminal number of preset multiple and the third terminal number of preset multiple as the current demand quantity.
4. The method of claim 3, wherein calculating a zone weight for each zone based on the current supply and demand comprises:
calculating each of the region weights based on W = (X + Y + XY) ((a + B) × r + AB × r);
wherein, W is the area weight, X is the first number sum, Y is the second number sum, and XY is the third number sum; a is the first terminal quantity, B is the second terminal quantity, AB is the third terminal quantity, r is the preset multiple.
5. The method according to claim 2, wherein the determining the number of servers as the current server to be allocated based on each of the region weights comprises:
determining the fractional number of the servers to be distributed in the areas of the areas based on the proportional relation between the number of the servers to be distributed currently and the weight of each area;
sequencing the servers of each region according to the sequence of the number of the bearing channels from small to large, and selecting the servers with the number of the scores in the sequence as the servers to be distributed in the regions of the region from the front to the back;
and determining the server to be distributed in the region of each region as the current server to be distributed.
6. The method according to claim 1, wherein the determining, according to the terminal attribution information, a target server matching the current user terminal among the servers to be currently allocated comprises:
determining a current server to be distributed in the current servers to be distributed, which is consistent with the operator to which the current user terminal belongs, as a same operator server according to operator attribution information in the terminal attribution information;
and determining the same operator server consistent with the area of the current user terminal in the same operator servers as the target server according to the position attribution information in the terminal attribution information.
7. The method according to claim 6, wherein the determining, as the target server, one of the operator-associated servers that is consistent with the area to which the current user terminal belongs according to the location attribution information in the terminal attribution information comprises:
determining whether the same operator server exists in the city range to which the current user terminal belongs according to the position attribution information;
if the target server exists in the city range, determining the target server from the same operator server in the city range;
if the same operator server does not exist in the city range, determining whether the operator server exists in the province range of the current user terminal;
if the province exists in the province range, determining the target server from the same operator server in the province range;
if the province range does not exist, determining whether the same operator server exists in a large area range to which the current user terminal belongs;
if the target server exists in the large area range, determining the target server from the same operator server in the large area range;
and if the target server does not exist in the large area range, the target server fails to be matched.
8. The method of claim 7, wherein said determining the target server from the co-operator servers within the city comprises:
acquiring the current number of load-bearing users of the same operator servers in the city range;
and determining the same operator server with the minimum number of the current bearing users as the target server.
9. A scheduling apparatus of a server, comprising:
the method comprises the steps that a current server module to be distributed is determined, and the current server to be distributed used for providing live broadcast service for a current anchor channel in each server is determined when notification information of the anchor channel is received;
an obtaining module, configured to obtain terminal affiliation information of a current user terminal corresponding to a current user requesting to view the current anchor channel; wherein the terminal attribution information comprises at least one of location attribution information and operator attribution information of the current user terminal;
and the target server determining module is used for determining a target server matched with the current user terminal in the current server to be distributed according to the terminal attribution information, and establishing connection between the current user terminal and the target server to acquire the channel resource of the current anchor channel.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the scheduling method of a server according to any one of claims 1 to 8.
CN202110576513.7A 2021-05-26 2021-05-26 Scheduling method and device of server and storage medium Active CN115412738B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110576513.7A CN115412738B (en) 2021-05-26 2021-05-26 Scheduling method and device of server and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110576513.7A CN115412738B (en) 2021-05-26 2021-05-26 Scheduling method and device of server and storage medium

Publications (2)

Publication Number Publication Date
CN115412738A true CN115412738A (en) 2022-11-29
CN115412738B CN115412738B (en) 2023-09-08

Family

ID=84154898

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110576513.7A Active CN115412738B (en) 2021-05-26 2021-05-26 Scheduling method and device of server and storage medium

Country Status (1)

Country Link
CN (1) CN115412738B (en)

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120023556A1 (en) * 2010-07-23 2012-01-26 Verizon Patent And Licensing Inc. Identity management and single sign-on in a heterogeneous composite service scenario
CN104660707A (en) * 2015-03-09 2015-05-27 浙江万朋网络技术有限公司 Geographical location based proxy server equilibrium distributing method
WO2017096846A1 (en) * 2015-12-07 2017-06-15 乐视控股(北京)有限公司 Method, apparatus and system for obtaining live broadcast
CN106899857A (en) * 2017-03-23 2017-06-27 武汉斗鱼网络科技有限公司 Server load adjusting method, device and server
US20180084034A1 (en) * 2016-09-20 2018-03-22 International Business Machines Corporation Dynamic shared server resource allocation
CN107919971A (en) * 2016-10-09 2018-04-17 腾讯科技(深圳)有限公司 Method, apparatus and system for audio/video communication connection disaster tolerance
CN108810052A (en) * 2017-05-03 2018-11-13 华为技术有限公司 The selection method and device of direct broadcast server
US20190104174A1 (en) * 2016-08-12 2019-04-04 Tencent Technology (Shenzhen) Company Limited Load processing method and apparatus
CN110022373A (en) * 2019-04-17 2019-07-16 北京达佳互联信息技术有限公司 Method for distributing business, device, server and storage medium
US20200084177A1 (en) * 2016-07-14 2020-03-12 Wangsu Science & Technology Co., Ltd. Dns network system, domain-name parsing method and system
CN110896365A (en) * 2019-12-20 2020-03-20 网宿科技股份有限公司 Traffic scheduling method in network node, server and storage medium
CN111800447A (en) * 2019-09-20 2020-10-20 厦门雅基软件有限公司 Server scheduling method and device for cloud game and readable storage medium

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120023556A1 (en) * 2010-07-23 2012-01-26 Verizon Patent And Licensing Inc. Identity management and single sign-on in a heterogeneous composite service scenario
CN104660707A (en) * 2015-03-09 2015-05-27 浙江万朋网络技术有限公司 Geographical location based proxy server equilibrium distributing method
WO2017096846A1 (en) * 2015-12-07 2017-06-15 乐视控股(北京)有限公司 Method, apparatus and system for obtaining live broadcast
US20200084177A1 (en) * 2016-07-14 2020-03-12 Wangsu Science & Technology Co., Ltd. Dns network system, domain-name parsing method and system
US20190104174A1 (en) * 2016-08-12 2019-04-04 Tencent Technology (Shenzhen) Company Limited Load processing method and apparatus
US20180084034A1 (en) * 2016-09-20 2018-03-22 International Business Machines Corporation Dynamic shared server resource allocation
CN107919971A (en) * 2016-10-09 2018-04-17 腾讯科技(深圳)有限公司 Method, apparatus and system for audio/video communication connection disaster tolerance
CN106899857A (en) * 2017-03-23 2017-06-27 武汉斗鱼网络科技有限公司 Server load adjusting method, device and server
CN108810052A (en) * 2017-05-03 2018-11-13 华为技术有限公司 The selection method and device of direct broadcast server
CN110022373A (en) * 2019-04-17 2019-07-16 北京达佳互联信息技术有限公司 Method for distributing business, device, server and storage medium
CN111800447A (en) * 2019-09-20 2020-10-20 厦门雅基软件有限公司 Server scheduling method and device for cloud game and readable storage medium
CN110896365A (en) * 2019-12-20 2020-03-20 网宿科技股份有限公司 Traffic scheduling method in network node, server and storage medium

Also Published As

Publication number Publication date
CN115412738B (en) 2023-09-08

Similar Documents

Publication Publication Date Title
US10165058B2 (en) Dynamic local function binding apparatus and method
CN109194736B (en) Message duplicate removal method and device, electronic equipment, medium and unmanned vehicle
CN109714636B (en) User identification method, device, equipment and medium
CN110442610A (en) The method, apparatus of load balancing calculates equipment and medium
CN114528044A (en) Interface calling method, device, equipment and medium
CN114745724A (en) Access processing method and device, electronic equipment and computer readable medium
CN106776039A (en) A kind of data processing method and device
CN111776896B (en) Elevator dispatching method and device
CN112182317A (en) Index weight determination method and device, electronic equipment and medium
EP3301626A1 (en) Method, device, and system
CN108847948B (en) Method and device for creating activity group, medium and computing equipment
CN115412738B (en) Scheduling method and device of server and storage medium
CN109151033B (en) Communication method and device based on distributed system, electronic equipment and storage medium
CN112528151A (en) Object display method and device, electronic equipment and storage medium
CN112306685A (en) Task isolation method and device, electronic equipment and computer readable medium
CN116703071A (en) Resource sharing method, device and equipment and storage medium
CN113283830A (en) Waybill information sequence generation method, waybill information sequence generation device, waybill information sequence generation equipment and computer readable medium
CN107818005A (en) The page jump processing method and processing device of application program
CN113888028A (en) Patrol task allocation method and device, electronic equipment and storage medium
CN110876068B (en) Method, device, equipment and storage medium for displaying virtual articles in live broadcast room
CN111555894A (en) Data processing method, device, equipment and storage medium
CN113259261B (en) Network flow control method and electronic equipment
CN112543165B (en) Decoding method, device, equipment and medium
CN116847113B (en) Video live broadcast transfer method, device, equipment and medium based on cloud architecture module
CN111552469B (en) File processing method and device in application engineering and electronic equipment

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

Effective date of registration: 20230807

Address after: No. 2-1, Building B3, Group B, Phase I, Nanning ASEAN Enterprise Headquarters Base, No. 10, Xinji Road, High tech Zone, Guangxi Zhuang Autonomous Region, 530000

Applicant after: Guangxi sanfangda Supply Chain Technology Service Co.,Ltd.

Address before: 11 / F, building B1, software industry phase 4.1, No.1, Software Park East Road, Donghu Development Zone, Wuhan City, Hubei Province 430070

Applicant before: WUHAN DOUYU NETWORK TECHNOLOGY Co.,Ltd.

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant