[go: up one dir, main page]

CN115277711A - Device scheduling method and device - Google Patents

Device scheduling method and device Download PDF

Info

Publication number
CN115277711A
CN115277711A CN202210923076.6A CN202210923076A CN115277711A CN 115277711 A CN115277711 A CN 115277711A CN 202210923076 A CN202210923076 A CN 202210923076A CN 115277711 A CN115277711 A CN 115277711A
Authority
CN
China
Prior art keywords
scheduling
servers
server
attribution
target
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210923076.6A
Other languages
Chinese (zh)
Inventor
杨方维
韦盖华
梁智鸿
王刚
王家宾
黄训涛
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tianyi Shilian Technology Co ltd
Original Assignee
Tianyi Digital Life 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 Tianyi Digital Life Technology Co Ltd filed Critical Tianyi Digital Life Technology Co Ltd
Priority to CN202210923076.6A priority Critical patent/CN115277711A/en
Publication of CN115277711A publication Critical patent/CN115277711A/en
Pending legal-status Critical Current

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
    • 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/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • Computing Systems (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Computer And Data Communications (AREA)

Abstract

The scheme provided by the application determines the attribution of the equipment through the equipment identification mark of the equipment to be scheduled, determines the optimal scheduling area according to the attribution of the equipment, filters the servers in the target area, eliminates part of servers with running states which do not meet requirements, determines the target server with the most appropriate load state from the rest servers by using a weighted minimum connection algorithm, achieves the effect of distributing the servers for the equipment to be scheduled in a self-adaptive mode, and solves the technical problem of low scheduling efficiency of the existing equipment scheduling method.

Description

一种设备调度方法及装置A device scheduling method and device

技术领域technical field

本申请涉及物联网技术领域,尤其涉及一种设备调度方法及装置。The present application relates to the technical field of the Internet of Things, and in particular to a device scheduling method and device.

背景技术Background technique

随着物联网技术的发展,各种厂家生产的设备越来越多的接入到长连接服务,单个节点的服务器已经远远不能满足设备连接的需求,由此便产生了对众多设备进行资源调度的需求。With the development of the Internet of Things technology, more and more devices produced by various manufacturers are connected to long-term connection services, and the server of a single node is far from meeting the needs of device connections, which leads to resource scheduling for many devices. demand.

物联网设备的调度过程指的是设备联网后,通过调用相应的调度接口为该设备分配一台服务器用于处理该设备的请求,当前的设备调度的方法多为区域性,业务个性化的一些调度方式,使得这些调度方法的实施一般需要事先明确调度区域以及业务类型,导致现有的设备调度方法调度效率低的技术问题。The scheduling process of the IoT device refers to that after the device is connected to the Internet, a server is allocated to the device by calling the corresponding scheduling interface to process the request of the device. The current method of device scheduling is mostly regional, and some business personalized Scheduling methods, so that the implementation of these scheduling methods generally needs to specify the scheduling area and service type in advance, which leads to the technical problem of low scheduling efficiency of the existing equipment scheduling methods.

发明内容Contents of the invention

本申请提供了一种设备调度方法及装置,用于解决现有的设备调度方法调度效率低的技术问题。The present application provides an equipment scheduling method and device, which are used to solve the technical problem of low scheduling efficiency of the existing equipment scheduling method.

为解决上述技术问题,首先,本申请第一方面提供了一种设备调度方法,包括:In order to solve the above technical problems, first, the first aspect of the present application provides a device scheduling method, including:

响应于设备发送的调度请求消息,提取所述调度请求消息包含的设备识别标识;In response to the scheduling request message sent by the device, extracting the device identification contained in the scheduling request message;

根据所述设备识别标识,确定所述设备的归属地,再根据所述设备的归属地确定目标区域;Determine the attribution of the device according to the device identification, and then determine the target area according to the attribution of the device;

根据所述目标区域中各个服务器的运行状态,对所述目标区域中运行状态不满足要求的服务器进行过滤;According to the operation status of each server in the target area, filter the servers whose operation status does not meet the requirements in the target area;

基于过滤后剩余的服务器,通过加权最小连接算法,从剩余的服务器中确定目标服务器,以基于所述目标服务器进行设备调度。Based on the remaining servers after filtering, the target server is determined from the remaining servers through a weighted minimum connection algorithm, so as to perform device scheduling based on the target server.

优选地,当所述目标服务器的数量为多个时,则基于过滤后剩余的服务器,通过加权最小连接算法,从剩余的服务器中确定目标服务器之后还包括:Preferably, when the number of the target servers is multiple, based on the remaining servers after filtering, through the weighted minimum connection algorithm, after determining the target servers from the remaining servers, it also includes:

通过随机轮询算法,从多个目标服务器中确定一个目标服务器。A target server is determined from multiple target servers by a random polling algorithm.

优选地,所述根据所述设备识别标识,确定所述设备的归属地,再根据所述设备的归属地确定目标区域具体包括:Preferably, the determining the attribution of the device according to the identification of the device, and then determining the target area according to the attribution of the device specifically includes:

根据所述设备识别标识中的设备IP,确定所述设备的IP归属地,再根据所述设备的IP归属地确定目标区域。According to the device IP in the device identification, determine the IP attribution of the device, and then determine the target area according to the IP attribution of the device.

优选地,所述根据所述目标区域中各个服务器的运行状态,对所述目标区域中运行状态不满足要求的服务器进行过滤具体包括:Preferably, according to the running status of each server in the target area, filtering the servers whose running status does not meet the requirements in the target area specifically includes:

根据所述目标区域中各个服务器的运行状态,对所述目标区域中负载值高于预设负载阈值或处于下线状态的服务器进行过滤。According to the running status of each server in the target area, the servers in the target area whose load value is higher than a preset load threshold or in an offline state are filtered.

优选地,所述提取所述调度请求消息包含的设备识别标识之后还包括:Preferably, after extracting the device identification contained in the scheduling request message, the method further includes:

根据所述设备识别标识,匹配所述设备识别标识的指定调度策略,若匹配成功,则按照所述指定调度策略进行设备调度,若匹配不成功,则根据所述设备识别标识,确定所述设备的归属地,再根据所述设备的归属地确定目标区域。According to the device identification, match the specified scheduling policy of the device identification, if the matching is successful, perform device scheduling according to the specified scheduling policy, if the matching is unsuccessful, determine the device according to the device identification The attribution of the device, and then determine the target area according to the attribution of the device.

同时,本申请第二方面提供了一种设备调度装置,包括:At the same time, the second aspect of the present application provides an equipment scheduling device, including:

调度请求响应单元,用于响应于设备发送的调度请求消息,提取所述调度请求消息包含的设备识别标识;a scheduling request response unit, configured to respond to the scheduling request message sent by the device, and extract the device identification contained in the scheduling request message;

设备区域确定单元,用于根据所述设备识别标识,确定所述设备的归属地,再根据所述设备的归属地确定目标区域;A device area determining unit, configured to determine the attribution of the device according to the device identification, and then determine the target area according to the attribution of the device;

服务器过滤单元,用于根据所述目标区域中各个服务器的运行状态,对所述目标区域中运行状态不满足要求的服务器进行过滤;a server filtering unit, configured to filter servers whose operating status does not meet requirements in the target area according to the operating status of each server in the target area;

目标服务器确定单元,用于基于过滤后剩余的服务器,通过加权最小连接算法,从剩余的服务器中确定目标服务器,以基于所述目标服务器进行设备调度。The target server determining unit is configured to determine a target server from the remaining servers based on the remaining servers after filtering through a weighted minimum connection algorithm, so as to perform device scheduling based on the target servers.

优选地,当所述目标服务器的数量为多个时,则基于过滤后剩余的服务器,通过加权最小连接算法,从剩余的服务器中确定目标服务器之后还包括:Preferably, when the number of the target servers is multiple, based on the remaining servers after filtering, through the weighted minimum connection algorithm, after determining the target servers from the remaining servers, it also includes:

目标服务器二次确定单元,用于通过随机轮询算法,从多个目标服务器中确定一个目标服务器。The target server secondary determination unit is used to determine a target server from multiple target servers through a random polling algorithm.

优选地,所述设备区域确定单元具体用于:Preferably, the device area determination unit is specifically configured to:

根据所述设备识别标识中的设备IP,确定所述设备的IP归属地,再根据所述设备的IP归属地确定目标区域。According to the device IP in the device identification, determine the IP attribution of the device, and then determine the target area according to the IP attribution of the device.

优选地,所述服务器过滤单元具体用于:Preferably, the server filtering unit is specifically used for:

根据所述目标区域中各个服务器的运行状态,对所述目标区域中负载值高于预设负载阈值或处于下线状态的服务器进行过滤。According to the running status of each server in the target area, the servers in the target area whose load value is higher than a preset load threshold or in an offline state are filtered.

优选地,还包括:Preferably, it also includes:

指定调度策略匹配单元,用于根据所述设备识别标识,匹配所述设备识别标识的指定调度策略,若匹配成功,则按照所述指定调度策略进行设备调度,若匹配不成功,则根据所述设备识别标识,确定所述设备的归属地,再根据所述设备的归属地确定目标区域。A specified scheduling strategy matching unit, configured to match the specified scheduling strategy of the device identifier according to the device identifier, if the matching is successful, perform device scheduling according to the specified scheduling strategy, and if the matching is unsuccessful, then perform device scheduling according to the described Identify the device, determine the attribution of the device, and then determine the target area according to the attribution of the device.

从以上技术方案可以看出,本申请实施例具有以下优点:It can be seen from the above technical solutions that the embodiments of the present application have the following advantages:

本申请提供的方案通过待调度设备的设备识别标识,确定所述设备的归属地,再根据所述设备的归属地确定最佳的调度区域,对该目标区域的服务器进行过滤,剔除部分运行状态不满足要求的服务器,再使用加权最小连接算法从剩余的服务器确定负载状态最合适的目标服务器,实现为待调度的设备自适应地分配服务器的效果,解决了现有的设备调度方法调度效率低的技术问题。The solution provided by this application determines the attribution of the device through the device identification of the device to be scheduled, and then determines the best scheduling area according to the attribution of the device, filters the servers in the target area, and excludes some operating states For servers that do not meet the requirements, use the weighted minimum connection algorithm to determine the target server with the most suitable load status from the remaining servers, so as to realize the effect of adaptively allocating servers for the equipment to be scheduled, and solve the low scheduling efficiency of the existing equipment scheduling method technical problems.

附图说明Description of drawings

为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其它的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only These are some embodiments of the present application. Those skilled in the art can also obtain other drawings based on these drawings without any creative effort.

图1为本申请提供的一种设备调度方法的系统架构示意图。FIG. 1 is a schematic diagram of a system architecture of a device scheduling method provided in the present application.

图2为本申请提供的一种设备调度方法的一个实施例的流程示意图。Fig. 2 is a schematic flowchart of an embodiment of a device scheduling method provided by the present application.

图3为本申请提供的一种设备调度方法的另一个实施例的流程示意图。Fig. 3 is a schematic flowchart of another embodiment of a device scheduling method provided by the present application.

图4为本申请提供的一种设备调度装置的一个实施例的结构示意图。FIG. 4 is a schematic structural diagram of an embodiment of an apparatus for scheduling equipment provided by the present application.

具体实施方式Detailed ways

本申请实施例提供了一种设备调度方法及装置,用于解决现有的设备调度方法调度效率低的技术问题。The embodiment of the present application provides an equipment scheduling method and device, which are used to solve the technical problem of low scheduling efficiency of the existing equipment scheduling method.

为使得本申请的发明目的、特征、优点能够更加的明显和易懂,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,下面所描述的实施例仅仅是本申请一部分实施例,而非全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其它实施例,都属于本申请保护的范围。In order to make the purpose, features and advantages of the present application more obvious and understandable, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the following The described embodiments are only some of the embodiments of the present application, but not all of them. Based on the embodiments in this application, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the scope of protection of this application.

如图1所示,本申请提供的设备调度方法涉及的系统结构包括两个部分:设备长连接服务部分与调度服务部分,其中,设备长连接服务部分用于控制服务器的连接事务,通过服务器预设的上报模块每隔一定的时间上报该服务器当前的节点信息到调度服务,服务器的节点信息包含但不限于内网IP、公网IP、服务器当前长连接端口的连接数、服务器当前的基础信息等,其中,基础信息包含但不限于:cpu使用率、内存使用率、网络带宽使用率、磁盘使用率、在线状态;调度服务通过保存服务器上报的信息,以用于执行后续的调度策略,即本申请提供的设备调度方法。As shown in Figure 1, the system structure involved in the device scheduling method provided by this application includes two parts: the device long-connection service part and the scheduling service part, wherein the device long-connection service part is used to control the connection transaction of the server. The reporting module is set to report the current node information of the server to the scheduling service at regular intervals. The server node information includes but not limited to internal network IP, public network IP, the number of connections of the server’s current long-term connection port, and the current basic information of the server. etc. Among them, the basic information includes but is not limited to: cpu usage rate, memory usage rate, network bandwidth usage rate, disk usage rate, online status; the scheduling service saves the information reported by the server to execute subsequent scheduling strategies, namely The device scheduling method provided by this application.

以上便是本申请提供的一种设备调度方法系统层面的整体框架,下面内容为本申请提供的一种设备调度方法的一个实施例的详细说明。The above is the overall framework of the device scheduling method provided by the present application at the system level, and the following content is a detailed description of an embodiment of the device scheduling method provided by the present application.

请参阅图2,本申请实施例提供了一种设备调度方法,包括:Please refer to Figure 2, the embodiment of the present application provides a device scheduling method, including:

步骤101、响应于设备发送的调度请求消息,提取调度请求消息包含的设备识别标识。Step 101. In response to the scheduling request message sent by the device, extract the device identification contained in the scheduling request message.

需要说明的是,厂家设备联网后,该设备通过调用相应的调度接口向调度服务发送调度请求消息,调度服务收到设备发送的调度请求消息后,提取该调度请求消息中包含的设备识别标识,其中该设备识别标识包括但不限于设备号以及设备IP。It should be noted that after the manufacturer's equipment is connected to the network, the equipment sends a scheduling request message to the scheduling service by calling the corresponding scheduling interface. After receiving the scheduling request message sent by the device, the scheduling service extracts the device identification contained in the scheduling request message. The device identification includes but not limited to device number and device IP.

步骤102、根据设备识别标识,确定设备的归属地,再根据设备的归属地确定目标区域。Step 102: Determine the attribution of the device according to the identification of the device, and then determine the target area according to the attribution of the device.

然后,利用步骤101获得的设备识别标识,查询该设备的归属地信息,接着,在确定该设备的归属地后,根据归属地确定目标区域,以便在该目标区域内筛选出用于与该设备建立长连接的目标服务器。Then, use the device identification obtained in step 101 to query the attribution information of the device, and then, after determining the attribution of the device, determine the target area according to the attribution, so as to filter out the information used to communicate with the device in the target area. The target server to establish a persistent connection.

步骤103、根据目标区域中各个服务器的运行状态,对目标区域中运行状态不满足要求的服务器进行过滤。Step 103, according to the running status of each server in the target area, filter the servers whose running status does not meet the requirements in the target area.

再接着,基于步骤102确定的目标区域,对目标区域中的服务器进行筛选,将运行状态不满足要求服务器进行过滤,并根据过滤后剩余的服务器,继续执行后续的步骤,其中,服务器的运行状态可以根据各服务器上报的节点信息确定,在此不再赘述。Then, based on the target area determined in step 102, the servers in the target area are screened, the servers whose operating status does not meet the requirements are filtered, and the subsequent steps are continued according to the remaining servers after filtering, wherein the operating status of the server It can be determined according to the node information reported by each server, and will not be repeated here.

步骤104、基于过滤后剩余的服务器,通过加权最小连接算法,从剩余的服务器中确定目标服务器,以基于目标服务器进行设备调度。Step 104, based on the remaining servers after filtering, determine the target server from the remaining servers through the weighted least connection algorithm, so as to perform device scheduling based on the target server.

需要说明的是,加权最小连接调度(Weighted Least-Connection Scheduling)算法是最小连接调度的超集,各个服务器用相应的权值表示其处理性能。服务器的缺省权值为1,系统管理员可以动态地设置服务器的权值。加权最小连接调度在调度新连接时尽可能使服务器的已建立连接数和其权值成比例。It should be noted that the weighted least-connection scheduling (Weighted Least-Connection Scheduling) algorithm is a superset of the least-connection scheduling, and each server uses a corresponding weight to represent its processing performance. The default weight of the server is 1, and the system administrator can dynamically set the weight of the server. The weighted least connection scheduling makes the number of established connections of the server proportional to its weight as much as possible when scheduling new connections.

再接着,基于过滤后剩余的服务器,通过加权最小连接算法,从剩余的服务器中确定当前运行状态最优的目标服务器,以基于该目标服务器完成设备调度的任务。Then, based on the remaining servers after filtering, the target server with the best current running state is determined from the remaining servers through the weighted minimum connection algorithm, so as to complete the task of device scheduling based on the target server.

本申请实施例提供的方案通过待调度设备的设备识别标识,确定设备的归属地,再根据设备的归属地确定最佳的调度区域,对该目标区域的服务器进行过滤,剔除部分运行状态不满足要求的服务器,再使用加权最小连接算法从剩余的服务器确定负载状态最合适的目标服务器,实现为待调度的设备自适应地分配服务器的效果,解决了现有的设备调度方法调度效率低的技术问题。The solution provided by the embodiment of this application determines the attribution of the device through the device identification of the device to be dispatched, and then determines the best dispatching area according to the attribution of the device, filters the servers in the target area, and excludes some of the operating states that do not meet the requirements. The required server, and then use the weighted minimum connection algorithm to determine the target server with the most suitable load status from the remaining servers, so as to realize the effect of adaptively allocating servers for the equipment to be scheduled, and solve the problem of low scheduling efficiency of the existing equipment scheduling method question.

以上内容便是本申请提供的一种设备调度方法的第一个实施例的详细说明,下面为本申请提供的一种设备调度方法的第二个实施例的详细说明。The above content is the detailed description of the first embodiment of the device scheduling method provided by the present application, and the following is the detailed description of the second embodiment of the device scheduling method provided by the present application.

请参阅图3,在上一个实施例提供的设备调度方法的内容基础上,本实施例提供的一种设备调度方法,包括:Please refer to Figure 3. Based on the content of the device scheduling method provided in the previous embodiment, a device scheduling method provided in this embodiment includes:

进一步地,第一个实施例提及的步骤101,其步骤之后还可以包括:Further, step 101 mentioned in the first embodiment may further include:

步骤1001、根据设备识别标识,匹配设备识别标识的指定调度策略,若匹配成功,则按照指定调度策略进行设备调度,若匹配不成功,则根据设备识别标识,确定设备的归属地,再根据设备的归属地确定目标区域。Step 1001, according to the device identification, match the specified scheduling policy of the device identification, if the match is successful, then perform equipment scheduling according to the specified scheduling policy, if the match is unsuccessful, determine the attribution of the device according to the device identification, and then according to the attribution to determine the target area.

需要说明的是,在提取了设备识别标识之后,可以先根据提取出的设备识别标识,通过匹配方式,判断该设备识别标识是否具有对应的指定调度策略,若匹配成功,则优先按照匹配到的指定调度策略,对该设备进行调度,例如,按照该指定调度策略将指定区域中特定服务器或任意服务器作为目标服务器分配给发送调度请求消息的设备。若匹配不成功,则跳转到步骤102。It should be noted that after the device identification is extracted, it can be judged whether the device identification has a corresponding specified scheduling strategy based on the extracted device identification through matching methods. If the matching is successful, the matched A scheduling strategy is specified to schedule the device, for example, according to the specified scheduling strategy, a specific server or any server in the specified area is assigned as a target server to the device sending the scheduling request message. If the matching is unsuccessful, go to step 102.

进一步地,第一个实施例提及的步骤102,其步骤过程具体包括:Further, the step 102 mentioned in the first embodiment specifically includes:

根据设备识别标识中的设备IP,确定设备的IP归属地,再根据设备的IP归属地确定目标区域。According to the device IP in the device identification, determine the IP attribution of the device, and then determine the target area according to the IP attribution of the device.

需要说明的是,根据设备识别标识中的设备IP,通过IP归属地查询方式,确定该设备IP对应的IP归属地,再根据设备的IP归属地确定目标区域。It should be noted that, according to the device IP in the device identification, the IP attribution corresponding to the device IP is determined through the IP attribution query method, and then the target area is determined according to the IP attribution of the device.

进一步地,第一个实施例提及的步骤103,其步骤过程具体包括:具体包括:Further, the step 103 mentioned in the first embodiment specifically includes: specifically includes:

根据目标区域中各个服务器的运行状态,对目标区域中负载值高于预设负载阈值或处于下线状态的服务器进行过滤。According to the running status of each server in the target area, the server in the target area whose load value is higher than the preset load threshold or is offline is filtered.

对目标区域中的服务器进行筛选,对目标区域中负载值高于预设负载阈值或处于下线状态的服务器进行过滤,以剔除过载、状态下线的服务器,从而得到剩余的负载值正常且在线的服务器,其中,本实施例提及的负载值可以根据服务器上报的cpu使用率、内存使用率、磁盘使用率、网络带宽使用率等信息,根据预设的公式计算得出,计算的方式包括但不限于:各使用率的加权和、各使用率的乘积、各使用率的最大值或平均值等,也可以是其它现有的负载计算方式。Filter the servers in the target area, and filter the servers whose load value is higher than the preset load threshold or offline in the target area to eliminate overloaded and offline servers, so as to obtain the remaining load values that are normal and online server, wherein the load value mentioned in this embodiment can be calculated according to a preset formula based on information such as cpu usage rate, memory usage rate, disk usage rate, network bandwidth usage rate reported by the server, and the calculation method includes But not limited to: the weighted sum of each usage rate, the product of each usage rate, the maximum or average value of each usage rate, etc., and other existing load calculation methods may also be used.

进一步地,当目标服务器的数量为多个时,则基于过滤后剩余的服务器,通过加权最小连接算法,从剩余的服务器中确定目标服务器之后还包括:Further, when there are multiple target servers, based on the remaining servers after filtering, through the weighted minimum connection algorithm, after determining the target server from the remaining servers, it also includes:

步骤1002、通过随机轮询算法,从多个目标服务器中确定一个目标服务器。Step 1002: Determine a target server from multiple target servers through a random polling algorithm.

以上内容为本申请提供的一种设备调度方法的另一个实施例的详细说明,下面为本申请提供的一种设备调度装置的一个实施例的详细说明。The above content is a detailed description of another embodiment of a device scheduling method provided in the present application, and the following is a detailed description of an embodiment of a device scheduling device provided in the present application.

请参阅图4,本申请第三个实施例提供了一种设备调度装置,包括:Please refer to Figure 4, the third embodiment of the present application provides an equipment scheduling device, including:

调度请求响应单元201,用于响应于设备发送的调度请求消息,提取调度请求消息包含的设备识别标识;The scheduling request response unit 201 is configured to extract the device identification contained in the scheduling request message in response to the scheduling request message sent by the device;

设备区域确定单元202,用于根据设备识别标识,确定设备的归属地,再根据设备的归属地确定目标区域;The device area determining unit 202 is configured to determine the attribution of the device according to the device identification, and then determine the target area according to the attribution of the device;

服务器过滤单元203,用于根据目标区域中各个服务器的运行状态,对目标区域中运行状态不满足要求的服务器进行过滤;The server filtering unit 203 is configured to filter the servers in the target area whose operating status does not meet the requirements according to the operating status of each server in the target area;

目标服务器确定单元204,用于基于过滤后剩余的服务器,通过加权最小连接算法,从剩余的服务器中确定目标服务器,以基于目标服务器进行设备调度。The target server determining unit 204 is configured to determine a target server from the remaining servers based on the remaining servers after filtering through a weighted minimum connection algorithm, so as to perform device scheduling based on the target servers.

进一步地,当目标服务器的数量为多个时,则基于过滤后剩余的服务器,通过加权最小连接算法,从剩余的服务器中确定目标服务器之后还包括:Further, when there are multiple target servers, based on the remaining servers after filtering, through the weighted minimum connection algorithm, after determining the target server from the remaining servers, it also includes:

目标服务器二次确定单元2002,用于通过随机轮询算法,从多个目标服务器中确定一个目标服务器。The target server secondary determination unit 2002 is configured to determine a target server from multiple target servers through a random polling algorithm.

进一步地,设备区域确定单元202具体用于:Further, the device area determining unit 202 is specifically used for:

根据设备识别标识中的设备IP,确定设备的IP归属地,再根据设备的IP归属地确定目标区域。According to the device IP in the device identification, determine the IP attribution of the device, and then determine the target area according to the IP attribution of the device.

进一步地,服务器过滤单元203具体用于:Further, the server filtering unit 203 is specifically used for:

根据目标区域中各个服务器的运行状态,对目标区域中负载值高于预设负载阈值或处于下线状态的服务器进行过滤。According to the running status of each server in the target area, the server in the target area whose load value is higher than the preset load threshold or is offline is filtered.

进一步地,还包括:Further, it also includes:

指定调度策略匹配单元2001,用于根据设备识别标识,匹配设备识别标识的指定调度策略,若匹配成功,则按照指定调度策略进行设备调度,若匹配不成功,则根据设备识别标识,确定设备的归属地,再根据设备的归属地确定目标区域。The specified scheduling strategy matching unit 2001 is used to match the specified scheduling strategy of the device identification according to the device identification, if the matching is successful, then perform equipment scheduling according to the specified scheduling strategy, and if the matching is unsuccessful, then according to the device identification, determine the scheduling strategy of the device Attribution, and then determine the target area according to the attribution of the device.

所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的终端,装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that for the convenience and brevity of the description, the specific working process of the terminals, devices and units described above can refer to the corresponding process in the foregoing method embodiments, which will not be repeated here.

在本申请所提供的几个实施例中,应该理解到,所揭露的装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed devices and methods may be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined or May be integrated into another system, or some features may be ignored, or not implemented. In another point, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be in electrical, mechanical or other forms.

本申请的说明书及上述附图中的术语“第一”、“第二”、“第三”、“第四”等(如果存在)是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的本申请的实施例,例如能够以除了在这里图示或描述的那些以外的顺序实施。此外,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或单元的过程、方法、系统、产品或设备不必限于清楚地列出的那些步骤或单元,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它步骤或单元。The terms "first", "second", "third", "fourth", etc. (if any) in the description of the present application and the above drawings are used to distinguish similar objects and not necessarily to describe specific sequence or sequence. It is to be understood that the data so used are interchangeable under appropriate circumstances such that the embodiments of the application described herein, for example, can be practiced in sequences other than those illustrated or described herein. Furthermore, the terms "comprising" and "having", as well as any variations thereof, are intended to cover a non-exclusive inclusion, for example, a process, method, system, product or device comprising a sequence of steps or elements is not necessarily limited to the expressly listed instead, may include other steps or elements not explicitly listed or inherent to the process, method, product or apparatus.

所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place, or may be distributed to multiple network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.

另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit. The above-mentioned integrated units can be implemented in the form of hardware or in the form of software functional units.

所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-OnlyMemory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。If the integrated unit is realized in the form of a software function unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the essence of the technical solution of the present invention or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium , including several instructions to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-OnlyMemory), random access memory (RAM, Random Access Memory), magnetic disk or optical disk and other media that can store program codes.

以上所述,以上实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围。As mentioned above, the above embodiments are only used to illustrate the technical solutions of the present application, and are not intended to limit them; although the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: it can still understand the foregoing The technical solutions described in each embodiment are modified, or some of the technical features are equivalently replaced; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the various embodiments of the application.

Claims (10)

1.一种设备调度方法,其特征在于,包括:1. A device scheduling method, characterized in that, comprising: 响应于设备发送的调度请求消息,提取所述调度请求消息包含的设备识别标识;In response to the scheduling request message sent by the device, extracting the device identification contained in the scheduling request message; 根据所述设备识别标识,确定所述设备的归属地,再根据所述设备的归属地确定目标区域;Determine the attribution of the device according to the device identification, and then determine the target area according to the attribution of the device; 根据所述目标区域中各个服务器的运行状态,对所述目标区域中运行状态不满足要求的服务器进行过滤;According to the operation status of each server in the target area, filter the servers whose operation status does not meet the requirements in the target area; 基于过滤后剩余的服务器,通过加权最小连接算法,从剩余的服务器中确定目标服务器,以基于所述目标服务器进行设备调度。Based on the remaining servers after filtering, the target server is determined from the remaining servers through a weighted minimum connection algorithm, so as to perform device scheduling based on the target server. 2.根据权利要求1所述的一种设备调度方法,其特征在于,当所述目标服务器的数量为多个时,则基于过滤后剩余的服务器,通过加权最小连接算法,从剩余的服务器中确定目标服务器之后还包括:2. A device scheduling method according to claim 1, wherein when the number of the target servers is multiple, based on the remaining servers after filtering, through the weighted minimum connection algorithm, from the remaining servers After determining the target server also includes: 通过随机轮询算法,从多个目标服务器中确定一个目标服务器。A target server is determined from multiple target servers by a random polling algorithm. 3.根据权利要求1所述的一种设备调度方法,其特征在于,所述根据所述设备识别标识,确定所述设备的归属地,再根据所述设备的归属地确定目标区域具体包括:3. A device scheduling method according to claim 1, wherein said determining the attribution of the device according to the identification of the device, and then determining the target area according to the attribution of the device specifically includes: 根据所述设备识别标识中的设备IP,确定所述设备的IP归属地,再根据所述设备的IP归属地确定目标区域。According to the device IP in the device identification, determine the IP attribution of the device, and then determine the target area according to the IP attribution of the device. 4.根据权利要求1所述的一种设备调度方法,其特征在于,所述根据所述目标区域中各个服务器的运行状态,对所述目标区域中运行状态不满足要求的服务器进行过滤具体包括:4. A device scheduling method according to claim 1, characterized in that, according to the running status of each server in the target area, filtering the servers whose running status does not meet the requirements in the target area specifically includes : 根据所述目标区域中各个服务器的运行状态,对所述目标区域中负载值高于预设负载阈值或处于下线状态的服务器进行过滤。According to the running status of each server in the target area, the servers in the target area whose load value is higher than a preset load threshold or in an offline state are filtered. 5.根据权利要求1所述的一种设备调度方法,其特征在于,所述提取所述调度请求消息包含的设备识别标识之后还包括:5. A kind of device dispatching method according to claim 1, is characterized in that, after extracting the device identification mark that described dispatching request message contains, also comprises: 根据所述设备识别标识,匹配所述设备识别标识的指定调度策略,若匹配成功,则按照所述指定调度策略进行设备调度,若匹配不成功,则根据所述设备识别标识,确定所述设备的归属地,再根据所述设备的归属地确定目标区域。According to the device identification, match the specified scheduling policy of the device identification, if the matching is successful, perform device scheduling according to the specified scheduling policy, if the matching is unsuccessful, determine the device according to the device identification The attribution of the device, and then determine the target area according to the attribution of the device. 6.一种设备调度装置,其特征在于,包括:6. An equipment scheduling device, characterized in that it comprises: 调度请求响应单元,用于响应于设备发送的调度请求消息,提取所述调度请求消息包含的设备识别标识;a scheduling request response unit, configured to respond to the scheduling request message sent by the device, and extract the device identification contained in the scheduling request message; 设备区域确定单元,用于根据所述设备识别标识,确定所述设备的归属地,再根据所述设备的归属地确定目标区域;A device area determining unit, configured to determine the attribution of the device according to the device identification, and then determine the target area according to the attribution of the device; 服务器过滤单元,用于根据所述目标区域中各个服务器的运行状态,对所述目标区域中运行状态不满足要求的服务器进行过滤;a server filtering unit, configured to filter servers whose operating status does not meet requirements in the target area according to the operating status of each server in the target area; 目标服务器确定单元,用于基于过滤后剩余的服务器,通过加权最小连接算法,从剩余的服务器中确定目标服务器,以基于所述目标服务器进行设备调度。The target server determining unit is configured to determine a target server from the remaining servers based on the remaining servers after filtering through a weighted minimum connection algorithm, so as to perform device scheduling based on the target servers. 7.根据权利要求6所述的一种设备调度装置,其特征在于,当所述目标服务器的数量为多个时,则基于过滤后剩余的服务器,通过加权最小连接算法,从剩余的服务器中确定目标服务器之后还包括:7. A device scheduling device according to claim 6, wherein when the number of the target servers is multiple, based on the remaining servers after filtering, through the weighted minimum connection algorithm, from the remaining servers After determining the target server also includes: 目标服务器二次确定单元,用于通过随机轮询算法,从多个目标服务器中确定一个目标服务器。The target server secondary determination unit is used to determine a target server from multiple target servers through a random polling algorithm. 8.根据权利要求6所述的一种设备调度装置,其特征在于,所述设备区域确定单元具体用于:8. The equipment scheduling device according to claim 6, wherein the equipment area determining unit is specifically used for: 根据所述设备识别标识中的设备IP,确定所述设备的IP归属地,再根据所述设备的IP归属地确定目标区域。According to the device IP in the device identification, determine the IP attribution of the device, and then determine the target area according to the IP attribution of the device. 9.根据权利要求6所述的一种设备调度装置,其特征在于,所述服务器过滤单元具体用于:9. A device scheduling device according to claim 6, wherein the server filtering unit is specifically used for: 根据所述目标区域中各个服务器的运行状态,对所述目标区域中负载值高于预设负载阈值或处于下线状态的服务器进行过滤。According to the running status of each server in the target area, the servers in the target area whose load value is higher than a preset load threshold or in an offline state are filtered. 10.根据权利要求6所述的一种设备调度装置,其特征在于,还包括:10. A device scheduling device according to claim 6, further comprising: 指定调度策略匹配单元,用于根据所述设备识别标识,匹配所述设备识别标识的指定调度策略,若匹配成功,则按照所述指定调度策略进行设备调度,若匹配不成功,则根据所述设备识别标识,确定所述设备的归属地,再根据所述设备的归属地确定目标区域。A specified scheduling strategy matching unit, configured to match the specified scheduling strategy of the device identifier according to the device identifier, if the matching is successful, perform device scheduling according to the specified scheduling strategy, and if the matching is unsuccessful, then perform device scheduling according to the described Identify the device, determine the attribution of the device, and then determine the target area according to the attribution of the device.
CN202210923076.6A 2022-08-02 2022-08-02 Device scheduling method and device Pending CN115277711A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210923076.6A CN115277711A (en) 2022-08-02 2022-08-02 Device scheduling method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210923076.6A CN115277711A (en) 2022-08-02 2022-08-02 Device scheduling method and device

