CN114610475A - Training method of intelligent resource arrangement model - Google Patents

Training method of intelligent resource arrangement model Download PDF

Info

Publication number
CN114610475A
CN114610475A CN202011401075.2A CN202011401075A CN114610475A CN 114610475 A CN114610475 A CN 114610475A CN 202011401075 A CN202011401075 A CN 202011401075A CN 114610475 A CN114610475 A CN 114610475A
Authority
CN
China
Prior art keywords
resource arrangement
model
arrangement model
resource
information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202011401075.2A
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.)
Huawei Technologies Co Ltd
Shenzhen Research Institute Tsinghua University
Original Assignee
Huawei Technologies Co Ltd
Shenzhen Research Institute Tsinghua University
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 Huawei Technologies Co Ltd, Shenzhen Research Institute Tsinghua University filed Critical Huawei Technologies Co Ltd
Priority to CN202011401075.2A priority Critical patent/CN114610475A/en
Publication of CN114610475A publication Critical patent/CN114610475A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5027Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/602Providing cryptographic facilities or services
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N20/00Machine learning
    • G06N20/20Ensemble learning

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Evolutionary Computation (AREA)
  • Medical Informatics (AREA)
  • Computing Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Mathematical Physics (AREA)
  • Artificial Intelligence (AREA)
  • Health & Medical Sciences (AREA)
  • Bioethics (AREA)
  • General Health & Medical Sciences (AREA)
  • Computer Hardware Design (AREA)
  • Computer Security & Cryptography (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The application is applicable to the technical field of computers, and provides a training method of an intelligent resource arrangement model, which comprises the following steps: the method comprises the steps that control equipment obtains first encryption information of a global resource arrangement model and sends the first encryption information to each computing cluster in a Federal learning alliance; receiving second encryption information of the updated local resource arrangement model returned by each computing cluster; and updating the global resource arrangement model according to all the second encryption information to obtain a new global resource arrangement model. According to the method, the distributed computing clusters are independently computed by adopting a federal learning method, the computing results are gathered to the control equipment, and a global resource arrangement model is obtained, and the global resource arrangement model can accurately and quickly determine the resource arrangement strategy, so that the capability of the edge computing clusters is fully exerted, the average completion time of tasks is minimized, the number of the completed tasks is maximized, and the resource utilization rate and the computing efficiency are improved.

Description

一种智能资源编排模型的训练方法A training method for intelligent resource orchestration model

技术领域technical field

本申请属于计算机技术领域,尤其涉及一种智能资源编排模型的训练方法。The present application belongs to the field of computer technology, and in particular relates to a training method of an intelligent resource arrangement model.

背景技术Background technique

随着5G与智慧化应用的快速发展,网络中的设备数与数据量迅速增加,传统中心化云计算难以满足快速发展的新应用的需要。为了能够提供低延迟、高质量的计算服务,将网络边缘的计算能力整合起来,现有技术中会将网络边缘的计算能力整合起来,根据不同的计算集群的性能、参数等来合理分配不同的资源,确定出合理的资源编排策略。With the rapid development of 5G and intelligent applications, the number of devices and the amount of data in the network has increased rapidly, and traditional centralized cloud computing cannot meet the needs of rapidly developing new applications. In order to provide low-latency, high-quality computing services and integrate the computing capabilities of the network edge, the existing technology will integrate the computing capabilities of the network edge, and reasonably allocate different computing clusters according to the performance and parameters of different computing clusters. resources, and determine a reasonable resource arrangement strategy.

但是,传统网络资源管理在进行资源编排时,主要基于手工、最优化算法或者启发式方法,复杂性高且自适应能力差,很难满足边缘计算用户的海量、动态与差异化的需求。一些基于人工智能的资源编排虽然能够获得更好的效果,但需要全局资源信息,这对于分散、自组织的边缘计算集群常常难以实现。However, traditional network resource management is mainly based on manual, optimization algorithms or heuristic methods in resource scheduling, which has high complexity and poor adaptive ability, making it difficult to meet the massive, dynamic and differentiated needs of edge computing users. Although some artificial intelligence-based resource orchestration can achieve better results, it requires global resource information, which is often difficult to achieve for decentralized and self-organizing edge computing clusters.

发明内容SUMMARY OF THE INVENTION

本申请实施例提供了一种智能资源编排模型的训练方法,可以解决传统网络资源管理在进行资源编排时,主要基于手工、最优化算法或者启发式方法,复杂性高且自适应能力差,很难满足边缘计算用户的海量、动态与差异化的需求的问题。The embodiment of the present application provides a training method for an intelligent resource orchestration model, which can solve the problem that traditional network resource management is mainly based on manual, optimization algorithms or heuristic methods when performing resource orchestration, which has high complexity and poor self-adaptive ability, and is very difficult to achieve. It is difficult to meet the massive, dynamic and differentiated needs of edge computing users.

第一方面,本申请实施例提供了一种智能资源编排模型的训练方法,应用于控制设备,所述方法包括:In a first aspect, an embodiment of the present application provides a training method for an intelligent resource orchestration model, which is applied to a control device, and the method includes:

获取全局资源编排模型的第一加密信息,并将所述第一加密信息发送至联邦学习联盟中的各个计算集群,所述第一加密信息用于更新各个所述计算集群的本地资源编排模型;acquiring first encrypted information of the global resource orchestration model, and sending the first encrypted information to each computing cluster in the federated learning alliance, where the first encrypted information is used to update the local resource orchestration model of each of the computing clusters;

接收由各个所述计算集群返回的更新后的本地资源编排模型的第二加密信息;receiving the second encrypted information of the updated local resource orchestration model returned by each of the computing clusters;

根据所有所述第二加密信息对所述全局资源编排模型进行更新,得到新的全局资源编排模型。The global resource arrangement model is updated according to all the second encrypted information to obtain a new global resource arrangement model.

进一步地,所述根据所有所述第二加密信息对所述全局资源编排模型进行更新,得到新的全局资源编排模型,包括:Further, updating the global resource arrangement model according to all the second encrypted information to obtain a new global resource arrangement model, including:

根据预设解密规则对所述第二加密信息进行解密,得到各所述计算集群对应的更新信息;Decrypt the second encrypted information according to a preset decryption rule to obtain update information corresponding to each of the computing clusters;

根据所有所述更新信息对所述全局资源编排模型进行训练,得到新的全局资源编排模型。The global resource arrangement model is trained according to all the update information to obtain a new global resource arrangement model.

进一步地,初始的全局资源编排模型的训练方法包括:Further, the training method of the initial global resource orchestration model includes:

获取第一样本训练集;所述第一样本训练集中包括历史任务信息及其对应的资源编排策略标签;Obtain a first sample training set; the first sample training set includes historical task information and its corresponding resource scheduling strategy label;

根据所述第一样本训练集对原始资源编排模型进行训练,得到初始的全局资源编排模型。The original resource arrangement model is trained according to the first sample training set to obtain an initial global resource arrangement model.

进一步地,所述样本训练集中还包括预设特殊情况任务信息及其对应的资源编排策略标签。Further, the sample training set also includes preset special-case task information and its corresponding resource arrangement strategy label.

进一步地,在所述根据所有所述第二加密信息对所述全局资源编排模型进行更新,得到新的全局资源编排模型之后,还包括:Further, after the global resource arrangement model is updated according to all the second encrypted information to obtain a new global resource arrangement model, the method further includes:

若接收到由所述计算集群发送的模型信息获取请求,将所述新的全局资源编排模型和/或所述新的全局资源编排模型对应的第三加密信息发送至所述计算集群。If the model information acquisition request sent by the computing cluster is received, the new global resource arrangement model and/or the third encrypted information corresponding to the new global resource arrangement model is sent to the computing cluster.

第二方面,本申请实施例提供了一种智能资源编排模型的训练方法,应用于计算集群,所述方法包括:In a second aspect, an embodiment of the present application provides a training method for an intelligent resource orchestration model, which is applied to a computing cluster, and the method includes:

获取控制设备发送的第一加密信息;Obtain the first encrypted information sent by the control device;

根据所述第一加密信息对本地资源编排模型进行更新,得到更新后的本地资源编排模型;updating the local resource orchestration model according to the first encrypted information to obtain the updated local resource orchestration model;

将所述更新后的本地资源编排模型的第二加密信息发送至所述控制器,所述第二加密信息用于更新所述控制器的全局资源编排模型。Sending second encrypted information of the updated local resource orchestration model to the controller, where the second encrypted information is used to update the global resource orchestration model of the controller.

进一步地,初始的本地资源编排模型的训练方法包括:Further, the training method of the initial local resource orchestration model includes:

获取原始资源编排模型和第二样本训练集;Obtain the original resource orchestration model and the second sample training set;

根据所述第二样本训练集对所述初始智能资源编排模型进行训练,得到初始的本地资源编排模型。The initial intelligent resource arrangement model is trained according to the second sample training set to obtain an initial local resource arrangement model.

进一步地,所述根据所述第一加密信息对本地资源编排模型进行更新,得到更新后的本地资源编排模型,包括:Further, updating the local resource orchestration model according to the first encrypted information to obtain the updated local resource orchestration model, including:

根据梯度提升树算法和所述第一加密信息进行迭代计算,构建所述本地资源编排模型对应的回归树;Iterative calculation is performed according to the gradient boosting tree algorithm and the first encrypted information, and a regression tree corresponding to the local resource arrangement model is constructed;

当所述回归树满足预设条件时,获取当前智能资源编排模型作为更新后的本地资源编排模型。When the regression tree satisfies the preset condition, the current intelligent resource arrangement model is acquired as the updated local resource arrangement model.

第三方面,本申请实施例提供了一种资源编排策略的确定方法,包括:In a third aspect, an embodiment of the present application provides a method for determining a resource arrangement strategy, including:

获取待分配任务的任务信息;Get the task information of the task to be assigned;

将所述任务信息输入至预设的目标智能资源编排模型中进行处理,得到所述任务信息对应的资源编排策略;其中,所述目标智能资源编排模型由上述第一方面所述的智能资源编排模型的训练方法得到。Input the task information into a preset target intelligent resource arrangement model for processing, and obtain a resource arrangement strategy corresponding to the task information; wherein, the target intelligent resource arrangement model is arranged by the intelligent resource arrangement described in the first aspect. The training method of the model is obtained.

第四方面,本申请实施例提供了一种控制设备,包括:In a fourth aspect, an embodiment of the present application provides a control device, including:

第一处理单元,用于获取全局资源编排模型的第一加密信息,并将所述第一加密信息发送至联邦学习联盟中的各个计算集群,所述第一加密信息用于更新各个所述计算集群的本地资源编排模型;a first processing unit, configured to obtain first encrypted information of the global resource orchestration model, and send the first encrypted information to each computing cluster in the federated learning alliance, where the first encrypted information is used to update each of the computing The local resource orchestration model of the cluster;

接收单元,用于接收由各个所述计算集群返回的更新后的本地资源编排模型的第二加密信息;a receiving unit, configured to receive the second encrypted information of the updated local resource orchestration model returned by each of the computing clusters;

第二处理单元,用于根据所有所述第二加密信息对所述全局资源编排模型进行更新,得到新的全局资源编排模型。A second processing unit, configured to update the global resource arrangement model according to all the second encrypted information to obtain a new global resource arrangement model.

进一步地,所述第二处理单元,具体用于:Further, the second processing unit is specifically used for:

根据预设解密规则对所述第二加密信息进行解密,得到各所述计算集群对应的更新信息;Decrypt the second encrypted information according to a preset decryption rule to obtain update information corresponding to each of the computing clusters;

根据所有所述更新信息对所述全局资源编排模型进行训练,得到新的全局资源编排模型。The global resource arrangement model is trained according to all the update information to obtain a new global resource arrangement model.

进一步地,所述控制设备,还包括:Further, the control device also includes:

获取单元,用于获取第一样本训练集;所述样本训练集中包括历史任务信息及其对应的资源编排策略标签;an obtaining unit, used for obtaining a first sample training set; the sample training set includes historical task information and its corresponding resource arrangement strategy label;

第三处理单元,用于根据所述第一样本训练集对原始资源编排模型进行训练,得到初始的全局资源编排模型。The third processing unit is configured to train the original resource arrangement model according to the first sample training set to obtain an initial global resource arrangement model.

进一步地,所述样本训练集中还包括预设特殊情况任务信息及其对应的资源编排策略标签。Further, the sample training set also includes preset special-case task information and its corresponding resource arrangement strategy label.

进一步地,所述控制设备,还包括:Further, the control device also includes:

第四处理单元,用于若接收到由所述计算集群发送的模型信息获取请求,将所述新的全局资源编排模型和/或所述新的全局资源编排模型对应的第三加密信息发送至所述计算集群。The fourth processing unit is configured to send the new global resource orchestration model and/or the third encrypted information corresponding to the new global resource orchestration model to the model information acquisition request sent by the computing cluster. the computing cluster.

第五方面,本申请实施例提供了一种计算集群,包括:In a fifth aspect, an embodiment of the present application provides a computing cluster, including:

第一获取单元,用于获取控制设备发送的第一加密信息;a first obtaining unit, configured to obtain the first encrypted information sent by the control device;

更新单元,用于根据所述第一加密信息对本地资源编排模型进行更新,得到更新后的本地资源编排模型;an update unit, configured to update the local resource orchestration model according to the first encryption information to obtain an updated local resource orchestration model;

发送单元,用于将所述更新后的本地资源编排模型的第二加密信息发送至所述控制器,所述第二加密信息用于更新所述控制器的全局资源编排模型。A sending unit, configured to send second encrypted information of the updated local resource orchestration model to the controller, where the second encrypted information is used to update the global resource orchestration model of the controller.

进一步地,所述计算集群,还包括:Further, the computing cluster also includes:

第二获取单元,用于获取原始资源编排模型和第二样本训练集;The second acquisition unit is used to acquire the original resource arrangement model and the second sample training set;

训练单元,用于根据所述第二样本训练集对所述初始智能资源编排模型进行训练,得到初始的本地资源编排模型。A training unit, configured to train the initial intelligent resource arrangement model according to the second sample training set to obtain an initial local resource arrangement model.

进一步地,所述更新单元,具体用于:Further, the update unit is specifically used for:

根据梯度提升树算法和所述第一加密信息进行迭代计算,构建所述本地资源编排模型对应的回归树;Iterative calculation is performed according to the gradient boosting tree algorithm and the first encrypted information, and a regression tree corresponding to the local resource arrangement model is constructed;

当所述回归树满足预设条件时,获取当前智能资源编排模型作为更新后的本地资源编排模型。When the regression tree satisfies the preset condition, the current intelligent resource arrangement model is acquired as the updated local resource arrangement model.

第六方面,本申请实施例提供了一种资源编排策略的确定装置,包括:In a sixth aspect, an embodiment of the present application provides an apparatus for determining a resource scheduling policy, including:

获取单元,用于获取待分配任务的任务信息;an acquisition unit for acquiring task information of the task to be assigned;

处理单元,用于将所述任务信息输入至预设的目标智能资源编排模型中进行处理,得到所述任务信息对应的资源编排策略;其中,所述目标智能资源编排模型由上述第一方面所述的智能资源编排模型的训练方法得到。A processing unit, configured to input the task information into a preset target intelligent resource arrangement model for processing, and obtain a resource arrangement strategy corresponding to the task information; wherein, the target intelligent resource arrangement model is defined by the above-mentioned first aspect The training method of the intelligent resource orchestration model described above is obtained.

第七方面,本申请实施例提供了一种控制设备,包括存储器、处理器以及存储在所述存储器中并可在所述处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现如上述第一方面所述的智能资源编排模型的训练方法。In a seventh aspect, an embodiment of the present application provides a control device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, when the processor executes the computer program The method for training an intelligent resource orchestration model as described in the first aspect above is implemented.

第八方面,本申请实施例提供了一种计算集群,包括存储器、处理器以及存储在所述存储器中并可在所述处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现如上述第二方面所述的智能资源编排模型的训练方法。In an eighth aspect, an embodiment of the present application provides a computing cluster, including a memory, a processor, and a computer program stored in the memory and executable on the processor, when the processor executes the computer program The method for training an intelligent resource orchestration model according to the second aspect above is implemented.

第九方面,本申请实施例提供了一种控制设备,包括存储器、处理器以及存储在所述存储器中并可在所述处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现如上述第三方面所述的资源编排策略的确定方法。In a ninth aspect, an embodiment of the present application provides a control device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, when the processor executes the computer program The method for determining a resource orchestration strategy as described in the third aspect above is implemented.

第十方面,本申请实施例提供了一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现如上述第一方面所述的智能资源编排模型的训练方法。In a tenth aspect, an embodiment of the present application provides a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, wherein, when the computer program is executed by a processor, the above-mentioned first aspect is implemented The training method of the intelligent resource orchestration model described above.

第十一方面,本申请实施例提供了一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现如上述第二方面所述的资源编排策略的确定方法。In an eleventh aspect, an embodiment of the present application provides a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, wherein when the computer program is executed by a processor, the above-mentioned second aspect is implemented The method for determining the resource arrangement strategy.

第十二方面,本申请实施例提供了一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现如上述第三方面所述的智能资源编排模型的训练方法。In a twelfth aspect, an embodiment of the present application provides a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, wherein when the computer program is executed by a processor, the above third aspect is implemented The training method of the intelligent resource orchestration model.

本申请实施例中,控制设备获取全局资源编排模型的第一加密信息,并将所述第一加密信息发送至联邦学习联盟中的各个计算集群,所述第一加密信息用于更新各个所述计算集群的本地资源编排模型;接收由各个所述计算集群返回的更新后的本地资源编排模型的第二加密信息;根据所有所述第二加密信息对所述全局资源编排模型进行更新,得到新的全局资源编排模型。上述方法,当用户数量多,网络状况复杂的情况下,采用联邦学习的方法,对分散的计算集群进行独立计算,将计算结果汇总到控制设备,得到全局资源编排模型,全局资源编排模型能够准确且快速的确定资源编排策略,提高了资源利用率和计算效率。In the embodiment of this application, the control device acquires the first encrypted information of the global resource orchestration model, and sends the first encrypted information to each computing cluster in the federated learning alliance, where the first encrypted information is used to update each of the A local resource orchestration model of a computing cluster; receiving second encryption information of the updated local resource orchestration model returned by each of the computing clusters; updating the global resource orchestration model according to all the second encryption information to obtain a new The global resource orchestration model of . In the above method, when the number of users is large and the network conditions are complex, the federated learning method is used to independently calculate the scattered computing clusters, and the calculation results are aggregated to the control device to obtain a global resource arrangement model. The global resource arrangement model can accurately And quickly determine the resource scheduling strategy, improve resource utilization and computing efficiency.

另一方面,计算集群获取控制器发送的第一加密信息;根据所述第一加密信息对本地资源编排模型进行更新,得到更新后的本地资源编排模型;将所述更新后的本地资源编排模型的第二加密信息发送至所述控制器,所述第二加密信息用于更新所述控制器的全局资源编排模型。上述方法,当用户数量多,网络状况复杂的情况下,采用联邦学习的方法,对分散的计算集群进行独立计算,将计算结果汇总到控制设备,得到全局资源编排模型,全局资源编排模型能够准确且快速的确定资源编排策略,提高了资源利用率和计算效率。On the other hand, the computing cluster obtains the first encrypted information sent by the controller; updates the local resource orchestration model according to the first encrypted information to obtain the updated local resource orchestration model; The second encrypted information is sent to the controller, and the second encrypted information is used to update the global resource orchestration model of the controller. In the above method, when the number of users is large and the network conditions are complex, the federated learning method is used to independently calculate the scattered computing clusters, and the calculation results are aggregated to the control device to obtain a global resource arrangement model. The global resource arrangement model can accurately And quickly determine the resource scheduling strategy, improve resource utilization and computing efficiency.

另一方面,资源编排策略的确定装置获取待分配任务的任务信息;将所述任务信息输入至预设的目标智能资源编排模型中进行处理,得到所述任务信息对应的资源编排策略。上述方法中使用的目标智能资源编排模型是通过联邦学习的方法,对分散的计算集群进行独立计算,将计算结果汇总到控制设备,由控制设备汇总计算得到的。该目标智能资源编排模型能够准确且快速的确定资源编排策略,提高了资源利用率和计算效率。On the other hand, the device for determining the resource arrangement strategy obtains task information of the task to be assigned; inputs the task information into a preset target intelligent resource arrangement model for processing, and obtains the resource arrangement strategy corresponding to the task information. The target intelligent resource orchestration model used in the above method is obtained by means of federated learning, which independently calculates the distributed computing clusters, and aggregates the calculation results to the control device, which is then aggregated and calculated by the control device. The target intelligent resource scheduling model can accurately and quickly determine the resource scheduling strategy, which improves resource utilization and computing efficiency.

附图说明Description of drawings

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

图1是本申请第一实施例提供的一种智能资源编排模型的训练方法的示意流程图;1 is a schematic flowchart of a training method for an intelligent resource orchestration model provided by the first embodiment of the present application;

图2是本申请第二实施例提供的一种智能资源编排模型的训练方法的示意流程图;2 is a schematic flowchart of a training method for an intelligent resource orchestration model provided by a second embodiment of the present application;

图3是本申请第三实施例提供的一种资源编排策略的确定方法的示意流程图;3 is a schematic flowchart of a method for determining a resource scheduling strategy provided by a third embodiment of the present application;

图4是本申请第四实施例提供的控制设备的示意图;4 is a schematic diagram of a control device provided by a fourth embodiment of the present application;

图5是本申请第五实施例提供的计算集群的示意图;5 is a schematic diagram of a computing cluster provided by a fifth embodiment of the present application;

图6是本申请第六实施例提供的资源编排策略的确定装置的示意图;6 is a schematic diagram of an apparatus for determining a resource scheduling strategy provided by a sixth embodiment of the present application;

图7是本申请第七实施例提供的控制设备的示意图;7 is a schematic diagram of a control device provided by a seventh embodiment of the present application;

图8是本申请第八实施例提供的计算集群的示意图;8 is a schematic diagram of a computing cluster provided by an eighth embodiment of the present application;

图9是本申请第九实施例提供的资源编排策略的确定设备的示意图。FIG. 9 is a schematic diagram of a device for determining a resource scheduling policy provided by a ninth embodiment of the present application.

具体实施方式Detailed ways

以下描述中,为了说明而不是为了限定,提出了诸如特定系统结构、技术之类的具体细节,以便透彻理解本申请实施例。然而,本领域的技术人员应当清楚,在没有这些具体细节的其它实施例中也可以实现本申请。在其它情况中,省略对众所周知的系统、装置、电路以及方法的详细说明,以免不必要的细节妨碍本申请的描述。In the following description, for the purpose of illustration rather than limitation, specific details such as a specific system structure and technology are set forth in order to provide a thorough understanding of the embodiments of the present application. However, it will be apparent to those skilled in the art that the present application may be practiced in other embodiments without these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.

应当理解,当在本申请说明书和所附权利要求书中使用时,术语“包括”指示所描述特征、整体、步骤、操作、元素和/或组件的存在,但并不排除一个或多个其它特征、整体、步骤、操作、元素、组件和/或其集合的存在或添加。It is to be understood that, when used in this specification and the appended claims, the term "comprising" indicates the presence of the described feature, integer, step, operation, element and/or component, but does not exclude one or more other The presence or addition of features, integers, steps, operations, elements, components and/or sets thereof.

还应当理解,在本申请说明书和所附权利要求书中使用的术语“和/或”是指相关联列出的项中的一个或多个的任何组合以及所有可能组合,并且包括这些组合。It will also be understood that, as used in this specification and the appended claims, the term "and/or" refers to and including any and all possible combinations of one or more of the associated listed items.

如在本申请说明书和所附权利要求书中所使用的那样,术语“如果”可以依据上下文被解释为“当...时”或“一旦”或“响应于确定”或“响应于检测到”。类似地,短语“如果确定”或“如果检测到[所描述条件或事件]”可以依据上下文被解释为意指“一旦确定”或“响应于确定”或“一旦检测到[所描述条件或事件]”或“响应于检测到[所描述条件或事件]”。As used in the specification of this application and the appended claims, the term "if" may be contextually interpreted as "when" or "once" or "in response to determining" or "in response to detecting ". Similarly, the phrases "if it is determined" or "if the [described condition or event] is detected" may be interpreted, depending on the context, to mean "once it is determined" or "in response to the determination" or "once the [described condition or event] is detected. ]" or "in response to detection of the [described condition or event]".

另外,在本申请说明书和所附权利要求书的描述中,术语“第一”、“第二”、“第三”等仅用于区分描述,而不能理解为指示或暗示相对重要性。In addition, in the description of the specification of the present application and the appended claims, the terms "first", "second", "third", etc. are only used to distinguish the description, and should not be construed as indicating or implying relative importance.

在本申请说明书中描述的参考“一个实施例”或“一些实施例”等意味着在本申请的一个或多个实施例中包括结合该实施例描述的特定特征、结构或特点。由此,在本说明书中的不同之处出现的语句“在一个实施例中”、“在一些实施例中”、“在其他一些实施例中”、“在另外一些实施例中”等不是必然都参考相同的实施例,而是意味着“一个或多个但不是所有的实施例”,除非是以其他方式另外特别强调。术语“包括”、“包含”、“具有”及它们的变形都意味着“包括但不限于”,除非是以其他方式另外特别强调。References in this specification to "one embodiment" or "some embodiments" and the like mean that a particular feature, structure or characteristic described in connection with the embodiment is included in one or more embodiments of the present application. Thus, appearances of the phrases "in one embodiment," "in some embodiments," "in other embodiments," "in other embodiments," etc. in various places in this specification are not necessarily All refer to the same embodiment, but mean "one or more but not all embodiments" unless specifically emphasized otherwise. The terms "including", "including", "having" and their variants mean "including but not limited to" unless specifically emphasized otherwise.

随着5G与智能化技术的蓬勃发展,出现了许多延迟敏感的新应用,例如,工业控制类应用通过互联网对设备进行远程操控;设备监控类应用通过互联网分析设备运行状况,实现智能的设备管理;智能驾驶应用通过收集大量的视频、传感等数据,智能辅助车辆做出驾驶决策。部分远程工业操控类应用要求延迟低于20ms,智能驾驶场景需要延迟低于10ms,设备安全监控类应用要求延迟越低越好。With the vigorous development of 5G and intelligent technologies, many new delay-sensitive applications have emerged. For example, industrial control applications can remotely control equipment through the Internet; equipment monitoring applications can analyze equipment operating conditions through the Internet to achieve intelligent equipment management. ; Intelligent driving applications intelligently assist vehicles to make driving decisions by collecting a large amount of video, sensing and other data. Some remote industrial control applications require a delay of less than 20ms, intelligent driving scenarios require a delay of less than 10ms, and equipment security monitoring applications require a lower delay, the better.

传统的中心化云计算无法满足上述新应用的需要,这是因为云计算中心通常离用户有一定距离并带来额外的延迟,对于新的智慧化场景,例如,关键的工业互联网应用、远程监控、智能驾驶等来说,存在致命的影响,可能带来巨大的损失或者安全隐患。因此,需要在靠近用户数据源端进行计算处理,才能为用户提供可靠的体验。Traditional centralized cloud computing cannot meet the needs of the above-mentioned new applications, because cloud computing centers usually have a certain distance from users and bring additional delays. For new intelligent scenarios, such as key industrial Internet applications, remote monitoring , intelligent driving, etc., there is a fatal impact, which may bring huge losses or safety hazards. Therefore, computing processing needs to be performed close to the user data source in order to provide users with a reliable experience.

边缘计算为解决上述问题提供了新方向。通过将计算服务器部署在靠近用户的边缘,在网络的边缘或靠近用户的位置提供信息技术服务环境和云计算能力,可以大大降低通信的延迟,优化网络效能,提升用户体验。Edge computing provides a new direction for solving the above problems. By deploying computing servers at the edge close to users, and providing information technology service environment and cloud computing capabilities at the edge of the network or close to users, communication delays can be greatly reduced, network performance optimized, and user experience improved.

但是,在实际应用过程中,现有的边缘计算技术面临资源利用率和计算效率不高的挑战:边缘计算通常为多个用户提供不同应用程序的计算服务,而不同应用程序具有不同的通信资源和计算资源需求。但是现有的资源编排方法依赖用户自主管理或者简单的优化算法,以物理机或虚拟机的粗粒度分配计算单元,资源利用率低下。However, in the actual application process, the existing edge computing technologies face the challenges of low resource utilization and computing efficiency: edge computing usually provides computing services for multiple users with different applications, and different applications have different communication resources and computing resource requirements. However, existing resource orchestration methods rely on user self-management or simple optimization algorithms to allocate computing units at a coarse granularity of physical machines or virtual machines, resulting in low resource utilization.

所以,针对上述问题,本申请提出了一种智能资源编排模型的训练方法,以及一种资源编排策略的确定方法。Therefore, in view of the above problems, the present application proposes a training method for an intelligent resource arrangement model, and a method for determining a resource arrangement strategy.

请参见图1,图1是本申请第一实施例提供的一种智能资源编排模型的训练方法的示意流程图。本实施例中一种智能资源编排模型的训练方法的执行主体为控制设备。如图1所示的智能资源编排模型的训练方法可以包括:Please refer to FIG. 1. FIG. 1 is a schematic flowchart of a training method for an intelligent resource orchestration model provided by the first embodiment of the present application. The execution subject of the training method for an intelligent resource orchestration model in this embodiment is a control device. The training method of the intelligent resource orchestration model shown in Figure 1 may include:

S101:获取全局资源编排模型的第一加密信息,并将所述第一加密信息发送至联邦学习联盟中的各个计算集群,所述第一加密信息用于更新各个所述计算集群的本地资源编排模型。S101: Acquire first encrypted information of a global resource orchestration model, and send the first encrypted information to each computing cluster in a federated learning alliance, where the first encrypted information is used to update the local resource orchestration of each of the computing clusters Model.

在本实施例中,智能资源编排模型的训练是以联邦学习为基础的。联邦学习技术在保障数据交换时的信息安全和数据隐私方面的适应性,使其在分布式的信息单元之间开展高效的机器学习方面展现出较大的优势。控制设备和计算集群共同组成了一个联邦学习联盟,每个计算集群只基于本地数据而无需共享全局信息就可以更新局部模型,通过控制设备汇聚计算集群的局部模型信息,从而得到新的全局资源编排模型。In this embodiment, the training of the intelligent resource orchestration model is based on federated learning. The adaptability of federated learning technology in ensuring information security and data privacy during data exchange enables it to show great advantages in carrying out efficient machine learning between distributed information units. The control device and the computing cluster together form a federated learning alliance. Each computing cluster can update the local model only based on local data without sharing global information. The local model information of the computing cluster is aggregated through the control device to obtain a new global resource arrangement. Model.

在控制设备中,存储了初始的全局资源编排模型,初始的全局资源编排模型可以是由控制设备预先训练得到的,也可以是其他设备训练好后,移植到控制设备中。In the control device, the initial global resource arrangement model is stored, and the initial global resource arrangement model can be pre-trained by the control device, or can be transplanted to the control device after other devices have been trained.

其中,控制设备可以通过以下方式训练初始的全局资源编排模型:控制设备获取第一样本训练集;第一样本训练集中包括历史任务信息及其对应的资源编排策略标签。其中,历史任务信息可以包括任务相关参数,例如,任务的数量、任务所需资源情况、任务的完成时间限制、任务完成需求等等。历史任务信息及其对应的资源编排策略标签为历史任务信息对应的优选的资源编排策略,优选的资源编排策略应该是考虑了各个计算集群的资源、带宽、服务质量以及性能等等因素后,得到的最优的资源编排策略。可以理解的是,该资源编排策略中的计算集群应该属于上文中提到的联邦学习联盟。Wherein, the control device can train the initial global resource arrangement model in the following manner: the control device obtains a first sample training set; the first sample training set includes historical task information and its corresponding resource arrangement strategy labels. The historical task information may include task-related parameters, such as the number of tasks, resources required for the task, time limit for task completion, task completion requirements, and the like. The historical task information and its corresponding resource scheduling strategy are labeled as the preferred resource scheduling strategy corresponding to the historical task information. The preferred resource scheduling strategy should be obtained after considering the resources, bandwidth, service quality and performance of each computing cluster. the optimal resource scheduling strategy. It is understandable that the computing clusters in the resource orchestration strategy should belong to the federated learning alliance mentioned above.

为了样本的丰富性和真实性,样本训练集中包括的历史任务信息及其对应的资源编排策略标签的数量越多越好。For the richness and authenticity of the samples, the greater the number of historical task information and its corresponding resource orchestration strategy labels included in the sample training set, the better.

控制设备获取了第一样本训练集后,根据第一样本训练集对原始资源编排模型进行训练,得到初始的全局资源编排模型。在训练过程中,初始的全局资源编排模型的输入为历史任务信息,初始的全局资源编排模型的输出为历史任务信息及其对应的资源编排策略。After acquiring the first sample training set, the control device trains the original resource arrangement model according to the first sample training set to obtain an initial global resource arrangement model. During the training process, the input of the initial global resource orchestration model is historical task information, and the output of the initial global resource orchestration model is historical task information and its corresponding resource orchestration strategy.

进一步地,由于系统是实时运行的,有可能会在运行过程中遇到一些突发或之前没有遇到过的情况,所以可以在训练样本中设置一些特殊情况样本,样本训练集中还包括预设特殊情况任务信息及其对应的资源编排策略标签。特殊情况样本用来模拟一些历史上没有出现过的网络状态来进行训练,针对这种网络状态来获得最优解,进而在未来出现这种情况时,能够自适应地进行反应,得到优化的资源编排策略。Further, since the system runs in real time, it is possible to encounter some unexpected situations or situations that have not been encountered before, so some special cases can be set in the training samples, and the sample training set also includes presets. Special case task information and its corresponding resource orchestration policy label. Special case samples are used to simulate some network states that have not appeared in history for training, and obtain the optimal solution for this network state, and then when such a situation occurs in the future, it can respond adaptively and obtain optimized resources. Orchestration strategy.

控制设备在获取了初始的全局资源编排模型后,会根据计算集群发送的信息对初始的全局资源编排模型进行更新,更新后,将更新后的全局资源编排模型对应的加密信息发送给各个计算集群。各个计算集群根据收到的第一加密信息来更新自己的本地资源编排模型,并且各个计算集群将更新后的本地资源编排模型对应的加密信息发送至控制设备,用以控制设备继续更新当前的全局资源编排模型。这样,形成多次循环更新学习,控制设备每次获取计算集群发送的加密信息后,都对当前的全局资源编排模型进行更新,这样最后得到最终的全局资源编排模型。After the control device obtains the initial global resource orchestration model, it will update the initial global resource orchestration model according to the information sent by the computing cluster, and after the update, send the encrypted information corresponding to the updated global resource orchestration model to each computing cluster . Each computing cluster updates its own local resource orchestration model according to the received first encryption information, and each computing cluster sends the encryption information corresponding to the updated local resource orchestration model to the control device, so as to control the device to continue to update the current global Resource Orchestration Model. In this way, multiple cycles of updating and learning are formed, and each time the control device obtains the encrypted information sent by the computing cluster, it updates the current global resource arrangement model, and finally obtains the final global resource arrangement model.

其中,本实施例中提到的加密信息是指全局资源编排模型在构建过程中的一个中间值,可以理解为一个权重系数,通过这个中间值可以确定该全局资源编排模型的构造。所以,控制设备获取了计算集群的加密信息后,是可以通过计算集群的加密信息来调整当前的全局资源编排模型,计算集群获取了控制设备的加密信息后,也可以通过控制设备的加密信息来调整本地资源编排模型。The encrypted information mentioned in this embodiment refers to an intermediate value in the construction process of the global resource arrangement model, which can be understood as a weight coefficient, and the construction of the global resource arrangement model can be determined by this intermediate value. Therefore, after the control device obtains the encrypted information of the computing cluster, it can adjust the current global resource arrangement model through the encrypted information of the computing cluster. After the computing cluster obtains the encrypted information of the control device, it can also use the encrypted information of the control device to Adjust the local resource orchestration model.

需要说明的是,由于本实施例中采用的是联邦学习的方式,各个计算集群和控制设备之间是不进行信息共享的,而上文中提到的中间值在计算过程中是需要使用类别标记的,它们可以被用来进行重构以发现类别信息,所以,如果直接发送该中间值是存在风险的。为了保证安全性,每个计算集群和控制设备都不能直接发送和访问中间值,控制设备在将其发送给每个计算集群之前首先进行加密处理。在加密时,可以采用同态加密的算法对其进行加密,以得到第一加密信息。同态加密举例来说,我们定义一个数字u在可加性的同态加密模式下的表达是<u>,根据同态加密的可加性原则,对于两个任意的数字u和v,我们有<u>+<v>=<u+v>。It should be noted that, because the federated learning method is adopted in this embodiment, information is not shared between each computing cluster and the control device, and the intermediate value mentioned above needs to be marked with a category in the calculation process Yes, they can be used for reconstruction to discover class information, so it is risky to send this intermediate value directly. To ensure security, each computing cluster and control device cannot directly send and access the intermediate value, and the control device first encrypts it before sending it to each computing cluster. When encrypting, the homomorphic encryption algorithm may be used to encrypt it to obtain the first encrypted information. For example, in homomorphic encryption, we define the expression of a number u in the additivity homomorphic encryption mode as <u>. According to the additivity principle of homomorphic encryption, for two arbitrary numbers u and v, we can There is <u>+<v>=<u+v>.

计算集群在接收到第一加密信息后,需要在不直接访问中间值的前提下利用中间值来更新本地资源编排模型。After receiving the first encrypted information, the computing cluster needs to use the intermediate value to update the local resource arrangement model without directly accessing the intermediate value.

本实施例中,以循环更新中的一次更新为例,来说明控制设备是如何获取到更新的全局资源编排模型的。控制设备获取全局资源编排模型的第一加密信息,并将第一加密信息发送至联邦学习联盟中的各个计算集群,第一加密信息用于更新各个计算集群的本地资源编排模型。In this embodiment, an update in the cyclic update is taken as an example to illustrate how the control device acquires the updated global resource arrangement model. The control device acquires the first encrypted information of the global resource orchestration model, and sends the first encrypted information to each computing cluster in the federated learning alliance, where the first encrypted information is used to update the local resource orchestration model of each computing cluster.

S102:接收由各个所述计算集群返回的更新后的本地资源编排模型的第二加密信息。S102: Receive second encrypted information of the updated local resource orchestration model returned by each of the computing clusters.

控制设备将第一加密信息发送至联邦学习联盟中的各个计算集群后,计算集群从控制设备下载当前的全局资源编排模型作为本地资源编排模型,计算集群根据第一加密信息对本地资源编排模型进行更新,得到更新的本地资源编排模型,并且获取在更新过程的第二加密信息。计算集群将第二加密信息发送至控制设备,第二加密信息用于更新控制设备的当前的全局资源编排模型。After the control device sends the first encrypted information to each computing cluster in the federated learning alliance, the computing cluster downloads the current global resource arrangement model from the control device as the local resource arrangement model, and the computing cluster performs the local resource arrangement model according to the first encrypted information. Update, obtain the updated local resource orchestration model, and obtain the second encrypted information in the update process. The computing cluster sends the second encrypted information to the control device, and the second encrypted information is used to update the current global resource arrangement model of the control device.

控制设备这端接收由各个计算集群返回的更新后的本地资源编排模型的第二加密信息。The end of the control device receives the updated second encrypted information of the local resource arrangement model returned by each computing cluster.

S103:根据所有所述第二加密信息对所述全局资源编排模型进行更新,得到新的全局资源编排模型。S103: Update the global resource arrangement model according to all the second encrypted information to obtain a new global resource arrangement model.

控制设备根据所有第二加密信息对全局资源编排模型进行更新,得到新的全局资源编排模型。本实施例中,利用第二加密信息来更新全局资源编排模型的方式,可以采用梯度提升树算法的方式来更新,也可以采用神经网络训练的方式进行更新,此处不做限定。The control device updates the global resource arrangement model according to all the second encrypted information to obtain a new global resource arrangement model. In this embodiment, the method of using the second encrypted information to update the global resource arrangement model may be updated by a gradient boosting tree algorithm or by a neural network training method, which is not limited here.

一种实施方式中,可以采用神经网络训练的方式进行更新,得到新的全局资源编排模型。控制设备获取计算集群发送的第二加密信息后,根据预设解密规则对第二加密信息进行解密,得到各计算集群对应的更新信息。In an implementation manner, a neural network training method can be used for updating to obtain a new global resource arrangement model. After acquiring the second encrypted information sent by the computing cluster, the control device decrypts the second encrypted information according to a preset decryption rule to obtain update information corresponding to each computing cluster.

根据所有所述更新信息对所述全局资源编排模型进行训练,得到新的全局资源编排模型。本实施例中,对当前的全局资源编排模型进行更新,采用机器学习的方式,对当前的全局资源编排模型进行训练,得到更新的全局资源编排模型。在训练过程中,加密信息可以用来调整训练参数。The global resource arrangement model is trained according to all the update information to obtain a new global resource arrangement model. In this embodiment, the current global resource arrangement model is updated, and the current global resource arrangement model is trained by means of machine learning to obtain an updated global resource arrangement model. During the training process, the encrypted information can be used to adjust the training parameters.

在这个训练过程中,可以设置特殊情况样本,来模拟一些历史上没有出现过的网络状态来进行训练,针对这种网络状态来获得最优解,进而在未来出现这种情况时,能够自适应地进行反应,得到优化的资源编排策略。In this training process, special case samples can be set to simulate some network states that have not appeared in history for training, and the optimal solution can be obtained according to this network state, and then when this situation occurs in the future, it can be adaptive React in a timely manner to obtain an optimized resource scheduling strategy.

在S103之后,还可以包括:若接收到由所述计算集群发送的模型信息获取请求,将所述新的全局资源编排模型和/或所述新的全局资源编排模型对应的第三加密信息发送至所述计算集群。这里,当控制设备获取了新的全局资源编排模型后,可以获取新的全局资源编排模型对应的中间值,对其进行加密,得到第三加密信息,在计算集群发送模型信息获取请求时,将新的全局资源编排模型和/或新的全局资源编排模型对应的第三加密信息发送至所述计算集群。After S103, it may further include: if a model information acquisition request sent by the computing cluster is received, sending the new global resource arrangement model and/or the third encrypted information corresponding to the new global resource arrangement model to the computing cluster. Here, after the control device obtains the new global resource orchestration model, it can obtain the intermediate value corresponding to the new global resource orchestration model, encrypt it, and obtain the third encrypted information. When the computing cluster sends the model information obtaining request, it will The new global resource orchestration model and/or the third encrypted information corresponding to the new global resource orchestration model is sent to the computing cluster.

本申请实施例中,控制设备获取全局资源编排模型的第一加密信息,并将所述第一加密信息发送至联邦学习联盟中的各个计算集群,所述第一加密信息用于更新各个所述计算集群的本地资源编排模型;接收由各个所述计算集群返回的更新后的本地资源编排模型的第二加密信息;根据所有所述第二加密信息对所述全局资源编排模型进行更新,得到新的全局资源编排模型。上述方法,当用户数量多,网络状况复杂的情况下,采用联邦学习的方法实现了,对分散的计算集群进行独立计算,将计算结果汇总到控制设备,得到全局资源编排模型,全局资源编排模型能够准确且快速的确定资源编排策略,使边缘计算集群的能力得到充分发挥,为延迟敏感型应用提供优质的计算支持,根据任务特性动态智能地对资源进行编排,最小化任务的平均完成时间,最大化完成任务的数量,解决了计算效率方面的问题,提高了资源利用率和计算效率。In the embodiment of this application, the control device acquires the first encrypted information of the global resource orchestration model, and sends the first encrypted information to each computing cluster in the federated learning alliance, where the first encrypted information is used to update each of the A local resource orchestration model of a computing cluster; receiving second encryption information of the updated local resource orchestration model returned by each of the computing clusters; updating the global resource orchestration model according to all the second encryption information to obtain a new The global resource orchestration model of . The above method, when the number of users is large and the network condition is complex, is realized by the method of federated learning, which independently calculates the distributed computing clusters, and aggregates the calculation results to the control device to obtain a global resource arrangement model. It can accurately and quickly determine the resource scheduling strategy, so that the capabilities of edge computing clusters can be fully utilized, providing high-quality computing support for delay-sensitive applications, dynamically and intelligently scheduling resources according to task characteristics, and minimizing the average completion time of tasks. Maximize the number of completed tasks, solve the problem of computing efficiency, and improve resource utilization and computing efficiency.

请参见图2,图2是本申请第二实施例提供的一种智能资源编排模型的训练方法的示意流程图。本实施例中一种智能资源编排模型的训练方法的执行主体为计算集群。如图2所示的智能资源编排模型的训练方法可以包括:Please refer to FIG. 2. FIG. 2 is a schematic flowchart of a training method for an intelligent resource orchestration model provided by the second embodiment of the present application. The execution subject of the training method for an intelligent resource orchestration model in this embodiment is a computing cluster. The training method of the intelligent resource orchestration model shown in Figure 2 may include:

S201:获取控制设备发送的第一加密信息。S201: Obtain the first encrypted information sent by the control device.

在本实施例中,执行主体为计算集群,计算集群是一种计算机系统,它通过一组松散集成的计算机软件和/或硬件连接起来高度紧密地协作完成计算工作。在某种意义上,计算集群可以被看作是一台计算机或者一台服务器。本实施例中的计算集群应当属于第一实施例中提到的联邦学习联盟。In this embodiment, the execution body is a computing cluster, and a computing cluster is a computer system, which is connected by a set of loosely integrated computer software and/or hardware to complete computing work in a highly close cooperation. In a sense, a computing cluster can be seen as a computer or a server. The computing cluster in this embodiment should belong to the federated learning alliance mentioned in the first embodiment.

计算集群可以预设一个初始的本地资源编排模型,初始的本地资源编排模型可以是由计算集群预先训练得到的,也可以是其他设备训练好后,移植到控制设备中。The computing cluster can preset an initial local resource orchestration model. The initial local resource orchestration model can be pre-trained by the computing cluster, or it can be transplanted to the control device after other devices are trained.

其中,初始的本地资源编排模型的训练方法包括:获取原始资源编排模型和第二样本训练集。其中,第二样本训练集中包括历史任务信息及其对应的资源编排策略标签。历史任务信息中可以包括联邦学习联盟中所有计算集群的公共特征数据样本,尽管不同计算集群的数据彼此独立,但由于边缘计算节点自身蕴含的一些公共特征,可以在绝大多数集群的数据中,找到一些包含有公共特征的数据样本。这些样本可以由它们的唯一标识符进行识别。此时,可以根据已有的隐私保护机制对跨计算集群的数据进行加密,继而选择出包含了公共特征的数据样本。Wherein, the training method of the initial local resource arrangement model includes: obtaining the original resource arrangement model and the second sample training set. Wherein, the second sample training set includes historical task information and its corresponding resource arrangement strategy label. Historical task information can include common feature data samples of all computing clusters in the federated learning alliance. Although the data of different computing clusters are independent of each other, due to some common features inherent in edge computing nodes, they can be included in the data of most clusters. Find some data samples that contain common features. These samples can be identified by their unique identifiers. At this time, the data across the computing cluster can be encrypted according to the existing privacy protection mechanism, and then the data samples containing the common features are selected.

具体来说,公共特征就是计算集群的基本属性特征,例如CPU类型、GPU类型、内存大小、存储空间大小、负载情况、算力资源情况等。Specifically, the common features are the basic attribute features of the computing cluster, such as CPU type, GPU type, memory size, storage space size, load situation, computing resource situation, etc.

计算集群根据第二样本训练集对所述初始智能资源编排模型进行训练,得到初始的本地资源编排模型。在训练过程中,初始的本地资源编排模型的输入为历史任务信息,初始的本地资源编排模型的输出为历史任务信息及其对应的资源编排策略。The computing cluster trains the initial intelligent resource arrangement model according to the second sample training set to obtain an initial local resource arrangement model. During the training process, the input of the initial local resource scheduling model is historical task information, and the output of the initial local resource scheduling model is historical task information and its corresponding resource scheduling strategy.

从控制设备上获取新的全局资源编排模型作为本地资源编排模型。其中,控制设备每次获取新的全局资源编排模型时,就可以主动将新的全局资源编排模型发送给计算集群,也可以计算集群在需要更新本地资源编排模型时,向控制设备发送请求。Obtain the new global resource orchestration model from the control device as the local resource orchestration model. Wherein, each time the control device obtains a new global resource arrangement model, it can actively send the new global resource arrangement model to the computing cluster, or the computing cluster can send a request to the control device when the local resource arrangement model needs to be updated.

控制设备在获取了全局资源编排模型后,将全局资源编排模型对应的第一加密信息发送给各个计算集群。计算集群获取控制设备发送的第一加密信息,第一加密信息用于计算集群更新本地资源编排模型。After acquiring the global resource arrangement model, the control device sends the first encrypted information corresponding to the global resource arrangement model to each computing cluster. The computing cluster acquires the first encrypted information sent by the control device, and the first encrypted information is used for the computing cluster to update the local resource arrangement model.

S202:根据所述第一加密信息对本地资源编排模型进行更新,得到更新后的本地资源编排模型。S202: Update the local resource arrangement model according to the first encrypted information to obtain an updated local resource arrangement model.

其中,在第一实施例中提到加密信息实际上是指全局资源编排模型在构建过程中的一个中间值,可以理解为一个权重系数。第一加密信息时控制设备通过同态加密得到的,计算集群获取第一加密信息后,通过利用同态加密的可加性原则,获取中间值,对本地资源编排模型进行更新,得到更新后的本地资源编排模型。Wherein, the encrypted information mentioned in the first embodiment actually refers to an intermediate value in the construction process of the global resource arrangement model, which can be understood as a weight coefficient. When the first encrypted information is obtained by the control device through homomorphic encryption, after the computing cluster obtains the first encrypted information, the intermediate value is obtained by using the additivity principle of homomorphic encryption, and the local resource arrangement model is updated to obtain the updated information. Local resource orchestration model.

一种实施方式中,可以采用梯度提升树算法对本地资源编排模型进行更新,得到更新后的本地资源编排模型。根据梯度提升树算法和第一加密信息进行迭代计算,构建本地资源编排模型对应的回归树。当回归树满足预设条件时,获取当前智能资源编排模型作为更新后的本地资源编排模型。In one embodiment, a gradient boosting tree algorithm may be used to update the local resource arrangement model to obtain an updated local resource arrangement model. Iterative calculation is performed according to the gradient boosting tree algorithm and the first encrypted information, and a regression tree corresponding to the local resource arrangement model is constructed. When the regression tree satisfies the preset condition, the current intelligent resource orchestration model is acquired as the updated local resource orchestration model.

具体来说,其基本思路如下:给定一个有着n个样本和d维特征的数据集X∈Rn×d,利用XGBoost算法构建K个回归树来预测本地资源编排模型输出:Specifically, the basic idea is as follows: Given a dataset X∈Rn ×d with n samples and d-dimensional features, use the XGBoost algorithm to construct K regression trees to predict the output of the local resource orchestration model:

Figure BDA0002816954570000151
Figure BDA0002816954570000151

其中,fk(xi):k个回归树中每个回归树的输出值,

Figure BDA0002816954570000152
k个回归树的集成预测值。where, f k ( xi ): the output value of each of the k regression trees,
Figure BDA0002816954570000152
The ensemble predicted values of k regression trees.

为了学习上述公式中的回归树模型,XGBoost在t次迭代中增加一棵树ft来最小化下列损失:To learn the regression tree model in the above formula, XGBoost adds a tree ft in t iterations to minimize the following losses:

Figure BDA0002816954570000153
Figure BDA0002816954570000153

其中,in,

Figure BDA0002816954570000154
Figure BDA0002816954570000154

其中,

Figure BDA0002816954570000155
回归树的预测损失函数,in,
Figure BDA0002816954570000155
The prediction loss function for the regression tree,

gi、hi

Figure BDA0002816954570000156
的一阶偏导与二阶偏导,g i , h i :
Figure BDA0002816954570000156
The first-order and second-order partial derivatives of ,

ft:用来减小计算误差、最小化预测损失的修正回归树,f t : the modified regression tree used to reduce the calculation error and minimize the prediction loss,

φ(t):第t轮迭代的目标函数,迭代的过程就是最小化φ(t)的过程,φ (t) : the objective function of the t-th round of iteration, the iterative process is the process of minimizing φ (t) ,

γ:分裂阈值。γ: Split threshold.

当模型在第t次迭代构建回归树时,从深度为0开始,每次给一个叶子节点增加一个分裂(split),直到树达到最大深度。进一步地,利用以下形式来决定最好的分裂:When the model builds the regression tree at the t-th iteration, starting from the depth of 0, each time a split is added to a leaf node until the tree reaches the maximum depth. Further, the best split is determined using the following form:

Figure BDA0002816954570000161
Figure BDA0002816954570000161

在上述方程中,IL和IR为分类后所有子树的节点样本。最大化分裂信息的分类则被选择为最优分裂。当模型获得一个最优的树结构时,叶结点j的最优权重可以按照如下公式给出:In the above equation, IL and IR are node samples of all subtrees after classification. The classification that maximizes the split information is selected as the optimal split. When the model obtains an optimal tree structure, the optimal weight of leaf node j can be given by the following formula:

Figure BDA0002816954570000162
Figure BDA0002816954570000162

其中,

Figure BDA0002816954570000163
回归树编号为j的叶节点的最优权重值,Ij是叶子j的样本空间。in,
Figure BDA0002816954570000163
The optimal weight value of the leaf node of the regression tree number j, I j is the sample space of leaf j.

由于分裂候选集和最优的叶子节点权重仅依赖于gi和hi,所以,gi和hi即为上文中提到的中间值,进行同态加密后即为第二加密信息。Since the split candidate set and the optimal leaf node weight only depend on g i and h i , g i and h i are the intermediate values mentioned above, and the second encrypted information is obtained after homomorphic encryption.

S203:将所述更新后的本地资源编排模型的第二加密信息发送至所述控制器,所述第二加密信息用于更新所述控制器的全局资源编排模型。S203: Send the second encrypted information of the updated local resource orchestration model to the controller, where the second encrypted information is used to update the global resource orchestration model of the controller.

计算集群将更新后的本地资源编排模型的第二加密信息发送至控制器,所述第二加密信息用于更新控制器的全局资源编排模型。控制设备根据所有计算机集群发送的第二加密信息对全局资源编排模型进行更新,得到新的全局资源编排模型。The computing cluster sends the updated second encrypted information of the local resource orchestration model to the controller, where the second encrypted information is used to update the global resource orchestration model of the controller. The control device updates the global resource arrangement model according to the second encrypted information sent by all computer clusters to obtain a new global resource arrangement model.

本实施例中,计算集群获取控制器发送的第一加密信息;根据所述第一加密信息对本地资源编排模型进行更新,得到更新后的本地资源编排模型;将所述更新后的本地资源编排模型的第二加密信息发送至所述控制器,所述第二加密信息用于更新所述控制器的全局资源编排模型。上述方法,当用户数量多,网络状况复杂的情况下,采用联邦学习的方法实现了,对分散的计算集群进行独立计算,将计算结果汇总到控制设备,得到全局资源编排模型,全局资源编排模型能够准确且快速的确定资源编排策略,使边缘计算集群的能力得到充分发挥,为延迟敏感型应用提供优质的计算支持,根据任务特性动态智能地对资源进行编排,最小化任务的平均完成时间,最大化完成任务的数量,解决了计算效率方面的问题,提高了资源利用率和计算效率。In this embodiment, the computing cluster obtains the first encryption information sent by the controller; updates the local resource scheduling model according to the first encryption information to obtain the updated local resource scheduling model; arranges the updated local resources The second encrypted information of the model is sent to the controller, and the second encrypted information is used to update the global resource orchestration model of the controller. The above method, when the number of users is large and the network condition is complex, is realized by the method of federated learning, independent computing is performed on the scattered computing clusters, and the calculation results are aggregated to the control device to obtain a global resource orchestration model and a global resource orchestration model. It can accurately and quickly determine the resource scheduling strategy, so that the capabilities of the edge computing cluster can be fully utilized, providing high-quality computing support for delay-sensitive applications, dynamically and intelligently scheduling resources according to task characteristics, and minimizing the average completion time of tasks. Maximize the number of completed tasks, solve the problem of computing efficiency, and improve resource utilization and computing efficiency.

请参见图3,图3是本申请第三实施例提供的一种资源编排策略的确定方法的示意流程图。本实施例中一种资源编排策略的确定方法的执行主体为具有资源编排策略的确定功能的设备,例如,台式电脑、服务器等。如图3所示的资源编排策略的确定方法可以包括:Please refer to FIG. 3 . FIG. 3 is a schematic flowchart of a method for determining a resource scheduling policy provided by a third embodiment of the present application. In this embodiment, a method for determining a resource arrangement strategy is executed by a device having a function of determining a resource arrangement strategy, such as a desktop computer, a server, and the like. The method for determining the resource orchestration strategy as shown in Figure 3 may include:

S301:获取待分配任务的任务信息。S301: Acquire task information of the task to be assigned.

设备获取待分配任务的任务信息,任务信息可以包括任务相关参数,例如,任务的数量、任务所需资源情况、任务的完成时间限制、任务完成需求等等。The device obtains the task information of the task to be assigned, and the task information may include task-related parameters, such as the number of tasks, the resources required for the task, the completion time limit of the task, the task completion requirement, and so on.

S302:将所述任务信息输入至预设的目标智能资源编排模型中进行处理,得到所述任务信息对应的资源编排策略;其中,所述目标智能资源编排模型由权利要求1至5中任一项所述的智能资源编排模型的训练方法得到。S302: Input the task information into a preset target intelligent resource arrangement model for processing, and obtain a resource arrangement strategy corresponding to the task information; wherein, the target intelligent resource arrangement model is selected from any one of claims 1 to 5 The training method of the intelligent resource orchestration model described in item is obtained.

设备中预先存储了目标智能资源编排模型,其中,目标智能资源编排模型的获取方式可以参考第一实施例和第二实施例中的智能资源编排模型的训练方法,此处不再赘述。The target smart resource orchestration model is pre-stored in the device. For the acquisition method of the target smart resource orchestration model, reference may be made to the training methods of the smart resource orchestration model in the first and second embodiments, which will not be repeated here.

将任务信息输入至预设的目标智能资源编排模型中进行处理,得到任务信息对应的资源编排策略。The task information is input into the preset target intelligent resource arrangement model for processing, and a resource arrangement strategy corresponding to the task information is obtained.

本实施例中,资源编排策略的确定装置获取待分配任务的任务信息;将所述任务信息输入至预设的目标智能资源编排模型中进行处理,得到所述任务信息对应的资源编排策略。上述方法中使用的目标智能资源编排模型是通过联邦学习的方法,对分散的计算集群进行独立计算,将计算结果汇总到控制设备,由控制设备汇总计算得到的。该目标智能资源编排模型能够准确且快速的确定资源编排策略,提高了资源利用率和计算效率。In this embodiment, the device for determining a resource arrangement strategy obtains task information of a task to be assigned; inputs the task information into a preset target intelligent resource arrangement model for processing, and obtains a resource arrangement strategy corresponding to the task information. The target intelligent resource orchestration model used in the above method is obtained by means of federated learning, which independently calculates the distributed computing clusters, and aggregates the calculation results to the control device, which is then aggregated and calculated by the control device. The target intelligent resource scheduling model can accurately and quickly determine the resource scheduling strategy, which improves resource utilization and computing efficiency.

请参见图4,图4是本申请第四实施例提供的控制设备的示意图。包括的各单元用于执行图1对应的实施例中的各步骤。具体请参阅图1对应的实施例中的相关描述。为了便于说明,仅示出了与本实施例相关的部分。参见图4,控制设备4包括:Please refer to FIG. 4 , which is a schematic diagram of a control device provided by a fourth embodiment of the present application. The included units are used to execute the steps in the embodiment corresponding to FIG. 1 . For details, please refer to the relevant description in the embodiment corresponding to FIG. 1 . For convenience of explanation, only the parts related to this embodiment are shown. Referring to Figure 4, the control device 4 includes:

第一处理单元410,用于获取全局资源编排模型的第一加密信息,并将所述第一加密信息发送至联邦学习联盟中的各个计算集群,所述第一加密信息用于更新各个所述计算集群的本地资源编排模型;The first processing unit 410 is configured to obtain the first encrypted information of the global resource orchestration model, and send the first encrypted information to each computing cluster in the federated learning alliance, where the first encrypted information is used to update each of the The local resource orchestration model of the computing cluster;

接收单元420,用于接收由各个所述计算集群返回的更新后的本地资源编排模型的第二加密信息;a receiving unit 420, configured to receive the second encrypted information of the updated local resource orchestration model returned by each of the computing clusters;

第二处理单元430,用于根据所有所述第二加密信息对所述全局资源编排模型进行更新,得到新的全局资源编排模型。The second processing unit 430 is configured to update the global resource arrangement model according to all the second encrypted information to obtain a new global resource arrangement model.

进一步地,所述第二处理单元430,具体用于:Further, the second processing unit 430 is specifically used for:

根据预设解密规则对所述第二加密信息进行解密,得到各所述计算集群对应的更新信息;Decrypt the second encrypted information according to a preset decryption rule to obtain update information corresponding to each of the computing clusters;

根据所有所述更新信息对所述全局资源编排模型进行训练,得到新的全局资源编排模型。The global resource arrangement model is trained according to all the update information to obtain a new global resource arrangement model.

进一步地,所述控制设备4,还包括:Further, the control device 4 also includes:

获取单元,用于获取第一样本训练集;所述样本训练集中包括历史任务信息及其对应的资源编排策略标签;an obtaining unit, used for obtaining a first sample training set; the sample training set includes historical task information and its corresponding resource arrangement strategy label;

第三处理单元,用于根据所述第一样本训练集对原始资源编排模型进行训练,得到初始的全局资源编排模型。The third processing unit is configured to train the original resource arrangement model according to the first sample training set to obtain an initial global resource arrangement model.

进一步地,所述样本训练集中还包括预设特殊情况任务信息及其对应的资源编排策略标签。Further, the sample training set also includes preset special-case task information and its corresponding resource arrangement strategy label.

进一步地,所述控制设备4,还包括:Further, the control device 4 also includes:

第四处理单元,用于若接收到由所述计算集群发送的模型信息获取请求,将所述新的全局资源编排模型和/或所述新的全局资源编排模型对应的第三加密信息发送至所述计算集群。The fourth processing unit is configured to send the new global resource orchestration model and/or the third encrypted information corresponding to the new global resource orchestration model to the model information acquisition request sent by the computing cluster. the computing cluster.

请参见图5,图5是本申请第五实施例提供的计算集群的示意图。包括的各单元用于执行图2对应的实施例中的各步骤。具体请参阅图2对应的实施例中的相关描述。为了便于说明,仅示出了与本实施例相关的部分。参见图5,计算集群5包括:Please refer to FIG. 5 , which is a schematic diagram of a computing cluster provided by a fifth embodiment of the present application. The included units are used to execute the steps in the embodiment corresponding to FIG. 2 . For details, please refer to the relevant description in the embodiment corresponding to FIG. 2 . For convenience of explanation, only the parts related to this embodiment are shown. Referring to Figure 5, the computing cluster 5 includes:

第一获取单元510,用于获取控制设备发送的第一加密信息;a first obtaining unit 510, configured to obtain the first encrypted information sent by the control device;

更新单元520,用于根据所述第一加密信息对本地资源编排模型进行更新,得到更新后的本地资源编排模型;an update unit 520, configured to update the local resource arrangement model according to the first encryption information, to obtain an updated local resource arrangement model;

发送单元530,用于将所述更新后的本地资源编排模型的第二加密信息发送至所述控制器,所述第二加密信息用于更新所述控制器的全局资源编排模型。The sending unit 530 is configured to send the second encrypted information of the updated local resource orchestration model to the controller, where the second encrypted information is used to update the global resource orchestration model of the controller.

进一步地,所述计算集群5,还包括:Further, the computing cluster 5 also includes:

第二获取单元,用于获取原始资源编排模型和第二样本训练集;The second acquisition unit is used to acquire the original resource arrangement model and the second sample training set;

训练单元,用于根据所述第二样本训练集对所述初始智能资源编排模型进行训练,得到初始的本地资源编排模型。A training unit, configured to train the initial intelligent resource arrangement model according to the second sample training set to obtain an initial local resource arrangement model.

进一步地,所述更新单元520,具体用于:Further, the updating unit 520 is specifically used for:

根据梯度提升树算法和所述第一加密信息进行迭代计算,构建所述本地资源编排模型对应的回归树;Iterative calculation is performed according to the gradient boosting tree algorithm and the first encrypted information, and a regression tree corresponding to the local resource arrangement model is constructed;

当所述回归树满足预设条件时,获取当前智能资源编排模型作为更新后的本地资源编排模型。When the regression tree satisfies the preset condition, the current intelligent resource arrangement model is acquired as the updated local resource arrangement model.

请参见图6,图6是本申请第六实施例提供的资源编排策略的确定装置的示意图。包括的各单元用于执行图3对应的实施例中的各步骤。具体请参阅图3对应的实施例中的相关描述。为了便于说明,仅示出了与本实施例相关的部分。参见图6,资源编排策略的确定装置的6包括:Please refer to FIG. 6 , which is a schematic diagram of an apparatus for determining a resource scheduling policy provided by a sixth embodiment of the present application. The included units are used to execute the steps in the embodiment corresponding to FIG. 3 . For details, please refer to the relevant description in the embodiment corresponding to FIG. 3 . For convenience of explanation, only the parts related to this embodiment are shown. Referring to FIG. 6 , 6 of the device for determining a resource scheduling policy includes:

获取单元610,用于获取待分配任务的任务信息;an obtaining unit 610, configured to obtain task information of the task to be assigned;

处理单元620,用于将所述任务信息输入至预设的目标智能资源编排模型中进行处理,得到所述任务信息对应的资源编排策略;其中,所述目标智能资源编排模型由上述第一方面所述的智能资源编排模型的训练方法得到。A processing unit 620, configured to input the task information into a preset target intelligent resource arrangement model for processing, and obtain a resource arrangement policy corresponding to the task information; wherein, the target intelligent resource arrangement model is determined by the above-mentioned first aspect The training method of the intelligent resource arrangement model is obtained.

图7是本申请第七实施例提供的控制设备的示意图。如图7所示,该实施例的控制设备7包括:处理器70、存储器71以及存储在所述存储器71中并可在所述处理器70上运行的计算机程序72,例如智能资源编排模型的训练程序。所述处理器70执行所述计算机程序72时实现上述各个智能资源编排模型的训练方法实施例中的步骤,例如图1所示的步骤101至103。或者,所述处理器70执行所述计算机程序72时实现上述各装置实施例中各模块/单元的功能,例如图4所示模块410至430的功能。FIG. 7 is a schematic diagram of a control device provided by a seventh embodiment of the present application. As shown in FIG. 7 , the control device 7 of this embodiment includes: a processor 70 , a memory 71 , and a computer program 72 stored in the memory 71 and executable on the processor 70 , for example, an intelligent resource orchestration model. training program. When the processor 70 executes the computer program 72, the steps in each of the above-mentioned embodiments of the training method for the smart resource orchestration model are implemented, for example, steps 101 to 103 shown in FIG. 1 . Alternatively, when the processor 70 executes the computer program 72, the functions of the modules/units in the foregoing apparatus embodiments, for example, the functions of the modules 410 to 430 shown in FIG. 4 are implemented.

示例性的,所述计算机程序72可以被分割成一个或多个模块/单元,所述一个或者多个模块/单元被存储在所述存储器71中,并由所述处理器70执行,以完成本申请。所述一个或多个模块/单元可以是能够完成特定功能的一系列计算机程序指令段,该指令段用于描述所述计算机程序72在所述控制设备7中的执行过程。例如,所述计算机程序72可以被分割成第一处理单元、接收单元、第二处理单元,各单元具体功能如下:Exemplarily, the computer program 72 may be divided into one or more modules/units, and the one or more modules/units are stored in the memory 71 and executed by the processor 70 to complete the this application. The one or more modules/units may be a series of computer program instruction segments capable of performing specific functions, and the instruction segments are used to describe the execution process of the computer program 72 in the control device 7 . For example, the computer program 72 can be divided into a first processing unit, a receiving unit, and a second processing unit, and the specific functions of each unit are as follows:

第一处理单元,用于获取全局资源编排模型的第一加密信息,并将所述第一加密信息发送至联邦学习联盟中的各个计算集群,所述第一加密信息用于更新各个所述计算集群的本地资源编排模型;a first processing unit, configured to obtain first encrypted information of the global resource orchestration model, and send the first encrypted information to each computing cluster in the federated learning alliance, where the first encrypted information is used to update each of the computing The local resource orchestration model of the cluster;

接收单元,用于接收由各个所述计算集群返回的更新后的本地资源编排模型的第二加密信息;a receiving unit, configured to receive the second encrypted information of the updated local resource orchestration model returned by each of the computing clusters;

第二处理单元,用于根据所有所述第二加密信息对所述全局资源编排模型进行更新,得到新的全局资源编排模型。A second processing unit, configured to update the global resource arrangement model according to all the second encrypted information to obtain a new global resource arrangement model.

所述控制设备可包括,但不仅限于,处理器70、存储器71。本领域技术人员可以理解,图7仅仅是控制设备7的示例,并不构成对控制设备7的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件,例如所述控制设备还可以包括输入输出设备、网络接入设备、总线等。The control device may include, but is not limited to, a processor 70 and a memory 71 . Those skilled in the art can understand that FIG. 7 is only an example of the control device 7, and does not constitute a limitation on the control device 7, and may include more or less components than the one shown, or combine some components, or different components For example, the control device may further include an input and output device, a network access device, a bus, and the like.

所称处理器70可以是中央处理单元(Central Processing Unit,CPU),还可以是其他通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现成可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。The so-called processor 70 may be a central processing unit (Central Processing Unit, CPU), and may also be other general-purpose processors, digital signal processors (Digital Signal Processors, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), Off-the-shelf programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, and the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.

所述存储器71可以是所述控制设备7的内部存储单元,例如控制设备7的硬盘或内存。所述存储器71也可以是所述控制设备7的外部存储设备,例如所述控制设备7上配备的插接式硬盘,智能存储卡(Smart Media Card,SMC),安全数字(Secure Digital,SD)卡,闪存卡(Flash Card)等。进一步地,所述控制设备7还可以既包括所述控制设备7的内部存储单元也包括外部存储设备。所述存储器71用于存储所述计算机程序以及所述控制设备所需的其他程序和数据。所述存储器71还可以用于暂时地存储已经输出或者将要输出的数据。The memory 71 may be an internal storage unit of the control device 7 , such as a hard disk or a memory of the control device 7 . The memory 71 may also be an external storage device of the control device 7, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) equipped on the control device 7. card, flash card (Flash Card) and so on. Further, the control device 7 may also include both an internal storage unit of the control device 7 and an external storage device. The memory 71 is used to store the computer program and other programs and data required by the control device. The memory 71 may also be used to temporarily store data that has been output or will be output.

