CN110336888B - Server distribution method, device, system and medium - Google Patents

Server distribution method, device, system and medium Download PDF

Info

Publication number
CN110336888B
CN110336888B CN201910630360.2A CN201910630360A CN110336888B CN 110336888 B CN110336888 B CN 110336888B CN 201910630360 A CN201910630360 A CN 201910630360A CN 110336888 B CN110336888 B CN 110336888B
Authority
CN
China
Prior art keywords
edge server
node
server
low
threshold
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.)
Active
Application number
CN201910630360.2A
Other languages
Chinese (zh)
Other versions
CN110336888A (en
Inventor
张英杰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
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 CN201910630360.2A priority Critical patent/CN110336888B/en
Publication of CN110336888A publication Critical patent/CN110336888A/en
Application granted granted Critical
Publication of CN110336888B publication Critical patent/CN110336888B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1001Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
    • H04L67/1004Server selection for load balancing
    • H04L67/1008Server selection for load balancing based on parameters of servers, e.g. available memory or workload
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1001Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
    • H04L67/1004Server selection for load balancing
    • H04L67/101Server selection for load balancing based on network conditions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1001Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
    • H04L67/1029Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers using data related to the state of servers by a load balancer

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Hardware Design (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer And Data Communications (AREA)

Abstract

The invention discloses a server distribution method, a device, a system and a medium. The method comprises the following steps: acquiring network parameters and hardware parameters of an edge server, and acquiring service feedback indexes of the edge server, which are transmitted by a low-cost node and a client node; and selectively distributing the access right of the edge server to the low-cost node and/or the client node according to preset conditions met by the network parameters, the hardware parameters and the service feedback indexes. The method relatively improves the comprehensiveness of the reference factors when the edge server is distributed, thereby further ensuring the overall efficiency and stability when the edge server provides data service. In addition, the invention also provides a server distribution device, a system and a medium, and the beneficial effects are as above.

Description

Server distribution method, device, system and medium
Technical Field
The present invention relates to the field of computer communications, and in particular, to a server allocation method, apparatus, system, and medium.
Background
Cloud Computing (Cloud Computing) is an augmentation, usage and interaction model of internet-based related services, and generally involves providing dynamically extensible and often virtualized resources through the internet, essentially by controlling the cooperative work of a large number of common compute nodes in a network, performing block processing on complete data processing tasks,
with the continuous development of cloud computing technology, the method is gradually applied to the current shared computing scene. Fig. 1 is a schematic diagram of a device topology in a current shared computing scenario. Referring to fig. 1, a current shared computing scenario often includes a client node, a low-cost node, an edge server node, and a third-party service node constructed based on a cloud computing technology, where based on an equipment topology structure in the current shared computing scenario, the edge server node directly pulls a data stream in the third-party service node, and then a user may directly obtain the data stream through the edge server node through the client node deployed with an application program (SDK), or may indirectly obtain the data stream in the edge server node based on the low-cost node.
At present, service distribution modes of edge servers to client nodes and low-cost nodes are selectively regulated and controlled based on bandwidth use conditions of the edge server nodes, but because the edge server nodes are devices directly communicating with third-party service nodes, the working stability of the edge servers directly influences normal acquisition of data streams by the client nodes and the low-cost nodes, and it is difficult to ensure the overall efficiency and stability of a process of acquiring the data streams by a user through the client nodes in a shared computing scene.
Therefore, it is a problem to be solved by those skilled in the art to provide a server allocation method to relatively improve the comprehensiveness of the factors referred to when allocating an edge server, thereby further ensuring the overall efficiency and stability when the edge server provides data services.
Disclosure of Invention
The invention aims to provide a server distribution method, a device, a system and a medium, which are used for relatively improving the comprehensiveness of reference factors when distributing edge servers, so that the overall efficiency and stability of the edge servers in providing data services are further ensured.
In order to solve the above technical problem, the present invention provides a server allocation method, including:
acquiring network parameters and hardware parameters of an edge server, and acquiring service feedback indexes of the edge server, which are transmitted by a low-cost node and a client node;
and selectively distributing the access right of the edge server to the low-cost node and/or the client node according to preset conditions met by the network parameters, the hardware parameters and the service feedback indexes.
Preferably, the network parameters include bandwidth usage;
correspondingly, before the access right of the edge server is selectively distributed to the low-cost node and/or the client node according to the preset conditions met by the network parameters, the hardware parameters and the service feedback indexes, the method further comprises the following steps:
on the premise that the service feedback index meets the index condition, judging whether the bandwidth utilization rate is less than a bandwidth warning threshold value;
if yes, the step of selectively distributing the access right of the edge server to the low-cost node and/or the client node according to preset conditions met by the network parameters, the hardware parameters and the service feedback indexes is carried out.
Preferably, selectively allocating the access right of the edge server to the low-cost node and/or the client node according to a preset condition that the network parameter, the hardware parameter, and the service feedback index satisfy includes:
when the value of the bandwidth utilization rate is smaller than the lowest threshold value of the bandwidth, the access right of the edge server is distributed to the low-cost node and the client node at the same time;
when the value of the bandwidth utilization rate is greater than or equal to the lowest bandwidth threshold and less than the free allocation threshold, judging whether an optimal edge server exists, wherein the equipment communication cost of the optimal edge server is lower than that of the edge server, and the working state of the optimal edge server is consistent with that of the edge server;
if so, the access right of the preferred edge server is distributed to the low-cost node and the client node at the same time;
otherwise, the access right of the edge server is distributed to the low-cost node and the client node at the same time; wherein the free allocation threshold is less than the bandwidth alert threshold;
and when the value of the bandwidth utilization rate is greater than or equal to the free allocation threshold and less than the bandwidth alert threshold, or the value of the hardware parameter is greater than the hardware alert threshold, allocating the access right of the edge server to the low-cost node only.
Preferably, when the result of determining whether the bandwidth usage rate is less than the bandwidth alert threshold is no, the method further includes:
when the bandwidth utilization rate reaches a bandwidth exhaustion threshold or the value of the hardware parameter reaches a hardware exhaustion threshold, stopping distributing the access right of the edge server to the low-cost node and the client node; the bandwidth exhaustion threshold is greater than the bandwidth alert threshold, and the hardware exhaustion threshold is greater than the hardware alert threshold.
Preferably, the hardware parameters include CPU utilization and memory utilization.
Preferably, the service feedback indicator comprises a connection power and a response delay;
correspondingly, the service feedback index meets the index condition, which comprises the following steps:
when the connection success rate is greater than a preset success rate threshold and/or the response delay is greater than a preset delay threshold.
Preferably, before selectively allocating the access right of the edge server to the low-cost node and/or the client node according to the preset condition met by the network parameter, the hardware parameter and the service feedback index, the method further comprises:
acquiring the number of client nodes accessed by an edge server;
correspondingly, according to preset conditions met by the network parameters, the hardware parameters and the service feedback indexes, selectively allocating the access right of the edge server to the low-cost node and/or the client node, including:
and when the number of the client nodes is smaller than a preset access threshold value, selectively allocating the access right of the edge server to the low-cost node and/or the client node according to preset conditions met by the network parameters, the hardware parameters and the service feedback indexes.
Preferably, the selectively assigning the access right of the edge server to the low-cost node and/or the client node comprises:
and selectively distributing the access right of the edge server to the low-cost node and/or the client node by sending the access address of the edge server.
In addition, the invention also provides a server distribution device, which comprises a memory, a processor and a bus, wherein the memory stores a server distribution program which can be transmitted to the processor by the bus and run on the processor, and the server distribution program realizes the server distribution method when being executed by the processor.
Preferably, the device is a node constituting a CDN network or a blockchain network.
In addition, the present invention also provides a server distribution system, comprising:
the system comprises a parameter acquisition module, a service feedback module and a service feedback module, wherein the parameter acquisition module is used for acquiring network parameters and hardware parameters of an edge server and acquiring service feedback indexes of the edge server transmitted by a low-cost node and a client node;
and the server distribution module is used for selectively distributing the access right of the edge server to the low-cost node and/or the client node according to preset conditions met by the network parameters, the hardware parameters and the service feedback indexes.
Furthermore, the present invention also provides a computer-readable storage medium having a server allocation program stored thereon, the server allocation program being executable by one or more processors to implement the server allocation method as described above.
The server allocation method provided by the invention comprises the steps of firstly obtaining the network parameters and the hardware parameters of the edge server, obtaining the service feedback indexes of the edge server transmitted by the low-cost nodes and the client nodes, and further selectively allocating the access rights of the edge server to the low-cost nodes and/or the client nodes according to the preset conditions met by the service feedback indexes, the network parameters and the hardware parameters. Since it is considered that the edge server occupies the hardware resource of the edge server itself when providing data to the low-cost node and/or the client node, therefore, the method takes the network parameters and the hardware parameters of the edge server and the service conditions of the edge server at the low-cost node and the client node as the restriction factors for distributing the distribution mode of the edge server, and further selectively allocating the edge server to the low-cost node and/or the client node for providing the data stream of the third-party service node to the low-cost node and/or the client node, the method relatively improves the comprehensiveness of the reference factors when allocating the edge server, therefore, the overall efficiency and stability of the edge server in providing data services are further ensured. In addition, the invention also provides a server distribution device, a system and a medium, and the beneficial effects are as above.
Drawings
In order to illustrate the embodiments of the present invention more clearly, the drawings that are needed in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and that other drawings can be obtained by those skilled in the art without inventive effort.
FIG. 1 is a schematic diagram of a device topology in a current shared computing scenario;
fig. 2 is a flowchart of a server allocation method according to an embodiment of the present invention;
fig. 3 is a flowchart of another server allocation method according to an embodiment of the present invention;
fig. 4 is a structural diagram of a server distribution device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present invention without any creative work belong to the protection scope of the present invention.
At present, service distribution modes of edge servers to client nodes and low-cost nodes are selectively regulated and controlled based on bandwidth use conditions of the edge server nodes, but because the edge server nodes are devices directly communicating with third-party service nodes, the working stability of the edge servers directly influences normal acquisition of data streams by the client nodes and the low-cost nodes, and it is difficult to ensure the overall efficiency and stability of a process of acquiring the data streams by a user through the client nodes in a shared computing scene.
The core of the invention is to provide a server allocation method to relatively improve the comprehensiveness of the factors referred to when the edge server is allocated, thereby further ensuring the overall efficiency and stability when the edge server provides data service. Another core of the invention is to provide a server distribution device, system and medium.
In order that those skilled in the art will better understand the disclosure, the invention will be described in further detail with reference to the accompanying drawings and specific embodiments.
Fig. 2 is a flowchart of a server allocation method according to an embodiment of the present invention. Referring to fig. 2, the specific steps of the server allocation method include:
step S10: the method comprises the steps of obtaining network parameters and hardware parameters of the edge server, and obtaining service feedback indexes of the edge server, which are transmitted by the low-cost nodes and the client nodes.
It should be noted that, the allocation control node first obtains a network parameter and a hardware parameter of the edge server, where the network parameter refers to relevant working state data involved when the edge server performs network data communication with an external device, and the hardware parameter refers to relevant working state data generated by occupying hardware resources when the edge server performs network data communication with the external device or performs a data processing task by itself. The execution main body of the method is the distribution control node, namely the distribution control node can carry out data communication with the edge server, and further can obtain the network parameters and the hardware parameters of the edge server.
In addition, it should be noted that, the method is based on a technical solution in a shared computing scenario, in the shared computing scenario, an edge server node directly pulls a data stream in a third-party service node, and then can provide the pulled data stream to a low-cost node or a client node, where the low-cost node refers to a node device established between the client node and the edge server, for example, in an actual application, the low-cost node may specifically be an NAS device, and when the NAS device can access and acquire the data stream in the edge server, the client node may indirectly acquire the data stream in the edge server through the NAS device, and the client node may also directly access the edge server and acquire the data stream in the edge server.
Step S11: and selectively distributing the access right of the edge server to the low-cost node and/or the client node according to preset conditions met by the network parameters, the hardware parameters and the service feedback indexes.
It should be noted that the key point of this step is that the allocation control node performs comprehensive analysis on the network parameters and the hardware parameters of the edge server, and further selectively allocates the access right of the edge server to the low-cost node and/or the client node according to the preset condition that the network parameters and the hardware parameters satisfy. It should be emphasized that the present embodiment focuses on comprehensively analyzing the network parameters and the hardware parameters, and on the basis of analyzing the network parameters, the situation that the edge server may occupy the hardware resources when consuming the network resources to provide services to the external device is considered, so that in this step, the current network parameters and hardware parameters of the edge server are used as the basis for allocating the edge server to the low-cost node and the client node, thereby relatively improving the comprehensiveness of the factors considered when allocating the edge server.
The server allocation method provided by the invention comprises the steps of firstly obtaining the network parameters and the hardware parameters of the edge server, obtaining the service feedback indexes of the edge server transmitted by the low-cost nodes and the client nodes, and further selectively allocating the access rights of the edge server to the low-cost nodes and/or the client nodes according to the preset conditions met by the service feedback indexes, the network parameters and the hardware parameters. Since it is considered that the edge server occupies the hardware resource of the edge server itself when providing data to the low-cost node and/or the client node, therefore, the method takes the network parameters and the hardware parameters of the edge server and the service conditions of the edge server at the low-cost node and the client node as the restriction factors for distributing the distribution mode of the edge server, and further selectively allocating the edge server to the low-cost node and/or the client node for providing the data stream of the third-party service node to the low-cost node and/or the client node, the method relatively improves the comprehensiveness of the reference factors when allocating the edge server, therefore, the overall efficiency and stability of the edge server in providing data services are further ensured.
On the basis of the above embodiment, as a preferred implementation, the network parameter includes a bandwidth usage rate;
correspondingly, before selectively allocating the access right of the edge server to the low-cost node and/or the client node according to the preset conditions met by the network parameters, the hardware parameters and the service feedback indexes, the method further comprises the following steps:
on the premise that the service feedback index meets the index condition, judging whether the bandwidth utilization rate is smaller than a bandwidth alert threshold value;
if yes, the step of selectively distributing the access right of the edge server to the low-cost node and/or the client node according to preset conditions met by the network parameters, the hardware parameters and the service feedback indexes is carried out.
It should be noted that the important point in the present embodiment is to determine whether to assign the access right of the edge server by determining whether the bandwidth usage rate of the edge server is smaller than the bandwidth guard threshold. The purpose of the bandwidth alert threshold is to define whether the bandwidth of the current edge server is in an alert state with a higher occupied degree, and the specific value of the bandwidth alert threshold should be determined according to the actual network communication performance of the edge server, which is not specifically limited herein. The embodiment relatively improves the overall reliability of server allocation.
On the basis of the above embodiments, the present invention also provides the following series of preferred embodiments.
Fig. 3 is a flowchart of another server allocation method according to an embodiment of the present invention. Referring to fig. 3, the specific steps of the server allocation method include:
step S20: the method comprises the steps of obtaining network parameters and hardware parameters of the edge server, wherein the network parameters and the hardware parameters comprise bandwidth utilization rate, and obtaining service feedback indexes of the edge server, which are transmitted by the low-cost nodes and the client nodes.
In this embodiment, the network parameters acquired from the edge server at least include a bandwidth utilization rate, where the bandwidth represents data transmission capability during signal transmission, that is, identifies the amount of data passing through a link in a unit time, and since the link resource of the edge server is often limited, the total amount of the bandwidth is also constant, and the bandwidth utilization rate represents the occupied degree of the entire bandwidth of the edge server. In addition, the higher the bandwidth utilization rate is, the lower the reliability of the network state of the edge server is, that is, the lower the capability of the edge server to transmit data with the external device is.
Step S21: and when the value of the bandwidth utilization rate is smaller than the lowest bandwidth threshold value, the value of the hardware parameter is smaller than the hardware warning threshold value, and the service feedback index meets the index condition, the access right of the edge server is simultaneously distributed to the low-cost node and the client node.
Wherein the bandwidth minimum threshold is less than the bandwidth alert threshold.
Based on the above explanation of the bandwidth utilization, when the value of the bandwidth utilization is smaller than the lowest threshold of the bandwidth, it indicates that the current bandwidth utilization of the edge server is relatively low, and the edge server has a higher network communication performance. When the bandwidth of the edge server and the occupied degree of the hardware are both small, the edge server is indicated to have relatively sufficient network resources and hardware resources, so that the access right of the edge server is simultaneously allocated to the low-cost node and the client node in the situation, and the effective utilization of the whole resources of the edge server can be relatively ensured.
Step S22: and when the value of the bandwidth utilization rate is greater than or equal to the lowest bandwidth threshold and less than the free allocation threshold, the value of the hardware parameter is less than the hardware warning threshold, and the service feedback index meets the index condition, judging whether a preferred edge server with the equipment communication cost lower than that of the edge server and the working state consistent with that of the edge server exists, if so, executing a step S23, otherwise, executing a step S24.
Step S23: the access rights of the preferred edge server are assigned to both the low cost node and the client node.
Step S24: the access rights of the edge server are assigned to both the low cost node and the client node.
Wherein the free allocation threshold is less than the bandwidth alert threshold.
It should be noted that, when the value of the bandwidth utilization reaches or exceeds the range of the bandwidth minimum threshold, that is, is greater than or equal to the bandwidth minimum threshold and is less than the free allocation threshold, and the value of the hardware parameter is less than the hardware alert threshold, it indicates that the current hardware occupancy degree of the edge server is smaller, and the bandwidth is already occupied to a certain degree but has not yet reached a higher occupancy degree. When the bandwidth utilization value of the preferred edge server is equal to or larger than the lowest bandwidth threshold and smaller than the free allocation threshold, the value of the hardware parameter is smaller than the hardware warning threshold, and the equipment communication cost is lower than the preferred edge server of the edge server, the access right of the preferred edge server is allocated to the low-cost node and the client node at the same time, and on the contrary, if the preferred edge server does not exist, the access right of the edge server is allocated to the low-cost node and the client node at the same time, so that the overall cost of providing data service by the edge server in the network system is relatively reduced.
Step S25: and on the premise that the service feedback index meets the index condition, when the value of the bandwidth utilization rate is greater than or equal to the free allocation threshold and less than the bandwidth alert threshold, or the value of the hardware parameter is greater than the hardware alert threshold, allocating the access right of the edge server to the low-cost node only.
It should be noted that, when the value of the bandwidth utilization rate is greater than or equal to the free allocation threshold and less than the bandwidth alert threshold, it indicates that the current network resource occupation for the edge server is close to the alert condition; and when the value of the hardware parameter is greater than the hardware warning threshold value, the occupied degree of the hardware resource of the edge server is relatively large. In order to relatively ensure that the limited resources of the edge server can serve more client nodes, when either of the two cases is satisfied, the embodiment allocates the access right of the edge server to only the low-cost node, and since the client node can still indirectly access the data stream in the edge server through the low-cost node, after allocating the access right of the edge server to the low-cost node, the data stream can be provided to the client node through the low-cost node, and while relatively ensuring that the limited resources of the edge server can serve more client nodes, the client node is relatively prevented from further occupying the available resources of the edge server.
Step S26: and on the premise that the service feedback index meets the index condition, when the bandwidth utilization rate reaches a bandwidth exhaustion threshold value or the value of the hardware parameter reaches a hardware exhaustion threshold value, stopping allocating the access right of the edge server to the low-cost node and the client node.
The bandwidth exhaustion threshold is greater than the bandwidth alert threshold, and the hardware exhaustion threshold is greater than the hardware alert threshold.
It should be noted that, when the bandwidth utilization reaches the bandwidth exhaustion threshold, or the value of the hardware parameter reaches the hardware exhaustion threshold, in order to avoid the stability of the edge server being affected by the running-in and the downtime of the edge server, the access right of the edge server is stopped being allocated to the low-cost node and the client node in this embodiment.
In addition, it should be emphasized that, in the present embodiment, in determining the bandwidth utilization of the network parameter, a bandwidth minimum threshold, a free allocation threshold, a bandwidth alert threshold, and a bandwidth exhaustion threshold are respectively adopted, wherein the size relationship among the various thresholds is: the bandwidth minimum threshold value < the free allocation threshold value < the bandwidth alert threshold value < the bandwidth exhaustion threshold value, and the various threshold values measure the degree of the bandwidth utilization rate, so the specific values are determined according to the actual situation, for example, the bandwidth minimum threshold value is 20%, the free allocation threshold value is 85%, the bandwidth alert threshold value is 90%, and the bandwidth exhaustion threshold value is 95%; the aspect of judging the hardware parameter is based on a hardware alert threshold and a hardware exhaustion threshold, and the magnitude relation of the two is as follows: in the technology, as the hardware parameters can be further refined, the hardware alarm threshold and the hardware exhaustion threshold are corresponding to each specific hardware parameter.
In the above embodiment, as a preferred implementation, the hardware parameters include CPU utilization and memory utilization.
Since the CPU and the memory are important hardware factors that restrict the data processing efficiency of the edge server, the hardware parameters of the embodiment include the CPU utilization and the memory utilization, and thus the allocation accuracy of the edge server can be relatively accurately improved based on the CPU utilization and the memory utilization.
In a specific application scenario, the hardware alert thresholds of the CPU utilization rate and the memory utilization rate may be 85% respectively, and the hardware exhaustion threshold may be 95% respectively.
As a preferred embodiment, the service feedback indicators include connection power and response delay;
correspondingly, the service feedback index meets the index condition, which comprises the following steps:
when the connection success rate is greater than a preset success rate threshold and/or the response delay is greater than a preset delay threshold.
It should be noted that the network parameters of this embodiment include a connection success rate and a response delay, where the connection success rate represents a probability that a low-cost node or a client normally accesses the edge server when the edge server responds to the access of the low-cost node or the client node, and the response delay represents that the response of the edge server to the low-cost node or the client node is time-consuming after the low-cost node or the client node accesses the edge server. When the connection success rate is greater than the preset success rate threshold or the response delay is greater than the preset delay threshold, it indicates that the reliability and efficiency of the data service provided by the edge server are high, so that the service efficiency and reliability of the low-cost node and the client node can be relatively ensured as a premise for allocating the access right of the edge server to the low-cost node and the client node.
As a preferred embodiment, before selectively allocating the access right of the edge server to the low-cost node and/or the client node according to the preset condition satisfied by the network parameter, the hardware parameter and the service feedback index, the method further comprises:
acquiring the number of client nodes accessed by an edge server;
correspondingly, according to preset conditions met by the network parameters, the hardware parameters and the service feedback indexes, selectively allocating the access right of the edge server to the low-cost node and/or the client node, including:
and when the number of the client nodes is smaller than a preset access threshold value, selectively allocating the access right of the edge server to the low-cost node and/or the client node according to preset conditions met by the network parameters, the hardware parameters and the service feedback indexes.
It should be noted that the key point of the present embodiment is to acquire the number of client nodes of the client node accessed by the edge server, analyze the number of client nodes of the client node accessed by the edge server, and selectively allocate the access right of the edge server to the low-cost node and/or the client node according to the preset condition satisfied by the network parameter and the hardware parameter when the number of client nodes is less than the preset access threshold, that is, the operation of selectively allocating the access right of the edge server to the low-cost node and/or the client node needs to be performed based on the number of client nodes of the edge server being less than the preset access threshold. The embodiment relatively ensures that the number of the nodes accessed to the edge server is in a controllable range, reduces the overall occupation of resources in the edge server to a certain extent, and ensures the working stability of the edge server.
On the basis of the above series of embodiments, as a preferred embodiment, selectively assigning the access right of the edge server to the low-cost node and/or the client node includes:
and selectively distributing the access right of the edge server to the low-cost node and/or the client node by sending the access address of the edge server.
It should be noted that, in the present embodiment, a manner of sending an edge server access address to a low-cost node and/or a client node is adopted to notify the low-cost node and/or the client node of a path through which a data flow can be accessed, so that efficiency of acquiring the data flow in the edge server by the low-cost node and the client node is relatively ensured.
Fig. 4 is a structural diagram of a server distribution device according to an embodiment of the present invention.
The server distribution device 1 comprises a memory 11, a processor 12 and a bus 13, wherein the memory 11 stores a server distribution program which can be transmitted to the processor 12 by the bus 13 and run on the processor 12, and the server distribution program realizes the server distribution method when being executed by the processor 12.
The server distribution device provided by the invention firstly obtains the network parameters and the hardware parameters of the edge server, obtains the service feedback indexes of the edge server transmitted by the low-cost nodes and the client nodes, and further selectively distributes the access right of the edge server to the low-cost nodes and/or the client nodes according to the preset conditions met by the service feedback indexes, the network parameters and the hardware parameters. Since it is considered that the edge server occupies the hardware resource of the edge server itself when providing data to the low-cost node and/or the client node, therefore, the device can affect the working stability of the device, and the network parameters and the hardware parameters of the edge server and the service conditions of the edge server at the low-cost node and the client node are taken as the restriction factors for distributing the distribution mode of the edge server together, and further selectively allocating the edge server to the low-cost node and/or the client node for providing the data stream of the third-party service node to the low-cost node and/or the client node, the device relatively improves the comprehensiveness of the reference factor when allocating the edge server, therefore, the overall efficiency and stability of the edge server in providing data services are further ensured.
In this embodiment, the server distribution apparatus 1 may be a PC (Personal Computer), and may also be a smart phone, a tablet Computer, a palmtop Computer, a portable Computer, an intelligent router, an ore machine, or a network storage device terminal device.
The server distribution apparatus 1 may be a node constituting a CDN network or a blockchain network.
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 server distribution apparatus 1, for example a hard disk of the server distribution apparatus 1. The memory 11 may also be an external storage device of the server distribution 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 server distribution apparatus 1. Further, the memory 11 may also include both an internal storage unit and an external storage device of the server distribution apparatus 1. The memory 11 may be used not only to store application software installed in the server distribution apparatus 1 and various types of data such as codes of network communication programs, etc., 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), controller, microcontroller, 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 network communication 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. 4, but this does not indicate only one bus or one type of bus.
Further, the server distribution 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 server distribution apparatus 1 and other electronic devices.
Optionally, the server distribution apparatus 1 may further comprise a user interface, the user interface may comprise a Display (Display), an input unit such as a Keyboard (Keyboard), and the optional user interface may further comprise a standard wired interface, 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 server distribution device 1 and for displaying a visual user interface.
The invention also provides a server distribution system, comprising:
the system comprises a parameter acquisition module, a service feedback module and a service feedback module, wherein the parameter acquisition module is used for acquiring network parameters and hardware parameters of an edge server and acquiring service feedback indexes of the edge server transmitted by a low-cost node and a client node;
and the server distribution module is used for selectively distributing the access right of the edge server to the low-cost node and/or the client node according to preset conditions met by the network parameters, the hardware parameters and the service feedback indexes.
The server distribution system provided by the invention firstly obtains the network parameters and the hardware parameters of the edge server, obtains the service feedback indexes of the edge server transmitted by the low-cost nodes and the client nodes, and further selectively distributes the access right of the edge server to the low-cost nodes and/or the client nodes according to the preset conditions met by the service feedback indexes, the network parameters and the hardware parameters. Since it is considered that the edge server occupies the hardware resource of the edge server itself when providing data to the low-cost node and/or the client node, therefore, the system takes the network parameters and the hardware parameters of the edge server and the service conditions of the edge server at the low-cost node and the client node as the restriction factors of the distribution mode of the distribution edge server, and further selectively allocating the edge server to the low-cost node and/or the client node for providing the data stream of the third-party service node to the low-cost node and/or the client node, the system relatively improves the comprehensiveness of the reference factors when the edge server is allocated, therefore, the overall efficiency and stability of the edge server in providing data services are further ensured.
Furthermore, the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores a server allocation program thereon, and the server allocation program can be executed by one or more processors to implement the server allocation method as described above.
The computer-readable storage medium provided by the invention firstly acquires the network parameters and the hardware parameters of the edge server, acquires the service feedback indexes of the edge server transmitted by the low-cost nodes and the client nodes, and selectively distributes the access right of the edge server to the low-cost nodes and/or the client nodes according to the preset conditions met by the service feedback indexes, the network parameters and the hardware parameters. Since it is considered that the edge server occupies the hardware resource of the edge server itself when providing data to the low-cost node and/or the client node, thereby affecting the working stability of the computer, the computer readable storage medium uses the network parameters and the hardware parameters of the edge server and the service conditions of the edge server at the low-cost node and the client node as the restriction factors for distributing the distribution mode of the edge server, and selectively assigning the edge server to the low-cost node and/or the client node for providing the data stream of the third-party service node to the low-cost node and/or the client node, the computer-readable storage medium relatively improves the comprehensiveness of the factors referenced when assigning the edge server, therefore, the overall efficiency and stability of the edge server in providing data services are further ensured.
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 server allocation method, device, system and medium provided by the present invention are described in detail above. The embodiments are described in a progressive manner in the specification, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other. The device disclosed by the embodiment corresponds to the method disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the method part for description. It should be noted that, for those skilled in the art, it is possible to make various improvements and modifications to the present invention without departing from the principle of the present invention, and those improvements and modifications also fall within the scope of the claims of the present invention.
It is further noted that, in the present specification, relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus 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, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.

Claims (11)

1. A server allocation method, comprising:
acquiring network parameters and hardware parameters of an edge server, and acquiring service feedback indexes of the edge server, which are transmitted by a low-cost node and a client node;
selectively allocating the access right of the edge server to a low-cost node and/or a client node according to preset conditions met by the network parameters, the hardware parameters and the service feedback indexes;
the network parameters include bandwidth utilization, and the selectively allocating the access right of the edge server to low-cost nodes and/or client nodes according to preset conditions that the network parameters, the hardware parameters, and the service feedback indicators satisfy includes:
when the value of the bandwidth utilization rate is smaller than the lowest bandwidth threshold value, the access right of the edge server is distributed to the low-cost node and the client node at the same time;
when the value of the bandwidth utilization rate is greater than or equal to the lowest bandwidth threshold and less than a free allocation threshold, judging whether a preferred edge server exists, wherein the equipment communication cost of the preferred edge server is lower than that of the edge server, and the working state of the preferred edge server is consistent with that of the edge server;
if so, then the access right of the preferred edge server is distributed to the low-cost node and the client node at the same time;
otherwise, the access right of the edge server is distributed to the low-cost node and the client node at the same time; wherein the free allocation threshold is less than the bandwidth alert threshold;
and when the value of the bandwidth utilization rate is greater than or equal to the free allocation threshold and less than the bandwidth alert threshold, or the value of the hardware parameter is greater than the hardware alert threshold, allocating the access right of the edge server to the low-cost node only.
2. The server allocation method according to claim 1, wherein before said selectively allocating the access right of the edge server to the low cost node and/or the client node according to the preset condition satisfied by the network parameter, the hardware parameter and the service feedback indicator, the method further comprises:
on the premise that the service feedback index meets an index condition, judging whether the bandwidth utilization rate is smaller than a bandwidth alert threshold value;
if yes, the step of selectively distributing the access right of the edge server to the low-cost node and/or the client node according to the preset conditions met by the network parameters, the hardware parameters and the service feedback indexes is executed.
3. The server allocation method according to claim 1, wherein when the result of said determining whether the bandwidth usage rate is less than the bandwidth alert threshold is no, the method further comprises:
when the bandwidth utilization rate reaches a bandwidth exhaustion threshold or the value of the hardware parameter reaches a hardware exhaustion threshold, stopping allocating the access right of the edge server to the low-cost node and the client node; wherein the bandwidth exhaustion threshold is greater than the bandwidth alert threshold, and the hardware exhaustion threshold is greater than the hardware alert threshold.
4. The server allocation method according to claim 3, wherein the hardware parameters include CPU usage and memory usage.
5. The server allocation method according to claim 3, wherein the service feedback indicators include connection power and response delay;
correspondingly, the service feedback index meets the index condition, which includes:
and when the connection success rate is greater than a preset success rate threshold and/or the response delay is greater than a preset delay threshold.
6. The server allocation method according to claim 1, wherein before said selectively allocating the access right of the edge server to the low cost node and/or the client node according to the preset condition satisfied by the network parameter, the hardware parameter and the service feedback indicator, the method further comprises:
acquiring the number of client nodes of the client nodes accessed by the edge server;
correspondingly, the selectively allocating the access right of the edge server to a low-cost node and/or a client node according to a preset condition that the network parameter, the hardware parameter, and the service feedback index satisfy includes:
and when the number of the client nodes is smaller than a preset access threshold value, selectively allocating the access right of the edge server to a low-cost node and/or a client node according to preset conditions met by the network parameters, the hardware parameters and the service feedback indexes.
7. The server distribution method according to any one of claims 1 to 6, wherein the selectively distributing the access right of the edge server to the low-cost node and/or the client node comprises:
selectively assigning the edge server access rights to the low cost node and/or the client node by sending the edge server access address.
8. A server allocation apparatus, comprising a memory, a processor and a bus, wherein the memory stores a server allocation program which can be transmitted to the processor by the bus and run on the processor, and the server allocation program realizes the server allocation method according to any one of claims 1 to 7 when executed by the processor.
9. The apparatus of claim 8, wherein the apparatus is a node constituting a CDN network or a blockchain network.
10. A server distribution system, the system comprising:
the system comprises a parameter acquisition module, a service feedback module and a service feedback module, wherein the parameter acquisition module is used for acquiring network parameters and hardware parameters of an edge server and acquiring service feedback indexes of the edge server transmitted by a low-cost node and a client node;
the server distribution module is used for selectively distributing the access right of the edge server to low-cost nodes and/or client nodes according to preset conditions met by the network parameters, the hardware parameters and the service feedback indexes;
the network parameter includes a bandwidth utilization rate, and the server allocation module is specifically configured to: when the value of the bandwidth utilization rate is smaller than the lowest bandwidth threshold value, the access right of the edge server is distributed to the low-cost node and the client node at the same time; when the value of the bandwidth utilization rate is greater than or equal to the lowest bandwidth threshold and less than a free allocation threshold, judging whether a preferred edge server exists, wherein the equipment communication cost of the preferred edge server is lower than that of the edge server, and the working state of the preferred edge server is consistent with that of the edge server; if so, then the access right of the preferred edge server is distributed to the low-cost node and the client node at the same time; otherwise, the access right of the edge server is distributed to the low-cost node and the client node at the same time; wherein the free allocation threshold is less than the bandwidth alert threshold; and when the value of the bandwidth utilization rate is greater than or equal to the free allocation threshold and less than the bandwidth alert threshold, or the value of the hardware parameter is greater than the hardware alert threshold, allocating the access right of the edge server to the low-cost node only.
11. A computer-readable storage medium having stored thereon a server allocation program executable by one or more processors to implement the server allocation method of any one of claims 1 to 7.
CN201910630360.2A 2019-07-12 2019-07-12 Server distribution method, device, system and medium Active CN110336888B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910630360.2A CN110336888B (en) 2019-07-12 2019-07-12 Server distribution method, device, system and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910630360.2A CN110336888B (en) 2019-07-12 2019-07-12 Server distribution method, device, system and medium

Publications (2)

Publication Number Publication Date
CN110336888A CN110336888A (en) 2019-10-15
CN110336888B true CN110336888B (en) 2022-08-12

Family

ID=68146622

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910630360.2A Active CN110336888B (en) 2019-07-12 2019-07-12 Server distribution method, device, system and medium

Country Status (1)

Country Link
CN (1) CN110336888B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111416844B (en) * 2020-03-12 2022-06-03 北京金山云网络技术有限公司 Service start-stop method, system, device and storage medium
CN111405467B (en) * 2020-03-20 2023-10-13 腾讯科技(深圳)有限公司 Vehicle communication method, vehicle-road cooperation system, related device, and readable medium
CN115242793B (en) * 2022-07-05 2023-08-25 杭州萤石软件有限公司 Streaming media load balancing method, device and system

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105991708B (en) * 2015-02-10 2021-12-10 腾讯科技(深圳)有限公司 Application server selection method, device and system
CN108132839B (en) * 2016-11-30 2020-10-30 中国移动通信有限公司研究院 Resource scheduling method and device
CN108304256B (en) * 2018-02-08 2020-09-22 北京信息科技大学 Task scheduling method and device with low overhead in edge computing
CN109743259B (en) * 2018-12-24 2022-08-02 中国联合网络通信集团有限公司 Network traffic scheduling method and device

Also Published As

Publication number Publication date
CN110336888A (en) 2019-10-15

Similar Documents

Publication Publication Date Title
CN110336888B (en) Server distribution method, device, system and medium
CN109451051B (en) Service request processing method and device, electronic equipment and storage medium
US10945091B2 (en) Methods and systems for communication management
CN109729106B (en) Method, system and computer program product for processing computing tasks
CN109960575B (en) Computing capacity sharing method, system and related equipment
CN108776934A (en) Distributed data computational methods, device, computer equipment and readable storage medium storing program for executing
CN115277566B (en) Load balancing method and device for data access, computer equipment and medium
KR20150009662A (en) Method of allocating a virtual machine for virtual desktop service
CN110290399B (en) Data distribution method, system, device and computer readable storage medium
KR101613513B1 (en) Virtual machine placing method and system for guarantee of network bandwidth
CN110347546B (en) Dynamic adjustment method, device, medium and electronic equipment for monitoring task
CN114327918A (en) Method and device for adjusting resource amount, electronic equipment and storage medium
CN113905091A (en) Method and device for processing access request
CN111988403A (en) Request processing method and system of electronic equipment, storage medium and electronic equipment
US8379525B2 (en) Techniques to support large numbers of subscribers to a real-time event
CN106961490A (en) A kind of resource monitoring method and system, a kind of home server
KR102676385B1 (en) Apparatus and method for managing virtual machine cpu resource in virtualization server
CN110209466B (en) Resource allocation method, resource allocation device and storage medium
CN106131187B (en) Authorization control method and device
US20140156518A1 (en) Method and systems for sub-allocating computational resources
CN110247802B (en) Resource configuration method and device for cloud service single-machine environment
CN113032153A (en) Dynamic capacity expansion method, system, device and storage medium for container service resources
CN115391042B (en) Resource allocation method and device, electronic equipment and storage medium
CN111082982A (en) Data transmission method, electronic device, system and medium
CN115174411B (en) Cross-region bandwidth determination method, device, equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant