WO2018171208A1 - Server load adjustment method and device, server, live broadcast system and computer readable storage medium - Google Patents

Server load adjustment method and device, server, live broadcast system and computer readable storage medium Download PDF

Info

Publication number
WO2018171208A1
WO2018171208A1 PCT/CN2017/109570 CN2017109570W WO2018171208A1 WO 2018171208 A1 WO2018171208 A1 WO 2018171208A1 CN 2017109570 W CN2017109570 W CN 2017109570W WO 2018171208 A1 WO2018171208 A1 WO 2018171208A1
Authority
WO
WIPO (PCT)
Prior art keywords
popularity
webcast
server
popularity data
live broadcast
Prior art date
Application number
PCT/CN2017/109570
Other languages
French (fr)
Chinese (zh)
Inventor
姚金明
陈少杰
张文明
Original Assignee
武汉斗鱼网络科技有限公司
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 武汉斗鱼网络科技有限公司 filed Critical 武汉斗鱼网络科技有限公司
Publication of WO2018171208A1 publication Critical patent/WO2018171208A1/en

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/23Processing of content or additional data; Elementary server operations; Server middleware
    • 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
    • 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/266Channel or content management, e.g. generation and management of keys and entitlement messages in a conditional access system, merging a VOD unicast channel into a multicast channel

