CN110769272A - Node adjusting method and related equipment thereof - Google Patents

Node adjusting method and related equipment thereof Download PDF

Info

Publication number
CN110769272A
CN110769272A CN201911136326.6A CN201911136326A CN110769272A CN 110769272 A CN110769272 A CN 110769272A CN 201911136326 A CN201911136326 A CN 201911136326A CN 110769272 A CN110769272 A CN 110769272A
Authority
CN
China
Prior art keywords
service
node
service node
adjusted
information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201911136326.6A
Other languages
Chinese (zh)
Inventor
张英杰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Onething Technology Co Ltd
Original Assignee
Shenzhen Onething Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Onething Technology Co Ltd filed Critical Shenzhen Onething Technology Co Ltd
Priority to CN201911136326.6A priority Critical patent/CN110769272A/en
Publication of CN110769272A publication Critical patent/CN110769272A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/21Server components or server architectures
    • H04N21/218Source of audio or video content, e.g. local disk arrays
    • H04N21/2187Live feed
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/239Interfacing the upstream path of the transmission network, e.g. prioritizing client content requests
    • H04N21/2393Interfacing the upstream path of the transmission network, e.g. prioritizing client content requests involving handling client requests
    • H04N21/2396Interfacing the upstream path of the transmission network, e.g. prioritizing client content requests involving handling client requests characterized by admission policies
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/24Monitoring of processes or resources, e.g. monitoring of server load, available bandwidth, upstream requests
    • H04N21/2408Monitoring of the upstream path of the transmission network, e.g. client requests
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/25Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
    • H04N21/262Content or additional data distribution scheduling, e.g. sending additional data at off-peak times, updating software modules, calculating the carousel transmission frequency, delaying a video stream transmission, generating play-lists
    • H04N21/26208Content or additional data distribution scheduling, e.g. sending additional data at off-peak times, updating software modules, calculating the carousel transmission frequency, delaying a video stream transmission, generating play-lists the scheduling operation being performed under constraints
    • H04N21/26216Content or additional data distribution scheduling, e.g. sending additional data at off-peak times, updating software modules, calculating the carousel transmission frequency, delaying a video stream transmission, generating play-lists the scheduling operation being performed under constraints involving the channel capacity, e.g. network bandwidth
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/80Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
    • H04N21/85Assembly of content; Generation of multimedia applications
    • H04N21/854Content authoring
    • H04N21/8547Content authoring involving timestamps for synchronizing content

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The invention discloses a node adjustment method, which comprises the steps of determining a service node corresponding to a target video stream; acquiring service parameters of each service node; obtaining information of each service node to be adjusted according to the service parameters and a preset adjustment strategy; and sending the information of each service node to be adjusted to a client so that the client adjusts the corresponding service node to be adjusted according to the information of the service node to be adjusted. The invention also discloses a node adjusting device, a system, a computer readable storage medium, a computer program product and another node adjusting method. The technical scheme of the invention can dynamically adjust the connection relationship between the SDK of the user terminal and the video stream node, thereby maximizing the utilization of the node resource and effectively avoiding the resource waste.

Description

Node adjusting method and related equipment thereof
Technical Field
The present invention relates to the field of shared computing technologies, and in particular, to a node adjustment method, and further, to a node adjustment apparatus, a node adjustment system, a computer-readable storage medium, a computer program product, and another node adjustment method.
Background
Referring to fig. 1, fig. 1 is a block diagram of a video stream access system in the prior art, in a live broadcast scenario of shared computing, a plurality of nodes and a small number of edge servers are generally used to replace a conventional CDN (Content delivery network) to provide video stream data, and a corresponding application SDK (Software Development Kit) is deployed on a user end to implement video stream access. The nodes are generally deployed in a common home, and the stability and the available uplink bandwidth are not too high, so that one SDK generally uses a plurality of nodes to improve the stability of the whole service.
Currently, when a scheduling system allocates nodes for an SDK, the nodes are generally allocated from nodes that have originally served a corresponding video stream according to an order of arrival of the SDK, and when the number of nodes is insufficient, an available node is selected from an allocable node pool for allocation. However, since the heat flow is cooled after a period of time, that is, the SDKs accessing the video stream are reduced, it is likely that a small number of SDKs occupy a large number of nodes, and the bandwidths of the SDKs using the nodes are significantly smaller than the uplink bandwidths that can be provided by the nodes, which causes a great waste of resources; in addition, due to the fact that certain randomness exists in the dispatching of the SDK distribution nodes and certain connection failure rate exists in the SDK connection nodes, the problem that the number of the SDKs is not proportional to the number of the used nodes is easily caused for the normal video streams which change from cold to hot, and resource waste is also caused.
Therefore, how to effectively adjust the connection relationship between the SDK at the user end and the video streaming node to avoid resource waste is an urgent problem to be solved by those skilled in the art.
Disclosure of Invention
The present invention mainly aims to provide a node adjustment method, device, system, computer readable storage medium, computer program product and another node adjustment method, and aims to solve the problem that in the prior art, video stream nodes accessed by an SDK cannot be effectively utilized, resulting in serious resource waste.
In order to achieve the above object, the present invention provides a node adjusting method, including:
determining a service node corresponding to the target video stream;
acquiring service parameters of each service node;
obtaining information of each service node to be adjusted according to the service parameters and a preset adjustment strategy;
and sending the information of each service node to be adjusted to a client so that the client adjusts the corresponding service node to be adjusted according to the information of the service node to be adjusted.
Preferably, before the obtaining the information of each service node to be adjusted according to the preset adjustment policy, the method further includes:
calculating and obtaining an average service parameter of each service node according to the service parameters;
judging whether the average service parameter exceeds a preset threshold value;
and if not, executing the step of obtaining the information of each service node to be adjusted according to the preset adjustment strategy.
Preferably, the obtaining the service node information to be adjusted according to the preset adjustment policy includes:
and taking the service node with the service parameter lower than the preset threshold value as the service node to be adjusted, and acquiring the information of the service node to be adjusted.
Preferably, the service parameters include the number of client connections and the upstream bandwidth.
Preferably, the taking the service node with the service parameter lower than the preset threshold as the service node to be adjusted includes:
sequencing all the service nodes according to the ascending bandwidth from small to large;
and selecting service nodes in a preset range as the service nodes to be adjusted from the service nodes with the client connection number lower than a first threshold value.
Preferably, after the sending the information of each service node to be adjusted to the client, the method further includes:
counting the current adjusting time, and judging whether the current adjusting time reaches a preset timestamp;
if not, returning to the step of sequencing all the service nodes according to the ascending bandwidth from small to large for iterative adjustment until the current adjustment time reaches the preset timestamp.
Preferably, the node adjusting method further includes:
and when the current adjusting time reaches the preset timestamp, if the client connection number of the service node is lower than a first minimum threshold and the uplink bandwidth is lower than a second minimum threshold, sending a forced disconnection instruction to the client so as to disconnect the client from the service node.
Preferably, the node adjusting method further includes:
selecting a preset number of service nodes as connectable service nodes from the service nodes with the uplink bandwidth higher than the average uplink bandwidth, and acquiring corresponding connectable service node information;
and sending the connectable service node information to the client so as to establish connection between the client and the connectable service node.
In order to achieve the above object, the present invention provides another node adjusting method, including:
receiving service node information to be adjusted sent by a management end; the management terminal acquires service parameters of each service node corresponding to the target video stream and acquires the information of the service nodes to be adjusted according to a preset adjustment strategy;
and adjusting the corresponding service node to be adjusted according to the information of the service node to be adjusted.
Preferably, the adjusting the corresponding service node to be adjusted according to the information of the service node to be adjusted includes:
receiving connectable service node information issued by the management terminal;
establishing connection with the corresponding connectable service node according to the connectable service node information;
and disconnecting the service nodes to be adjusted.
Preferably, the node adjusting method further includes:
and when receiving a forced disconnection instruction sent by the management end, disconnecting the service node specified by the forced disconnection instruction and establishing connection with the edge server.
In order to achieve the above object, the present invention provides a node adjusting apparatus, which includes a memory and a processor, wherein the memory stores a node adjusting program operable on the processor, and the node adjusting program, when executed by the processor, implements the steps of the node adjusting method according to any one of the above.
To achieve the above object, the present invention provides a node adjustment system, including:
the service node determining module is used for determining a service node corresponding to the target video stream;
a service parameter obtaining module, configured to obtain a service parameter of each service node;
the service node information acquisition module to be adjusted is used for acquiring the information of each service node to be adjusted according to the service parameters and a preset adjustment strategy;
and the service node information to be adjusted issuing module is used for sending the information of each service node to be adjusted to the client so that the client adjusts the corresponding service node to be adjusted according to the information of the service node to be adjusted.
To achieve the above object, the present invention provides a computer-readable storage medium having a node adjustment program stored thereon, the node adjustment program being executable by one or more processors to implement the steps of the node adjustment method as described in any one of the above.
To achieve the above object, the present invention provides a computer program product comprising computer instructions which, when run on a computer, make the computer perform the steps of any of the above node adjustment methods.
The node adjusting method provided by the invention comprises the steps of determining a service node corresponding to a target video stream; acquiring service parameters of each service node; obtaining information of each service node to be adjusted according to the service parameters and a preset adjustment strategy; and sending the information of each service node to be adjusted to a client so that the client adjusts the corresponding service node to be adjusted according to the information of the service node to be adjusted. Therefore, according to the technical scheme provided by the invention, the appointed service parameters in the service nodes of the video stream are used as the adjustment indexes, and the node information of the service nodes needing to be adjusted in the video stream, namely the information of the service nodes to be adjusted, is determined according to the preset adjustment strategy aiming at the service parameters, so that the client dynamically adjusts the corresponding service nodes to be adjusted based on the information, and therefore, the corresponding SDKs are concentrated into fewer nodes aiming at a certain specific video stream, the efficient utilization of the service nodes in the system is realized, and the resource waste is avoided; meanwhile, due to the fact that resource release and node adjustment are conducted on the service node of the transferred SDK, service convenience is provided for other video streams, resource waste is further avoided, and the node utilization rate is maximized.
The node adjusting device, the node adjusting system, the computer readable storage medium, the computer program product, and the other node adjusting method provided by the present invention all have the above beneficial effects, and are not described herein again.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is a block diagram of a video stream access system in the prior art;
FIG. 2 is a schematic flow chart of a first embodiment of the present invention;
FIG. 3 is a schematic flow chart of a second embodiment of the present invention;
FIG. 4 is a schematic flow chart of a third embodiment of the present invention;
fig. 5 is a schematic internal structure diagram of a node adjustment apparatus according to a first embodiment of the disclosure;
fig. 6 is a schematic structural diagram of a fourth embodiment of the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The terms "first," "second," "third," "fourth," and the like in the description and in the claims of the present application and in the drawings described above, if any, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that the embodiments described herein may be practiced otherwise than as specifically illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
It should be noted that the description relating to "first", "second", etc. in the present invention is for descriptive purposes only and is not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In addition, technical solutions between various embodiments may be combined with each other, but must be realized by a person skilled in the art, and when the technical solutions are contradictory or cannot be realized, such a combination should not be considered to exist, and is not within the protection scope of the present invention.
The invention provides a node adjusting method.
Referring to fig. 2, fig. 2 is a schematic flow chart of the first embodiment of the present invention.
In a first embodiment, the method may comprise:
s10: determining a service node corresponding to the target video stream;
the shared computing is based on a block chain technology, resources such as idle bandwidth, storage and computing in a common household of the society are recorded and summarized through authorized intelligent hardware equipment, computing resources which are faster, easier to expand and more environment-friendly are provided through a cross-platform and low-power-consumption virtualization technology and an intelligent scheduling technology of near point-to-point access of nodes, in a live broadcast scene of shared computing, services such as transmission, playing, access and the like are generally provided for video streams through setting nodes, and the nodes are intelligent hardware deployed in the common household and have the advantage of low cost. For a certain specified video stream in a live broadcast scene, that is, the target video stream, the number of nodes providing services for the video stream is not unique, and this step is intended to achieve determination of the service nodes thereof, specifically, traversal is performed on the target video stream in the system network, that is, each service node corresponding to the target video stream can be determined.
S11: acquiring service parameters of each service node;
specifically, each service node may provide limited services for the video stream, and it is understood that the type of the service referred to herein is not unique, for example, the service may be an upstream bandwidth for transmitting the video stream, the number of SDKs for accessing the video stream, an operating memory for playing the video stream, a storage space for storing the video stream, and the like, and specifically, when a certain service exceeds a corresponding standard value during use, the service node may not provide a stable service for continuing the video stream. Therefore, the specified service parameter can be used as a basis for adjustment, and this step is intended to implement calculation on the current data of the specified service in the service node to obtain a corresponding service value, i.e., the service parameter, where the service parameter may be one or more of the services of the plurality of types.
S12: obtaining information of each service node to be adjusted according to the service parameters and a preset adjustment strategy;
specifically, a corresponding adjustment policy may be preset for the service parameter, so that after obtaining the service parameter corresponding to the target video stream, the service node to be adjusted, that is, the service node to be adjusted, may be determined in all the service nodes based on the preset adjustment policy, and then node information corresponding to each service node to be adjusted, that is, the service node information to be adjusted, may be obtained. The preset adjustment strategy is set by a technician according to actual conditions, and the specific content does not affect the implementation of the technical scheme, which is not limited in the present application.
Preferably, before the obtaining the information of each service node to be adjusted according to the preset adjustment policy, the method may further include: calculating and obtaining an average service parameter of each service node according to the service parameters; judging whether the average service parameter exceeds a preset threshold value; and if not, executing the step of obtaining the information of each service node to be adjusted according to the preset adjustment strategy.
In order to avoid unnecessary waste of running resources due to excessive adjustment, before node adjustment is performed, a judgment on whether node adjustment is required or not may be performed, specifically, an average service parameter of a service node is calculated according to a service parameter obtained based on S11, and if the average service parameter exceeds a corresponding preset threshold, it is indicated that loads of all service nodes of a target video stream are in a higher state, and even if node adjustment is performed continuously, it is difficult to improve the resource utilization rate of the service node, so node adjustment is not required any more; on the contrary, if the average service parameter does not exceed the preset threshold, it indicates that most of the service nodes of the target video stream are in a low load state, and the resource waste is high, so that node adjustment can be performed to concentrate the clients corresponding to the target video stream on fewer service nodes, and improve the resource utilization rate. The preset threshold may be set by a technician according to actual requirements, and the present application is not limited thereto, for example, global information may be referred to, and all video stream information with resources matched with bandwidth may be referred to.
Preferably, the obtaining of the service node information to be adjusted according to the preset adjustment policy may include: and taking the service node with the service parameter lower than the preset threshold value as a service node to be adjusted, and acquiring the information of the service node to be adjusted.
The preferred embodiment provides a specific preset adjustment policy, and specifically, a service node with a service parameter lower than a corresponding preset threshold value may be used as the service node to be adjusted, so as to obtain corresponding information of the service node to be adjusted. For example, when the uplink bandwidth is selected as the service parameter, the current uplink bandwidth of each service node may be counted, and the service node with the uplink bandwidth lower than the preset standard may be used as the service node to be adjusted.
Preferably, the service parameters may include the number of client connections and the upstream bandwidth.
The preferred embodiment provides specific types of service parameters, namely client connection number and upstream bandwidth. It can be understood that the selection of the service parameter type is only one implementation manner provided in the present application, and may be other types, which do not affect the implementation of the present technical solution.
Preferably, the taking the service node with the service parameter lower than the preset threshold as the service node to be adjusted may include: sequencing the service nodes according to the ascending bandwidth from small to large; and selecting the service nodes in a preset range as the service nodes to be adjusted from the service nodes with the client connection number lower than the first threshold value.
Specifically, when the uplink bandwidth and the number of client connections of the designated service node are used as service parameters, the corresponding preset adjustment policy may be set as follows: firstly, counting the uplink bandwidth and the client connection number of each service node in a target video stream, and arranging each service node according to the sequence of the uplink bandwidth from small to large; further, selecting a service node to be adjusted from service nodes with the client connection number lower than a first threshold value, wherein the first threshold value is a standard value corresponding to a preset client connection number and is equivalent to the preset threshold value; further, when the service nodes to be adjusted are selected, because the number of the service nodes in one video stream is large, in order to ensure the adjustment efficiency, the adjustment efficiency can be achieved by a small-batch multiple adjustment method, that is, the service nodes in a preset range are selected as the service nodes to be adjusted from the service nodes of which the connection number of the client is lower than the first threshold, wherein the specific value of the preset range can be set according to the actual situation. Therefore, the service nodes which occupy lower uplink bandwidth and have fewer client connections in all the service nodes are taken as the service nodes to be adjusted so as to adjust the nodes, and resource occupation and resource waste are effectively avoided.
S13: and sending the information of each service node to be adjusted to the client so that the client adjusts the corresponding service node to be adjusted according to the information of the service node to be adjusted.
In this step, to implement adjustment of the service node to be adjusted, after the service node to be adjusted is determined based on S12, the obtained information of each service node to be adjusted may be sent to the client, so that the client may determine the service node to be adjusted based on the information of the service node to be adjusted and effectively adjust the service node.
In the node adjustment method provided by this embodiment, a service parameter specified in a service node of a video stream is used as an adjustment index, and node information of the service node that needs to be adjusted in the video stream, that is, the information of the service node to be adjusted, is determined according to a preset adjustment policy for the service parameter, so that a client dynamically adjusts the corresponding service node to be adjusted based on the information, and thus, for a certain specific video stream, corresponding SDKs are concentrated into fewer nodes, thereby implementing efficient utilization of the service node in a system and avoiding resource waste; meanwhile, due to the fact that resource release and node adjustment are conducted on the service node of the transferred SDK, service convenience is provided for other video streams, resource waste is further avoided, and the node utilization rate is maximized.
The invention provides another node adjusting method.
Referring to fig. 3, fig. 3 is a schematic flow chart of a second embodiment of the present invention.
In a second embodiment, the method may comprise:
s20: determining a service node corresponding to the target video stream;
s21: acquiring the client connection number and uplink bandwidth of each service node;
s22: sequencing the service nodes according to the ascending bandwidth from small to large;
s23: selecting service nodes in a preset range as service nodes to be adjusted from the service nodes with the client connection number lower than a first threshold value, and acquiring information of the service nodes to be adjusted;
s24: sending the information of each service node to be adjusted to the client so that the client adjusts the corresponding service node to be adjusted according to the information of the service node to be adjusted;
s25: counting the current adjusting time, and judging whether the current adjusting time reaches a preset timestamp; if yes, executing S26, otherwise, returning to S22 until the current adjustment time reaches the preset time stamp.
The embodiment of the application provides a specific node adjustment method, namely, a service node is dynamically adjusted by taking a timestamp as a standard. Specifically, taking the uplink bandwidth and the number of client connections as examples, after one node adjustment is completed based on a corresponding adjustment policy, statistics may be performed on the current adjustment time, and if the current adjustment time has not reached the preset timestamp, the operation returns to S22 to reorder the service nodes, and readjustment of the service nodes is performed until an iteration termination condition is satisfied, that is, the current adjustment time reaches the preset timestamp, and the node adjustment is ended. Therefore, through multiple dynamic adjustment in a small range, the SDK of the target video stream is stably concentrated into fewer service nodes as much as possible, and the resource utilization of the nodes is maximized.
It should be noted that, in the process of each iterative adjustment, values of the corresponding preset ranges may be the same or different, and the implementation of the technical scheme is not affected. In addition, the specific value of the preset timestamp also does not affect the implementation of the technical scheme, and the application does not limit the specific value.
As a preferred embodiment, the node adjustment method further includes: when the current adjusting time reaches the preset timestamp, if the client connection number of the service node is lower than a first minimum threshold and the uplink bandwidth is lower than a second minimum threshold, a forced disconnection instruction is sent to the client so that the client is disconnected with the service node.
Specifically, when the current adjustment time reaches the preset timestamp and one iteration adjustment is completed, statistics of the uplink bandwidth and the number of client connections of each service node can be continuously performed, if a service node with a low number of client connections and a low uplink bandwidth still exists, in order to ensure effective utilization of node resources, a forced point quitting strategy can be executed on the part of service nodes, namely, clients connected to the part of service nodes are forced to quit, and the part of service nodes are recovered. It can be understood that the specific values of the first minimum threshold and the second minimum threshold may be set by user according to actual situations, and the implementation of the technical scheme is not affected.
As a preferred embodiment, the node adjustment method further includes: selecting a preset number of service nodes as connectable service nodes from the service nodes with the uplink bandwidth higher than the average uplink bandwidth, and acquiring corresponding connectable service node information; and sending the connectable service node information to the client so as to establish connection between the client and the connectable service node.
Specifically, the node adjustment aims at connecting the client to a small number of service nodes in a centralized manner so as to reduce the occupation of the service nodes, so that in the node adjustment process, before the client is disconnected from the corresponding node to be adjusted based on the information of the node to be adjusted, the connectable service node can be selected and connected with the connectable service node, and the service on the node to be adjusted is transferred to the connectable service node so as to avoid service interruption. Further, in a specific implementation process, an average uplink bandwidth is calculated and obtained based on the uplink bandwidth of each service node, a preset number of service nodes are selected from the service nodes with the uplink bandwidth higher than the average uplink bandwidth to serve as connectable service nodes, information of the connectable service nodes is obtained, and the information is sent to the client side so that the client side can establish connection with the corresponding connectable service nodes based on the information. The specific value of the preset number is set according to the actual situation, and the method is not limited in the application.
In addition, for the specific implementation process of S20-S24, reference may be made to the previous embodiment, and details of this embodiment are not described herein again.
The invention provides a node adjusting method.
Referring to fig. 4, fig. 4 is a schematic flow chart of a third embodiment of the present invention.
In a third embodiment, the method may comprise:
s30: receiving service node information to be adjusted sent by a management end; the service node information to be adjusted is obtained by the management terminal through obtaining the service parameters of each service node corresponding to the target video stream and according to a preset adjustment strategy;
s31: and adjusting the corresponding service node to be adjusted according to the information of the service node to be adjusted.
In this embodiment, a node adjustment method provided by the present application is introduced from a client perspective, and specifically, after obtaining service node information to be adjusted based on a preset adjustment policy, a management end may issue the service node information to be adjusted to the client, so that the client may adjust a corresponding service node to be adjusted according to each service node information to be adjusted.
Preferably, the adjusting the corresponding service node to be adjusted according to the service node information to be adjusted may include: receiving connectable service node information issued by a management end; establishing connection with the corresponding connectable service node according to the connectable service node information; and disconnecting the service nodes to be adjusted.
Specifically, after the client obtains the connectable service node information issued by the management terminal, the client can establish connection with the corresponding connectable service node based on the connectable service node information, and disconnect the information with the service node to be adjusted from the corresponding service node to be connected, thereby completing node adjustment.
Preferably, the node adjusting method may further include: and when receiving a forced disconnection instruction issued by the management end, disconnecting the service node specified by the forced disconnection instruction and establishing connection with the edge server.
Specifically, after the client disconnects from the designated service node based on the forced disconnection instruction issued by the management terminal, in order to ensure normal operation of the user service, the client may establish connection with the edge server, so as to transfer the service in the disconnected service node to the edge service for continuing operation, thereby ensuring user experience.
It can be seen that, in the node adjustment method provided in this embodiment, a service parameter specified in a service node of a video stream is used as an adjustment index, and node information of a service node that needs to be adjusted in the video stream, that is, the information of the service node to be adjusted, is determined according to a preset adjustment policy for the service parameter, so that a client dynamically adjusts the corresponding service node to be adjusted based on the information, and thus, for a certain specific video stream, corresponding SDKs are concentrated into fewer nodes, thereby implementing efficient utilization of the service nodes in a system and avoiding resource waste; meanwhile, due to the fact that resource release and node adjustment are conducted on the service node of the transferred SDK, service convenience is provided for other video streams, resource waste is further avoided, and the node utilization rate is maximized.
In another embodiment of the present invention, the method includes the following steps:
(1) data summarization:
in this embodiment, the SDK number (the number of client connections) and the uplink bandwidth are set as the specified resource indexes, i.e., the service parameters, where the uplink bandwidth is used as the main adjustment index, the SDK number is used as the auxiliary reference index, and meanwhile, according to the online situation, the upper threshold, i.e., the preset threshold, is set for the SDK number and the uplink bandwidth.
(2) Establishing and executing a node adjustment strategy:
firstly, determining a service node corresponding to each video stream, and acquiring the current SDK number and the current uplink bandwidth in each service node, thereby calculating and acquiring the total SDK number and the total uplink bandwidth of the corresponding video stream, and finally calculating and acquiring the average SDK number and the average uplink bandwidth corresponding to the video stream.
Further, whether the average SDK number of each video stream exceeds the corresponding preset threshold or not or whether the average uplink bandwidth exceeds the corresponding preset threshold or not is judged, if yes, node adjustment is stopped, and if not, node adjustment is started.
Furthermore, all service nodes of the video stream to be adjusted are arranged according to the ascending bandwidth from small to large, the ordered node queues are traversed, and respective corresponding adjustment strategies are formulated. Specifically, for any node queue, the node proportion of the current iterative adjustment is preset, namely the preset range is obtained, the service node with the current SDK number lower than the preset threshold value in the range is selected as the service node to be adjusted, and the service node with the current uplink bandwidth higher than the average uplink bandwidth is selected as the connectable service node, so that SDK transfer can be performed, node replacement is completed, and one iterative operation is completed; and stopping iteration by carrying out iteration for multiple times until the preset time stamp is met, and finishing node adjustment.
Further, after the iteration is finished, a forced point quitting strategy is adopted for service nodes with the current SDK number and the current uplink bandwidth both lower than the corresponding preset threshold value, and the SDK in the service nodes is forced to be disconnected. In addition, for the same SDK, a merging strategy can be adopted to transfer to the same service node.
(3) And (3) SDK transfer completion node adjustment:
after receiving the adjustment request, the SDK marks the service node to be adjusted connected with the SDK, then tries to connect with the connectable service node, and acquires the data information in the service node to judge whether the connectable service node meets the use requirement, if so, the marked service node is released. In addition, when a forced back point strategy needs to be executed, the service node directly connected with the service node can be disconnected, and further, the service node can be automatically connected to the edge server to ensure the normal operation of the service.
It can be seen that, in the node adjustment method provided in this embodiment, a service parameter specified in a service node of a video stream is used as an adjustment index, and node information of a service node that needs to be adjusted in the video stream, that is, the information of the service node to be adjusted, is determined according to a preset adjustment policy for the service parameter, so that a client dynamically adjusts the corresponding service node to be adjusted based on the information, and thus, for a certain specific video stream, corresponding SDKs are concentrated into fewer nodes, thereby implementing efficient utilization of the service nodes in a system and avoiding resource waste; meanwhile, due to the fact that resource release and node adjustment are conducted on the service node of the transferred SDK, service convenience is provided for other video streams, resource waste is further avoided, and the node utilization rate is maximized.
The invention provides a node adjusting device.
Referring to fig. 5, fig. 5 is a schematic diagram illustrating an internal structure of a node adjustment apparatus according to a first embodiment of the present invention.
In this embodiment, the node adjusting apparatus 1 may be a PC (Personal Computer), a smart phone, a tablet Computer, a palm Computer, a portable Computer, an intelligent router, an ore machine, a network storage device, or a terminal device.
The node adjustment apparatus 1 may include a memory 11, a processor 12, and a bus 13.
The memory 11 includes at least one type of readable storage medium, which includes a flash memory, a hard disk, a multimedia card, a card type memory (e.g., SD or DX memory, etc.), a magnetic memory, a magnetic disk, an optical disk, and the like. The memory 11 may in some embodiments be an internal storage unit of the node adjustment apparatus 1, such as a hard disk of the node adjustment apparatus 1. The memory 11 may also be an external storage device of the node adjustment apparatus 1 in other embodiments, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like, provided on the node adjustment apparatus 1. Further, the memory 11 may also include both an internal storage unit and an external storage device of the node adjustment apparatus 1. The memory 11 may be used not only to store application software installed in the node adjustment device 1 and various types of data, such as codes of a node adjustment program, but also to temporarily store data that has been output or is to be output.
The processor 12 may be a Central Processing Unit (CPU), a controller, a microcontroller, a microprocessor or other data Processing chip in some embodiments, and is used for executing program codes stored in the memory 11 or Processing data, such as executing node adjustment programs.
The bus 13 may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown in FIG. 5, but this is not intended to represent only one bus or type of bus.
Further, the node adjustment apparatus 1 may further include a network interface, which may optionally include a wired interface and/or a wireless interface (such as a WI-FI interface, a bluetooth interface, etc.), and is generally used to establish a communication connection between the node adjustment apparatus 1 and other electronic devices.
Optionally, the node adjusting apparatus 1 may further include a user interface, the user interface may include a Display (Display), an input unit such as a Keyboard (Keyboard), and the optional user interface may further include a standard wired interface and a wireless interface. Alternatively, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an OLED (Organic Light-Emitting Diode) touch device, or the like. The display, which may also be referred to as a display screen or display unit, is suitable for displaying information processed in the node adjustment apparatus 1 and for displaying a visual user interface.
Fig. 5 only shows the node adjustment device 1 with the components 11-13 and the node adjustment procedure, it being understood by a person skilled in the art that the structure shown in fig. 5 does not constitute a limitation of the node adjustment device 1, and may comprise fewer or more components than shown, or a combination of certain components, or a different arrangement of components.
The invention provides a node adjusting system.
Referring to fig. 6, fig. 6 is a block diagram illustrating a fourth embodiment of the present invention.
In a fourth embodiment, the node adjustment system may comprise:
a service node determining module 10, configured to determine a service node corresponding to a target video stream;
a service parameter obtaining module 20, configured to obtain service parameters of each service node;
the service node information to be adjusted obtaining module 30 is configured to obtain, according to the service parameter and according to a preset adjustment policy, information of each service node to be adjusted;
and the service node information to be adjusted issuing module 40 is used for sending the information of each service node to be adjusted to the client, so that the client adjusts the corresponding service node to be adjusted according to the information of the service node to be adjusted.
For the introduction of the system provided by the present application, please refer to the above method embodiment, which is not described herein again.
Embodiments of the present invention also provide a computer-readable storage medium, on which a node adjustment program is stored, where the node adjustment program is executable by one or more processors to implement the steps of the node adjustment method according to any one of the above embodiments.
Embodiments of the present invention further provide a computer program product, where the computer program product includes computer instructions, which when run on a computer, enable the computer to perform the steps of the node adjustment method according to any of the above embodiments.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product.
The computer program product includes one or more computer instructions. When loaded and executed on a computer, cause the processes or functions described in accordance with the embodiments of the invention to occur, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, from one website site, computer, server, or data center to another website site, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that a computer can store or a data storage device, such as a server, a data center, etc., that is integrated with one or more available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., Solid State Disk (SSD)), among others.
It can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described apparatus and system may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in this application, it should be understood that the disclosed apparatus, system, and method may be implemented in other ways. For example, the above-described system embodiments are merely illustrative, and for example, the division of the units is only one logical functional division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application may be substantially implemented or contributed to by the prior art, or all or part of the technical solution may be embodied in a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
It should be noted that the above-mentioned numbers of the embodiments of the present invention are merely for description, and do not represent the merits of the embodiments. And the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, apparatus, article, or method that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, apparatus, article, or method. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, apparatus, article, or method that includes the element.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (15)

