CN110336888B - A server allocation method, device, system and medium - Google Patents
A server allocation method, device, system and medium Download PDFInfo
- 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
- server
- low
- threshold
- node
- 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
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1001—Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
- H04L67/1004—Server selection for load balancing
- H04L67/1008—Server selection for load balancing based on parameters of servers, e.g. available memory or workload
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1001—Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
- H04L67/1004—Server selection for load balancing
- H04L67/101—Server selection for load balancing based on network conditions
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1001—Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
- H04L67/1029—Protocols 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, device, system and medium. The steps of the method include: acquiring network parameters and hardware parameters of the edge server, and acquiring service feedback indicators of the edge server transmitted from low-cost nodes and client nodes; conditions, selectively assigning access rights to edge servers to low-cost nodes and/or client nodes. The method relatively improves the comprehensiveness of the reference factors when allocating the edge servers, thereby further ensuring the overall efficiency and stability of the edge servers providing data services. In addition, the present invention also provides a server distribution device, system and medium, and the beneficial effects are the same as those described above.
Description
技术领域technical field
本发明涉及计算机通信领域,特别是涉及一种服务器分配方法、装置、系统及介质。The present invention relates to the field of computer communication, and in particular, to a server distribution method, device, system and medium.
背景技术Background technique
云计算(Cloud Computing)是基于互联网的相关服务的增加、使用和交互模式,通常涉及通过互联网来提供动态易扩展且经常是虚拟化的资源,本质上讲就是通过控制网络中大量普通运算节点的协同工作,对完整的数据处理任务进行分块处理,Cloud computing is the increase, use and interaction mode of Internet-based related services, usually involving the provision of dynamic, easily scalable and often virtualized resources through the Internet. Work collaboratively to process complete data processing tasks in blocks,
随着云计算技术的不断发展,逐渐应用于当前共享计算的场景中。图1为当前共享计算场景下的设备拓扑示意图。请参考图1,在当前的共享计算的场景中往往包括有客户端节点、低成本节点、边缘服务器节点以及基于云计算技术构建的第三方服务节点,基于当前共享计算场景下的设备拓扑结构,边缘服务器节点直接拉取第三方服务节点中的数据流,进而用户可以通过部署有应用程序(SDK)的客户端节点直接通过边缘服务器节点获取数据流,也可以基于低成本节点间接获取边缘服务器节点中的数据流。With the continuous development of cloud computing technology, it is gradually applied in the current shared computing scenarios. FIG. 1 is a schematic diagram of a device topology in a current shared computing scenario. Please refer to Figure 1. In the current shared computing scenario, there are often client nodes, low-cost nodes, edge server nodes, and third-party service nodes based on cloud computing technology. Based on the device topology in the current shared computing scenario, The edge server node directly pulls the data stream in the third-party service node, and then the user can directly obtain the data stream through the edge server node through the client node with the application (SDK) deployed, or indirectly obtain the edge server node based on the low-cost node data flow in .
当前往往基于各边缘服务器节点的带宽使用情况选择性的调控各边缘服务器向客户端节点及低成本节点的服务分配方式,但是由于边缘服务器节点是直接与第三方服务节点通信的设备,因此边缘服务器自身的工作稳定性将直接影响着客户端节点以及低成本节点对于数据流的正常获取,难以确保用户通过客户端节点在共享计算的场景下获取数据流过程的整体效率以及稳定性。Currently, the service allocation method of each edge server to client nodes and low-cost nodes is often selectively regulated based on the bandwidth usage of each edge server node. However, since the edge server node is a device that directly communicates with third-party service nodes, the edge server The stability of its own work will directly affect the normal acquisition of data streams by client nodes and low-cost nodes, and it is difficult to ensure the overall efficiency and stability of the process of acquiring data streams through client nodes in a shared computing scenario.
由此可见,提供一种服务器分配方法,以相对提高对边缘服务器进行分配时所参考因素的全面性,从而进一步保证边缘服务器提供数据服务时的整体效率以及稳定性,是本领域技术人员需要解决的问题。It can be seen that providing a server allocation method to relatively improve the comprehensiveness of the reference factors when allocating edge servers, so as to further ensure the overall efficiency and stability when the edge servers provide data services, is a solution that needs to be solved by those skilled in the art The problem.
发明内容SUMMARY OF THE INVENTION
本发明的目的是提供一种服务器分配方法、装置、系统及介质,以相对提高对边缘服务器进行分配时所参考因素的全面性,从而进一步保证边缘服务器提供数据服务时的整体效率以及稳定性。The purpose of the present invention is to provide a server allocation method, device, system and medium, so as to relatively improve the comprehensiveness of reference factors when allocating edge servers, thereby further ensuring the overall efficiency and stability of edge servers providing data services.
为解决上述技术问题,本发明提供一种服务器分配方法,包括:In order to solve the above-mentioned technical problems, the present invention provides a server allocation method, including:
获取边缘服务器的网络参数及硬件参数,并获取由低成本节点以及客户端节点传入的边缘服务器的服务反馈指标;Obtain the network parameters and hardware parameters of the edge server, and obtain the service feedback indicators of the edge server passed in by low-cost nodes and client nodes;
根据网络参数、硬件参数以及服务反馈指标满足的预设条件,将边缘服务器的访问权选择性分配给低成本节点和/或客户端节点。The access rights of the edge server are selectively allocated to low-cost nodes and/or client nodes according to preset conditions satisfied by network parameters, hardware parameters, and service feedback indicators.
优选的,网络参数包括带宽使用率;Preferably, the network parameters include bandwidth usage;
相应的,在根据网络参数、硬件参数以及服务反馈指标满足的预设条件,将边缘服务器的访问权选择性分配给低成本节点和/或客户端节点之前,方法还包括:Correspondingly, before selectively allocating the access rights of the edge server to low-cost nodes and/or client nodes according to the preset conditions satisfied by network parameters, hardware parameters and service feedback indicators, the method further includes:
在服务反馈指标满足指标条件的前提下,判断带宽使用率是否小于带宽警戒阈值;On the premise that the service feedback index satisfies the index condition, determine whether the bandwidth usage rate is less than the bandwidth warning threshold;
如果是,则执行根据网络参数、硬件参数以及服务反馈指标满足的预设条件,将边缘服务器的访问权选择性分配给低成本节点和/或客户端节点的步骤。If yes, execute the step of selectively allocating the access rights of the edge server to the low-cost nodes and/or client nodes according to the preset conditions satisfied by the network parameters, hardware parameters and service feedback indicators.
优选的,根据网络参数、硬件参数以及服务反馈指标满足的预设条件,将边缘服务器的访问权选择性分配给低成本节点和/或客户端节点,包括:Preferably, according to the preset conditions satisfied by network parameters, hardware parameters and service feedback indicators, the access rights of the edge server are selectively allocated to low-cost nodes and/or client nodes, including:
当带宽使用率的值小于带宽最低阈值,将边缘服务器的访问权同时分配给低成本节点和客户端节点;When the value of bandwidth usage is less than the minimum bandwidth threshold, the access rights of edge servers are allocated to low-cost nodes and client nodes at the same time;
当带宽使用率的值大于或等于带宽最低阈值并小于自由分配阈值时,判断是否存在设备通信成本低于边缘服务器且工作状态与边缘服务器一致的优选边缘服务器;When the value of the bandwidth usage rate is greater than or equal to the minimum bandwidth threshold and less than the free allocation threshold, determine whether there is a preferred edge server whose device communication cost is lower than that of the edge server and whose working status is consistent with that of the edge server;
如果是,则将优选边缘服务器的访问权同时分配给低成本节点和客户端节点;If so, assign access to the preferred edge server to both low-cost nodes and client nodes;
否则,将边缘服务器的访问权同时分配给低成本节点和客户端节点;其中,自由分配阈值小于带宽警戒阈值;Otherwise, assign the access rights of the edge server to both low-cost nodes and client nodes; wherein, the free allocation threshold is less than the bandwidth warning threshold;
当带宽使用率的值大于或等于自由分配阈值且小于带宽警戒阈值,或硬件参数的值大于硬件警戒阈值时,将边缘服务器的访问权仅分配给低成本节点。When the value of bandwidth usage is greater than or equal to the free allocation threshold and less than the bandwidth guard threshold, or the value of the hardware parameter is greater than the hardware guard threshold, the access rights of the edge server are only allocated to low-cost nodes.
优选的,当判断带宽使用率是否小于带宽警戒阈值的结果为否时,方法还包括:Preferably, when the result of judging whether the bandwidth usage rate is less than the bandwidth warning threshold is no, the method further includes:
当带宽使用率达到带宽耗尽阈值或硬件参数的值达到硬件耗尽阈值时,将边缘服务器的访问权停止分配给低成本节点和客户端节点;其中,带宽耗尽阈值大于带宽警戒阈值,硬件耗尽阈值大于硬件警戒阈值。When the bandwidth usage reaches the bandwidth exhaustion threshold or the value of the hardware parameter reaches the hardware exhaustion threshold, the access rights of the edge server are stopped to be allocated to low-cost nodes and client nodes; where the bandwidth exhaustion threshold is greater than the bandwidth warning threshold, the hardware The exhaustion threshold is greater than the hardware guard threshold.
优选的,硬件参数包括CPU使用率以及内存使用率。Preferably, the hardware parameters include CPU usage and memory usage.
优选的,服务反馈指标包括连接成功率以及响应延时;Preferably, the service feedback indicators include connection success rate and response delay;
相应的,服务反馈指标满足指标条件,包括:Correspondingly, the service feedback indicator satisfies the indicator conditions, including:
连接成功率大于预设成功率阈值和/或响应延时大于预设延时阈值时。When the connection success rate is greater than the preset success rate threshold and/or the response delay is greater than the preset delay threshold.
优选的,在根据网络参数、硬件参数以及服务反馈指标满足的预设条件,将边缘服务器的访问权选择性分配给低成本节点和/或客户端节点之前,方法还包括:Preferably, before selectively allocating the access rights of the edge server to low-cost nodes and/or client nodes according to preset conditions satisfied by network parameters, hardware parameters and service feedback indicators, the method further includes:
获取边缘服务器已接入的客户端节点的客户节点数量;Get the number of client nodes that the edge server has connected to;
相应的,根据网络参数、硬件参数以及服务反馈指标满足的预设条件,将边缘服务器的访问权选择性分配给低成本节点和/或客户端节点,包括:Correspondingly, according to the preset conditions satisfied by network parameters, hardware parameters and service feedback indicators, the access rights of edge servers are selectively allocated to low-cost nodes and/or client nodes, including:
当客户节点数量小于预设接入阈值时,根据网络参数、硬件参数以及服务反馈指标满足的预设条件,将边缘服务器的访问权选择性分配给低成本节点和/或客户端节点。When the number of client nodes is less than the preset access threshold, the access rights of the edge server are selectively allocated to low-cost nodes and/or client nodes according to network parameters, hardware parameters, and preset conditions satisfied by service feedback indicators.
优选的,将边缘服务器的访问权选择性分配给低成本节点和/或客户端节点,包括:Preferably, the access rights of edge servers are selectively allocated to low-cost nodes and/or client nodes, including:
通过发送边缘服务器访问地址的方式将边缘服务器的访问权选择性分配给低成本节点和/或客户端节点。The access rights of edge servers are selectively allocated to low-cost nodes and/or client nodes by sending edge server access addresses.
此外,本发明还提供一种服务器分配装置,装置包括存储器、处理器和总线,存储器上存储有可由总线传输至处理器并在处理器上运行的服务器分配程序,服务器分配程序被处理器执行时实现如上述的服务器分配方法。In addition, the present invention also provides a server distribution device, the device includes a memory, a processor and a bus, and the memory stores a server distribution program that can be transmitted from the bus to the processor and run on the processor. When the server distribution program is executed by the processor Implement the server allocation method as described above.
优选的,装置为组成CDN网络或者区块链网络的节点。Preferably, the device is a node forming a CDN network or a blockchain network.
此外,本发明还提供一种服务器分配系统,系统包括:In addition, the present invention also provides a server distribution system, the system includes:
参数获取模块,用于获取边缘服务器的网络参数及硬件参数,并获取由低成本节点以及客户端节点传入的边缘服务器的服务反馈指标;The parameter obtaining module is used to obtain the network parameters and hardware parameters of the edge server, and obtain the service feedback indicators of the edge server transmitted by the low-cost node and the client node;
服务器分配模块,用于根据网络参数、硬件参数以及服务反馈指标满足的预设条件,将边缘服务器的访问权选择性分配给低成本节点和/或客户端节点。The server allocation module is configured to selectively allocate the access rights of the edge server to low-cost nodes and/or client nodes according to the preset conditions satisfied by network parameters, hardware parameters and service feedback indicators.
此外,本发明还提供一种计算机可读存储介质,计算机可读存储介质上存储有服务器分配程序,服务器分配程序可被一个或者多个处理器执行,以实现如上述的服务器分配方法。In addition, the present invention also provides a computer-readable storage medium on which a server allocation program is stored, and the server allocation program can be executed by one or more processors to implement the above-mentioned server allocation method.
本发明所提供的服务器分配方法,首先获取边缘服务器的网络参数及硬件参数,并获取由低成本节点以及客户端节点传入的边缘服务器的服务反馈指标,进而根据服务反馈指标、网络参数以及硬件参数所满足的预设条件,将边缘服务器的访问权选择性的分配给低成本节点和/或客户端节点。由于考虑到边缘服务器在向低成本节点和/或客户端节点提供数据时,会占用边缘服务器自身的硬件资源,从而会对其自身的工作稳定性造成影响,因此本方法将边缘服务器的网络参数、硬件参数以及边缘服务器在低成本节点以及客户端节点处的服务状况共同作为分配边缘服务器分配方式的制约因素,进而有选择性地将边缘服务器分配给低成本节点和/或客户端节点以用于向低成本节点和/或客户端节点提供第三方服务节点的数据流,本方法相对提高了对边缘服务器进行分配时所参考因素的全面性,从而进一步保证了边缘服务器提供数据服务时的整体效率以及稳定性。此外,本发明还提供一种服务器分配装置、系统及介质,有益效果同上所述。The server allocation method provided by the present invention first obtains the network parameters and hardware parameters of the edge server, and obtains the service feedback index of the edge server transmitted by the low-cost node and the client node, and then obtains the service feedback index, network parameters and hardware parameters according to the service feedback index, network parameters and hardware parameters. The preset conditions met by the parameters selectively allocate the access rights of the edge server to low-cost nodes and/or client nodes. Considering that when the edge server provides data to low-cost nodes and/or client nodes, it will occupy the hardware resources of the edge server, which will affect its own work stability. Therefore, this method uses the network parameters of the edge server to , hardware parameters, and the service status of edge servers at low-cost nodes and client nodes serve as constraints for allocating edge server allocation methods, and then selectively assign edge servers to low-cost nodes and/or client nodes for use. In order to provide low-cost nodes and/or client nodes with data streams of third-party service nodes, this method relatively improves the comprehensiveness of the reference factors when allocating edge servers, thereby further ensuring the overall integrity of edge servers providing data services. efficiency and stability. In addition, the present invention also provides a server distribution device, system and medium, and the beneficial effects are the same as above.
附图说明Description of drawings
为了更清楚地说明本发明实施例,下面将对实施例中所需要使用的附图做简单的介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to explain the embodiments of the present invention more clearly, the following will briefly introduce the accompanying drawings that need to be used in the embodiments. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention, which are not relevant to ordinary skills in the art. As far as personnel are concerned, other drawings can also be obtained from these drawings on the premise of no creative work.
图1为当前共享计算场景下的设备拓扑示意图;Figure 1 is a schematic diagram of a device topology in the current shared computing scenario;
图2为本发明实施例提供的一种服务器分配方法的流程图;FIG. 2 is a flowchart of a server allocation method according to an embodiment of the present invention;
图3为本发明实施例提供的另一种服务器分配方法的流程图;3 is a flowchart of another server allocation method provided by an embodiment of the present invention;
图4为本发明实施例提供的一种服务器分配装置的结构图。FIG. 4 is a structural diagram of a server distribution apparatus according to an embodiment of the present invention.
具体实施方式Detailed ways
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下,所获得的所有其他实施例,都属于本发明保护范围。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. Obviously, the described embodiments are only a part of the embodiments of the present invention, but not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative work fall within the protection scope of the present invention.
当前往往基于各边缘服务器节点的带宽使用情况选择性的调控各边缘服务器向客户端节点及低成本节点的服务分配方式,但是由于边缘服务器节点是直接与第三方服务节点通信的设备,因此边缘服务器自身的工作稳定性将直接影响着客户端节点以及低成本节点对于数据流的正常获取,难以确保用户通过客户端节点在共享计算的场景下获取数据流过程的整体效率以及稳定性。Currently, the service allocation method of each edge server to client nodes and low-cost nodes is often selectively regulated based on the bandwidth usage of each edge server node. However, since the edge server node is a device that directly communicates with third-party service nodes, the edge server The stability of its own work will directly affect the normal acquisition of data streams by client nodes and low-cost nodes, and it is difficult to ensure the overall efficiency and stability of the process of acquiring data streams through client nodes in a shared computing scenario.
本发明的核心是提供一种服务器分配方法,以相对提高对边缘服务器进行分配时所参考因素的全面性,从而进一步保证边缘服务器提供数据服务时的整体效率以及稳定性。本发明的另一核心是提供一种服务器分配装置、系统及介质。The core of the present invention is to provide a server allocation method, so as to relatively improve the comprehensiveness of the reference factors when the edge server is allocated, so as to further ensure the overall efficiency and stability of the data service provided by the edge server. Another core of the present invention is to provide a server distribution device, system and medium.
为了使本技术领域的人员更好地理解本发明方案,下面结合附图和具体实施方式对本发明作进一步的详细说明。In order to make those skilled in the art better understand the solution of the present invention, the present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments.
图2为本发明实施例提供的一种服务器分配方法的流程图。请参考图2,服务器分配方法的具体步骤包括:FIG. 2 is a flowchart of a server allocation method according to an embodiment of the present invention. Please refer to FIG. 2, the specific steps of the server allocation method include:
步骤S10:获取边缘服务器的网络参数及硬件参数,并获取由低成本节点以及客户端节点传入的边缘服务器的服务反馈指标。Step S10: Obtain network parameters and hardware parameters of the edge server, and obtain service feedback indicators of the edge server transmitted by the low-cost node and the client node.
需要说明的是,分配控制节点首先获取边缘服务器的网络参数以及硬件参数,其中,网络参数指的是边缘服务器与外界设备进行网络数据通信时所涉及到的相关工作状态数据,而硬件参数指的是边缘服务器在与外界设备进行网络数据通信或自身执行数据处理任务时因占用硬件资源而产生的相关工作状态数据。本方法的执行主体为分配控制节点,也就是说分配控制节点能够与边缘服务器进行数据通信,进而能够获取到边缘服务器的网络参数以及硬件参数。It should be noted that the allocation control node first obtains the network parameters and hardware parameters of the edge server, where the network parameters refer to the relevant working status data involved in the network data communication between the edge server and external devices, and the hardware parameters refer to It is the relevant working status data generated by the edge server occupying hardware resources when it performs network data communication with external devices or performs data processing tasks by itself. The execution subject of the method is the distribution control node, that is to say, the distribution control node can perform data communication with the edge server, and then can obtain the network parameters and hardware parameters of the edge server.
另外,需要说明的是,本方法是基于共享计算场景下的技术方案,在共享计算场景中,边缘服务器节点直接拉取第三方服务节点中的数据流,进而能够将拉取到的数据流提供给低成本节点或客户端节点,其中,低成本节点指的是建立在客户端节点与边缘服务器之间的节点设备,例如在实际应用中,低成本节点可以具体是NAS设备,由于NAS设备能够访问并获取到边缘服务器中的数据流时,客户端节点可以通过NAS设备间接获取到边缘服务器中的数据流,客户端节点也可以直接访问边缘服务器并获取边缘服务器中的数据流。In addition, it should be noted that this method is a technical solution based on a shared computing scenario. In the shared computing scenario, the edge server node directly pulls the data stream from the third-party service node, and then can provide the pulled data stream to For low-cost nodes or client nodes, where low-cost nodes refer to node devices established between client nodes and edge servers, for example, in practical applications, low-cost nodes can be specifically NAS devices, because NAS devices can When accessing and acquiring the data stream in the edge server, the client node can indirectly acquire the data stream in the edge server through the NAS device, or the client node can directly access the edge server and acquire the data stream in the edge server.
步骤S11:根据网络参数、硬件参数以及服务反馈指标满足的预设条件,将边缘服务器的访问权选择性分配给低成本节点和/或客户端节点。Step S11: Selectively assign the access rights of the edge server to the low-cost nodes and/or client nodes according to the preset conditions satisfied by the network parameters, hardware parameters and service feedback indicators.
需要说明的是,本步骤的重点在于分配控制节点对边缘服务器的网络参数以及硬件参数进行综合的分析,进而根据网络参数以及硬件参数满足的预设条件,有选择性地将边缘服务器的访问权分配给低成本节点和/或客户端节点。需要强调的是,本实施例的重点在于对网络参数以及硬件参数进行综合的分析,在对于网络参数进行分析的基础上,考虑到了边缘服务器在消耗网络资源以向外界设备提供服务时,会同时占用硬件资源的这一情况,因此本步骤在对边缘服务器进行分配时将边缘服务器当前的网络参数以及硬件参数,作为向低成本节点以及客户端节点分配边缘服务器的依据,相对提高了分配边缘服务器时所考虑因素的全面性。It should be noted that the focus of this step is to assign the control node to comprehensively analyze the network parameters and hardware parameters of the edge server, and then selectively assign the access rights of the edge server according to the preset conditions satisfied by the network parameters and hardware parameters. Assigned to low-cost nodes and/or client nodes. It should be emphasized that the focus of this embodiment is to comprehensively analyze the network parameters and hardware parameters. Based on the analysis of the network parameters, it is considered that when the edge server consumes network resources to provide services to external devices, it will simultaneously Occupying hardware resources, this step uses the current network parameters and hardware parameters of the edge server as the basis for allocating edge servers to low-cost nodes and client nodes when allocating edge servers, which relatively improves the allocation of edge servers. comprehensiveness of the factors considered.
本发明所提供的服务器分配方法,首先获取边缘服务器的网络参数及硬件参数,并获取由低成本节点以及客户端节点传入的边缘服务器的服务反馈指标,进而根据服务反馈指标、网络参数以及硬件参数所满足的预设条件,将边缘服务器的访问权选择性的分配给低成本节点和/或客户端节点。由于考虑到边缘服务器在向低成本节点和/或客户端节点提供数据时,会占用边缘服务器自身的硬件资源,从而会对其自身的工作稳定性造成影响,因此本方法将边缘服务器的网络参数、硬件参数以及边缘服务器在低成本节点以及客户端节点处的服务状况共同作为分配边缘服务器分配方式的制约因素,进而有选择性地将边缘服务器分配给低成本节点和/或客户端节点以用于向低成本节点和/或客户端节点提供第三方服务节点的数据流,本方法相对提高了对边缘服务器进行分配时所参考因素的全面性,从而进一步保证了边缘服务器提供数据服务时的整体效率以及稳定性。The server allocation method provided by the present invention first obtains the network parameters and hardware parameters of the edge server, and obtains the service feedback index of the edge server transmitted by the low-cost node and the client node, and then obtains the service feedback index, network parameters and hardware parameters according to the service feedback index, network parameters and hardware parameters. The preset conditions met by the parameters selectively allocate the access rights of the edge server to low-cost nodes and/or client nodes. Considering that when the edge server provides data to low-cost nodes and/or client nodes, it will occupy the hardware resources of the edge server, which will affect its own work stability. Therefore, this method uses the network parameters of the edge server to , hardware parameters, and the service status of edge servers at low-cost nodes and client nodes serve as constraints for allocating edge server allocation methods, and then selectively assign edge servers to low-cost nodes and/or client nodes for use. In order to provide low-cost nodes and/or client nodes with data streams of third-party service nodes, this method relatively improves the comprehensiveness of the reference factors when allocating edge servers, thereby further ensuring the overall integrity of edge servers providing data services. efficiency and stability.
在上述实施例的基础上,作为一种优选的实施方式,网络参数包括带宽使用率;On the basis of the foregoing embodiment, as a preferred implementation manner, the network parameters include bandwidth usage;
相应的,在根据网络参数、硬件参数以及服务反馈指标满足的预设条件,将边缘服务器的访问权选择性分配给低成本节点和/或客户端节点之前,方法还包括:Correspondingly, before selectively allocating the access rights of the edge server to low-cost nodes and/or client nodes according to the preset conditions satisfied by network parameters, hardware parameters and service feedback indicators, the method further includes:
在服务反馈指标满足指标条件的前提下,判断带宽使用率是否小于带宽警戒阈值;On the premise that the service feedback index satisfies the index condition, determine whether the bandwidth usage rate is less than the bandwidth warning threshold;
如果是,则执行根据网络参数、硬件参数以及服务反馈指标满足的预设条件,将边缘服务器的访问权选择性分配给低成本节点和/或客户端节点的步骤。If yes, execute the step of selectively allocating the access rights of the edge server to the low-cost nodes and/or client nodes according to the preset conditions satisfied by the network parameters, hardware parameters and service feedback indicators.
需要说明的是,在本实施方式的重点在于首先判断边缘服务器的带宽使用率是否小于带宽警戒阈值,以此确定是否对边缘服务器的访问权进行分配。带宽警戒阈值的目的是为了界定当前边缘服务器的带宽是否处于被占用程度较高的警戒状态,带宽警戒阈值的具体取值应根据边缘服务器的实际网络通信性能而定,在此不做具体限定。本实施方式相对提高了服务器分配的整体可靠性。It should be noted that the focus of this embodiment is to first determine whether the bandwidth usage rate of the edge server is less than the bandwidth warning threshold, so as to determine whether to allocate the access right of the edge server. The purpose of the bandwidth warning threshold is to define whether the bandwidth of the current edge server is in a high-occupancy warning state. The specific value of the bandwidth warning threshold should be determined according to the actual network communication performance of the edge server, which is not specifically limited here. This 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.
图3为本发明实施例提供的另一种服务器分配方法的流程图。请参考图3,服务器分配方法的具体步骤包括:FIG. 3 is a flowchart of another server allocation method provided by an embodiment of the present invention. Please refer to FIG. 3, the specific steps of the server allocation method include:
步骤S20:获取边缘服务器的包含有带宽使用率的网络参数及硬件参数,并获取由低成本节点以及客户端节点传入的边缘服务器的服务反馈指标。Step S20: Obtain network parameters and hardware parameters of the edge server including bandwidth usage, and obtain service feedback indicators of the edge server transmitted by the low-cost node and the client node.
在本实施方式中,向边缘服务器获取的网络参数中应至少包含有带宽使用率,带宽表征的是信号传输时的数据传输能力,即标识单位时间内通过链路的数据量,由于边缘服务器的链路资源往往是有限的,因此带宽的总量也是一定的,带宽的使用率表征的是边缘服务器整体的带宽被占用的程度。另外,带宽使用率越高,则边缘服务器的网络状态的可靠性越低,也就是边缘服务器与外界设备传输数据的能力越低。In this embodiment, the network parameters obtained from the edge server should include at least the bandwidth usage rate, and the bandwidth represents the data transmission capability during signal transmission, that is, the amount of data passing through the link per unit time. Link resources are often limited, so the total amount of bandwidth is also certain. The bandwidth usage rate represents the degree to which the overall bandwidth of the edge server is occupied. In addition, the higher the bandwidth usage rate, the lower the reliability of the network status of the edge server, that is, the lower the ability of the edge server to transmit data with external devices.
步骤S21:当带宽使用率的值小于带宽最低阈值,硬件参数的值小于硬件警戒阈值,且服务反馈指标满足指标条件时,将边缘服务器的访问权同时分配给低成本节点和客户端节点。Step S21: When the value of the bandwidth usage rate is less than the minimum bandwidth threshold, the value of the hardware parameter is less than the hardware warning threshold, and the service feedback index meets the index condition, assign the access right of the edge server to the low-cost node and the client node at the same time.
其中,带宽最低阈值小于带宽警戒阈值。The minimum bandwidth threshold is smaller than the bandwidth warning threshold.
基于上述对于带宽使用率的解释,当带宽使用率的值小于带宽最低阈值时,则说明边缘服务器当前的带宽使用率相对较低,边缘服务器具有较高的网络通信性能,在此情况下,当边缘服务器的硬件参数的值小于硬件警戒阈值时,即边缘服务器自身的硬件资源占用程度相对较小,边缘服务器具有较高的数据处理性能。当边缘服务器的带宽以及硬件的被占用程度均较小时,说明边缘服务器具有相对充足的网络资源以及硬件资源,故在此情况将边缘服务器的访问权同时分配给低成本节点和客户端节点,以此能够相对确保边缘服务器的整体资源获得有效利用。Based on the above explanation of bandwidth usage, when the value of bandwidth usage is less than the minimum bandwidth threshold, it means that the current bandwidth usage of the edge server is relatively low, and the edge server has high network communication performance. In this case, when When the value of the hardware parameter of the edge server is less than the hardware warning threshold, that is, the hardware resource occupation of the edge server itself is relatively small, and the edge server has high data processing performance. When the bandwidth of the edge server and the occupied degree of hardware are both small, it means that the edge server has relatively sufficient network resources and hardware resources. Therefore, in this case, the access rights of the edge server are allocated to the low-cost nodes and the client nodes at the same time, so that the This can relatively ensure that the overall resources of the edge server are effectively utilized.
步骤S22:当带宽使用率的值大于或等于带宽最低阈值并小于自由分配阈值,硬件参数的值小于硬件警戒阈值,且服务反馈指标满足指标条件时,判断是否存在设备通信成本低于边缘服务器且工作状态与边缘服务器一致的优选边缘服务器,如果是,则执行步骤S23,否则,执行步骤S24。Step S22: When the value of the bandwidth usage rate is greater than or equal to the minimum 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 indicator satisfies the indicator condition, determine whether there is a device with a communication cost lower than the edge server and For the preferred edge server whose working status is consistent with that of the edge server, if yes, go to step S23; otherwise, go to step S24.
步骤S23:将优选边缘服务器的访问权同时分配给低成本节点和客户端节点。Step S23: Allocate the access right of the preferred edge server to the low-cost node and the client node at the same time.
步骤S24:将边缘服务器的访问权同时分配给低成本节点和客户端节点。Step S24: Allocate the access right of the edge server to the low-cost node and the client node at the same time.
其中,自由分配阈值小于带宽警戒阈值。Among them, the free allocation threshold is smaller than the bandwidth warning threshold.
需要说明的是,当带宽使用率的值达到或超过带宽最低阈值的范围,即大于或等于带宽最低阈值,并小于自由分配阈值,且硬件参数的值小于硬件警戒阈值时,则说明边缘服务器当前的硬件的被占用程度较小,而带宽已经受到一定程度的占用但是尚未达到较高的占用程度,在此情况下,本实施例根据边缘服务器的通信成本判定是否使用该边缘服务器向低成本节点和客户端节点提供数据服务,即判断是否存在设备通信成本低于边缘服务器且工作状态与边缘服务器一致的优选边缘服务器。当存在优选边缘服务器的带宽使用率值同样大于或等于带宽最低阈值并小于自由分配阈值,硬件参数的值小于硬件警戒阈值,且设备通信成本低于边缘服务器的优选边缘服务器时,将优选边缘服务器的访问权同时分配给低成本节点和客户端节点,相反的,若不存在上述的优选边缘服务器时,将边缘服务器的访问权同时分配给低成本节点和客户端节点,以此相对降低了网络系统下边缘服务器提供数据服务的整体成本。It should be noted that when the value of the bandwidth usage rate reaches or exceeds the range of the minimum bandwidth threshold, that is, it is greater than or equal to the minimum bandwidth threshold and less than the free allocation threshold, and the value of the hardware parameter is less than the hardware warning threshold, it means that the edge server is currently The occupied degree of the hardware is relatively small, and the bandwidth has been occupied to a certain extent but has not reached a high degree of occupancy. In this case, this embodiment determines whether to use the edge server to low-cost nodes according to the communication cost of the edge server. Provide data services with client nodes, that is, determine whether there is a preferred edge server with a device communication cost lower than that of the edge server and the same working state as the edge server. When the bandwidth usage value of the preferred edge server is also greater than or equal to the minimum bandwidth threshold and less than the free allocation threshold, the value of the hardware parameter is less than the hardware alert threshold, and the device communication cost is lower than the preferred edge server of the edge server, the preferred edge server will be selected. On the contrary, if the above-mentioned preferred edge server does not exist, the access rights of the edge server are allocated to the low-cost node and the client node at the same time, which relatively reduces the network The overall cost of data services provided by edge servers under the system.
步骤S25:在服务反馈指标满足指标条件的前提下,当带宽使用率的值大于或等于自由分配阈值且小于带宽警戒阈值,或硬件参数的值大于硬件警戒阈值时,将边缘服务器的访问权仅分配给低成本节点。Step S25: On the premise that the service feedback index satisfies the index condition, when the value of the bandwidth usage rate is greater than or equal to the free allocation threshold and less than the bandwidth warning threshold, or when the value of the hardware parameter is greater than the hardware warning threshold, the access right of the edge server is only Allocate to low-cost nodes.
需要说明的是,当带宽使用率的值大于或等于自由分配阈值且小于带宽警戒阈值时,说明当前对于边缘服务器的网络资源占用已经临近于警戒情况的;当硬件参数的值大于硬件警戒阈值时,说明边缘服务器的硬件资源被占用程度相对较大。为了相对确保边缘服务器的有限资源能够服务更多的客户端节点,当满足上述两种情况中的任意一种情况时,本实施例将边缘服务器的访问权仅分配给低成本节点,由于客户端节点仍然能够通过低成本节点的间接访问到边缘服务器中的数据流,因此将边缘服务器的访问权分配给低成本节点后,能够通过低成本节点向客户端节点提供数据流,在相对确保边缘服务器的有限资源能够服务更多的客户端节点的同时,相对避免了客户端节点进一步占用边缘服务器的可用资源。It should be noted that when the value of the bandwidth usage rate is greater than or equal to the free allocation threshold and less than the bandwidth warning threshold, it means that the current network resource occupancy for the edge server is close to the warning situation; when the value of the hardware parameter is greater than the hardware warning threshold , indicating that the hardware resources of the edge server are relatively occupied. In order to relatively ensure that the limited resources of the edge server can serve more client nodes, when either of the above two conditions is satisfied, this embodiment allocates the access right of the edge server only to low-cost nodes. Nodes can still indirectly access data streams in edge servers through low-cost nodes. Therefore, after allocating the access rights of edge servers to low-cost nodes, data streams can be provided to client nodes through low-cost nodes. While the limited resources can serve more client nodes, it relatively avoids the client nodes from further occupying the available resources of the edge server.
步骤S26:在服务反馈指标满足指标条件的前提下,当带宽使用率达到带宽耗尽阈值,或硬件参数的值达到硬件耗尽阈值时,将边缘服务器的访问权停止分配给低成本节点和客户端节点。Step S26: On the premise that the service feedback index satisfies the index condition, when the bandwidth usage rate reaches the bandwidth exhaustion threshold, or the value of the hardware parameter reaches the hardware exhaustion threshold, stop allocating the access right of the edge server to the low-cost nodes and customers end node.
其中,带宽耗尽阈值大于带宽警戒阈值,硬件耗尽阈值大于硬件警戒阈值。The bandwidth exhaustion threshold is greater than the bandwidth warning threshold, and the hardware exhaustion threshold is greater than the hardware warning threshold.
需要说明的是,当带宽使用率达到带宽耗尽阈值,或硬件参数的值达到硬件耗尽阈值时,为了避免边缘服务器可能发生跑超以及宕机等影响边缘服务器的稳定性情况,本实施例将边缘服务器的访问权停止分配给低成本节点和客户端节点。It should be noted that, when the bandwidth usage rate reaches the bandwidth exhaustion threshold, or the value of the hardware parameter reaches the hardware exhaustion threshold, in order to prevent the edge server from overrunning and downtime, which may affect the stability of the edge server, this embodiment Stop assigning edge server access to low-cost nodes and client nodes.
此外,需要强调的是,本实施例在判定网络参数的带宽使用率方面,分别采用了带宽最低阈值、自由分配阈值、带宽警戒阈值以及带宽耗尽阈值,其中,上述各类阈值之间的大小关系为:带宽最低阈值<自由分配阈值<带宽警戒阈值<带宽耗尽阈值,由于上述的各类阈值衡量的是带宽使用率的程度,因此具体取值应根据实际情况而定,例如带宽最低阈值为20%,自由分配阈值为85%,带宽警戒阈值90%,带宽耗尽阈值95%;在判定硬件参数的方面基于硬件警戒阈值以及硬件耗尽阈值,其二者大小关系为:硬件警戒阈值<硬件耗尽阈值,在此技术上,由于硬件参数能够进一步细化,因此对于每种具体的硬件参数均应有对应的硬件警戒阈值以及硬件耗尽阈值。In addition, it should be emphasized that this embodiment adopts the minimum bandwidth threshold, the free allocation threshold, the bandwidth warning threshold and the bandwidth exhaustion threshold respectively in determining the bandwidth usage rate of the network parameters. The relationship is: bandwidth minimum threshold < free allocation threshold < bandwidth warning threshold < bandwidth exhaustion threshold. Since the above thresholds measure the degree of bandwidth utilization, the specific value should be determined according to the actual situation, such as the minimum bandwidth threshold is 20%, the free allocation threshold is 85%, the bandwidth warning threshold is 90%, and the bandwidth exhaustion threshold is 95%; the hardware parameters are determined based on the hardware warning threshold and the hardware exhaustion threshold, and the relationship between the two is: hardware warning threshold <Hardware exhaustion threshold, in this technology, since hardware parameters can be further refined, there should be corresponding hardware warning thresholds and hardware exhaustion thresholds for each specific hardware parameter.
在上述实施例的技术上,作为一种优选的实施方式,硬件参数包括CPU使用率以及内存使用率。In the technical aspect of the foregoing embodiment, as a preferred implementation manner, the hardware parameters include the CPU usage rate and the memory usage rate.
由于CPU以及内存是制约边缘服务器数据处理效率的重要硬件因素,因此本实施方式的硬件参数中包括CPU使用率以及内存使用率,进而能够基于CPU使用率以及内存使用率相对准确的提高对于边缘服务器的分配准确性。Since the CPU and memory are important hardware factors that restrict the data processing efficiency of the edge server, the hardware parameters in this embodiment include the CPU usage rate and the memory usage rate, so that the edge server can be relatively accurately improved based on the CPU usage rate and the memory usage rate. allocation accuracy.
在具体的应用场景中,CPU使用率以及内存使用率的硬件警戒阈值可以分别是85%,硬件耗尽阈值可以分别是95%。In a specific application scenario, the hardware warning thresholds of CPU usage and memory usage may be 85%, respectively, and the hardware exhaustion thresholds may be 95%, respectively.
作为一种优选的实施方式,服务反馈指标包括连接成功率以及响应延时;As a preferred embodiment, the service feedback indicators include connection success rate and response delay;
相应的,服务反馈指标满足指标条件,包括:Correspondingly, the service feedback indicator satisfies the indicator conditions, including:
连接成功率大于预设成功率阈值和/或响应延时大于预设延时阈值时。When the connection success rate is greater than the preset success rate threshold and/or the response delay is greater than the preset delay threshold.
需要说明的是,本实施方式的网络参数中包括连接成功率以及响应延时,连接成功率表征的是边缘服务器响应低成本节点或客户端节点访问时,低成本节点或客户端正常接入边缘服务器的概率,而响应延时表征的是低成本节点或客户端节点接入边缘服务器后,边缘服务器对于低成本节点或客户端节点的应答耗时。当连接成功率大于预设成功率阈值,或响应延时大于预设延时阈值时,则说明边缘服务器提供数据服务的可靠性以及效率较高,因此作为将边缘服务器的访问权分配给低成本节点和客户端节点的前提,能够相对保证对于低成本节点以及客户端节点的服务效率以及可靠性。It should be noted that the network parameters in this embodiment include the connection success rate and the response delay. The connection success rate represents that when the edge server responds to the access of the low-cost node or client node, the low-cost node or client normally accesses the edge. The probability of the server, and the response delay represents the time taken by the edge server to respond to the low-cost node or client node after the low-cost node or 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 edge server provides data services with high reliability and efficiency. The premise of nodes and client nodes can relatively guarantee the service efficiency and reliability for low-cost nodes and client nodes.
作为一种优选的实施方式,在根据网络参数、硬件参数以及服务反馈指标满足的预设条件,将边缘服务器的访问权选择性分配给低成本节点和/或客户端节点之前,方法还包括:As a preferred embodiment, before selectively allocating the access rights of the edge server to low-cost nodes and/or client nodes according to network parameters, hardware parameters and preset conditions satisfied by service feedback indicators, the method further includes:
获取边缘服务器已接入的客户端节点的客户节点数量;Get the number of client nodes that the edge server has connected to;
相应的,根据网络参数、硬件参数以及服务反馈指标满足的预设条件,将边缘服务器的访问权选择性分配给低成本节点和/或客户端节点,包括:Correspondingly, according to the preset conditions satisfied by network parameters, hardware parameters and service feedback indicators, the access rights of edge servers are selectively allocated to low-cost nodes and/or client nodes, including:
当客户节点数量小于预设接入阈值时,根据网络参数、硬件参数以及服务反馈指标满足的预设条件,将边缘服务器的访问权选择性分配给低成本节点和/或客户端节点。When the number of client nodes is less than the preset access threshold, the access rights of the edge server are selectively allocated to low-cost nodes and/or client nodes according to network parameters, hardware parameters, and preset conditions satisfied by service feedback indicators.
需要说明的是,本实施方式的重点在于获取边缘服务器已接入的客户端节点的客户节点数量,并对已接入边缘服务器的客户端节点的客户节点数量进行分析,当客户节点数量小于预设接入阈值时,根据网络参数以及硬件参数满足的预设条件,将边缘服务器的访问权选择性分配给低成本节点和/或客户端节点,也就是说,将边缘服务器的访问权选择性分配给低成本节点和/或客户端节点的这一操作,需要基于边缘服务器的客户节点数量小于预设接入阈值进行。本实施方式相对确保了接入边缘服务器的节点数量在可控范围,一定程度上减少了对于边缘服务器中资源的整体占用,保证了边缘服务器的工作稳定性。It should be noted that the focus of this embodiment is to obtain the number of client nodes of the client nodes that have been connected to the edge server, and to analyze the number of client nodes of the client nodes that have been connected to the edge server. When setting the access threshold, according to the preset conditions met by network parameters and hardware parameters, the access rights of edge servers are selectively allocated to low-cost nodes and/or client nodes, that is, the access rights of edge servers are selectively allocated. This operation allocated to low-cost nodes and/or client nodes needs to be performed based on the number of client nodes of the edge server being less than the preset access threshold. This embodiment relatively ensures that the number of nodes accessing the edge server is within 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.
在上述一系列实施方式的基础上,作为一种优选的实施方式,将边缘服务器的访问权选择性分配给低成本节点和/或客户端节点,包括:Based on the foregoing series of implementations, as a preferred implementation, selectively assigning the access rights of edge servers to low-cost nodes and/or client nodes, including:
通过发送边缘服务器访问地址的方式将边缘服务器的访问权选择性分配给低成本节点和/或客户端节点。The access rights of edge servers are selectively allocated to low-cost nodes and/or client nodes by sending edge server access addresses.
需要说明的是,本实施方式的采用向低成本节点和/或客户端节点发送边缘服务器访问地址的方式,告知低成本节点和/或客户端节点能够访问到数据流的途径,相对确保了低成本节点以及客户端节点获取边缘服务器中数据流的效率。It should be noted that, the method of sending the edge server access address to the low-cost node and/or the client node in this embodiment, informing the low-cost node and/or the client node of the way to access the data stream, relatively ensures low cost. Efficiency with which cost nodes and client nodes obtain data flow in edge servers.
图4为本发明实施例提供的一种服务器分配装置的结构图。FIG. 4 is a structural diagram of a server distribution apparatus according to an embodiment of the present invention.
服务器分配装置1包括存储器11、处理器12和总线13,存储器11上存储有可由总线13传输至处理器12并在处理器12上运行的服务器分配程序,服务器分配程序被处理器12执行时实现如上述的服务器分配方法。The
本发明所提供的服务器分配装置,首先获取边缘服务器的网络参数及硬件参数,并获取由低成本节点以及客户端节点传入的边缘服务器的服务反馈指标,进而根据服务反馈指标、网络参数以及硬件参数所满足的预设条件,将边缘服务器的访问权选择性的分配给低成本节点和/或客户端节点。由于考虑到边缘服务器在向低成本节点和/或客户端节点提供数据时,会占用边缘服务器自身的硬件资源,从而会对其自身的工作稳定性造成影响,因此本装置将边缘服务器的网络参数、硬件参数以及边缘服务器在低成本节点以及客户端节点处的服务状况共同作为分配边缘服务器分配方式的制约因素,进而有选择性地将边缘服务器分配给低成本节点和/或客户端节点以用于向低成本节点和/或客户端节点提供第三方服务节点的数据流,本装置相对提高了对边缘服务器进行分配时所参考因素的全面性,从而进一步保证了边缘服务器提供数据服务时的整体效率以及稳定性。The server distribution device provided by the present invention first obtains the network parameters and hardware parameters of the edge server, and obtains the service feedback index of the edge server transmitted from the low-cost node and the client node, and then obtains the service feedback index, network parameters and hardware parameters according to the service feedback index, network parameters and hardware parameters. The preset conditions met by the parameters selectively allocate the access rights of the edge server to low-cost nodes and/or client nodes. Considering that when the edge server provides data to low-cost nodes and/or client nodes, it will occupy the hardware resources of the edge server itself, which will affect its own work stability. Therefore, the device uses the network parameters of the edge server. , hardware parameters, and the service status of edge servers at low-cost nodes and client nodes serve as constraints for allocating edge server allocation methods, and then selectively assign edge servers to low-cost nodes and/or client nodes for use. In order to provide data streams of third-party service nodes to low-cost nodes and/or client nodes, the device relatively improves the comprehensiveness of the factors that are referenced when allocating edge servers, thereby further ensuring the overall integrity of edge servers when providing data services. efficiency and stability.
在本实施例中,服务器分配装置1可以是PC(Personal Computer,个人电脑),也可以是智能手机、平板电脑、掌上电脑、便携计算机、智能路由器、矿机、网络存储设备终端设备。In this embodiment, the
该服务器分配装置1可以是组成CDN网络或者区块链网络的节点。The
其中,存储器11至少包括一种类型的可读存储介质,所述可读存储介质包括闪存、硬盘、多媒体卡、卡型存储器(例如,SD或DX存储器等)、磁性存储器、磁盘、光盘等。存储器11在一些实施例中可以是服务器分配装置1的内部存储单元,例如该服务器分配装置1的硬盘。存储器11在另一些实施例中也可以是服务器分配装置1的外部存储设备,例如服务器分配装置1上配备的插接式硬盘,智能存储卡(Smart Media Card,SMC),安全数字(SecureDigital,SD)卡,闪存卡(Flash Card)等。进一步地,存储器11还可以既包括服务器分配装置1的内部存储单元也包括外部存储设备。存储器11不仅可以用于存储安装于服务器分配装置1的应用软件及各类数据,例如网络通信程序的代码等,还可以用于暂时地存储已经输出或者将要输出的数据。The
处理器12在一些实施例中可以是一中央处理器(Central Processing Unit,CPU)、控制器、微控制器、微处理器或其他数据处理芯片,用于运行存储器11中存储的程序代码或处理数据,例如执行网络通信程序等。The
该总线13可以是外设部件互连标准(peripheral component interconnect,简称PCI)总线或扩展工业标准结构(extended industry standard architecture,简称EISA)总线等。该总线可以分为地址总线、数据总线、控制总线等。为便于表示,图4中仅用一条粗线表示,但并不表示仅有一根总线或一种类型的总线。The
进一步地,服务器分配装置1还可以包括网络接口,网络接口可选的可以包括有线接口和/或无线接口(如WI-FI接口、蓝牙接口等),通常用于在该服务器分配装置1与其他电子设备之间建立通信连接。Further, the
可选地,该服务器分配装置1还可以包括用户接口,用户接口可以包括显示器(Display)、输入单元比如键盘(Keyboard),可选的用户接口还可以包括标准的有线接口、无线接口。可选地,在一些实施例中,显示器可以是LED显示器、液晶显示器、触控式液晶显示器以及OLED(Organic Light-Emitting Diode,有机发光二极管)触摸器等。其中,显示器也可以适当的称为显示屏或显示单元,用于显示在服务器分配装置1中处理的信息以及用于显示可视化的用户界面。Optionally, the
本发明还提供一种服务器分配系统,系统包括:The present invention also provides a server distribution system, the system includes:
参数获取模块,用于获取边缘服务器的网络参数及硬件参数,并获取由低成本节点以及客户端节点传入的边缘服务器的服务反馈指标;The parameter obtaining module is used to obtain the network parameters and hardware parameters of the edge server, and obtain the service feedback indicators of the edge server transmitted by the low-cost node and the client node;
服务器分配模块,用于根据网络参数、硬件参数以及服务反馈指标满足的预设条件,将边缘服务器的访问权选择性分配给低成本节点和/或客户端节点。The server allocation module is configured to selectively allocate the access rights of the edge server to low-cost nodes and/or client nodes according to the preset conditions satisfied by network parameters, hardware parameters and service feedback indicators.
本发明所提供的服务器分配系统,首先获取边缘服务器的网络参数及硬件参数,并获取由低成本节点以及客户端节点传入的边缘服务器的服务反馈指标,进而根据服务反馈指标、网络参数以及硬件参数所满足的预设条件,将边缘服务器的访问权选择性的分配给低成本节点和/或客户端节点。由于考虑到边缘服务器在向低成本节点和/或客户端节点提供数据时,会占用边缘服务器自身的硬件资源,从而会对其自身的工作稳定性造成影响,因此本系统将边缘服务器的网络参数、硬件参数以及边缘服务器在低成本节点以及客户端节点处的服务状况共同作为分配边缘服务器分配方式的制约因素,进而有选择性地将边缘服务器分配给低成本节点和/或客户端节点以用于向低成本节点和/或客户端节点提供第三方服务节点的数据流,本系统相对提高了对边缘服务器进行分配时所参考因素的全面性,从而进一步保证了边缘服务器提供数据服务时的整体效率以及稳定性。The server distribution system provided by the present invention first obtains the network parameters and hardware parameters of the edge server, and obtains the service feedback index of the edge server transmitted from the low-cost node and the client node, and then obtains the service feedback index, network parameters and hardware parameters according to the service feedback index, network parameters and hardware parameters. The preset conditions met by the parameters selectively allocate the access rights of the edge server to low-cost nodes and/or client nodes. Considering that when the edge server provides data to low-cost nodes and/or client nodes, it will occupy the hardware resources of the edge server itself, which will affect its own work stability. Therefore, this system uses the network parameters of the edge server. , hardware parameters, and the service status of edge servers at low-cost nodes and client nodes serve as constraints for allocating edge server allocation methods, and then selectively assign edge servers to low-cost nodes and/or client nodes for use. In order to provide data streams of third-party service nodes to low-cost nodes and/or client nodes, this system relatively improves the comprehensiveness of the factors that are referenced when allocating edge servers, thereby further ensuring the overall integrity of edge servers when providing data services. efficiency and stability.
此外,本发明还提供一种计算机可读存储介质,其特征在于,计算机可读存储介质上存储有服务器分配程序,服务器分配程序可被一个或者多个处理器执行,以实现如上述的服务器分配方法。In addition, the present invention also provides a computer-readable storage medium, characterized in that a server allocation program is stored on the computer-readable storage medium, and the server allocation program can be executed by one or more processors to realize the above-mentioned server allocation method.
本发明所提供的计算机可读存储介质,首先获取边缘服务器的网络参数及硬件参数,并获取由低成本节点以及客户端节点传入的边缘服务器的服务反馈指标,进而根据服务反馈指标、网络参数以及硬件参数所满足的预设条件,将边缘服务器的访问权选择性的分配给低成本节点和/或客户端节点。由于考虑到边缘服务器在向低成本节点和/或客户端节点提供数据时,会占用边缘服务器自身的硬件资源,从而会对其自身的工作稳定性造成影响,因此本计算机可读存储介质将边缘服务器的网络参数、硬件参数以及边缘服务器在低成本节点以及客户端节点处的服务状况共同作为分配边缘服务器分配方式的制约因素,进而有选择性地将边缘服务器分配给低成本节点和/或客户端节点以用于向低成本节点和/或客户端节点提供第三方服务节点的数据流,本计算机可读存储介质相对提高了对边缘服务器进行分配时所参考因素的全面性,从而进一步保证了边缘服务器提供数据服务时的整体效率以及稳定性。The computer-readable storage medium provided by the present invention first obtains the network parameters and hardware parameters of the edge server, and obtains the service feedback index of the edge server transmitted by the low-cost node and the client node, and then obtains the service feedback index and network parameter according to the service feedback index and the network parameter. As well as the preset conditions satisfied by the hardware parameters, the access rights of the edge server are selectively allocated to low-cost nodes and/or client nodes. Considering that when the edge server provides data to low-cost nodes and/or client nodes, it will occupy the hardware resources of the edge server itself, which will affect its own work stability. Therefore, the computer-readable storage medium stores the edge server The network parameters, hardware parameters of the server, and the service status of the edge server at the low-cost nodes and the client nodes are the constraints of the allocation method of the edge server, and then the edge server is selectively allocated to the low-cost nodes and/or clients. End nodes are used to provide data streams of third-party service nodes to low-cost nodes and/or client nodes, and the computer-readable storage medium relatively improves the comprehensiveness of the factors that are referenced when assigning edge servers, thereby further ensuring that The overall efficiency and stability of edge servers providing data services.
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。In the above-mentioned embodiments, it may be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented in software, it can 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 have been described in detail above. The various embodiments in the specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments, and the same and similar parts between the various embodiments can be referred to each other. As for the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant part can be referred to the description of the method. It should be pointed out that for those skilled in the art, without departing from the principle of the present invention, several improvements and modifications can also be made to the present invention, and these improvements and modifications also fall within the protection scope of the claims of the present invention.
还需要说明的是,在本说明书中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。It should also be noted that, in this specification, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply these entities or operations. There is no such actual relationship or sequence between operations. Moreover, the terms "comprising", "comprising" or any other variation thereof are intended to encompass non-exclusive inclusion such that a process, method, article or device comprising a list of elements includes not only those elements, but also includes not explicitly listed or other elements inherent to such a process, method, article or apparatus. Without further limitation, an element qualified by the phrase "comprising a..." does not preclude the presence of additional identical elements in a process, method, article or apparatus that includes the element.
Claims (11)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910630360.2A CN110336888B (en) | 2019-07-12 | 2019-07-12 | A server allocation 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 | A server allocation 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 | A server allocation method, device, system and medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110336888B (en) |
Families Citing this family (4)
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 |
CN113347286A (en) * | 2021-06-17 | 2021-09-03 | 深圳前海微众银行股份有限公司 | Method, device and equipment for determining domain name server and storage medium |
CN115242793B (en) * | 2022-07-05 | 2023-08-25 | 杭州萤石软件有限公司 | Streaming media load balancing method, device and system |
Family Cites Families (4)
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 | 北京信息科技大学 | A low-overhead task scheduling method and device in edge computing |
CN109743259B (en) * | 2018-12-24 | 2022-08-02 | 中国联合网络通信集团有限公司 | Network traffic scheduling method and device |
-
2019
- 2019-07-12 CN CN201910630360.2A patent/CN110336888B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN110336888A (en) | 2019-10-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110336888B (en) | A server allocation method, device, system and medium | |
CN109729106B (en) | Method, system and computer program product for processing computing tasks | |
CN106489251B (en) | Method, apparatus and system for applying topology discovery | |
WO2019205371A1 (en) | Server, message allocation method, and storage medium | |
CN108205541B (en) | Distributed network crawler task scheduling method and device | |
US10248175B2 (en) | Off-line affinity-aware parallel zeroing of memory in non-uniform memory access (NUMA) servers | |
US20230353971A1 (en) | Methods and systems for communication management | |
JP6480642B2 (en) | Stochastic bandwidth adjustment | |
CN103763346B (en) | A distributed resource scheduling method and device | |
CN109614227B (en) | Task resource allocation method, apparatus, electronic device, and computer-readable medium | |
CN109960575B (en) | Computing power sharing method, system and related equipment | |
CN115277566B (en) | Load balancing method and device for data access, computer equipment and medium | |
CN111045782A (en) | Log processing method and device, electronic equipment and computer readable storage medium | |
US9417902B1 (en) | Managing resource bursting | |
CN110290399A (en) | A data distribution method, system, device and computer-readable storage medium | |
US20200272526A1 (en) | Methods and systems for automated scaling of computing clusters | |
WO2023103516A1 (en) | Low-priority blocking method and apparatus based on processor virtualization environment | |
WO2020232903A1 (en) | Monitoring task dynamic adjustment method and apparatus, and computer device and storage medium | |
CN109450806B (en) | A flow control method and device, and distributed cluster | |
CN115190180B (en) | Network resource request scheduling method and device during network resource request surge | |
US20140089624A1 (en) | Cooperation of hoarding memory allocators in a multi-process system | |
CN108028806A (en) | The method and apparatus that virtual resource is distributed in network function virtualization NFV networks | |
CN110069386A (en) | A kind of operation terminal data processing method, operation terminal, system and medium | |
US10182019B2 (en) | Interconnected hardware infrastructure resource control | |
CN111625350A (en) | Memory allocation method, device, equipment and storage medium for network message data |
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 |