Definitions

  • the present invention relates to the field of live broadcast application technologies, and in particular, to a server load adjustment method, apparatus, server, live broadcast system, and computer readable storage medium.
  • the embodiment of the present invention provides a server load adjustment method, which includes: acquiring popularity data between webcasts, and the network live broadcast is in an open state; when the popularity data of the live broadcast is greater than a preset popularity threshold At the same time, the popularity data between the live webcasts is reduced so that the popularity of the live webcast is lower than the preset popularity threshold upper limit.
  • an embodiment of the present invention provides a server load adjustment method, which is applied to a first server and a second server that communicate with each other, and the method includes:
  • the second server obtains a popularity threshold between the target network live broadcasts according to the identification information between the target network live broadcasts;
  • the second server monitors popularity data of the target webcast according to the popularity threshold, and detects that the popularity data of the target webcast reaches the popularity threshold, and the target webcast room
  • the popularity data is controlled to reduce popularity data between the target webcasts.
  • an embodiment of the present invention provides a server load adjustment apparatus, including: a popularity data acquisition module configured to acquire popularity data of a live webcast, and the network live broadcast room is in an open broadcast state; the first execution module is configured to be a network.
  • a popularity data acquisition module configured to acquire popularity data of a live webcast, and the network live broadcast room is in an open broadcast state
  • the first execution module is configured to be a network.
  • an embodiment of the present invention provides a server, where the server includes a memory, a processor, and a server load adjustment device, where the server load adjustment device is stored in the memory and includes one or more processors.
  • the executed software function module, the server load adjustment device includes: a popularity data acquisition module configured to acquire popularity data of the live webcast, and the webcasting room is in an open state; the first execution module is configured to be popular in the webcast room.
  • the popularity data of the live webcast is reduced to make the popularity of the live webcast lower than the preset popularity threshold upper limit.
  • an embodiment of the present invention provides a live broadcast system, where the live broadcast system includes a first server and a second server that communicate with each other;
  • the first server is configured to send the identifier information of the target network live broadcast to the second server when the target network live broadcast is started;
  • the second server is configured to obtain a popularity threshold between the target network live broadcasts according to the identification information of the target network live broadcast, and monitor the popularity data of the target network live broadcast according to the popularity threshold, and detect When the popularity data of the target webcast reaches the popularity threshold, the popularity data of the target webcast is controlled to reduce the popularity data of the target webcast.
  • an embodiment of the present invention provides a computer readable storage medium, where a computer program is stored, and when the computer program is executed, the server load adjustment method provided by the first aspect of the embodiment of the present invention is implemented.
  • the present invention has the following beneficial effects: the server load adjustment method, device, server, live broadcast system and computer readable storage medium provided by the present invention, by increasing the popularity ceiling control, when the popularity data of the live webcast exceeds The pre-set popularity threshold upper limit, the server will automatically reduce the popularity data of the live webcast to make the popularity of the live webcast lower than the preset popularity threshold, thereby reducing the popularity of the live broadcast of the webcast.
  • the trend avoids the situation of server overloading, solves the irregular fluctuation of popularity in the prior art, brings sudden pressure to the server, and even causes the CDN node/server node to suddenly collapse, and improves the live broadcast. The difficulty of making a fake.
  • FIG. 1 is a block diagram showing a server provided by an embodiment of the present invention.
  • FIG. 2 is a flowchart of a server load adjustment method according to an embodiment of the present invention.
  • FIG. 3 is a flow chart of the sub-steps of step S104 shown in FIG. 2.
  • FIG. 4 is a block diagram showing a server load adjustment apparatus according to an embodiment of the present invention.
  • FIG. 5 is a block schematic diagram of a first execution module in the server load adjustment device illustrated in FIG. 4.
  • Icon 100-server; 111-memory; 112-processor; 113-communication unit; 200-server load adjustment device; 201-type acquisition module; 202-first setting module; 203-popular data acquisition module; 204- An execution module; 205-second execution module; 2041-first sub-execution unit; 2042-second sub-execution unit; 2043-third sub-execution unit.
  • FIG. 1 is a block diagram showing a server 100 according to an embodiment of the present invention.
  • the server 100 includes a server load adjustment device 200, a memory 111, a processor 112, and a communication unit 113.
  • the server 100 may be, but not limited to, a barrage server.
  • the components of the memory 111, the processor 112, and the communication unit 113 are electrically connected directly or indirectly to each other to implement data transmission or interaction.
  • the components can be electrically connected to one another via one or more communication buses or signal lines.
  • the server load balancing device 200 includes at least one software function module that can be stored in the memory 111 or in an operating system (OS) of the server 100 in the form of software or firmware.
  • the processor 112 is configured to execute an executable module stored in the memory 111, such as a software function module, a computer program, and the like included in the server load adjustment device 200.
  • the memory 111 can be, but not limited to, a random access memory (RAM), a read only memory (ROM), and a programmable read-only memory (PROM). Erasable Programmable Read-Only Memory (EPROM), Electric Erasable Programmable Read-Only Memory (EEPROM), and the like.
  • the memory 111 is configured to store a program and a popularity threshold upper limit value, and the processor 112 executes the program after receiving the execution instruction.
  • the communication unit 113 is configured to establish a communication connection between the server 100 and the client through the network, and is configured to transmit and receive data through the network.
  • FIG. 2 is a flowchart of a server load adjustment method according to an embodiment of the present invention. The specific process of the server load adjustment method is described in detail below.
  • step S101 the type of the live webcast is obtained.
  • the type of the webcast room may be, but not limited to, a popular game, a mobile game, a fish music world, a technology, a entertainment classroom, a positive energy, and the like.
  • Step S102 setting an upper threshold value of the popularity threshold between the webcasts according to the type.
  • the popularity may be, but not limited to, the number of viewers in the live broadcast room and the number of user barrows at a certain moment. If the number of users entering the webcast room at a certain moment is too large, or the user sends Too many bullets can easily cause the server 100/CDN node to crash.
  • the popularity values of different types of webcasts are different, and the popularity of the same type of webcasting rooms is different.
  • popularity of this type of webcasting room is generally higher than other types of webcasting.
  • the popularity of the live webcast, and the popularity of the game, the popularity of the live broadcast of the popular anchor is much higher than the popularity of the webcast of the ordinary anchor.
  • not every Internet live broadcast room needs to set a popularity threshold upper limit value, but only needs to set a webcast room under this type with a higher popularity value, for example, setting a popular game and moving.
  • the popularity threshold of the two types of webcasts is not limited, and the popularity thresholds of other types of webcasts are not set.
  • Step S103 Obtain popularity data of the live webcast, and the webcasting room is in an open state.
  • the server 100 acquires the popularity data of the live webcast between the current broadcast state.
  • the server 100/CDN node needs to be protected in time. That is to say, it is necessary to determine whether the popularity data of the live webcast in the broadcast state reaches the upper limit of the popularity threshold.
  • the server 100 queries the corresponding popularity threshold value of the live webcast according to the obtained address of the live webcast in the broadcast state, and loads the popularity threshold upper limit, that is, set WebBarrageServer.Threshold.Value ( PopLog). Finally, the server 100 detects whether the upper threshold of the popularity threshold between the live broadcasts in the broadcast state is empty, that is, if(Pop
  • step S104 when the popularity data of the live webcast is greater than the preset popularity threshold, the popularity data of the live webcast is reduced to make the popularity of the live webcast lower than the preset popularity threshold.
  • the popularity data counter if the value of the popularity data counter is less than or equal to the popularity threshold upper limit, that is, CounValue ⁇ PopLog, indicating that the popularity data between the live broadcasts is normal, no processing is performed. If the value of the popularity data counter is greater than the upper limit of the popularity threshold, that is, CounValue>PopLog, indicating that the popularity data of the live webcast is abnormal, the popularity data of the live webcast is lowered to make the popularity of the live broadcast of the webcast lower than the preset popularity threshold. Upper limit.
  • the method for reducing the popularity data of the live webcast may be, but is not limited to, limiting the barrage input of the live webcast or reducing the user's continued influx into the webcast room.
  • Step S105 sending an alarm message to the monitoring terminal, where the alarm information includes the popularity data being greater than a preset popularity threshold.
  • the monitoring terminal may be, but not limited to, a smart phone, a tablet computer, a laptop portable computer, a vehicle-mounted computer, a personal digital assistant (PDA), a wearable mobile terminal, or the like.
  • the server 100 includes the alarm information of the identification number of the webcast room whose popularity data is greater than the preset popularity threshold upper limit value, to the monitoring terminal, and may be sending the mail. , SMS, etc. to remind.
  • the monitoring terminal may be a monitoring terminal of an administrator of the server 100.
  • step S104 may further include the following sub-steps:
  • Sub-step S1041 the popularity data between the live webcasts is changed to a preset value.
  • the preset value may be, but is not limited to, lower than the current popularity data of the live webcast, or is lower than the popularity data value of the last webcast between the first five pages of the webcast platform. .
  • cancel the popularity data of the live webcast that is, set the popularity data of the webcast room to be empty.
  • Sub-step S1042 Sort each live room according to the popularity data of each webcast on the current live broadcast platform, so as to change the sorting position of the webcast between the popularity data and the preset value.
  • the method for sorting each live broadcast room may be, but is not limited to, setting a live broadcast of a live broadcast data with a large popularity data.
  • the ranking on the platform is higher than the ranking of the live webcasts with less popular data.
  • the live webcast with empty popularity data does not appear on the first five pages of the live broadcast platform, thus reducing the user's continued influx into the room.
  • the user's popularity is evenly distributed to prevent the server 100 from being subjected to a large pressure when the popularity is abnormal, and the sudden collapse of the CDN node/server 100 node is avoided.
  • Sub-step S1043 limiting user barrage input between webcasts.
  • the server 100 limits the popularity of the live webcast, limits the user's barrage input, and reduces the activity of the room.
  • the method for limiting popularity provided by the first embodiment of the present invention firstly sets the popularity threshold value of the live broadcast between the live broadcasts according to the type, and increases the popularity ceiling control so that when a sudden increase in popularity occurs, the server 100 can according to the webcast room.
  • the popularity threshold upper limit value protects the server 100/CDN node in time; secondly, when the popularity data of the live webcast exceeds the preset popularity threshold upper limit value, the server 100 automatically performs a restricted search on the webcast room. Or automatically hide the processing of the webcast room, thereby reducing the trend of the popularity of the live webcast, avoiding the instability of the server 100 overload and the live broadcast platform, and solving the irregular fluctuations in the prior art due to popularity.
  • the server 100 suddenly brings a lot of pressure, and even causes the CDN node/server 100 node to suddenly collapse, which improves the difficulty of the popularity of the live broadcast.
  • FIG. 4 is a block diagram showing a server load adjustment apparatus 200 according to an embodiment of the present invention.
  • the server load adjustment apparatus 200 includes a type acquisition module 201, a first setting module 202, a popularity data acquisition module 203, a first execution module 204, and a second execution module 205.
  • the type obtaining module 201 is configured to obtain a type of the webcast room.
  • the type obtaining module 201 may be configured to perform step S101.
  • the first setting module 202 is configured to set a popularity threshold upper limit value between the webcasts according to the type.
  • the first setting module 202 can be configured to perform step S102.
  • the popularity data acquisition module 203 is configured to obtain popularity data between the live webcasts, and the webcasting room is in an open state.
  • the popularity data acquisition module 203 can be configured to perform step S103.
  • the first execution module 204 is configured to reduce the popularity data of the live webcast when the popularity data of the live webcast is greater than a preset popularity threshold, so that the popularity of the live broadcast is lower than a preset popularity threshold. .
  • the first execution module 204 may be configured to perform step S104.
  • the second execution module 205 is configured to send the alarm information to the monitoring terminal, where the alarm information includes an identification number of the live webcast where the popularity data is greater than a preset popularity threshold upper limit value.
  • the second execution module 205 may be configured to perform step S105.
  • FIG. 5 is a block diagram of the first execution module 204 in the server load adjustment apparatus 200 shown in FIG.
  • the first execution module 204 can include a first sub-execution unit 2041, a second sub-execution unit 2042, and a third sub-execution unit 2043.
  • the first sub-execution unit 2041 is configured to change the popularity data of the live webcast to a preset value.
  • the first sub-execution unit 2041 may be configured to perform sub-step S1041.
  • the second sub-execution unit 2042 is configured to sort each live broadcast room according to the popularity data of each webcast on the current live broadcast platform, so as to change the sorting position of the webcast between the popularity data and the preset value.
  • the second sub-execution unit 2042 may be configured to perform sub-step S1042.
  • the third sub-execution unit 2043 is configured to limit user barrage input between webcasts.
  • the third sub-execution unit 2043 may be configured to perform sub-step S1043.
  • Embodiments of the present invention also provide a computer readable storage medium having stored thereon a computer program, the calculation The server load adjustment method provided by the embodiment is implemented when the program is executed.
  • a second embodiment of the present invention provides a server load adjustment method, which is applied to a first server and a second server that communicate with each other, wherein the second server is equivalent to the server 100 in the first embodiment of the present invention.
  • the first server may be a server that provides a live broadcast service, that is, the first server may provide a corresponding live broadcast client.
  • the second server may be a barrage server configured to provide a barrage service to a user of the first server.
  • Step S201 The first server sends the identification information of the target network live broadcast to the second server when the first server broadcasts between the target network live broadcasts.
  • the target network live broadcast refers to a webcast room that needs to be monitored, and may be set by the user in the first server.
  • the setting manner can be as follows:
  • the popularity threshold is transmitted to the second server together with the live broadcast address and the popularity threshold between the target webcasts.
  • the first server monitors the set target network live broadcast, and sends the identification information of the target network live broadcast to the second server when the target network live broadcast is detected.
  • the identifier information may be a live broadcast address between the target network live broadcasts, or may be an ID number of the target network live broadcast room.
  • Step S202 The second server obtains a popularity threshold between the target network live broadcasts according to the identification information between the target network live broadcasts.
  • the second server performs a search according to the identification information of the target network live broadcast, and if the corresponding popularity threshold is found, the popularity data of the target network live broadcast is monitored, and if the corresponding popularity threshold cannot be found, The popularity data of the target webcast is not monitored.
  • corresponding prompt information may be output to prompt the loading of the popularity threshold to fail.
  • Step S203 the second server monitors popularity data of the target network live broadcast according to the popularity threshold, and detects that the popularity data between the target webcasts reaches the popularity threshold.
  • the popularity data of the live webcast is controlled to reduce the popularity data of the target webcast.
  • step S203 the popularity data between the target network live broadcasts is performed.
  • the step of controlling may include sub-step S2031 and/or sub-step S2032.
  • Sub-step S2031 closing the barrage input function between the target webcasts.
  • the popularity data of the target webcast is updated to a preset value to reduce the ranking of the popularity data in the webcast rooms provided by the first server in the target webcast.
  • the first server displays the live broadcast rooms according to the popularity data of each live webcast. Therefore, the live broadcasts with larger popularity data are more likely to be viewed by more users. To, in turn, generate higher popularity data.
  • the probability of being seen by the user in the target webcast can be reduced, and the popularity data of the target webcast can be reduced. No longer increase.
  • the method may further include step S204.
  • Step S204 the second server sends an alarm message when detecting that the popularity data between the target webcasts reaches the popularity threshold, and the alarm information includes identifier information between the target webcasts.
  • the second server may send the alarm information to an administrator of a client provided by the first server.
  • the embodiment of the invention further provides a live broadcast system, including a first server and a second server that communicate with each other.
  • the first server is configured to send the identification information of the target network live broadcast to the second server when the target network live broadcasts.
  • the second server is configured to obtain a popularity threshold between the target webcasts according to the identification information of the target webcast, and monitor the popularity data of the target webcast according to the popularity threshold, and detect When the popularity data of the target webcast reaches the popularity threshold, the popularity data of the target webcast is controlled to reduce the popularity data of the target webcast.
  • the server load adjustment method, device, and server provided by the embodiment of the present invention firstly acquire popularity data of the live broadcast between the webcasts, and the webcasting room is in an open state; secondly, the popularity data of the webcast is larger than the pre-population.
  • the popularity threshold is set, the popularity data between the live webcasts is reduced to make the popularity of the live webcasts lower than the preset popularity threshold.
  • the server will automatically limit the search to the live broadcast room, or automatically hide the webcast room, etc., thereby reducing the popularity of the live broadcast room.
  • the server overload and the unstable situation of the live broadcast platform are avoided, and the irregular fluctuation of popularity in the prior art is solved, which brings a sudden pressure to the server, and even causes a sudden collapse of the CDN node/server node. It has increased the difficulty of popular spoofing in the live webcast.
  • each block of the flowchart or block diagram can represent a module, a program segment, or a portion of code that comprises one or more of the Executable instructions. It should also be noted that, in some alternative implementations, the functions noted in the blocks may also occur in a different order than those illustrated in the drawings.
  • each block of the block diagrams and/or flowcharts, and combinations of blocks in the block diagrams and/or flowcharts can be implemented in a dedicated hardware-based system that performs the specified function or function. Or it can be implemented by a combination of dedicated hardware and computer instructions.
  • each functional module in each embodiment of the present invention may be integrated to form a separate part, or each module may exist separately, or two or more modules may be integrated to form a separate part.
  • the functions, if implemented in the form of software functional modules and sold or used as separate products, may be stored in a computer readable storage medium.
  • the technical solution of the present invention which is essential or contributes to the prior art, or a part of the technical solution, may be embodied in the form of a software product, which is stored in a storage medium, including
  • the instructions are used to cause a computer device (which may be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present invention.
  • the foregoing storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, and the like. .
  • the server load adjustment method, device, server, live broadcast system, and computer readable storage medium provided by the embodiments of the present invention automatically increase the popularity ceiling control, so that when a sudden increase in popularity occurs, the server automatically performs a restricted search on the network live broadcast room. Or automatically hide the processing of the webcast room, thereby reducing the trend of the popularity of the live webcast, avoiding the instability of the server overload and the live broadcast platform, and solving the irregular fluctuations in the prior art due to popularity. It suddenly brings a lot of pressure to the server, and even causes the CDN node/server node to suddenly collapse, which makes it more difficult to make the Internet live.

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Computer Graphics (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The present invention relates to the technical field of live broadcast application, and provided thereby are a server load adjustment method and device, a server, a live broadcast system and a computer readable storage medium, the method comprising: firstly, acquiring popularity data for a network live broadcast studio, the network live broadcast studio being in an on-air state; and secondly, when the popularity data for the network live broadcast studio is greater than a preset upper limit value of a popularity threshold, reducing the popularity data of the network live broadcast studio so that the popularity of the network live broadcast studio is lower than the preset upper limit value of the popularity threshold, thereby solving the problem in existing technology wherein the irregular fluctuation of popularity may suddenly induce a lot of pressure on a server, which may even lead to the sudden collapse of a content delivery network (CDN) node/server node; the present invention also improves the difficulty of false network studio popularity.

Description

服务器负载调节方法、装置、服务器、直播***及计算机可读存储介质Server load adjustment method, device, server, live broadcast system, and computer readable storage medium
相关申请的交叉引用Cross-reference to related applications
本申请要求于2017年03月23日提交中国专利局的申请号为2017101791259、名称为“服务器负载调节方法、装置及服务器”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。The present application claims the priority of the Chinese Patent Application No. JP-A-------- .
技术领域Technical field
本发明涉及直播应用技术领域,具体而言,涉及一种服务器负载调节方法、装置、服务器、直播***及计算机可读存储介质。The present invention relates to the field of live broadcast application technologies, and in particular, to a server load adjustment method, apparatus, server, live broadcast system, and computer readable storage medium.
背景技术Background technique
随着直播行业的快速发展,直播房间各类型的突发情况日益增多。由于互联网的不可预见性,有些房间会存在刷人气、人气数据作假或者人气突然飙升的情况。往往这种情况会给服务器突然带来较大的压力,甚至导致CDN(Content Delivery Network,内容分发网络)节点/服务器节点突发崩溃。With the rapid development of the live broadcast industry, the types of emergencies in live rooms are increasing. Due to the unpredictability of the Internet, some rooms may have a situation where popularity, popularity data, or popularity suddenly rises. Often this situation will bring a lot of pressure to the server, and even cause the CDN (Content Delivery Network) node/server node to suddenly crash.
发明内容Summary of the invention
本发明的目的在于提供一种服务器负载调节方法、装置、服务器、直播***及计算机可读存储介质,用以改善上述问题。It is an object of the present invention to provide a server load adjustment method, apparatus, server, live broadcast system, and computer readable storage medium for improving the above problems.
为了实现上述目的,本发明实施例采用的技术方案如下:In order to achieve the above object, the technical solution adopted by the embodiment of the present invention is as follows:
第一方面,本发明实施例提供一种服务器负载调节方法,其包括:获取网络直播间的人气数据,网络直播间处于开播状态;当网络直播间的人气数据大于预设的人气阈值上限值时,降低网络直播间的人气数据以使网络直播间的人气低于预设的人气阈值上限值。In a first aspect, the embodiment of the present invention provides a server load adjustment method, which includes: acquiring popularity data between webcasts, and the network live broadcast is in an open state; when the popularity data of the live broadcast is greater than a preset popularity threshold At the same time, the popularity data between the live webcasts is reduced so that the popularity of the live webcast is lower than the preset popularity threshold upper limit.
第二方面,本发明实施例提供一种服务器负载调节方法,应用于相互通信的第一服务器与第二服务器,所述方法包括:In a second aspect, an embodiment of the present invention provides a server load adjustment method, which is applied to a first server and a second server that communicate with each other, and the method includes:
所述第一服务器在目标网络直播间开播时,将所述目标网络直播间的标识信息发送给所述第二服务器;Sending the identification information of the target network live broadcast to the second server when the first server starts broadcasting in the target network live broadcast;
所述第二服务器根据所述目标网络直播间的标识信息获得所述目标网络直播间的人气阈值;The second server obtains a popularity threshold between the target network live broadcasts according to the identification information between the target network live broadcasts;
所述第二服务器根据所述人气阈值对所述目标网络直播间的人气数据进行监测,并在检测到所述目标网络直播间的人气数据达到所述人气阈值时,对所述目标网络直播间的人气数据进行控制,以降低所述目标网络直播间的人气数据。 The second server monitors popularity data of the target webcast according to the popularity threshold, and detects that the popularity data of the target webcast reaches the popularity threshold, and the target webcast room The popularity data is controlled to reduce popularity data between the target webcasts.
第三方面,本发明实施例提供一种服务器负载调节装置,其包括:人气数据获取模块,配置成获取网络直播间的人气数据,网络直播间处于开播状态;第一执行模块,配置成当网络直播间的人气数据大于预设的人气阈值上限值时,降低网络直播间的人气数据以使网络直播间的人气低于预设的人气阈值上限值。In a third aspect, an embodiment of the present invention provides a server load adjustment apparatus, including: a popularity data acquisition module configured to acquire popularity data of a live webcast, and the network live broadcast room is in an open broadcast state; the first execution module is configured to be a network. When the popularity data of the live broadcast room is greater than the preset popularity threshold upper limit value, the popularity data between the live webcasts is reduced to make the popularity of the live webcasting room lower than the preset popularity threshold upper limit value.
第四方面,本发明实施例提供一种服务器,所述服务器包括存储器、处理器以及服务器负载调节装置,所述服务器负载调节装置存储于所述存储器中并包括一个或多个由所述处理器执行的软件功能模组,所述服务器负载调节装置包括:人气数据获取模块,配置成获取网络直播间的人气数据,网络直播间处于开播状态;第一执行模块,配置成当网络直播间的人气数据大于预设的人气阈值上限值时,降低网络直播间的人气数据以使网络直播间的人气低于预设的人气阈值上限值。In a fourth aspect, an embodiment of the present invention provides a server, where the server includes a memory, a processor, and a server load adjustment device, where the server load adjustment device is stored in the memory and includes one or more processors. The executed software function module, the server load adjustment device includes: a popularity data acquisition module configured to acquire popularity data of the live webcast, and the webcasting room is in an open state; the first execution module is configured to be popular in the webcast room. When the data is greater than the preset popularity threshold upper limit, the popularity data of the live webcast is reduced to make the popularity of the live webcast lower than the preset popularity threshold upper limit.
第五方面,本发明实施例提供一种直播***,所述直播***包括相互通信的第一服务器及第二服务器;In a fifth aspect, an embodiment of the present invention provides a live broadcast system, where the live broadcast system includes a first server and a second server that communicate with each other;
所述第一服务器,配置成在目标网络直播间开播时,将所述目标网络直播间的标识信息发送给所述第二服务器;The first server is configured to send the identifier information of the target network live broadcast to the second server when the target network live broadcast is started;
所述第二服务器,配置成根据所述目标网络直播间的标识信息获得所述目标网络直播间的人气阈值,根据所述人气阈值对所述目标网络直播间的人气数据进行监测,并在检测到所述目标网络直播间的人气数据达到所述人气阈值时,对所述目标网络直播间的人气数据进行控制,以降低所述目标网络直播间的人气数据。The second server is configured to obtain a popularity threshold between the target network live broadcasts according to the identification information of the target network live broadcast, and monitor the popularity data of the target network live broadcast according to the popularity threshold, and detect When the popularity data of the target webcast reaches the popularity threshold, the popularity data of the target webcast is controlled to reduce the popularity data of the target webcast.
第六方面,本发明实施例提供一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被执行时实现本发明实施例第一方面提供的服务器负载调节方法。In a sixth aspect, an embodiment of the present invention provides a computer readable storage medium, where a computer program is stored, and when the computer program is executed, the server load adjustment method provided by the first aspect of the embodiment of the present invention is implemented.
相对现有技术,本发明具有以下有益效果:本发明提供的一种服务器负载调节方法、装置、服务器、直播***及计算机可读存储介质,通过增加人气上限控制,当网络直播间的人气数据超过预先设置的人气阈值上限值,服务器会自动降低该网络直播间的人气数据以使该网络直播间的人气低于预设的人气阈值上限值,从而降低了该网络直播间的人气持续增长的趋势,避免了服务器超载的情形,解决了现有技术中由于人气的不规则波动,给服务器突然带来较大的压力,甚至导致CDN节点/服务器节点突发崩溃的问题,提高了网络直播间人气作假的难度。Compared with the prior art, the present invention has the following beneficial effects: the server load adjustment method, device, server, live broadcast system and computer readable storage medium provided by the present invention, by increasing the popularity ceiling control, when the popularity data of the live webcast exceeds The pre-set popularity threshold upper limit, the server will automatically reduce the popularity data of the live webcast to make the popularity of the live webcast lower than the preset popularity threshold, thereby reducing the popularity of the live broadcast of the webcast. The trend avoids the situation of server overloading, solves the irregular fluctuation of popularity in the prior art, brings sudden pressure to the server, and even causes the CDN node/server node to suddenly collapse, and improves the live broadcast. The difficulty of making a fake.
为使本发明的上述目的、特征和优点能更明显易懂,下文特举较佳实施例,并配合所附附图,作详细说明如下。The above described objects, features and advantages of the present invention will become more apparent from the aspects of the appended claims.
附图说明DRAWINGS
为了更清楚地说明本发明实施例的技术方案,下面将对实施例中所需要使用的附图作 简单地介绍,应当理解,以下附图仅示出了本发明的某些实施例,因此不应被看作是对范围的限定,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他相关的附图。In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following drawings will be made for the drawings to be used in the embodiments. The following drawings are merely illustrative of certain embodiments of the invention and should not be construed as limiting the scope of the invention. Further related drawings can also be obtained from these figures.
图1示出了本发明实施例提供的服务器的方框示意图。FIG. 1 is a block diagram showing a server provided by an embodiment of the present invention.
图2示出了本发明实施例提供的服务器负载调节方法流程图。FIG. 2 is a flowchart of a server load adjustment method according to an embodiment of the present invention.
图3为图2示出的步骤S104的子步骤流程图。FIG. 3 is a flow chart of the sub-steps of step S104 shown in FIG. 2.
图4示出了本发明实施例提供的服务器负载调节装置的方框示意图。FIG. 4 is a block diagram showing a server load adjustment apparatus according to an embodiment of the present invention.
图5为图4示出的服务器负载调节装置中第一执行模块的方框示意图。FIG. 5 is a block schematic diagram of a first execution module in the server load adjustment device illustrated in FIG. 4.
图标:100-服务器;111-存储器;112-处理器;113-通信单元;200-服务器负载调节装置;201-类型获取模块;202-第一设置模块;203-人气数据获取模块;204-第一执行模块;205-第二执行模块;2041-第一子执行单元;2042-第二子执行单元;2043-第三子执行单元。Icon: 100-server; 111-memory; 112-processor; 113-communication unit; 200-server load adjustment device; 201-type acquisition module; 202-first setting module; 203-popular data acquisition module; 204- An execution module; 205-second execution module; 2041-first sub-execution unit; 2042-second sub-execution unit; 2043-third sub-execution unit.
具体实施方式detailed description
下面将结合本发明实施例中附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。通常在此处附图中描述和示出的本发明实施例的组件可以以各种不同的配置来布置和设计。因此,以下对在附图中提供的本发明的实施例的详细描述并非旨在限制要求保护的本发明的范围,而是仅仅表示本发明的选定实施例。基于本发明的实施例,本领域技术人员在没有做出创造性劳动的前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention. It is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. The components of the embodiments of the invention, which are generally described and illustrated in the figures herein, may be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the invention in the claims All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
应注意到:相似的标号和字母在下面的附图中表示类似项,因此,一旦某一项在一个附图中被定义,则在随后的附图中不需要对其进行进一步定义和解释。同时,在本发明的描述中,术语“第一”、“第二”等仅用于区分描述,而不能理解为指示或暗示相对重要性。It should be noted that similar reference numerals and letters indicate similar items in the following figures, and therefore, once an item is defined in a drawing, it is not necessary to further define and explain it in the subsequent drawings. Also, in the description of the present invention, the terms "first", "second", and the like are used merely to distinguish a description, and are not to be construed as indicating or implying a relative importance.
第一实施例First embodiment
请参照图1,图1示出了本发明实施例提供的服务器100的方框示意图。所述服务器100包括服务器负载调节装置200、存储器111、处理器112、通信单元113。Please refer to FIG. 1. FIG. 1 is a block diagram showing a server 100 according to an embodiment of the present invention. The server 100 includes a server load adjustment device 200, a memory 111, a processor 112, and a communication unit 113.
在本发明实施例中,服务器100可以是,但不限于弹幕服务器。In the embodiment of the present invention, the server 100 may be, but not limited to, a barrage server.
所述存储器111、处理器112以及通信单元113各元件相互之间直接或间接地电性连接,以实现数据的传输或交互。例如,这些元件相互之间可通过一条或多条通讯总线或信号线实现电性连接。所述服务器负载调节装置200包括至少一个可以软件或固件(firmware)的形式存储于所述存储器111中或固化在服务器100的操作***(operating system,OS)中的软件功能模块。所述处理器112配置成执行所述存储器111中存储的可执行模块,例如所述服务器负载调节装置200所包括的软件功能模块及计算机程序等。 The components of the memory 111, the processor 112, and the communication unit 113 are electrically connected directly or indirectly to each other to implement data transmission or interaction. For example, the components can be electrically connected to one another via one or more communication buses or signal lines. The server load balancing device 200 includes at least one software function module that can be stored in the memory 111 or in an operating system (OS) of the server 100 in the form of software or firmware. The processor 112 is configured to execute an executable module stored in the memory 111, such as a software function module, a computer program, and the like included in the server load adjustment device 200.
其中,所述存储器111可以是,但不限于,随机存取存储器(Random Access Memory,RAM),只读存储器(Read Only Memory,ROM),可编程只读存储器(Programmable Read-Only Memory,PROM),可擦除只读存储器(Erasable Programmable Read-Only Memory,EPROM),电可擦除只读存储器(Electric Erasable Programmable Read-Only Memory,EEPROM)等。其中,存储器111配置成存储程序以及人气阈值上限值,所述处理器112在接收到执行指令后,执行所述程序。所述通信单元113配置成通过网络建立服务器100与客户端之间的通信连接,并配置成通过网络收发数据。The memory 111 can be, but not limited to, a random access memory (RAM), a read only memory (ROM), and a programmable read-only memory (PROM). Erasable Programmable Read-Only Memory (EPROM), Electric Erasable Programmable Read-Only Memory (EEPROM), and the like. The memory 111 is configured to store a program and a popularity threshold upper limit value, and the processor 112 executes the program after receiving the execution instruction. The communication unit 113 is configured to establish a communication connection between the server 100 and the client through the network, and is configured to transmit and receive data through the network.
请参照图2,图2示出了本发明实施例提供的服务器负载调节方法流程图。下面对所述服务器负载调节方法的具体流程做详细阐述。Referring to FIG. 2, FIG. 2 is a flowchart of a server load adjustment method according to an embodiment of the present invention. The specific process of the server load adjustment method is described in detail below.
步骤S101,获取网络直播间的类型。In step S101, the type of the live webcast is obtained.
在本发明实施例中,网络直播间的类型可以是,但不限于,热门游戏、移动游戏、鱼乐星天地、科技、文娱课堂、正能量等。In the embodiment of the present invention, the type of the webcast room may be, but not limited to, a popular game, a mobile game, a fish music world, a technology, a entertainment classroom, a positive energy, and the like.
步骤S102,根据类型设置网络直播间的人气阈值上限值。Step S102, setting an upper threshold value of the popularity threshold between the webcasts according to the type.
在本发明实施例中,人气可以是,但不限于某一时刻,该网络直播间的收看人数及用户弹幕的数量,如果某一时刻进入该网络直播间的用户人数过多,或者用户发送的弹幕过多,就极易导致服务器100/CDN节点崩溃。In the embodiment of the present invention, the popularity may be, but not limited to, the number of viewers in the live broadcast room and the number of user barrows at a certain moment. If the number of users entering the webcast room at a certain moment is too large, or the user sends Too many bullets can easily cause the server 100/CDN node to crash.
在本发明实施例中,不同类型的网络直播间的人气值不同,同一类型的网络直播间之间的人气也不同,例如,热门游戏这一类型的网络直播间的人气普遍高于其它类型的网络直播间的人气,而热门游戏这一类型下,热门主播所在的网络直播间的人气则远高于普通主播所在的网络直播间的人气。In the embodiment of the present invention, the popularity values of different types of webcasts are different, and the popularity of the same type of webcasting rooms is different. For example, popularity of this type of webcasting room is generally higher than other types of webcasting. The popularity of the live webcast, and the popularity of the game, the popularity of the live broadcast of the popular anchor is much higher than the popularity of the webcast of the ordinary anchor.
在本发明实施例中,并不是每个网络直播间均需要设置人气阈值上限值,而是只需要设置人气值整体较高的这一类型下的网络直播间,例如,设置热门游戏和移动游戏这两个类型的网络直播间的人气阈值上限值,而对其它类型的网络直播间的人气阈值上限值不进行设置。根据类型设置网络直播间的人气阈值上限值的方法,主要包括以下几个步骤:首先,根据类型获取需要设置人气阈值上限值的网络直播间所对应的直播间地址,即Threshold.InputValue(RoomID);其次,在获取到需要设置人气阈值上限值的网络直播间之后,设置该网络直播间的人气阈值上限值,即PopularityThreshold.InputValue()。最后,将该网络直播间的地址及人为设置的人气阈值上限值传递给服务器100的存储器111,即BigHorm Threshold BThreshold=new WedFrame.BigHorm.Popularity Threshold(Popularity Value)。In the embodiment of the present invention, not every Internet live broadcast room needs to set a popularity threshold upper limit value, but only needs to set a webcast room under this type with a higher popularity value, for example, setting a popular game and moving. The popularity threshold of the two types of webcasts is not limited, and the popularity thresholds of other types of webcasts are not set. The method for setting the popularity threshold of the live broadcast between the live broadcasts according to the type includes the following steps: First, according to the type, obtain the live broadcast address corresponding to the live broadcast threshold of the popularity threshold, that is, Threshold.InputValue ( RoomID); Secondly, after obtaining the webcast room where the popularity threshold upper limit value needs to be set, set the popularity threshold upper limit value of the live webcast, that is, PopularityThreshold.InputValue(). Finally, the address of the live webcast and the artificially set popularity threshold upper limit value are transmitted to the memory 111 of the server 100, that is, BigHorm Threshold BThreshold=new WedFrame.BigHorm.Popularity Threshold (Popularity Value).
步骤S103,获取网络直播间的人气数据,网络直播间处于开播状态。 Step S103: Obtain popularity data of the live webcast, and the webcasting room is in an open state.
在本发明实施例中,服务器100获取当前处于开播状态的网络直播间的人气数据,当网络直播间处于开播状态时,易发生人气突然增长的状况,此时需要及时保护服务器100/CDN节点。也就是说,需要判断处于开播状态的网络直播间的人气数据是否达到人气阈值上限值。In the embodiment of the present invention, the server 100 acquires the popularity data of the live webcast between the current broadcast state. When the webcasting room is in the broadcast state, the popularity of the website is suddenly increased. In this case, the server 100/CDN node needs to be protected in time. That is to say, it is necessary to determine whether the popularity data of the live webcast in the broadcast state reaches the upper limit of the popularity threshold.
在本发明实施例中,服务器100获取当前处于开播状态的网络直播间的人气数据的方法,可以是,但不限于以下几个步骤:首先,当网络直播间处于开播状态时,服务器100获取该网络直播间的地址,即PopularityID logID=new WebBarrageServer.WebFrame.Value(RoomID)。其次,服务器100根据所获取的网络直播间的地址,调用人气阈值API接口,即Popularity PopLog=new WebBarrageServer.Popularity.Value(logID)。然后,服务器100根据所获取的当前处于开播状态的网络直播间的地址,查询出该网络直播间对应的人气阈值上限值,且加载该人气阈值上限值,即set WebBarrageServer.Threshold.Value(PopLog)。最后,服务器100检测当前处于开播状态的网络直播间的人气阈值上限值是否为空,即if(PopLog!=“null”),如果不等于null,则启动人气数据计数器,如果等于null,则表示加载人气阈值上限值失败或者未设置人气阈值上限值,则不启动人气数据计数器。In the embodiment of the present invention, the method for the server 100 to obtain the popularity data of the live webcast in the broadcast state may be, but is not limited to, the following steps: First, when the web broadcast room is in the broadcast state, the server 100 acquires the The address of the live webcast, that is, PopularityID logID=new WebBarrageServer.WebFrame.Value(RoomID). Next, the server 100 invokes the popularity threshold API interface, that is, Popularity PopLog=new WebBarrageServer.Popularity.Value(logID) according to the acquired address between the webcasts. Then, the server 100 queries the corresponding popularity threshold value of the live webcast according to the obtained address of the live webcast in the broadcast state, and loads the popularity threshold upper limit, that is, set WebBarrageServer.Threshold.Value ( PopLog). Finally, the server 100 detects whether the upper threshold of the popularity threshold between the live broadcasts in the broadcast state is empty, that is, if(PopLog!=“null”), if not equal to null, the popularity data counter is started, if it is equal to null, then If the load popularity threshold upper limit value is failed or the popularity threshold upper limit value is not set, the popularity data counter is not activated.
步骤S104,当网络直播间的人气数据大于预设的人气阈值上限值时,降低网络直播间的人气数据以使网络直播间的人气低于预设的人气阈值上限值。In step S104, when the popularity data of the live webcast is greater than the preset popularity threshold, the popularity data of the live webcast is reduced to make the popularity of the live webcast lower than the preset popularity threshold.
在本发明实施例中,在启动人气数据计数器之后,根据人气数据计数器统计的值来判断网络直播间的人气数据是否达到了人气阈值上限值。判断人气数据是否超过人气阈值上限值的方法,可以是,但不限于以下步骤:首先,服务器100获取人气数据计数器的值,即Counter CounValue=new WebBarrageServer.Threshold.Counter.Value();。其次,在获取到人气数据计数器的值之后,根据预先设置的人气阈值上限值进行判断,即if(CounValue>PopLog),其中,CounValue表示人气数据计数器的值,PopLog表示预先设置的人气阈值上限值。In the embodiment of the present invention, after the popularity data counter is started, it is determined whether the popularity data between the live webcasts reaches the popularity threshold upper limit value according to the value counted by the popularity data counter. The method of determining whether the popularity data exceeds the popularity threshold upper limit may be, but is not limited to, the following steps: First, the server 100 acquires the value of the popularity data counter, that is, Counter CounValue=new WebBarrageServer.Threshold.Counter.Value(); Secondly, after obtaining the value of the popularity data counter, it is judged according to the preset popularity threshold upper limit value, ie if(CounValue>PopLog), wherein CounValue represents the value of the popularity data counter, and PopLog represents the preset popularity threshold. Limit.
在本发明实施例中,如果人气数据计数器的值小于或等于人气阈值上限值,即CounValue≤PopLog,表示该网络直播间的人气数据正常,则不进行处理。如果人气数据计数器的值大于人气阈值上限值,即CounValue>PopLog,表示该网络直播间的人气数据异常,则降低网络直播间的人气数据以使网络直播间的人气低于预设的人气阈值上限值。In the embodiment of the present invention, if the value of the popularity data counter is less than or equal to the popularity threshold upper limit, that is, CounValue ≤ PopLog, indicating that the popularity data between the live broadcasts is normal, no processing is performed. If the value of the popularity data counter is greater than the upper limit of the popularity threshold, that is, CounValue>PopLog, indicating that the popularity data of the live webcast is abnormal, the popularity data of the live webcast is lowered to make the popularity of the live broadcast of the webcast lower than the preset popularity threshold. Upper limit.
在本发明实施例中,降低网络直播间的人气数据的方法可以是,但不限于,限制该网络直播间的弹幕输入或者减少用户继续涌入该网络直播间等。In the embodiment of the present invention, the method for reducing the popularity data of the live webcast may be, but is not limited to, limiting the barrage input of the live webcast or reducing the user's continued influx into the webcast room.
步骤S105,发送报警信息至监控终端,报警信息包括人气数据大于预设的人气阈值上 限值的网络直播间的标识号。Step S105, sending an alarm message to the monitoring terminal, where the alarm information includes the popularity data being greater than a preset popularity threshold. The identification number of the webcast room of the limit.
在本发明实施例中,监控终端可以是,但不限于智能手机、平板电脑、膝上型便携计算机、车载电脑、个人数字助理(personal digital assistant,PDA)、穿戴式移动终端等等。当网络直播间的人气数据超过预先设置的人气阈值上限值时,服务器100包括人气数据大于预设的人气阈值上限值的网络直播间的标识号的报警信息至监控终端,可以是发送邮件、短信等进行提醒。In the embodiment of the present invention, the monitoring terminal may be, but not limited to, a smart phone, a tablet computer, a laptop portable computer, a vehicle-mounted computer, a personal digital assistant (PDA), a wearable mobile terminal, or the like. When the popularity data of the live webcast exceeds the preset popularity threshold upper limit value, the server 100 includes the alarm information of the identification number of the webcast room whose popularity data is greater than the preset popularity threshold upper limit value, to the monitoring terminal, and may be sending the mail. , SMS, etc. to remind.
其中,所述监控终端可以是所述服务器100的管理员的监控终端。The monitoring terminal may be a monitoring terminal of an administrator of the server 100.
请参照图3,步骤S104还可以包括以下子步骤:Referring to FIG. 3, step S104 may further include the following sub-steps:
子步骤S1041,将网络直播间的人气数据变更为预设值。Sub-step S1041, the popularity data between the live webcasts is changed to a preset value.
在本发明实施例中,预设值可以是,但不限于,低于所述网络直播间当前的人气数据,或是,低于网络直播平台前五页的最后一个网络直播间的人气数据值。例如,取消该网络直播间的人气数据,也就是说,设置该网络直播间的人气数据为空。In the embodiment of the present invention, the preset value may be, but is not limited to, lower than the current popularity data of the live webcast, or is lower than the popularity data value of the last webcast between the first five pages of the webcast platform. . For example, cancel the popularity data of the live webcast, that is, set the popularity data of the webcast room to be empty.
子步骤S1042,根据当前直播平台上的每个网络直播间的人气数据,对每个直播间进行排序,以改变人气数据变更为预设值的网络直播间的排序位置。Sub-step S1042: Sort each live room according to the popularity data of each webcast on the current live broadcast platform, so as to change the sorting position of the webcast between the popularity data and the preset value.
在本发明实施例中,根据当前直播平台上的每个网络直播间的人气数据,对每个直播间进行排序的方法可以是,但不限于,设置人气数据较大的网络直播间在当前直播平台上的排序高于人气数据较小的网络直播间的排序,换句话说,人气数据为空的网络直播间不会出现在直播平台上的前五页,从而降低了用户继续涌入该房间,平均分配了用户人气,防止在人气异常时给服务器100带来较大的压力,避免了CDN节点/服务器100节点的突发崩溃。In the embodiment of the present invention, according to the popularity data of each webcast on the current live broadcast platform, the method for sorting each live broadcast room may be, but is not limited to, setting a live broadcast of a live broadcast data with a large popularity data. The ranking on the platform is higher than the ranking of the live webcasts with less popular data. In other words, the live webcast with empty popularity data does not appear on the first five pages of the live broadcast platform, thus reducing the user's continued influx into the room. The user's popularity is evenly distributed to prevent the server 100 from being subjected to a large pressure when the popularity is abnormal, and the sudden collapse of the CDN node/server 100 node is avoided.
子步骤S1043,限制网络直播间的用户弹幕输入。Sub-step S1043, limiting user barrage input between webcasts.
在本发明实施例中,当网络直播间的人气数据超过预先设置的人气阈值上限值时,服务器100限制该网络直播间的人气,限制用户的弹幕输入,降低该房间的活跃度,具体方法可以是,但不限于,首先,服务器100获取该网络直播间的地址,也就是BarrageThreshold Threshold=new WebBarrageServer.Threshold.Value(PopLog);;其次,对该网络直播间连接的用户进行限制输入控制,也就是关闭该网络直播间连接的用户的弹幕输入通道,即set WebBarrageServer.Barrage.InputValue.Close(Threshold)。In the embodiment of the present invention, when the popularity data of the live webcast exceeds the preset popularity threshold upper limit value, the server 100 limits the popularity of the live webcast, limits the user's barrage input, and reduces the activity of the room. The method may be, but is not limited to, first, the server 100 acquires an address of the live webcast, that is, BarrageThreshold Threshold=new WebBarrageServer.Threshold.Value(PopLog);; secondly, restrictive input control is performed on the user connected to the webcast. That is, the barrage input channel of the user who closes the connection between the live webcasts, ie set WebBarrageServer.Barrage.InputValue.Close(Threshold).
本发明第一实施例提供的限制人气的方法,首先,根据类型设置网络直播间的人气阈值上限值,通过增加人气上限控制,使得出现突发的人气增长时,服务器100可以根据网络直播间的人气阈值上限值,及时保护服务器100/CDN节点;其次,当网络直播间的人气数据超过预先设置的人气阈值上限值,服务器100会自动对该网络直播间进行限制搜索, 或者自动隐藏该网络直播间等处理,从而降低了该网络直播间的人气持续增长的趋势,避免了服务器100超载及直播平台的不稳定的情形,解决了现有技术中由于人气的不规则波动,给服务器100突然带来较大的压力,甚至导致CDN节点/服务器100节点突发崩溃的问题,提高了网络直播间人气作假的难度。The method for limiting popularity provided by the first embodiment of the present invention firstly sets the popularity threshold value of the live broadcast between the live broadcasts according to the type, and increases the popularity ceiling control so that when a sudden increase in popularity occurs, the server 100 can according to the webcast room. The popularity threshold upper limit value protects the server 100/CDN node in time; secondly, when the popularity data of the live webcast exceeds the preset popularity threshold upper limit value, the server 100 automatically performs a restricted search on the webcast room. Or automatically hide the processing of the webcast room, thereby reducing the trend of the popularity of the live webcast, avoiding the instability of the server 100 overload and the live broadcast platform, and solving the irregular fluctuations in the prior art due to popularity. The server 100 suddenly brings a lot of pressure, and even causes the CDN node/server 100 node to suddenly collapse, which improves the difficulty of the popularity of the live broadcast.
请参照图4,图4示出了本发明实施例提供的服务器负载调节装置200的方框示意图。服务器负载调节装置200包括类型获取模块201、第一设置模块202、人气数据获取模块203、第一执行模块204及第二执行模块205。Please refer to FIG. 4. FIG. 4 is a block diagram showing a server load adjustment apparatus 200 according to an embodiment of the present invention. The server load adjustment apparatus 200 includes a type acquisition module 201, a first setting module 202, a popularity data acquisition module 203, a first execution module 204, and a second execution module 205.
类型获取模块201,配置成获取网络直播间的类型The type obtaining module 201 is configured to obtain a type of the webcast room.
在本发明实施例中,类型获取模块201可以配置成执行步骤S101。In the embodiment of the present invention, the type obtaining module 201 may be configured to perform step S101.
第一设置模块202,配置成根据类型设置网络直播间的人气阈值上限值The first setting module 202 is configured to set a popularity threshold upper limit value between the webcasts according to the type.
在本发明实施例中,第一设置模块202可以配置成执行步骤S102。In the embodiment of the present invention, the first setting module 202 can be configured to perform step S102.
人气数据获取模块203,配置成获取网络直播间的人气数据,网络直播间处于开播状态。The popularity data acquisition module 203 is configured to obtain popularity data between the live webcasts, and the webcasting room is in an open state.
在本发明实施例中,人气数据获取模块203可以配置成执行步骤S103。In the embodiment of the present invention, the popularity data acquisition module 203 can be configured to perform step S103.
第一执行模块204,配置成当网络直播间的人气数据大于预设的人气阈值上限值时,降低网络直播间的人气数据以使网络直播间的人气低于预设的人气阈值上限值。The first execution module 204 is configured to reduce the popularity data of the live webcast when the popularity data of the live webcast is greater than a preset popularity threshold, so that the popularity of the live broadcast is lower than a preset popularity threshold. .
在本发明实施例中,第一执行模块204可以配置成执行步骤S104。In the embodiment of the present invention, the first execution module 204 may be configured to perform step S104.
第二执行模块205,配置成发送报警信息至监控终端,报警信息包括人气数据大于预设的人气阈值上限值的网络直播间的标识号。The second execution module 205 is configured to send the alarm information to the monitoring terminal, where the alarm information includes an identification number of the live webcast where the popularity data is greater than a preset popularity threshold upper limit value.
在本发明实施例中,第二执行模块205可以配置成执行步骤S105。In the embodiment of the present invention, the second execution module 205 may be configured to perform step S105.
请参照图5,图5为图4示出的服务器负载调节装置200中第一执行模块204的方框示意图。第一执行模块204可以包括第一子执行单元2041、第二子执行单元2042和第三子执行单元2043。Please refer to FIG. 5. FIG. 5 is a block diagram of the first execution module 204 in the server load adjustment apparatus 200 shown in FIG. The first execution module 204 can include a first sub-execution unit 2041, a second sub-execution unit 2042, and a third sub-execution unit 2043.
第一子执行单元2041,配置成将网络直播间的人气数据变更为预设值The first sub-execution unit 2041 is configured to change the popularity data of the live webcast to a preset value.
在本发明实施例中,第一子执行单元2041可以配置成执行子步骤S1041。In the embodiment of the present invention, the first sub-execution unit 2041 may be configured to perform sub-step S1041.
第二子执行单元2042,配置成根据当前直播平台上的每个网络直播间的人气数据,对每个直播间进行排序,以改变人气数据变更为预设值的网络直播间的排序位置。The second sub-execution unit 2042 is configured to sort each live broadcast room according to the popularity data of each webcast on the current live broadcast platform, so as to change the sorting position of the webcast between the popularity data and the preset value.
在本发明实施例中,第二子执行单元2042可以配置成执行子步骤S1042。In an embodiment of the present invention, the second sub-execution unit 2042 may be configured to perform sub-step S1042.
第三子执行单元2043,配置成限制网络直播间的用户弹幕输入。The third sub-execution unit 2043 is configured to limit user barrage input between webcasts.
在本发明实施例中,第三子执行单元2043可以配置成执行子步骤S1043。In an embodiment of the present invention, the third sub-execution unit 2043 may be configured to perform sub-step S1043.
本发明实施例还提供一种计算机可读存储介质,其上存储有计算机程序,所述计算 机程序被执行时实现本实施例提供的服务器负载调节方法。Embodiments of the present invention also provide a computer readable storage medium having stored thereon a computer program, the calculation The server load adjustment method provided by the embodiment is implemented when the program is executed.
第二实施例Second embodiment
本发明第二实施例提供一种服务器负载调节方法,所述方法应用于相互通信的第一服务器及第二服务器,其中,所述第二服务器相当于本发明第一实施例中的服务器100。A second embodiment of the present invention provides a server load adjustment method, which is applied to a first server and a second server that communicate with each other, wherein the second server is equivalent to the server 100 in the first embodiment of the present invention.
作为一种实例,所述第一服务器可以是提供直播服务的服务器,也即,所述第一服务器可以提供相应的直播客户端。所述第二服务器可以是弹幕服务器,配置成为所述第一服务器的用户提供弹幕服务。As an example, the first server may be a server that provides a live broadcast service, that is, the first server may provide a corresponding live broadcast client. The second server may be a barrage server configured to provide a barrage service to a user of the first server.
下面对本实施例提供的服务器负载调节方法的具体流程进行详细阐述。The specific process of the server load adjustment method provided in this embodiment is described in detail below.
步骤S201,所述第一服务器在目标网络直播间开播时,将所述目标网络直播间的标识信息发送给所述第二服务器。Step S201: The first server sends the identification information of the target network live broadcast to the second server when the first server broadcasts between the target network live broadcasts.
可选地,在本实施例中,所述目标网络直播间是指需要进行监测的网络直播间,可以由用户在所述第一服务器中设置。详细地,所述设置方式可以如下:Optionally, in this embodiment, the target network live broadcast refers to a webcast room that needs to be monitored, and may be set by the user in the first server. In detail, the setting manner can be as follows:
首先,通过指令Threshold.Input Value(RoomID)获取需要监测的目标网络直播间的直播间地址,并通过指令BigHorm Threshold Bthreshold=new WebFrame.BigHorm.Popularity Threshold(Popularity Value)设置所述目标网络直播间的人气阈值,并将所述目标网络直播间的直播间地址及所述人气阈值一并传递给所述第二服务器。First, the live broadcast address between the target network live broadcasts to be monitored is obtained by the instruction Threshold.Input Value (RoomID), and the target webcast room is set by the command BigHorm Threshold Bthreshold=new WebFrame.BigHorm.Popularity Threshold (Popularity Value). The popularity threshold is transmitted to the second server together with the live broadcast address and the popularity threshold between the target webcasts.
实施时,所述第一服务器对设置的目标网络直播间进行监测,在检测到所述目标网络直播间开播时,将所述目标网络直播间的标识信息发送给所述第二服务器。其中,所述标识信息可以是所述目标网络直播间的直播间地址,也可以是所述目标网络直播间的ID号。During the implementation, the first server monitors the set target network live broadcast, and sends the identification information of the target network live broadcast to the second server when the target network live broadcast is detected. The identifier information may be a live broadcast address between the target network live broadcasts, or may be an ID number of the target network live broadcast room.
步骤S202,所述第二服务器根据所述目标网络直播间的标识信息获得所述目标网络直播间的人气阈值。Step S202: The second server obtains a popularity threshold between the target network live broadcasts according to the identification information between the target network live broadcasts.
所述第二服务器根据所述目标网络直播间的标识信息进行查找,若查找到对应的人气阈值,则对所述目标网络直播间的人气数据进行监测,若无法查找到对应的人气阈值,则不对所述目标网络直播间的人气数据进行监测,此外,还可以输出相应的提示信息,以提示加载人气阈值失败。The second server performs a search according to the identification information of the target network live broadcast, and if the corresponding popularity threshold is found, the popularity data of the target network live broadcast is monitored, and if the corresponding popularity threshold cannot be found, The popularity data of the target webcast is not monitored. In addition, corresponding prompt information may be output to prompt the loading of the popularity threshold to fail.
步骤S203,所述第二服务器根据所述人气阈值对所述目标网络直播间的人气数据进行监测,并在检测到所述目标网络直播间的人气数据达到所述人气阈值时,对所述目标网络直播间的人气数据进行控制,以降低所述目标网络直播间的人气数据。Step S203, the second server monitors popularity data of the target network live broadcast according to the popularity threshold, and detects that the popularity data between the target webcasts reaches the popularity threshold. The popularity data of the live webcast is controlled to reduce the popularity data of the target webcast.
可选地,在本实施例中,步骤S203中,对所述目标网络直播间的人气数据进行 控制的步骤,可以包括子步骤S2031和/或子步骤S2032。Optionally, in this embodiment, in step S203, the popularity data between the target network live broadcasts is performed. The step of controlling may include sub-step S2031 and/or sub-step S2032.
子步骤S2031,关闭所述目标网络直播间的弹幕输入功能。Sub-step S2031, closing the barrage input function between the target webcasts.
子步骤S2032,将所述目标网络直播间的人气数据更新为预设值,以降低所述目标网络直播间在所述第一服务器提供的各网络直播间中的人气数据的排名。In sub-step S2032, the popularity data of the target webcast is updated to a preset value to reduce the ranking of the popularity data in the webcast rooms provided by the first server in the target webcast.
在本实施例中,所述第一服务器按照各网络直播间的人气数据从大到小的顺序对各网络直播间进行展示,因此,人气数据越大的直播间越容易被更多的用户看到,进而产生更高的人气数据。In this embodiment, the first server displays the live broadcast rooms according to the popularity data of each live webcast. Therefore, the live broadcasts with larger popularity data are more likely to be viewed by more users. To, in turn, generate higher popularity data.
因此,通过改变所述目标网络直播间当前的人气数据,进而降低其人气数据的序位,可以降低所述目标网络直播间被用户看到的几率,进而使所述目标网络直播间的人气数据不再增加。Therefore, by changing the current popularity data of the target webcast, thereby reducing the order of the popularity data, the probability of being seen by the user in the target webcast can be reduced, and the popularity data of the target webcast can be reduced. No longer increase.
可选地,在本实施例中,所述方法还可以包括步骤S204。Optionally, in this embodiment, the method may further include step S204.
步骤S204,所述第二服务器在检测到所述目标网络直播间的人气数据达到所述人气阈值时,发出报警信息,所述报警信息包括所述目标网络直播间的标识信息。Step S204, the second server sends an alarm message when detecting that the popularity data between the target webcasts reaches the popularity threshold, and the alarm information includes identifier information between the target webcasts.
可选地,所述第二服务器可以将所述报警信息发送给所述第一服务器所提供的客户端的管理员。Optionally, the second server may send the alarm information to an administrator of a client provided by the first server.
本发明实施例还提供一种直播***,包括相互通信的第一服务器及第二服务器。The embodiment of the invention further provides a live broadcast system, including a first server and a second server that communicate with each other.
所述第一服务器配置成在目标网络直播间开播时,将所述目标网络直播间的标识信息发送给所述第二服务器。The first server is configured to send the identification information of the target network live broadcast to the second server when the target network live broadcasts.
所述第二服务器配置成根据所述目标网络直播间的标识信息获得所述目标网络直播间的人气阈值,根据所述人气阈值对所述目标网络直播间的人气数据进行监测,并在检测到所述目标网络直播间的人气数据达到所述人气阈值时,对所述目标网络直播间的人气数据进行控制,以降低所述目标网络直播间的人气数据。The second server is configured to obtain a popularity threshold between the target webcasts according to the identification information of the target webcast, and monitor the popularity data of the target webcast according to the popularity threshold, and detect When the popularity data of the target webcast reaches the popularity threshold, the popularity data of the target webcast is controlled to reduce the popularity data of the target webcast.
综上所述,本发明实施例提供的一种服务器负载调节方法、装置及服务器,首先,获取网络直播间的人气数据,网络直播间处于开播状态;其次,当网络直播间的人气数据大于预设的人气阈值上限值时,降低网络直播间的人气数据以使网络直播间的人气低于预设的人气阈值上限值。通过增加人气上限控制,使得出现突发的人气增长时,服务器会自动对该网络直播间进行限制搜索,或者自动隐藏该网络直播间等处理,从而降低了该网络直播间的人气持续增长的趋势,避免了服务器超载及直播平台的不稳定的情形,解决了现有技术中由于人气的不规则波动,给服务器突然带来较大的压力,甚至导致CDN节点/服务器节点突发崩溃的问题,提高了网络直播间人气作假的难度。In summary, the server load adjustment method, device, and server provided by the embodiment of the present invention firstly acquire popularity data of the live broadcast between the webcasts, and the webcasting room is in an open state; secondly, the popularity data of the webcast is larger than the pre-population. When the popularity threshold is set, the popularity data between the live webcasts is reduced to make the popularity of the live webcasts lower than the preset popularity threshold. By increasing the popularity ceiling control, the server will automatically limit the search to the live broadcast room, or automatically hide the webcast room, etc., thereby reducing the popularity of the live broadcast room. The server overload and the unstable situation of the live broadcast platform are avoided, and the irregular fluctuation of popularity in the prior art is solved, which brings a sudden pressure to the server, and even causes a sudden collapse of the CDN node/server node. It has increased the difficulty of popular spoofing in the live webcast.
在本申请所提供的几个实施例中,应该理解到,所揭露的装置和方法,也可以通过其 它的方式实现。以上所描述的装置实施例仅仅是示意性的,例如,附图中的流程图和框图显示了根据本发明的多个实施例的装置、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段或代码的一部分,所述模块、程序段或代码的一部分包含一个或多个配置成实现规定的逻辑功能的可执行指令。也应当注意,在有些作为替换的实现方式中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个连续的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图和/或流程图中的每个方框、以及框图和/或流程图中的方框的组合,可以用执行规定的功能或动作的专用的基于硬件的***来实现,或者可以用专用硬件与计算机指令的组合来实现。In the several embodiments provided by the present application, it should be understood that the disclosed apparatus and method are also It's way to achieve it. The apparatus embodiments described above are merely illustrative, for example, the flowcharts and block diagrams in the figures illustrate the architecture, functionality, and functionality of possible implementations of apparatus, methods, and computer program products according to various embodiments of the invention. operating. In this regard, each block of the flowchart or block diagram can represent a module, a program segment, or a portion of code that comprises one or more of the Executable instructions. It should also be noted that, in some alternative implementations, the functions noted in the blocks may also occur in a different order than those illustrated in the drawings. For example, two consecutive blocks may be executed substantially in parallel, and they may sometimes be executed in the reverse order, depending upon the functionality involved. It is also noted that each block of the block diagrams and/or flowcharts, and combinations of blocks in the block diagrams and/or flowcharts, can be implemented in a dedicated hardware-based system that performs the specified function or function. Or it can be implemented by a combination of dedicated hardware and computer instructions.
另外,在本发明各个实施例中的各功能模块可以集成在一起形成一个独立的部分,也可以是各个模块单独存在,也可以两个或两个以上模块集成形成一个独立的部分。In addition, each functional module in each embodiment of the present invention may be integrated to form a separate part, or each module may exist separately, or two or more modules may be integrated to form a separate part.
所述功能如果以软件功能模块的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。The functions, if implemented in the form of software functional modules and sold or used as separate products, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention, which is essential or contributes to the prior art, or a part of the technical solution, may be embodied in the form of a software product, which is stored in a storage medium, including The instructions are used to cause a computer device (which may be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present invention. The foregoing storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, and the like. . It should be noted that, in this context, relational terms such as first and second are used merely to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply such entities or operations. There is any such actual relationship or order between them. Furthermore, the term "comprises" or "comprises" or "comprises" or any other variations thereof is intended to encompass a non-exclusive inclusion, such that a process, method, article, or device that comprises a plurality of elements includes not only those elements but also Other elements, or elements that are inherent to such a process, method, item, or device. An element that is defined by the phrase "comprising a ..." does not exclude the presence of additional equivalent elements in the process, method, item, or device that comprises the element.
以上所述仅为本发明的优选实施例而已,并不用于限制本发明,对于本领域的技术人员来说,本发明可以有各种更改和变化。凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。应注意到:相似的标号和字母在下面的附图中表示类似项,因此,一旦某一项在一个附图中被定义,则在随后的附图中不需要对其进行进一步定义和解释。 The above description is only the preferred embodiment of the present invention, and is not intended to limit the present invention, and various modifications and changes can be made to the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and scope of the present invention are intended to be included within the scope of the present invention. It should be noted that similar reference numerals and letters indicate similar items in the following figures, and therefore, once an item is defined in a drawing, it is not necessary to further define and explain it in the subsequent drawings.
工业实用性Industrial applicability
本发明实施例提供的服务器负载调节方法、装置、服务器、直播***及计算机可读存储介质,通过增加人气上限控制,使得出现突发的人气增长时,服务器会自动对该网络直播间进行限制搜索,或者自动隐藏该网络直播间等处理,从而降低了该网络直播间的人气持续增长的趋势,避免了服务器超载及直播平台的不稳定的情形,解决了现有技术中由于人气的不规则波动,给服务器突然带来较大的压力,甚至导致CDN节点/服务器节点突发崩溃的问题,提高了网络直播间人气作假的难度。 The server load adjustment method, device, server, live broadcast system, and computer readable storage medium provided by the embodiments of the present invention automatically increase the popularity ceiling control, so that when a sudden increase in popularity occurs, the server automatically performs a restricted search on the network live broadcast room. Or automatically hide the processing of the webcast room, thereby reducing the trend of the popularity of the live webcast, avoiding the instability of the server overload and the live broadcast platform, and solving the irregular fluctuations in the prior art due to popularity. It suddenly brings a lot of pressure to the server, and even causes the CDN node/server node to suddenly collapse, which makes it more difficult to make the Internet live.

Claims (18)

  1. 一种服务器负载调节方法,其特征在于,所述方法包括:A server load adjustment method, characterized in that the method comprises:
    获取网络直播间的人气数据,所述网络直播间处于开播状态;Obtaining popularity data of the webcast room, and the webcast room is in an open state;
    当所述网络直播间的人气数据大于预设的人气阈值上限值时,降低所述网络直播间的人气数据以使所述网络直播间的人气低于预设的人气阈值上限值。When the popularity data of the live webcast is greater than a preset popularity threshold upper limit, the popularity data of the webcast room is lowered to make the popularity of the webcast live room lower than a preset popularity threshold upper limit value.
  2. 如权利要求1所述的服务器负载调节方法,其特征在于,所述降低所述网络直播间的人气数据的步骤,包括;The server load adjustment method according to claim 1, wherein the step of reducing popularity data between the webcasts comprises:
    将所述网络直播间的人气数据变更为预设值;Changing the popularity data of the webcast room to a preset value;
    根据当前直播平台上的每个网络直播间的人气数据,对每个直播间进行排序,以改变人气数据变更为预设值的网络直播间的排序位置。According to the popularity data of each webcast room on the current live broadcast platform, each live broadcast room is sorted to change the sorting position of the webcast between the popularity data and the preset value.
  3. 如权利要求2所述的服务器负载调节方法,其特征在于,所述预设值低于所述网络直播间当前的人气数据。The server load adjustment method according to claim 2, wherein the preset value is lower than current popularity data of the webcast.
  4. 如权利要求1所述的服务器负载调节方法,其特征在于,所述降低所述网络直播间的人气数据的步骤,包括;The server load adjustment method according to claim 1, wherein the step of reducing popularity data between the webcasts comprises:
    限制所述网络直播间的用户弹幕输入。Restricting user barrage input in the webcast room.
  5. 如权利要求1-4任一项所述的服务器负载调节方法,其特征在于,所述获取网络直播间的人气数据的步骤之前,所述方法还包括:The server load adjustment method according to any one of claims 1 to 4, wherein before the step of acquiring popularity data between the live webcasts, the method further comprises:
    获取所述网络直播间的类型;Obtaining the type of the webcast room;
    根据所述类型设置所述网络直播间的人气阈值上限值。The popularity threshold upper limit value of the webcast room is set according to the type.
  6. 如权利要求1-5任一项所述的服务器负载调节方法,其特征在于,所述方法还包括:The server load adjustment method according to any one of claims 1 to 5, wherein the method further comprises:
    发送报警信息至监控终端,所述报警信息包括人气数据大于预设的人气阈值上限值的网络直播间的标识号。The alarm information is sent to the monitoring terminal, and the alarm information includes an identification number of the webcast room where the popularity data is greater than the preset popularity threshold upper limit value.
  7. 一种服务器负载调节方法,其特征在于,应用于相互通信的第一服务器与第二服务器,所述方法包括:A server load adjustment method is characterized in that it is applied to a first server and a second server that communicate with each other, and the method includes:
    所述第一服务器在目标网络直播间开播时,将所述目标网络直播间的标识信息发送给所述第二服务器;Sending the identification information of the target network live broadcast to the second server when the first server starts broadcasting in the target network live broadcast;
    所述第二服务器根据所述目标网络直播间的标识信息获得所述目标网络直播间的人气阈值;The second server obtains a popularity threshold between the target network live broadcasts according to the identification information between the target network live broadcasts;
    所述第二服务器根据所述人气阈值对所述目标网络直播间的人气数据进行监测,并在检测到所述目标网络直播间的人气数据达到所述人气阈值时,对所述目标网络直 播间的人气数据进行控制,以降低所述目标网络直播间的人气数据。The second server monitors popularity data of the target network live broadcast according to the popularity threshold, and detects that the popularity data of the target network live broadcast reaches the popularity threshold The popularity data between the broadcasts is controlled to reduce the popularity data between the target webcasts.
  8. 如权利要求7所述的服务器负载调节方法,其特征在于,所述第二服务对所述目标网络直播间的人气数据进行控制的步骤,包括:The server load adjustment method according to claim 7, wherein the step of controlling the popularity data between the target network live broadcasts by the second service comprises:
    关闭所述目标网络直播间的弹幕输入功能。Turn off the barrage input function of the target webcast.
  9. 如权利要求7所述的服务器负载调节方法,其特征在于,所述第一服务器按照各网络直播间的人气数据从大到小的顺序对各网络直播间进行展示;The server load adjustment method according to claim 7, wherein the first server displays the live broadcast rooms in descending order according to the popularity data of each live webcast;
    所述第二服务器对所述目标网络直播间的人气数据进行控制的步骤,包括:The step of controlling the popularity data between the target network live broadcasts by the second server includes:
    将所述目标网络直播间的人气数据更新为预设值,以降低所述目标网络直播间在所述第一服务器提供的各网络直播间中的人气数据的排名。Updating the popularity data of the target webcast to a preset value to reduce the ranking of the popularity data in the webcast rooms provided by the first server in the target webcast.
  10. 如权利要求7-9任一项所述的服务器负载调节方法,其特征在于,所述方法还包括:The server load adjustment method according to any one of claims 7-9, wherein the method further comprises:
    所述第二服务器在检测到所述目标网络直播间的人气数据达到所述人气阈值时,发出报警信息,所述报警信息包括所述目标网络直播间的标识信息。The second server sends an alarm message when detecting that the popularity data of the target webcast reaches the popularity threshold, and the alarm information includes identifier information between the target webcasts.
  11. 一种服务器负载调节装置,其特征在于,所述装置包括:A server load adjustment device, characterized in that the device comprises:
    人气数据获取模块,配置成获取网络直播间的人气数据,所述网络直播间处于开播状态;The popularity data acquisition module is configured to acquire popularity data of the live webcast, and the webcasting room is in an open state;
    第一执行模块,配置成当所述网络直播间的人气数据大于预设的人气阈值上限值时,降低所述网络直播间的人气数据以使所述网络直播间的人气低于预设的人气阈值上限值。a first execution module, configured to: when the popularity data of the webcast is greater than a preset popularity threshold, reduce popularity data of the webcast to make the popularity of the webcast lower than a preset Popularity threshold upper limit.
  12. 如权利要求11所述的服务器负载调节装置,其特征在于,所述第一执行模块包括:The server load adjustment device of claim 11, wherein the first execution module comprises:
    第一子执行单元,配置成将所述网络直播间的人气数据变更为预设值;a first sub-execution unit configured to change popularity data of the webcast to a preset value;
    第二子执行单元,配置成根据当前直播平台上的每个网络直播间的人气数据,对每个直播间进行排序,以改变人气数据变更为预设值的网络直播间的排序位置。The second sub-execution unit is configured to sort each live broadcast room according to the popularity data of each webcast on the current live broadcast platform, so as to change the sorting position of the webcast between the popularity data and the preset value.
  13. 如权利要求12所述的服务器负载调节装置,其特征在于,所述预设值低于所述网络直播间当前的人气数据。The server load adjusting device according to claim 12, wherein said preset value is lower than current popularity data of said webcast.
  14. 如权利要求11-13任一项所述的服务器负载调节装置,其特征在于,所述服务器负载调节装置还包括:The server load adjustment device according to any one of claims 11 to 13, wherein the server load adjustment device further comprises:
    类型获取模块,配置成获取所述网络直播间的类型;a type obtaining module configured to acquire a type of the webcast room;
    第一设置模块,配置成根据所述类型设置所述网络直播间的人气阈值。The first setting module is configured to set a popularity threshold of the webcast according to the type.
  15. 如权利要求11-14所述的服务器负载调节装置,其特征在于,所述服务器负载调节装置还包括: The server load adjusting device according to any one of claims 11-14, wherein the server load adjusting device further comprises:
    第二执行模块,配置成发送报警信息至监控终端,所述报警信息包括人气数据大于预设的人气阈值上限值的网络直播间的标识号。The second execution module is configured to send the alarm information to the monitoring terminal, where the alarm information includes an identification number of the webcast room where the popularity data is greater than a preset popularity threshold upper limit value.
  16. 一种服务器,其特征在于,所述服务器包括:A server, wherein the server comprises:
    存储器;Memory
    处理器;以及Processor;
    服务器负载调节装置,所述装置存储于所述存储器中并包括一个或多个由所述处理器执行的软件功能模组,其包括:a server load adjustment device, the device being stored in the memory and comprising one or more software function modules executed by the processor, comprising:
    人气数据获取模块,配置成获取网络直播间的人气数据,所述网络直播间处于开播状态;The popularity data acquisition module is configured to acquire popularity data of the live webcast, and the webcasting room is in an open state;
    第一执行模块,配置成当所述网络直播间的人气数据大于预设的人气阈值上限值时,降低所述网络直播间的人气数据以使所述网络直播间的人气低于预设的人气阈值上限值。a first execution module, configured to: when the popularity data of the webcast is greater than a preset popularity threshold, reduce popularity data of the webcast to make the popularity of the webcast lower than a preset Popularity threshold upper limit.
  17. 一种直播***,其特征在于,包括相互通信的第一服务器及第二服务器;A live broadcast system, comprising: a first server and a second server that communicate with each other;
    所述第一服务器,配置成在目标网络直播间开播时,将所述目标网络直播间的标识信息发送给所述第二服务器;The first server is configured to send the identifier information of the target network live broadcast to the second server when the target network live broadcast is started;
    所述第二服务器,配置成根据所述目标网络直播间的标识信息获得所述目标网络直播间的人气阈值,根据所述人气阈值对所述目标网络直播间的人气数据进行监测,并在检测到所述目标网络直播间的人气数据达到所述人气阈值时,对所述目标网络直播间的人气数据进行控制,以降低所述目标网络直播间的人气数据。The second server is configured to obtain a popularity threshold between the target network live broadcasts according to the identification information of the target network live broadcast, and monitor the popularity data of the target network live broadcast according to the popularity threshold, and detect When the popularity data of the target webcast reaches the popularity threshold, the popularity data of the target webcast is controlled to reduce the popularity data of the target webcast.
  18. 一种计算机可读存储介质,其上存储有计算机程序,其特征在于,所述计算机程序被执行时实现权利要求1-6任一项所述的服务器负载调节方法。 A computer readable storage medium having stored thereon a computer program, wherein the computer program is executed to implement the server load adjustment method of any of claims 1-6.
PCT/CN2017/109570 2017-03-23 2017-11-06 Server load adjustment method and device, server, live broadcast system and computer readable storage medium WO2018171208A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710179125.9 2017-03-23
CN201710179125.9A CN106899857B (en) 2017-03-23 2017-03-23 Server load adjusting method, device and server

Publications (1)

Publication Number Publication Date
WO2018171208A1 true WO2018171208A1 (en) 2018-09-27

Family

ID=59194370

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/109570 WO2018171208A1 (en) 2017-03-23 2017-11-06 Server load adjustment method and device, server, live broadcast system and computer readable storage medium

Country Status (2)

Country Link
CN (1) CN106899857B (en)
WO (1) WO2018171208A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112565385A (en) * 2020-11-30 2021-03-26 北京达佳互联信息技术有限公司 Server address information configuration method and device and electronic equipment

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106899857B (en) * 2017-03-23 2019-03-15 武汉斗鱼网络科技有限公司 Server load adjusting method, device and server
CN109218838B (en) * 2017-06-30 2022-01-04 武汉斗鱼网络科技有限公司 Method for improving bullet screen information security, server and computer equipment
CN109660831B (en) * 2017-10-10 2021-06-15 武汉斗鱼网络科技有限公司 Barrage sending period setting method, storage medium, electronic device and system
CN109660489B (en) * 2017-10-10 2021-07-23 武汉斗鱼网络科技有限公司 Live broadcast room login limiting method, storage medium, electronic device and system
CN108184146B (en) * 2018-01-12 2020-01-03 武汉斗鱼网络科技有限公司 Method for calculating popularity of live broadcast platform and related equipment
CN108551585B (en) * 2018-03-28 2021-01-01 武汉斗鱼网络科技有限公司 Barrage checking method, device, server and medium
CN111131841A (en) * 2020-02-24 2020-05-08 北京达佳互联信息技术有限公司 Live indirect access method and device, electronic equipment and storage medium
CN115412738B (en) * 2021-05-26 2023-09-08 广西三方大供应链技术服务有限公司 Scheduling method and device of server and storage medium
CN114189716B (en) * 2021-11-17 2024-02-13 北京量子之歌科技有限公司 Video live broadcast platform monitoring system, method, equipment and storage medium

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5017205B2 (en) * 2008-07-25 2012-09-05 ヤフー株式会社 Program analysis apparatus, program analysis method, and program analysis program
CN105635764A (en) * 2016-01-14 2016-06-01 腾讯科技(深圳)有限公司 Method and device for playing push information in live video
CN105872624A (en) * 2015-12-14 2016-08-17 乐视网信息技术(北京)股份有限公司 Audience rating statistic method, terminal, server and system
CN105872612A (en) * 2016-03-30 2016-08-17 宁波元鼎电子科技有限公司 Anchor and audience interaction method and system in improved network live broadcasting process
CN106105244A (en) * 2016-06-12 2016-11-09 北京小米移动软件有限公司 The method of uploaded videos, device and camera head
CN106101863A (en) * 2016-06-24 2016-11-09 武汉斗鱼网络科技有限公司 A kind of have barrage sending method and the device deleting protection mechanism
CN106713938A (en) * 2017-02-24 2017-05-24 北京潘达互娱科技有限公司 Data processing method and apparatus
CN106899857A (en) * 2017-03-23 2017-06-27 武汉斗鱼网络科技有限公司 Server load adjusting method, device and server
CN106993234A (en) * 2017-03-22 2017-07-28 北京潘达互娱科技有限公司 Barrage display methods and device

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102495857B (en) * 2011-11-21 2013-08-21 北京新媒传信科技有限公司 Load balancing method for distributed database
US20140372508A1 (en) * 2013-06-14 2014-12-18 Andrew T. Fausak Native client tunnel service for client-server communication
CN105657475B (en) * 2016-03-15 2018-08-24 武汉斗鱼网络科技有限公司 A kind of method and device for being grouped user in webcast website
CN105872620A (en) * 2016-03-30 2016-08-17 宁波元鼎电子科技有限公司 Authority and level distinguished display method and authority and level distinguished display system in network broadcasting process
CN105872580B (en) * 2016-04-15 2019-08-13 广州酷狗计算机科技有限公司 The recording method and device of live video
CN106021478A (en) * 2016-05-19 2016-10-12 武汉斗鱼网络科技有限公司 Method and apparatus for displaying home page direct broadcast room list in optimized manner through direct broadcast website
CN106390461A (en) * 2016-08-30 2017-02-15 北京像素软件科技股份有限公司 Comparison method for player role data in online game
CN106385593B (en) * 2016-09-14 2019-05-17 武汉斗鱼网络科技有限公司 The statistical method and system of live streaming number are watched while based on elliptic curve

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5017205B2 (en) * 2008-07-25 2012-09-05 ヤフー株式会社 Program analysis apparatus, program analysis method, and program analysis program
CN105872624A (en) * 2015-12-14 2016-08-17 乐视网信息技术(北京)股份有限公司 Audience rating statistic method, terminal, server and system
CN105635764A (en) * 2016-01-14 2016-06-01 腾讯科技(深圳)有限公司 Method and device for playing push information in live video
CN105872612A (en) * 2016-03-30 2016-08-17 宁波元鼎电子科技有限公司 Anchor and audience interaction method and system in improved network live broadcasting process
CN106105244A (en) * 2016-06-12 2016-11-09 北京小米移动软件有限公司 The method of uploaded videos, device and camera head
CN106101863A (en) * 2016-06-24 2016-11-09 武汉斗鱼网络科技有限公司 A kind of have barrage sending method and the device deleting protection mechanism
CN106713938A (en) * 2017-02-24 2017-05-24 北京潘达互娱科技有限公司 Data processing method and apparatus
CN106993234A (en) * 2017-03-22 2017-07-28 北京潘达互娱科技有限公司 Barrage display methods and device
CN106899857A (en) * 2017-03-23 2017-06-27 武汉斗鱼网络科技有限公司 Server load adjusting method, device and server

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112565385A (en) * 2020-11-30 2021-03-26 北京达佳互联信息技术有限公司 Server address information configuration method and device and electronic equipment
CN112565385B (en) * 2020-11-30 2023-03-14 北京达佳互联信息技术有限公司 Server address information configuration method and device and electronic equipment

Also Published As

Publication number Publication date
CN106899857B (en) 2019-03-15
CN106899857A (en) 2017-06-27

Similar Documents

Publication Publication Date Title
WO2018171208A1 (en) Server load adjustment method and device, server, live broadcast system and computer readable storage medium
WO2021164178A1 (en) Cloud technology-based file fragment uploading method and apparatus, and device and storage medium
US10193971B2 (en) Method, server and system for application synchronization
WO2021237433A1 (en) Message pushing method and apparatus, and electronic device and computer-readable medium
CN108737132B (en) Alarm information processing method and device
US8984632B1 (en) Systems and methods for identifying malware
US8311041B1 (en) Systems and methods for automatically adjusting messaging quota
CN109495378B (en) Method, device, server and storage medium for detecting abnormal account
US9691261B2 (en) Home automation communications
US10686904B2 (en) System and method for pushing smart alerts
US11716415B2 (en) Suppressing indications of events in user interfaces
US11736557B1 (en) Copying and pasting between devices
WO2021189257A1 (en) Malicious process detection method and apparatus, electronic device, and storage medium
US10599505B1 (en) Event handling system with escalation suppression
WO2022121978A1 (en) Livestreaming room top message determining method and apparatus, device, and storage medium
US20180268126A1 (en) Dynamically controlling access to devices
US20160065437A1 (en) Method And Apparatus For Determining Application To Be Recommended
US20120066305A1 (en) Transmitting system and method thereof
CN110574006B (en) System and method for automatically synchronizing responses and conditions on a device
CN108989244B (en) Data processing method, data processing device, storage medium and electronic equipment
US10019582B1 (en) Detecting application leaks
CN113553074B (en) Applet distribution control method, device, electronic equipment and storage medium
CN112953794B (en) Network detection method, device, equipment and storage medium of router
CN113852835A (en) Live broadcast audio processing method and device, electronic equipment and storage medium
CN108966160B (en) Short message processing method and device and computer readable storage medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17902281

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 17902281

Country of ref document: EP

Kind code of ref document: A1