Publications (1)

Publication Number Publication Date
CN115277711A true CN115277711A (en) 2022-11-01

Family

ID=83746401

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210923076.6A Pending CN115277711A (en) 2022-08-02 2022-08-02 Device scheduling method and device

Country Status (1)

Country Link
CN (1) CN115277711A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1567173A (en) * 2003-07-05 2005-01-19 华为技术有限公司 Server load equalization method for implementing weighted minimum linked allocation
CN107172129A (en) * 2017-04-25 2017-09-15 北京潘达互娱科技有限公司 A kind of server collocation method and device
US20170279877A1 (en) * 2016-03-28 2017-09-28 Industrial Technology Research Institute Load balancing method, load balancing system, load balancing device and topology reduction method
CN109327542A (en) * 2018-11-19 2019-02-12 网易(杭州)网络有限公司 Game service access response method, request retransmission method, connection method, device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1567173A (en) * 2003-07-05 2005-01-19 华为技术有限公司 Server load equalization method for implementing weighted minimum linked allocation
US20170279877A1 (en) * 2016-03-28 2017-09-28 Industrial Technology Research Institute Load balancing method, load balancing system, load balancing device and topology reduction method
CN107172129A (en) * 2017-04-25 2017-09-15 北京潘达互娱科技有限公司 A kind of server collocation method and device
CN109327542A (en) * 2018-11-19 2019-02-12 网易(杭州)网络有限公司 Game service access response method, request retransmission method, connection method, device