1. A node adjustment method, the method comprising:
determining a service node corresponding to the target video stream;
acquiring service parameters of each service node;
obtaining information of each service node to be adjusted according to the service parameters and a preset adjustment strategy;
and sending the information of each service node to be adjusted to a client so that the client adjusts the corresponding service node to be adjusted according to the information of the service node to be adjusted.
2. The method as claimed in claim 1, wherein before obtaining the information of each service node to be adjusted according to the preset adjustment policy, the method further comprises:
calculating and obtaining an average service parameter of each service node according to the service parameters;
judging whether the average service parameter exceeds a preset threshold value;
and if not, executing the step of obtaining the information of each service node to be adjusted according to the preset adjustment strategy.
3. The method as claimed in claim 2, wherein said obtaining the service node information to be adjusted according to the preset adjustment policy comprises:
and taking the service node with the service parameter lower than the preset threshold value as the service node to be adjusted, and acquiring the information of the service node to be adjusted.
4. A method according to any one of claims 1 to 3, wherein the service parameters include the number of client connections and the upstream bandwidth.
5. The method of claim 4, wherein the using the service node with the service parameter lower than the preset threshold as the service node to be adjusted comprises:
sequencing all the service nodes according to the ascending bandwidth from small to large;
and selecting service nodes in a preset range as the service nodes to be adjusted from the service nodes with the client connection number lower than a first threshold value.
6. The method of claim 5, wherein after sending each piece of service node information to be adjusted to the client, the method further comprises:
counting the current adjusting time, and judging whether the current adjusting time reaches a preset timestamp;
if not, returning to the step of sequencing all the service nodes according to the ascending bandwidth from small to large for iterative adjustment until the current adjustment time reaches the preset timestamp.
7. The method of claim 6, further comprising:
and when the current adjusting time reaches the preset timestamp, if the client connection number of the service node is lower than a first minimum threshold and the uplink bandwidth is lower than a second minimum threshold, sending a forced disconnection instruction to the client so as to disconnect the client from the service node.
8. The method of claim 7, further comprising:
selecting a preset number of service nodes as connectable service nodes from the service nodes with the uplink bandwidth higher than the average uplink bandwidth, and acquiring corresponding connectable service node information;
and sending the connectable service node information to the client so as to establish connection between the client and the connectable service node.
9. A node adjustment method, comprising:
receiving service node information to be adjusted sent by a management end; the management terminal acquires service parameters of each service node corresponding to the target video stream and acquires the information of the service nodes to be adjusted according to a preset adjustment strategy;
and adjusting the corresponding service node to be adjusted according to the information of the service node to be adjusted.
10. The method of claim 9, wherein the adjusting the corresponding service node to be adjusted according to the service node information to be adjusted comprises:
receiving connectable service node information issued by the management terminal;
establishing connection with the corresponding connectable service node according to the connectable service node information;
and disconnecting the service nodes to be adjusted.
11. The method of claim 10, further comprising:
and when receiving a forced disconnection instruction sent by the management end, disconnecting the service node specified by the forced disconnection instruction and establishing connection with the edge server.
12. A node adjustment apparatus, characterized in that the apparatus comprises a memory and a processor, the memory having stored thereon a node adjustment program operable on the processor, the node adjustment program, when executed by the processor, implementing the steps of the node adjustment method according to any one of claims 1 to 8 or the steps of the node adjustment method according to any one of claims 9 to 11.
13. A node adjustment system, the system comprising:
the service node determining module is used for determining a service node corresponding to the target video stream;
a service parameter obtaining module, configured to obtain a service parameter of each service node;
the service node information acquisition module to be adjusted is used for acquiring the information of each service node to be adjusted according to the service parameters and a preset adjustment strategy;
and the service node information to be adjusted issuing module is used for sending the information of each service node to be adjusted to the client so that the client adjusts the corresponding service node to be adjusted according to the information of the service node to be adjusted.
14. A computer-readable storage medium having stored thereon a node adjustment program executable by one or more processors to perform the steps of the node adjustment method of any one of claims 1 to 8 or the steps of the node adjustment method of any one of claims 9 to 11.
15. A computer program product comprising computer instructions which, when run on a computer, cause the computer to perform the steps of the node adjustment method of any one of claims 1 to 8 or the steps of the node adjustment method of any one of claims 9 to 11.
CN201911136326.6A 2019-11-19 2019-11-19 Node adjusting method and related equipment thereof Pending CN110769272A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911136326.6A CN110769272A (en) 2019-11-19 2019-11-19 Node adjusting method and related equipment thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911136326.6A CN110769272A (en) 2019-11-19 2019-11-19 Node adjusting method and related equipment thereof