图8是本申请第八实施例提供的计算集群的示意图。如图8所示,该实施例的计算集群8包括:处理器80、存储器81以及存储在所述存储器81中并可在所述处理器80上运行的计算机程序82,例如智能资源编排模型的训练程序。所述处理器80执行所述计算机程序82时实现上述各个智能资源编排模型的训练方法实施例中的步骤,例如图2所示的步骤201至203。或者,所述处理器80执行所述计算机程序82时实现上述各装置实施例中各模块/单元的功能,例如图5所示模块510至530的功能。FIG. 8 is a schematic diagram of a computing cluster provided by an eighth embodiment of the present application. As shown in FIG. 8 , the computing cluster 8 of this embodiment includes: a processor 80 , a memory 81 , and a computer program 82 stored in the memory 81 and executable on the processor 80 , such as an intelligent resource orchestration model training program. When the processor 80 executes the computer program 82 , the steps in each of the above-mentioned embodiments of the training method for the smart resource arrangement model are implemented, for example, steps 201 to 203 shown in FIG. 2 . Alternatively, when the processor 80 executes the computer program 82 , the functions of the modules/units in the above-mentioned device embodiments, for example, the functions of the modules 510 to 530 shown in FIG. 5 , are implemented.

示例性的,所述计算机程序82可以被分割成一个或多个模块/单元,所述一个或者多个模块/单元被存储在所述存储器81中,并由所述处理器80执行,以完成本申请。所述一个或多个模块/单元可以是能够完成特定功能的一系列计算机程序指令段,该指令段用于描述所述计算机程序82在所述计算集群8中的执行过程。例如,所述计算机程序82可以被分割成第一获取单元、更新单元、第二处理单元、发送单元,各单元具体功能如下:Exemplarily, the computer program 82 may be divided into one or more modules/units, and the one or more modules/units are stored in the memory 81 and executed by the processor 80 to complete the this application. The one or more modules/units may be a series of computer program instruction segments capable of performing specific functions, and the instruction segments are used to describe the execution process of the computer program 82 in the computing cluster 8 . For example, the computer program 82 can be divided into a first acquisition unit, an update unit, a second processing unit, and a transmission unit, and the specific functions of each unit are as follows:

第一获取单元,用于获取控制设备发送的第一加密信息;a first obtaining unit, configured to obtain the first encrypted information sent by the control device;

更新单元,用于根据所述第一加密信息对本地资源编排模型进行更新,得到更新后的本地资源编排模型;an update unit, configured to update the local resource orchestration model according to the first encryption information to obtain an updated local resource orchestration model;

发送单元,用于将所述更新后的本地资源编排模型的第二加密信息发送至所述控制器,所述第二加密信息用于更新所述控制器的全局资源编排模型。A sending unit, configured to send second encrypted information of the updated local resource orchestration model to the controller, where the second encrypted information is used to update the global resource orchestration model of the controller.

所述计算集群可包括,但不仅限于,处理器80、存储器81。本领域技术人员可以理解,图8仅仅是计算集群8的示例,并不构成对计算集群8的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件,例如所述计算集群还可以包括输入输出设备、网络接入设备、总线等。The computing cluster may include, but is not limited to, the processor 80 and the memory 81 . Those skilled in the art can understand that FIG. 8 is only an example of the computing cluster 8 , and does not constitute a limitation on the computing cluster 8 , which may include more or less components than those shown in the figure, or combine some components, or different components For example, the computing cluster may further include input and output devices, network access devices, buses, and the like.

所称处理器80可以是中央处理单元(Central Processing Unit,CPU),还可以是其他通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现成可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。The so-called processor 80 may be a central processing unit (Central Processing Unit, CPU), and may also be other general-purpose processors, digital signal processors (Digital Signal Processors, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), Off-the-shelf programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, and the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.

所述存储器81可以是所述计算集群8的内部存储单元,例如计算集群8的硬盘或内存。所述存储器81也可以是所述计算集群8的外部存储设备,例如所述计算集群8上配备的插接式硬盘,智能存储卡(Smart Media Card,SMC),安全数字(Secure Digital,SD)卡,闪存卡(Flash Card)等。进一步地,所述计算集群8还可以既包括所述计算集群8的内部存储单元也包括外部存储设备。所述存储器81用于存储所述计算机程序以及所述计算集群所需的其他程序和数据。所述存储器81还可以用于暂时地存储已经输出或者将要输出的数据。The memory 81 may be an internal storage unit of the computing cluster 8 , such as a hard disk or a memory of the computing cluster 8 . The memory 81 may also be an external storage device of the computing cluster 8, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) equipped on the computing cluster 8. card, flash card (Flash Card) and so on. Further, the computing cluster 8 may also include both an internal storage unit of the computing cluster 8 and an external storage device. The memory 81 is used to store the computer program and other programs and data required by the computing cluster. The memory 81 can also be used to temporarily store data that has been output or will be output.

图9是本申请第九实施例提供的资源编排策略的确定设备的示意图。如图9所示,该实施例的资源编排策略的确定设备9包括:处理器90、存储器91以及存储在所述存储器91中并可在所述处理器90上运行的计算机程序92,例如资源编排策略的确定程序。所述处理器90执行所述计算机程序92时实现上述各个资源编排策略的确定方法实施例中的步骤,例如图3所示的步骤301至302。或者,所述处理器90执行所述计算机程序92时实现上述各装置实施例中各模块/单元的功能,例如图6所示模块610至620的功能。FIG. 9 is a schematic diagram of a device for determining a resource scheduling policy provided by a ninth embodiment of the present application. As shown in FIG. 9 , the device 9 for determining a resource scheduling policy in this embodiment includes: a processor 90 , a memory 91 , and a computer program 92 stored in the memory 91 and executable on the processor 90 , such as a resource Determining procedures for orchestration policies. When the processor 90 executes the computer program 92, the steps in each of the above-mentioned embodiments of the method for determining a resource scheduling policy are implemented, for example, steps 301 to 302 shown in FIG. 3 . Alternatively, when the processor 90 executes the computer program 92, the functions of the modules/units in each of the foregoing apparatus embodiments, such as the functions of the modules 610 to 620 shown in FIG. 6 , are implemented.

示例性的,所述计算机程序92可以被分割成一个或多个模块/单元,所述一个或者多个模块/单元被存储在所述存储器91中,并由所述处理器90执行,以完成本申请。所述一个或多个模块/单元可以是能够完成特定功能的一系列计算机程序指令段,该指令段用于描述所述计算机程序92在所述资源编排策略的确定设备9中的执行过程。例如,所述计算机程序92可以被分割成接收单元、第一处理单元、第二处理单元、第三处理单元、第四处理单元、执行单元,各单元具体功能如下:Exemplarily, the computer program 92 may be divided into one or more modules/units, and the one or more modules/units are stored in the memory 91 and executed by the processor 90 to complete the this application. The one or more modules/units may be a series of computer program instruction segments capable of accomplishing specific functions, and the instruction segments are used to describe the execution process of the computer program 92 in the resource arrangement policy determining device 9 . For example, the computer program 92 can be divided into a receiving unit, a first processing unit, a second processing unit, a third processing unit, a fourth processing unit, and an execution unit, and the specific functions of each unit are as follows:

接收单元,用于接收定时请求,所述定时请求包括定时时长和处理任务;a receiving unit, configured to receive a timing request, where the timing request includes a timing duration and a processing task;

第一处理单元,用于获取单调递增时钟的第一递增时间,根据所述第一递增时间和所述定时时长确定第一虚拟闹钟时间;a first processing unit, configured to obtain a first increment time of a monotonically incrementing clock, and determine a first virtual alarm clock time according to the first increment time and the timing duration;

第二处理单元,用于根据所述第一虚拟闹钟时间以及所述处理任务创建虚拟定时器,以及,根据所述第一虚拟闹钟时间确定系统闹钟任务;a second processing unit, configured to create a virtual timer according to the first virtual alarm clock time and the processing task, and determine a system alarm clock task according to the first virtual alarm clock time;

第三处理单元,用于当系统时钟触发系统闹钟任务时,获取所述单调递增时钟的第二递增时间;a third processing unit, configured to acquire the second increment time of the monotonically incrementing clock when the system clock triggers the system alarm clock task;

第四处理单元,用于获取各个所述虚拟定时器对应的虚拟闹钟时间,将所述虚拟闹钟时间小于所述第二递增时间的虚拟定时器确定为目标定时器;a fourth processing unit, configured to obtain the virtual alarm clock time corresponding to each of the virtual timers, and determine the virtual timer whose virtual alarm clock time is less than the second increment time as the target timer;

执行单元,用于执行所述目标定时器对应处理任务。An execution unit, configured to execute the processing task corresponding to the target timer.

所述资源编排策略的确定设备可包括,但不仅限于,处理器90、存储器91。本领域技术人员可以理解,图9仅仅是资源编排策略的确定设备9的示例,并不构成对资源编排策略的确定设备9的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件,例如所述资源编排策略的确定设备还可以包括输入输出设备、网络接入设备、总线等。The device for determining the resource scheduling policy may include, but is not limited to, the processor 90 and the memory 91 . Those skilled in the art can understand that FIG. 9 is only an example of the device 9 for determining the resource orchestration strategy, and does not constitute a limitation on the device 9 for determining the resource orchestration strategy, and may include more or less components than those shown in the figure, or combinations thereof Some components, or different components, for example, the device for determining the resource scheduling policy may also include input and output devices, network access devices, buses, and the like.

所称处理器90可以是中央处理单元(Central Processing Unit,CPU),还可以是其他通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现成可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。The so-called processor 90 may be a central processing unit (Central Processing Unit, CPU), and may also be other general-purpose processors, digital signal processors (Digital Signal Processors, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), Off-the-shelf programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, and the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.

所述存储器91可以是所述资源编排策略的确定设备9的内部存储单元,例如资源编排策略的确定设备9的硬盘或内存。所述存储器91也可以是所述资源编排策略的确定设备9的外部存储设备,例如所述资源编排策略的确定设备9上配备的插接式硬盘,智能存储卡(Smart Media Card,SMC),安全数字(Secure Digital,SD)卡,闪存卡(Flash Card)等。进一步地,所述资源编排策略的确定设备9还可以既包括所述资源编排策略的确定设备9的内部存储单元也包括外部存储设备。所述存储器91用于存储所述计算机程序以及所述资源编排策略的确定设备所需的其他程序和数据。所述存储器91还可以用于暂时地存储已经输出或者将要输出的数据。The memory 91 may be an internal storage unit of the device 9 for determining the resource arrangement strategy, such as a hard disk or memory of the device 9 for determining the resource arrangement strategy. The memory 91 may also be an external storage device of the device 9 for determining the resource scheduling strategy, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC) equipped on the device 9 for determining the resource scheduling strategy, Secure Digital (SD) card, flash card (Flash Card), etc. Further, the resource scheduling policy determining device 9 may further include both an internal storage unit of the resource scheduling policy determining device 9 and an external storage device. The memory 91 is used to store the computer program and other programs and data required by the device for determining the resource arrangement policy. The memory 91 can also be used to temporarily store data that has been output or will be output.

需要说明的是,上述装置/单元之间的信息交互、执行过程等内容,由于与本申请方法实施例基于同一构思,其具体功能及带来的技术效果,具体可参见方法实施例部分,此处不再赘述。It should be noted that the information exchange, execution process and other contents between the above-mentioned devices/units are based on the same concept as the method embodiments of the present application. For specific functions and technical effects, please refer to the method embodiments section. It is not repeated here.