Similar Documents

Publication Publication Date Title
CN105978728B (en) Intelligent monitoring system and monitoring method of business indicators
US20030123424A1 (en) Mobile communication system and method of selecting server in mobile communication system
US20180375726A1 (en) Resource Configuration Method, Virtualized Network Function Manager, and Element Management System
JP4984169B2 (en) Load distribution program, load distribution method, load distribution apparatus, and system including the same
US20020174217A1 (en) System and method for predicting network performance
CN112703774B (en) Methods for managing processing resources in telecommunications networks and telecommunications networks and storage media
WO2004036344A2 (en) System and method for the optimization of database
CN114363963A (en) Load balancing selection method and system for cloud-native UPF signaling plane
CN103152282A (en) Single logical network interface for advanced load balancing and fail-over functionality
CN107317712A (en) A kind of creation method and device of network section
CN110417886A (en) A kind of load-balancing method of integrated service, apparatus and system
CN108897626A (en) Resource scheduling method and server
CN114490071A (en) Resource scheduling method, device, equipment and medium based on cloud game
CN109981768A (en) I/o multipath planning method and equipment in distributed network storage system
CN112416594A (en) Micro-service distribution method, electronic equipment and computer storage medium
CN110351146A (en) A kind of server-side example determines method, system, client and storage medium
CN117014381A (en) Flow control method, flow control device, computer equipment and computer storage medium
CN115277711A (en) Device scheduling method and device
CN110661823A (en) Method and device for controlling online consultation user quantity
CN111314500A (en) Method and device for determining access address
CN116455985A (en) Distributed service system, method, computer equipment and storage medium
CN109257435A (en) The communication system of more example multiple subsystems application based on message-oriented middleware
CN114296914A (en) Node allocation method, system, device and electronic device
CN115038123A (en) UPF signaling surface load allocation method, system, electronic equipment and storage medium
CN114554496A (en) 5G network slice resource allocation method based on machine learning

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20240322

Address after: Unit 1, Building 1, China Telecom Zhejiang Innovation Park, No. 8 Xiqin Street, Wuchang Street, Yuhang District, Hangzhou City, Zhejiang Province, 311100

Applicant after: Tianyi Shilian Technology Co.,Ltd.

Country or region after: China

Address before: 200000 room 1423, No. 1256 and 1258, Wanrong Road, Jing'an District, Shanghai

Applicant before: Tianyi Digital Life Technology Co.,Ltd.

Country or region before: China

RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20221101