Publications (1)

Publication Number Publication Date
CN110769272A true CN110769272A (en) 2020-02-07

Family

ID=69338541

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911136326.6A Pending CN110769272A (en) 2019-11-19 2019-11-19 Node adjusting method and related equipment thereof

Country Status (1)

Country Link
CN (1) CN110769272A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111970544A (en) * 2020-08-31 2020-11-20 咪咕视讯科技有限公司 Downlink flow scheduling policy adjustment method, server and readable storage medium
CN115102958A (en) * 2022-06-17 2022-09-23 深圳市网心科技有限公司 Server node scheduling method, device, equipment and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101510223A (en) * 2009-04-03 2009-08-19 成都市华为赛门铁克科技有限公司 Data processing method and system
CN102932413A (en) * 2012-09-26 2013-02-13 华为软件技术有限公司 Computing resource allocation method, cloud management platform node and computing resource cluster
CN107301092A (en) * 2016-04-15 2017-10-27 中移(苏州)软件技术有限公司 A kind of cloud computing resource pool energy saving of system method, apparatus and system
CN107729514A (en) * 2017-10-25 2018-02-23 郑州云海信息技术有限公司 A kind of Replica placement node based on hadoop determines method and device
CN108369524A (en) * 2015-12-21 2018-08-03 英特尔公司 The technology of collaboration migration for virtual machine
CN109413147A (en) * 2018-09-13 2019-03-01 深圳壹账通智能科技有限公司 Management method, device, equipment and the computer readable storage medium of service node
CN110290009A (en) * 2019-07-02 2019-09-27 深圳市网心科技有限公司 A kind of data dispatching method, device and computer readable storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101510223A (en) * 2009-04-03 2009-08-19 成都市华为赛门铁克科技有限公司 Data processing method and system
CN102932413A (en) * 2012-09-26 2013-02-13 华为软件技术有限公司 Computing resource allocation method, cloud management platform node and computing resource cluster
CN108369524A (en) * 2015-12-21 2018-08-03 英特尔公司 The technology of collaboration migration for virtual machine
CN107301092A (en) * 2016-04-15 2017-10-27 中移(苏州)软件技术有限公司 A kind of cloud computing resource pool energy saving of system method, apparatus and system
CN107729514A (en) * 2017-10-25 2018-02-23 郑州云海信息技术有限公司 A kind of Replica placement node based on hadoop determines method and device
CN109413147A (en) * 2018-09-13 2019-03-01 深圳壹账通智能科技有限公司 Management method, device, equipment and the computer readable storage medium of service node
CN110290009A (en) * 2019-07-02 2019-09-27 深圳市网心科技有限公司 A kind of data dispatching method, device and computer readable storage medium

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111970544A (en) * 2020-08-31 2020-11-20 咪咕视讯科技有限公司 Downlink flow scheduling policy adjustment method, server and readable storage medium
CN111970544B (en) * 2020-08-31 2022-10-18 咪咕视讯科技有限公司 Downlink flow scheduling policy adjusting method, server and readable storage medium
CN115102958A (en) * 2022-06-17 2022-09-23 深圳市网心科技有限公司 Server node scheduling method, device, equipment and storage medium