所属领域的技术人员可以清楚地了解到,为了描述的方便和简洁,仅以上述各功能单元、模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能单元、模块完成,即将所述装置的内部结构划分成不同的功能单元或模块,以完成以上描述的全部或者部分功能。实施例中的各功能单元、模块可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中,上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。另外,各功能单元、模块的具体名称也只是为了便于相互区分,并不用于限制本申请的保护范围。上述系统中单元、模块的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that, for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example. Module completion, that is, dividing the internal structure of the device into different functional units or modules to complete all or part of the functions described above. Each functional unit and module in the embodiment may be integrated in one processing unit, or each unit may exist physically alone, or two or more units may be integrated in one unit, and the above-mentioned integrated units may adopt hardware. It can also be realized in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing from each other, and are not used to limit the protection scope of the present application. For the specific working processes of the units and modules in the above-mentioned system, reference may be made to the corresponding processes in the foregoing method embodiments, which will not be repeated here.

本申请实施例还提供了一种虚拟定时器的定时设备,该虚拟定时器的定时设备包括:至少一个处理器、存储器以及存储在所述存储器中并可在所述至少一个处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现上述任意各个方法实施例中的步骤。Embodiments of the present application further provide a timing device for a virtual timer, where the timing device for a virtual timer includes: at least one processor, a memory, and a memory device that is stored in the memory and can run on the at least one processor. A computer program, when the processor executes the computer program, the steps in any of the foregoing method embodiments are implemented.

本申请实施例还提供了一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,所述计算机程序被处理器执行时实现可实现上述各个方法实施例中的步骤。Embodiments of the present application further provide a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a processor, the steps in the foregoing method embodiments can be implemented.

本申请实施例提供了一种计算机程序产品,当计算机程序产品在移动终端上运行时,使得移动终端执行时实现可实现上述各个方法实施例中的步骤。The embodiments of the present application provide a computer program product, when the computer program product runs on a mobile terminal, the steps in the foregoing method embodiments can be implemented when the mobile terminal executes the computer program product.

所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请实现上述实施例方法中的全部或部分流程,可以通过计算机程序来指令相关的硬件来完成,所述的计算机程序可存储于一计算机可读存储介质中,该计算机程序在被处理器执行时,可实现上述各个方法实施例的步骤。其中,所述计算机程序包括计算机程序代码,所述计算机程序代码可以为源代码形式、对象代码形式、可执行文件或某些中间形式等。所述计算机可读介质至少可以包括:能够将计算机程序代码携带到拍照装置/终端设备的任何实体或装置、记录介质、计算机存储器、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,RandomAccess Memory)、电载波信号、电信信号以及软件分发介质。例如U盘、移动硬盘、磁碟或者光盘等。在某些司法管辖区,根据立法和专利实践,计算机可读介质不可以是电载波信号和电信信号。The integrated unit, if implemented in the form of a software functional unit and sold or used as an independent product, may be stored in a computer-readable storage medium. Based on this understanding, all or part of the processes in the methods of the above embodiments can be implemented by a computer program to instruct the relevant hardware. The computer program can be stored in a computer-readable storage medium, and the computer program When executed by the processor, the steps of the above-mentioned various method embodiments may be implemented. Wherein, the computer program includes computer program code, and the computer program code may be in the form of source code, object code, executable file or some intermediate form, and the like. The computer-readable medium may include at least: any entity or device capable of carrying the computer program code to the photographing device/terminal device, recording medium, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, RandomAccess Memory), electrical carrier signal, telecommunication signal, and software distribution medium. For example, U disk, mobile hard disk, disk or CD, etc. In some jurisdictions, under legislation and patent practice, computer readable media may not be electrical carrier signals and telecommunications signals.

在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述或记载的部分,可以参见其它实施例的相关描述。In the foregoing embodiments, the description of each embodiment has its own emphasis. For parts that are not described or described in detail in a certain embodiment, reference may be made to the relevant descriptions of other embodiments.

本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。Those of ordinary skill in the art can realize that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Skilled artisans may implement the described functionality using different methods for each particular application, but such implementations should not be considered beyond the scope of this application.

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

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

以上所述实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围,均应包含在本申请的保护范围之内。The above-mentioned embodiments are only used to illustrate the technical solutions of the present application, but not to limit them; although the present application has been described in detail with reference to the above-mentioned embodiments, those of ordinary skill in the art should understand that: it can still be used for the above-mentioned implementations. The technical solutions described in the examples are modified, or some technical features thereof 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 in the embodiments of the application, and should be included in the within the scope of protection of this application.

Claims (10)

1. A training method of an intelligent resource arrangement model is applied to a control device, and comprises the following steps:
acquiring first encryption information of a global resource arrangement model, and sending the first encryption information to each computing cluster in a Federal learning alliance, wherein the first encryption information is used for updating a local resource arrangement model of each computing cluster;
receiving second encryption information of the updated local resource orchestration model returned by each computing cluster;
and updating the global resource arrangement model according to all the second encryption information to obtain a new global resource arrangement model.
2. The method for training an intelligent resource arrangement model according to claim 1, wherein the updating the global resource arrangement model according to all the second encryption information to obtain a new global resource arrangement model comprises:
decrypting the second encrypted information according to a preset decryption rule to obtain update information corresponding to each computing cluster;
and training the global resource arrangement model according to all the updating information to obtain a new global resource arrangement model.
3. The method of training an intelligent resource orchestration model according to claim 1, wherein the method of training the initial global resource orchestration model comprises:
acquiring a first sample training set; the first sample training set comprises historical task information and corresponding resource arrangement strategy labels;
and training the original resource arrangement model according to the first sample training set to obtain an initial global resource arrangement model.
4. The training method of an intelligent resource orchestration model according to claim 3, wherein the sample training set further comprises preset special case task information and a resource orchestration strategy label corresponding thereto.
5. The method for training an intelligent resource arrangement model according to claim 1, wherein after the global resource arrangement model is updated according to all the second encryption information to obtain a new global resource arrangement model, the method further comprises:
and if a model information acquisition request sent by the computing cluster is received, sending the new global resource arrangement model and/or third encryption information corresponding to the new global resource arrangement model to the computing cluster.
6. A training method of an intelligent resource arrangement model is applied to a computing cluster, and comprises the following steps:
acquiring first encryption information sent by a controller;
updating the local resource arrangement model according to the first encryption information to obtain an updated local resource arrangement model;
and sending second encryption information of the updated local resource arrangement model to the controller, wherein the second encryption information is used for updating the global resource arrangement model of the controller.
7. The method of training an intelligent resource orchestration model according to claim 6, wherein the method of training the initial local resource orchestration model comprises:
acquiring an original resource arrangement model and a second sample training set;
and training the initial intelligent resource arrangement model according to the second sample training set to obtain an initial local resource arrangement model.
8. The method for training the intelligent resource arrangement model according to claim 6, wherein the updating the local resource arrangement model according to the first encryption information to obtain the updated local resource arrangement model includes:
performing iterative computation according to a gradient lifting tree algorithm and the first encryption information, and constructing a regression tree corresponding to the local resource arrangement model;
and when the regression tree meets the preset condition, acquiring the current intelligent resource arrangement model as the updated local resource arrangement model.
9. A method for determining a resource orchestration policy, comprising:
acquiring task information of a task to be distributed;
inputting the task information into a preset target intelligent resource arrangement model for processing to obtain a resource arrangement strategy corresponding to the task information; wherein the target intelligent resource arrangement model is obtained by the training method of the intelligent resource arrangement model of any one of claims 1 to 5.
10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1 to 5, 6 to 8, or 9.
CN202011401075.2A 2020-12-03 2020-12-03 Training method of intelligent resource arrangement model Pending CN114610475A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011401075.2A CN114610475A (en) 2020-12-03 2020-12-03 Training method of intelligent resource arrangement model

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011401075.2A CN114610475A (en) 2020-12-03 2020-12-03 Training method of intelligent resource arrangement model

Publications (1)

Publication Number Publication Date
CN114610475A true CN114610475A (en) 2022-06-10

Family

ID=81856583

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011401075.2A Pending CN114610475A (en) 2020-12-03 2020-12-03 Training method of intelligent resource arrangement model

Country Status (1)

Country Link
CN (1) CN114610475A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115202908A (en) * 2022-09-09 2022-10-18 杭州海康威视数字技术股份有限公司 Privacy computation request response method and device based on dynamic arrangement
CN117314063A (en) * 2023-09-15 2023-12-29 国投曹妃甸港口有限公司 Emergency personnel coordination method and system in production process
CN117573382A (en) * 2024-01-17 2024-02-20 国网浙江省电力有限公司丽水供电公司 A data collection task arrangement method and device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109165683A (en) * 2018-08-10 2019-01-08 深圳前海微众银行股份有限公司 Sample predictions method, apparatus and storage medium based on federation's training
CN109871702A (en) * 2019-02-18 2019-06-11 深圳前海微众银行股份有限公司 Federated model training method, system, device, and computer-readable storage medium
CN111008709A (en) * 2020-03-10 2020-04-14 支付宝(杭州)信息技术有限公司 Federal learning and data risk assessment method, device and system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109165683A (en) * 2018-08-10 2019-01-08 深圳前海微众银行股份有限公司 Sample predictions method, apparatus and storage medium based on federation's training
CN109871702A (en) * 2019-02-18 2019-06-11 深圳前海微众银行股份有限公司 Federated model training method, system, device, and computer-readable storage medium
CN111008709A (en) * 2020-03-10 2020-04-14 支付宝(杭州)信息技术有限公司 Federal learning and data risk assessment method, device and system

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
KEWEI CHENG等: "SecureBoost: A Lossless Federated Learning Framework", pages 3 - 6, Retrieved from the Internet <URL:https://arxiv.org/pdf/1901.08755.pdf> *
张君如;赵晓焱;袁培燕;: "面向用户隐私保护的联邦安全树算法", 计算机应用, no. 10, 1 June 2020 (2020-06-01) *

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115202908A (en) * 2022-09-09 2022-10-18 杭州海康威视数字技术股份有限公司 Privacy computation request response method and device based on dynamic arrangement
CN115202908B (en) * 2022-09-09 2023-01-03 杭州海康威视数字技术股份有限公司 Privacy computation request response method and device based on dynamic arrangement
CN117314063A (en) * 2023-09-15 2023-12-29 国投曹妃甸港口有限公司 Emergency personnel coordination method and system in production process
CN117573382A (en) * 2024-01-17 2024-02-20 国网浙江省电力有限公司丽水供电公司 A data collection task arrangement method and device
CN117573382B (en) * 2024-01-17 2024-03-29 国网浙江省电力有限公司丽水供电公司 A data collection task arrangement method and device

Similar Documents

Publication Publication Date Title
Zhang et al. Design and implementation of embedded un-interruptible power supply system (EUPSS) for web-based mobile application
KR102611454B1 (en) Storage device for decentralized machine learning and machine learning method thereof
JP6426174B2 (en) Data management of connected devices
US8468352B2 (en) Retrieving and using cloud based storage credentials
CN114610475A (en) Training method of intelligent resource arrangement model
US8677310B2 (en) Industry template abstracting and creation for use in industrial automation and information solutions
US20060206533A1 (en) Online storage with metadata-based retrieval
US20210288887A1 (en) Systems and methods for contextual transformation of analytical model of iot edge devices
US11989328B2 (en) Embedded device for control of data exposure
US11934972B2 (en) Configuration assessment based on inventory
US20230073638A1 (en) Local data classification based on a remote service interface
CN110710153A (en) Distributed dataset encryption and decryption
CN114662618A (en) A fault diagnosis method, device and related equipment based on federated learning
CN111079153B (en) Security modeling method and device, electronic equipment and storage medium
CN114679283A (en) Block chain data request processing method and device, server and storage medium
JP7695477B2 (en) Security policy selection based on calculated uncertainty and predicted resource consumption
JP2021535497A (en) Data processing methods, servers, client devices and media for security authentication
WO2016105829A1 (en) Incident response tool using a data exchange layer system
CN114731342B (en) Managed data export from edge devices to remote networks
CN114896569A (en) Blockchain-based code copyright registration system, method and platform
CN114567678A (en) Resource calling method and device of cloud security service and electronic equipment
CN112464068A (en) Data processing method and device and electronic equipment
US11443058B2 (en) Processing requests at a remote service to implement local data classification
Singh et al. IoT Communication Protocols
US11789783B2 (en) Hosted virtual desktop slicing using federated edge intelligence

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