Similar Documents

Publication Publication Date Title
CN109873868A (en) A kind of computing capability sharing method, system and relevant device
CN111131058B (en) Access quantity control method and device
US10945091B2 (en) Methods and systems for communication management
CN110858843B (en) Service request processing method and device and computer readable storage medium
CN110602156A (en) Load balancing scheduling method and device
CN110290399B (en) Data distribution method, system, device and computer readable storage medium
CN109495542B (en) Load distribution method based on performance monitoring and terminal equipment
WO2017143981A1 (en) Service processing
CN103532873B (en) flow control policy applied to distributed file system
CN109960575B (en) Computing capacity sharing method, system and related equipment
CN109756417A (en) Offline message distribution method, server and storage medium
CN105337901A (en) Router intelligent bandwidth allocation method and device
CN110769272A (en) Node adjusting method and related equipment thereof
CN110995866B (en) Node scheduling method, node scheduling device, scheduling server and storage medium
CN109617959A (en) A kind of data load method, device, system and storage medium
CN111131505A (en) Data transmission method, equipment, system, device and medium based on P2P network
CN109618174A (en) A kind of live data transmission method, device, system and storage medium
CN112395075A (en) Resource processing method and device and resource scheduling system
US9363199B1 (en) Bandwidth management for data services operating on a local network
CN110035128B (en) Live broadcast scheduling method and device, live broadcast system and storage medium
CN110336888B (en) Server distribution method, device, system and medium
CN110290009B (en) Data scheduling method and device and computer readable storage medium
US20170013083A1 (en) Data processing method and apparatus used for terminal application
WO2022062981A1 (en) Resource scheduling method and system, electronic device, and computer-readable storage medium
US11709707B2 (en) Low latency distributed counters for quotas

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20200207

RJ01 Rejection of invention patent application after publication