[go: up one dir, main page]

CN115756861A - Distributed service processing method, device, electronic device and storage medium - Google Patents

Distributed service processing method, device, electronic device and storage medium Download PDF

Info

Publication number
CN115756861A
CN115756861A CN202211505451.1A CN202211505451A CN115756861A CN 115756861 A CN115756861 A CN 115756861A CN 202211505451 A CN202211505451 A CN 202211505451A CN 115756861 A CN115756861 A CN 115756861A
Authority
CN
China
Prior art keywords
instance
information
physical machine
instances
service
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
CN202211505451.1A
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.)
Beijing Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN202211505451.1A priority Critical patent/CN115756861A/en
Publication of CN115756861A publication Critical patent/CN115756861A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Stored Programmes (AREA)

Abstract

The disclosure provides a distributed service processing method and device, electronic equipment and a storage medium, and relates to the technical field of cloud computing, in particular to the technical fields of distributed cloud computing, elastic networks and the like. The implementation scheme is as follows: obtaining resource declaration information for a set of physical machines, the resource declaration information indicating at least resources currently owned by each physical machine in the set of physical machines; obtaining service declaration information of a service to be deployed, wherein the service declaration information comprises a plurality of instances of the service and resource demand information corresponding to each instance of the plurality of instances and used for indicating that physical machine resources are occupied when deployment is completed; determining a target physical machine corresponding to each of the plurality of instances from the set of physical machines based on the resource declaration information and the service declaration information; and deploying each instance in the plurality of instances on a target physical machine in the plurality of target physical machines corresponding to the instance.

Description

分布式服务处理方法、装置、电子设备和存储介质Distributed service processing method, device, electronic device and storage medium

技术领域technical field

本公开涉及云计算技术领域,尤其涉及分布式云计算、弹性网络、云存储等技术领域,具体涉及一种分布式服务处理方法、装置、电子设备、计算机可读存储介质和计算机程序产品。The present disclosure relates to the technical field of cloud computing, in particular to the technical fields of distributed cloud computing, elastic network, and cloud storage, and in particular to a distributed service processing method, device, electronic equipment, computer-readable storage medium, and computer program product.

背景技术Background technique

云计算(cloud computing),指的是通过网络接入弹性可扩展的共享物理或虚拟资源池,资源可以包括服务器、操作系统、网络、软件、应用和存储设备等,并可以以按需、自服务的方式对资源进行部署和管理的技术体系。通过云计算技术,可以为人工智能、区块链等技术应用、模型训练提供高效强大的数据处理能力。Cloud computing refers to accessing elastic and scalable shared physical or virtual resource pools through the network. Resources can include servers, operating systems, networks, software, applications, and storage devices, etc. A technical system that deploys and manages resources in the form of services. Through cloud computing technology, it can provide efficient and powerful data processing capabilities for artificial intelligence, blockchain and other technical applications and model training.

分布式云计算平台中,会有多个产品,比如云服务器、弹性网络、云存储等。每个云产品一般会由多个服务基于树状依赖共同工作实现相关功能。典型的特点是:服务多、实例多、连接关系复杂。如何对分布式服务进行全生命周期管理,是分布式服务管理过程中需要解决的核心问题。In the distributed cloud computing platform, there will be multiple products, such as cloud servers, elastic networks, and cloud storage. Each cloud product generally consists of multiple services working together based on tree dependencies to implement related functions. Typical features are: many services, many instances, and complex connection relationships. How to manage the entire life cycle of distributed services is the core problem that needs to be solved in the process of distributed service management.

在此部分中描述的方法不一定是之前已经设想到或采用的方法。除非另有指明,否则不应假定此部分中描述的任何方法仅因其包括在此部分中就被认为是现有技术。类似地,除非另有指明,否则此部分中提及的问题不应认为在任何现有技术中已被公认。The approaches described in this section are not necessarily approaches that have been previously conceived or employed. Unless otherwise indicated, it should not be assumed that any approaches described in this section are admitted to be prior art solely by virtue of their inclusion in this section. Similarly, issues mentioned in this section should not be considered to have been recognized in any prior art unless otherwise indicated.

发明内容Contents of the invention

本公开提供了一种分布式服务处理方法、装置、电子设备、计算机可读存储介质和计算机程序产品。The present disclosure provides a distributed service processing method, device, electronic equipment, computer readable storage medium and computer program product.

根据本公开的一方面,提供了一种分布式服务处理方法,包括:获得物理机集合的资源声明信息,所述资源声明信息至少指示所述物理机集合中的每一个物理机的当前所具有的资源;获得待部署的服务的服务声明信息,所述服务声明信息包括所述服务的多个实例以及所述多个实例中的每一个实例对应的用于指示完成部署所需占用物理机资源的资源需求信息;基于所述资源声明信息和所述服务声明信息,从所述物理机集合中确定与所述多个实例中的每一个实例对应的目标物理机;以及将所述多个实例中的每一个实例分别部署在所述多个目标物理机中与该实例相应的目标物理机上。According to an aspect of the present disclosure, a distributed service processing method is provided, including: obtaining resource declaration information of a set of physical machines, the resource claim information at least indicating the current resources of each physical machine in the set of physical machines resource; obtain the service declaration information of the service to be deployed, the service declaration information includes multiple instances of the service and each instance of the multiple instances corresponding to indicate the physical machine resources required to complete the deployment resource requirement information; based on the resource declaration information and the service declaration information, determine a target physical machine corresponding to each instance in the plurality of instances from the set of physical machines; and combine the plurality of instances Each instance of is respectively deployed on a target physical machine corresponding to the instance among the plurality of target physical machines.

根据本公开的另一方面,提供了一种分布式服务处理装置,包括:获得物理机集合的资源声明信息,所述资源声明信息至少指示所述物理机集合中的每一个物理机的当前所具有的资源;获得待部署的服务的服务声明信息,所述服务声明信息包括所述服务的多个实例以及所述多个实例中的每一个实例对应的用于指示完成部署所需占用物理机资源的资源需求信息;基于所述资源声明信息和所述服务声明信息,从所述物理机集合中确定与所述多个实例中的每一个实例对应的目标物理机;以及将所述多个实例中的每一个实例分别部署在所述多个目标物理机中与该实例相应的目标物理机上。According to another aspect of the present disclosure, a distributed service processing apparatus is provided, including: obtaining resource declaration information of a physical machine set, where the resource declaration information at least indicates the current location of each physical machine in the physical machine set Have resources; obtain the service declaration information of the service to be deployed, the service declaration information includes multiple instances of the service and each instance in the multiple instances corresponds to an indication of the physical machine required to complete the deployment resource requirement information of resources; based on the resource declaration information and the service declaration information, determine a target physical machine corresponding to each instance in the plurality of instances from the set of physical machines; Each of the instances is respectively deployed on a target physical machine corresponding to the instance among the plurality of target physical machines.

根据本公开的另一方面,提供了一种电子设备,包括:至少一个处理器;以及与所述至少一个处理器通信连接的存储器;其中所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器能够执行根据本公开的实施例所述的方法。According to another aspect of the present disclosure, there is provided an electronic device, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores information executable by the at least one processor. instructions, the instructions are executed by the at least one processor, so that the at least one processor can execute the method according to the embodiments of the present disclosure.

根据本公开的另一方面,提供了一种存储有计算机指令的非瞬时计算机可读存储介质,其中,所述计算机指令用于使所述计算机执行根据本公开的实施例所述的方法。According to another aspect of the present disclosure, there is provided a non-transitory computer-readable storage medium storing computer instructions, wherein the computer instructions are used to cause the computer to execute the method according to the embodiments of the present disclosure.

根据本公开的另一方面,提供了一种计算机程序产品,包括计算机程序,其中,所述计算机程序在被处理器执行时实现根据本公开的实施例所述的方法。According to another aspect of the present disclosure, there is provided a computer program product comprising a computer program, wherein the computer program implements the method according to the embodiments of the present disclosure when executed by a processor.

根据本公开的一个或多个实施例,可以实现分布式服务的均衡部署,使得服务部署在多个物理机上后,各个物理机上的资源分布均匀。According to one or more embodiments of the present disclosure, balanced deployment of distributed services can be realized, so that after services are deployed on multiple physical machines, resources on each physical machine are evenly distributed.

应当理解,本部分所描述的内容并非旨在标识本公开的实施例的关键或重要特征,也不用于限制本公开的范围。本公开的其它特征将通过以下的说明书而变得容易理解。It should be understood that what is described in this section is not intended to identify key or important features of the embodiments of the present disclosure, nor is it intended to limit the scope of the present disclosure. Other features of the present disclosure will be readily understood through the following description.

附图说明Description of drawings

附图示例性地示出了实施例并且构成说明书的一部分,与说明书的文字描述一起用于讲解实施例的示例性实施方式。所示出的实施例仅出于例示的目的,并不限制权利要求的范围。在所有附图中,相同的附图标记指代类似但不一定相同的要素。The drawings exemplarily illustrate the embodiment and constitute a part of the specification, and together with the text description of the specification, serve to explain the exemplary implementation of the embodiment. The illustrated embodiments are for illustrative purposes only and do not limit the scope of the claims. Throughout the drawings, like reference numbers designate similar, but not necessarily identical, elements.

图1示出了根据本公开的实施例的服务处理方法的流程图;FIG. 1 shows a flowchart of a service processing method according to an embodiment of the present disclosure;

图2示出了根据本公开的实施例的服务处理方法中实现分布式服务管理的场景图;Fig. 2 shows a scene diagram of implementing distributed service management in a service processing method according to an embodiment of the present disclosure;

图3示出了根据本公开的实施例的服务处理方法中基于资源声明信息和服务声明信息从物理机集合中获得与多个实例中的每一个实例对应的目标物理机的过程的流程图;FIG. 3 shows a flowchart of a process of obtaining a target physical machine corresponding to each of multiple instances from a physical machine set based on resource declaration information and service declaration information in a service processing method according to an embodiment of the present disclosure;

图4示出了根据本公开的实施例的服务处理方法中将多个实例分别部署在多个目标物理机上的过程的流程图;Fig. 4 shows a flow chart of the process of deploying multiple instances on multiple target physical machines respectively in the service processing method according to an embodiment of the present disclosure;

图5示出了根据本公开的实施例的服务处理方法的流程图;FIG. 5 shows a flowchart of a service processing method according to an embodiment of the present disclosure;

图6示出了根据本公开的实施例的服务处理方法的流程图;FIG. 6 shows a flowchart of a service processing method according to an embodiment of the present disclosure;

图7示出了根据本公开的实施例的服务处理方法的流程图;FIG. 7 shows a flowchart of a service processing method according to an embodiment of the present disclosure;

图8示出了根据本公开的实施例的服务处理装置的结构框图;以及Fig. 8 shows a structural block diagram of a service processing device according to an embodiment of the present disclosure; and

图9示出了能够用于实现本公开的实施例的示例性电子设备的结构框图。FIG. 9 shows a structural block diagram of an exemplary electronic device that can be used to implement the embodiments of the present disclosure.

具体实施方式Detailed ways

以下结合附图对本公开的示范性实施例做出说明,其中包括本公开实施例的各种细节以助于理解,应当将它们认为仅仅是示范性的。因此,本领域普通技术人员应当认识到,可以对这里描述的实施例做出各种改变和修改,而不会背离本公开的范围。同样,为了清楚和简明,以下的描述中省略了对公知功能和结构的描述。Exemplary embodiments of the present disclosure are described below in conjunction with the accompanying drawings, which include various details of the embodiments of the present disclosure to facilitate understanding, and they should be regarded as exemplary only. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope of the present disclosure. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.

在本公开中,除非另有说明,否则使用术语“第一”、“第二”等来描述各种要素不意图限定这些要素的位置关系、时序关系或重要性关系,这种术语只是用于将一个要素与另一要素区分开。在一些示例中,第一要素和第二要素可以指向该要素的同一实例,而在某些情况下,基于上下文的描述,它们也可以指代不同实例。In the present disclosure, unless otherwise stated, using the terms "first", "second", etc. to describe various elements is not intended to limit the positional relationship, temporal relationship or importance relationship of these elements, and such terms are only used for Distinguishes one feature from another. In some examples, the first element and the second element may refer to the same instance of the element, and in some cases, they may also refer to different instances based on contextual description.

在本公开中对各种所述示例的描述中所使用的术语只是为了描述特定示例的目的,而并非旨在进行限制。除非上下文另外明确地表明,如果不特意限定要素的数量,则该要素可以是一个也可以是多个。此外,本公开中所使用的术语“和/或”涵盖所列出的项目中的任何一个以及全部可能的组合方式。The terminology used in describing the various described examples in this disclosure is for the purpose of describing particular examples only and is not intended to be limiting. Unless the context clearly indicates otherwise, if the number of elements is not specifically limited, there may be one or more elements. In addition, the term "and/or" used in the present disclosure covers any one and all possible combinations of the listed items.

下面将结合附图详细描述本公开的实施例。Embodiments of the present disclosure will be described in detail below with reference to the accompanying drawings.

根据本公开的一方面,提供了一种分布式服务处理方法。如图1所示,方法100包括:According to an aspect of the present disclosure, a distributed service processing method is provided. As shown in Figure 1, the method 100 includes:

步骤S110:获得物理机集合的资源声明信息,所述资源声明信息至少指示所述物理机集合中的每一个物理机的当前所具有的资源;Step S110: Obtain resource declaration information of a physical machine set, where the resource declaration information at least indicates the current resources of each physical machine in the physical machine set;

步骤S120:获得待部署的服务的服务声明信息,所述服务声明信息包括所述服务的多个实例以及所述多个实例中的每一个实例对应的用于指示完成部署所需占用物理机资源的资源需求信息;Step S120: Obtain the service declaration information of the service to be deployed, the service declaration information includes multiple instances of the service and each of the multiple instances corresponds to an indication of the physical machine resources required to complete the deployment information on resource requirements;

步骤S130:基于所述资源声明信息和所述服务声明信息,从所述物理机集合中确定与所述多个实例中的每一个实例对应的目标物理机;以及Step S130: Based on the resource declaration information and the service declaration information, determine a target physical machine corresponding to each of the multiple instances from the physical machine set; and

步骤S140:将所述多个实例中的每一个实例部署在所述多个目标物理机中与该实例相应的目标物理机上。Step S140: Deploy each of the multiple instances on a target physical machine corresponding to the instance among the multiple target physical machines.

在相关技术中,将服务部署在物理机上时,仅仅考虑物理机上的资源不足的问题,不考虑资源是否均衡的问题。例如,在将包括分别需要消耗30G、20G和100G的实例的服务部署在具有128G和50G资源的物理机上时,往往对各个实例所需要消耗的资源分别进行考虑,从而将需要消耗30G的实例优先部署在具有128G资源的物理机上,将需要消耗20G部署在具有50G资源的物理机上,剩下的需要消耗100G的实例需要另外寻找合适的物理机以进行部署,使得物理机上的资源没有得到有效利用。In related technologies, when deploying services on a physical machine, only the problem of insufficient resources on the physical machine is considered, and the problem of whether the resources are balanced is not considered. For example, when deploying services including instances that consume 30G, 20G, and 100G on physical machines with 128G and 50G resources, the resources consumed by each instance are often considered separately, so that instances that consume 30G are prioritized Deployed on a physical machine with 128G resources, it will need to consume 20G to deploy on a physical machine with 50G resources, and the remaining instances that need to consume 100G need to find a suitable physical machine for deployment, so that the resources on the physical machine are not effectively utilized .

根据本公开的实施例,通过获得物理机集合的资源声明信息和服务的服务声名信息,从物理机集合中确定用于部署服务的多个目标物理机,由于在确定多个目标物理机的过程中,考虑了各个物理机当前所具有的资源和各个实例完成部署所需要占用的物理机资源,使得所确定的目标物理机,是综合考虑了各个实例完成部署所需要占用的物理机资源和各个物理机当前所具有的资源后确定的,在完成各个实例的部署之后,各个目标物理机之间的资源分布均衡,从而使各个物理机上的资源得到有效利用。According to an embodiment of the present disclosure, by obtaining the resource declaration information of the physical machine set and the service name information of the service, multiple target physical machines for deploying services are determined from the physical machine set, because in the process of determining multiple target physical machines In this method, the current resources of each physical machine and the physical machine resources required by each instance to complete the deployment are considered, so that the determined target physical machine is a comprehensive consideration of the physical machine resources required by each instance to complete the deployment and each instance. After the current resources of the physical machine are determined, after the deployment of each instance is completed, the resource distribution among each target physical machine is balanced, so that the resources on each physical machine can be effectively used.

例如,在将包括分别需要消耗30G、20G和100G的实例的服务部署在具有128G资源的物理机上时,优先考虑将需要消耗20G和100G的实例部署在具有128G资源的物理机,针对剩下需要消耗30G的实例部署在具有50G资源的物理机上,使得各个物理机上的资源均得到有效利用,并且各个物理机上的资源分布相对均衡。For example, when deploying services including instances that consume 30G, 20G, and 100G on physical machines with 128G resources, give priority to deploying instances that consume 20G and 100G on physical machines with 128G resources, and for the remaining The instance that consumes 30G is deployed on a physical machine with 50G resources, so that the resources on each physical machine are effectively utilized, and the resource distribution on each physical machine is relatively balanced.

根据本公开的实施例,采用资源声明信息和服务声名信息对服务部署所需要的资源和物理机所具有的资源的信息进行声明式配置,实现对服务部署所需要的资源和物理机所具有的资源的量化,使得服务在部署过程中的所有信息(包括服务在部署过程中的资源需求信息和物理机所具有的资源信息)都配置化、结构化,根据配置化和结构化的信息,进行自动分配和规划,方便服务的管理和扩展。According to the embodiments of the present disclosure, resource declaration information and service name information are used to declaratively configure the resources required for service deployment and the information of the resources possessed by the physical machine, so as to implement the resources required for service deployment and the resources possessed by the physical machine. The quantification of resources makes all the information in the service deployment process (including the resource demand information in the service deployment process and the resource information of the physical machine) be configured and structured. According to the configured and structured information, the Automatic allocation and planning facilitates service management and expansion.

在一些实施例中,资源声明信息包括json格式的数据,其描述各个物理机所具有的资源。例如,资源声明信息包括物理机的标识、名称、ip地址、类型、所属的区域、中央处理器(CPU,Central Processing Unit)、内存、普通磁盘挂载点和大小、固态硬盘(SSD,SolidState Drives)磁盘挂载点和大小等。In some embodiments, the resource declaration information includes data in json format, which describes the resources owned by each physical machine. For example, resource declaration information includes physical machine identification, name, ip address, type, region to which it belongs, central processing unit (CPU, Central Processing Unit), memory, common disk mount point and size, solid state drive (SSD, SolidState Drives) ) disk mount point and size etc.

在一些实施例中,在步骤S110中,通过接收每个物理机上的代理(agent)周期性发送的信息,获得资源声明信息。In some embodiments, in step S110, resource declaration information is obtained by receiving information periodically sent by an agent (agent) on each physical machine.

在一些实施例中,服务声明信息包括json(JavaScriptObjectNotation,JS对象简谱)格式的数据,其对服务进行描述。具体包括:服务包括多个实例,每个实例在完成部署时所需要占用的物理机资源,该物理机资源包括CPU、内存、磁盘、SSD的基础硬件资源等。In some embodiments, the service declaration information includes data in json (JavaScriptObjectNotation, JS Object Notation) format, which describes the service. It specifically includes: the service includes multiple instances, and the physical machine resources that each instance needs to occupy when completing deployment, the physical machine resources include basic hardware resources such as CPU, memory, disk, and SSD.

在一些实施例中,在步骤S120中,响应于接收到来自用户的服务部署请求,获得待部署的服务的服务声明信息。In some embodiments, in step S120, in response to receiving a service deployment request from a user, service declaration information of the service to be deployed is obtained.

在一些实施例中,通过应用程序接口(API,Application Program Interface)服务器获得服务声名信息和资源声明信息,并且将服务声名信息和资源声明信息存储在数据存储服务器中。In some embodiments, the service name information and resource declaration information are obtained through an Application Program Interface (API, Application Program Interface) server, and the service name information and resource declaration information are stored in the data storage server.

参看图2,示出了根据本公开的一些实施例的分布式服务处理方法中实现分布式服务管理的场景图。其中,Referring to FIG. 2 , it shows a scene diagram of implementing distributed service management in a distributed service processing method according to some embodiments of the present disclosure. in,

用户通过客户端200向API服务器210发送服务部署请求,使得API服务器210获得服务声名信息,同时各个物理机220通过有线或无线网络向API服务器210发送信息,使得API服务器210获得资源声明信息。API服务器210将所获得的服务声名信息和资源声明信息存储在数据存储服务器230中。同时,各个物理机220还能够通过有线或无线网络经由API服务器210获取到数据存储服务器230中的信息。The user sends a service deployment request to the API server 210 through the client 200, so that the API server 210 obtains service name information, and at the same time, each physical machine 220 sends information to the API server 210 through a wired or wireless network, so that the API server 210 obtains resource declaration information. The API server 210 stores the obtained service name information and resource declaration information in the data storage server 230 . At the same time, each physical machine 220 can also obtain information in the data storage server 230 via the API server 210 through a wired or wireless network.

在一些实施例中,在步骤S130中,从物理机集合中所确定的多个实例对应的目标物理机,是在将多个实例部署在该多个目标物理机上后,该多个目标物理机所具有的资源的均匀性优于将所述多个实例部署在物理机集合中的其他多个物理机上后,该其他多个物理机所具有的资源的均匀性。In some embodiments, in step S130, the target physical machines corresponding to the multiple instances determined from the set of physical machines are the multiple target physical machines after the multiple instances are deployed on the multiple target physical machines The resource uniformity is better than the resource uniformity of the multiple other physical machines in the physical machine set after the multiple instances are deployed on the other multiple physical machines.

例如,在将该多个实例部署该多个目标物理机上后,该多个目标物理机上剩余的资源之间差异在预设范围内,或者将该多个实例部署该多个目标物理机上后,该多个目标物理机上剩余的资源之间差异小于将该多个实例部署在其他多个物理机上后,其他多个物理机上剩余的资源之间差异。For example, after the multiple instances are deployed on the multiple target physical machines, the difference between the remaining resources on the multiple target physical machines is within a preset range, or after the multiple instances are deployed on the multiple target physical machines, The difference among the remaining resources on the multiple target physical machines is smaller than the difference among the remaining resources on the other multiple physical machines after the multiple instances are deployed on the other multiple physical machines.

在一些实施例中,所述资源声明信息还指示所述物理机集合中的每一个物理机在多个类型中的对应类型,所述服务声明信息还包括所述多个实例中的每一个实例对应的标签信息,该标签信息指示在多个类型的物理机中与对应的实例亲和性最高的第一类型的物理机,并且,如图3所示,步骤S130、基于所述资源声明信息和所述服务声明信息,从所述物理机集合中确定与所述多个实例中的每一个实例对应的目标物理机包括:In some embodiments, the resource declaration information also indicates the corresponding type of each physical machine in the set of physical machines among multiple types, and the service declaration information also includes each instance in the multiple instances Corresponding label information, the label information indicates the first type of physical machine with the highest affinity with the corresponding instance among multiple types of physical machines, and, as shown in FIG. 3 , step S130, based on the resource declaration information and the service declaration information, determining from the set of physical machines a target physical machine corresponding to each of the multiple instances includes:

步骤310:针对所述多个实例中的每一个实例,基于该实例对应的标签信息和所述资源声名信息,从所述物理机集合中获得该实例对应的一个或多个候选物理机;以及Step 310: For each of the multiple instances, based on the tag information corresponding to the instance and the resource name information, obtain one or more candidate physical machines corresponding to the instance from the set of physical machines; and

步骤320:针对所述多个实例中的每一个实例,基于该实例对应的资源需求信息和所述一个或多个候选物理机,获得与该实例对应的目标物理机。Step 320: For each of the multiple instances, based on the resource requirement information corresponding to the instance and the one or more candidate physical machines, obtain a target physical machine corresponding to the instance.

不同的实例对不同类型的物理机的亲和性不同,例如,实例在某一类型的CPU上运行尽量长时间地运行而不被迁移到其他处理器的倾向性较其他实例在该类型上运行尽量长时间地运行而不被迁移到其他处理器的倾向性大,则该实例相对其他实例,针对该类型的物理机的亲和性大。Different instances have different affinity for different types of physical machines. For example, instances running on a certain type of CPU are more likely to run for as long as possible without being migrated to other processors than other instances running on this type. If the tendency to run for as long as possible without being migrated to other processors is high, the instance has a high affinity for this type of physical machine compared to other instances.

在部署过程中,部署实例的过程中,还考虑实例对物理机的亲和性,使得所获得的目标物理机是与各个实例相应的亲和性好的物理机,提升实例在物理机上的运行效率和质量。During the deployment process, the affinity of the instance to the physical machine is also considered during the deployment process, so that the obtained target physical machine is a physical machine with good affinity corresponding to each instance, and the running of the instance on the physical machine is improved. efficiency and quality.

例如,在步骤S310中,针对每个实例,根据该实例的标签信息,从物理机集合中选择与其信息性最高的一个或多个候选物理机,在步骤S420中,将该一个或多个候选物理机中当前所具有的资源最大的物理机作为该实例对应的目标物理机。For example, in step S310, for each instance, according to the label information of the instance, select one or more candidate physical machines with the highest information from the physical machine set, and in step S420, the one or more candidate physical machines The physical machine that currently has the largest resource among the physical machines is used as the target physical machine corresponding to the instance.

在一些实施例中,所述资源声明信息还指示所述物理机集合中的每一个物理机在多个可用区域中的所属可用区域,所述服务声明信息还包括所述多个实例对应的区域分布信息,所述区域分布信息指示所述多个实例中将要部署在所述多个可用区域中的每一个可用区域中的物理机上的实例的数量,并且其中,步骤S310还包括:基于该实例对应的标签信息,从所述物理机集合中获得该实例对应的一个或多个候选物理机包括:In some embodiments, the resource declaration information also indicates the availability zone to which each physical machine in the physical machine set belongs in multiple availability zones, and the service declaration information also includes the zones corresponding to the multiple instances distribution information, the area distribution information indicates the number of instances among the multiple instances to be deployed on physical machines in each of the multiple availability zones, and wherein, step S310 further includes: based on the instance The corresponding label information, obtaining one or more candidate physical machines corresponding to the instance from the set of physical machines includes:

基于该实例对应的一个或多个可用区域和标签信息,从所述物理机集合中获得该实例对应的一个或多个候选物理机。Based on the one or more availability zones and label information corresponding to the instance, one or more candidate physical machines corresponding to the instance are obtained from the set of physical machines.

通过将服务多个实例进行分区部署,使得多个实例分别部署在物理隔离的多个可用区域(Availability Zone),充分利用多可用区域实现高可用方案,避免服务运行过程中的中断。By partitioning and deploying multiple instances of the service, multiple instances are deployed in physically isolated multiple availability zones (Availability Zones), making full use of multiple availability zones to achieve high-availability solutions and avoid interruptions during service operation.

在一些实施例中,服务声名信息中的区域分布信息通过replications字段进行描述,一个服务可以在不同的可用区域部署不同数量的实例,对应声明方式如下:{replications:{“az1”:10,“az2”:20}}。In some embodiments, the regional distribution information in the service name information is described by the replications field. A service can deploy different numbers of instances in different available regions. The corresponding declaration method is as follows: {replications:{"az1":10," az2":20}}.

在一些实施例中,采用生成器,通过背包算法从一个或多个候选物理机中获得多个实例中的每一个实例对应的目标物理机。In some embodiments, a generator is used to obtain a target physical machine corresponding to each instance in the multiple instances from one or more candidate physical machines through a knapsack algorithm.

继续参看图2,生成器240通过API服务器210获得数据存储服务器230中服务声名信息和资源声明信息,并根据服务声名信息和资源声明信息,获得服务的多个实例中的每一个实例对应的目标物理机,以进行实例部署。Continuing to refer to FIG. 2, the generator 240 obtains the service name information and resource declaration information in the data storage server 230 through the API server 210, and according to the service name information and resource declaration information, obtains the target corresponding to each instance in the multiple instances of the service Physical machines for instance deployment.

在一些实施例中,针对所述多个实例中的每一个实例,与该实例对应的目标物理机是该实例所对应的所述一个或多个候选物理机中当前所具有的资源最多的候选物理机。In some embodiments, for each of the multiple instances, the target physical machine corresponding to the instance is the candidate that currently has the most resources among the one or more candidate physical machines corresponding to the instance physical machine.

通过获得实例所对应的一个或多个候选物理机中当前所具有的资源最多的候选物理机作为实例所对应的目标物理机,使得具有资源较多的候选物理机被有优先分配以部署实例,使得物理机在部署实例后,运行服务的过程中速度更快,同时,物理机集合中各个物理机的资源利用率更高。By obtaining the candidate physical machine that currently has the most resources among the one or more candidate physical machines corresponding to the instance as the target physical machine corresponding to the instance, the candidate physical machines with more resources are allocated with priority to deploy the instance, After the instance is deployed on the physical machine, the speed of running the service is faster, and at the same time, the resource utilization rate of each physical machine in the physical machine set is higher.

在一些实施例中,服务声名信息还包括服务端口信息。例如,服务可以启动多个端口,不同端口可以包括TCP(Transmission Control Protocol,传输控制协议)、UDP(UserDatagram Protocol,用户数据报协议)端口。在服务声明信息中,服务端口信息包括部署该服务所需要的TCP端口的数量,和UDP端口的数量,并对每个端口用字符串的形式描述。例如,{“main_port”:{“portal”:”TCP”,“value”:””},“api_port”:{“portal”:”TCP”,“value”:””}}In some embodiments, the service name information also includes service port information. For example, the service may start multiple ports, and different ports may include TCP (Transmission Control Protocol, Transmission Control Protocol), UDP (UserDatagram Protocol, User Datagram Protocol) ports. In the service declaration information, the service port information includes the number of TCP ports and UDP ports required to deploy the service, and each port is described in the form of a character string. For example, {"main_port":{"portal":"TCP","value":""},"api_port":{"portal":"TCP","value":""}}

在部署实例的过程中,物理机通过从数据存储服务器中读取资源声名信息中的服务端口信息,获取相应实例的端口信息,以实现相应实例的部署。In the process of deploying the instance, the physical machine obtains the port information of the corresponding instance by reading the service port information in the resource name information from the data storage server, so as to implement the deployment of the corresponding instance.

在一些实施例中,服务声名信息包括各个实例对应的安装文件。In some embodiments, the service name information includes installation files corresponding to each instance.

在一些实施例中,在步骤S140中,通过将各个实例的安装文件发送到相应的目标物理机上,使目标物理机安装相应实例的安装文件,实现实例的部署。In some embodiments, in step S140, by sending the installation file of each instance to the corresponding target physical machine, the target physical machine is made to install the installation file of the corresponding instance, so as to realize the deployment of the instance.

在一些实施例中,各个实例对应的安装文件进行分布式存储。其中,服务声明信息还包括所述多个实例中的每一个实例相应的实例地址,所述实例地址为用于部署该实例的安装文件的地址,如图4所示,步骤S140、将所述多个实例分别部署在所述多个目标物理机上包括:In some embodiments, the installation files corresponding to each instance are stored in a distributed manner. Wherein, the service declaration information also includes the instance address corresponding to each instance in the plurality of instances, and the instance address is the address of the installation file used to deploy the instance, as shown in FIG. 4, step S140, the Multiple instances deployed on the multiple target physical machines include:

步骤S410:将所述多个实例中的每一个实例与所述多个目标物理机中的相应目标物理机关联,以生成该实例对应的实例部署信息;以及Step S410: Associating each of the multiple instances with a corresponding target physical machine among the multiple target physical machines, so as to generate instance deployment information corresponding to the instance; and

步骤S420:将所述多个实例中的每一个实例的实例部署信息发送到该实例的相应目标物理机上,以使该目标物理机基于所述实例部署信息获得该实例的实例地址,并且基于该实例地址,下载该实例的安装文件,以部署该实例。Step S420: Send the instance deployment information of each of the multiple instances to the corresponding target physical machine of the instance, so that the target physical machine can obtain the instance address of the instance based on the instance deployment information, and based on the Instance address, download the installation file of the instance to deploy the instance.

通过将实例的安装文件与服务声明信息进行解耦,引入分布式存储系统,对实例的安装文件进行分布式存储,从而使得服务的部署易于扩展,在大规模并发部署的场景下,均能实现服务的高效部署。By decoupling the installation file of the instance from the service declaration information, introducing a distributed storage system, the installation file of the instance is stored in a distributed manner, so that the deployment of the service is easy to expand, and it can be realized in the scenario of large-scale concurrent deployment. Efficient deployment of services.

继续参看图2,将多个实例中的每一个实例的安装文件存储在分布式存储系统250中,在获得各个实例对应的目标物理机之后,通过将各个实例与相应的目标物理机关系,生成实例部署信息。在物理机向API服务器210周期性的发送获取信息之后,响应于确定数据存储服务器230中具有其相应的实例和该实例的实例部署信息,进行实例部署。在各个物理机220在部署各个实例的过程中,通过经由API服务器210从数据存储服务器230中获得各个实例的实例地址,并基于实例地址从分布式存储系统250下载相应实例的安装文件,以进行安装,从而实例的部署。Continue referring to FIG. 2 , store the installation file of each instance in the multiple instances in the distributed storage system 250, and after obtaining the target physical machine corresponding to each instance, generate a relationship between each instance and the corresponding target physical machine Instance deployment information. After the physical machine periodically sends acquisition information to the API server 210 , in response to determining that the data storage server 230 has its corresponding instance and the instance deployment information of the instance, instance deployment is performed. During the process of deploying each instance on each physical machine 220, the instance address of each instance is obtained from the data storage server 230 via the API server 210, and the installation file of the corresponding instance is downloaded from the distributed storage system 250 based on the instance address to perform Installation, and thus instance deployment.

在一些实施例中,如图5所示,所述方法还包括:In some embodiments, as shown in Figure 5, the method also includes:

步骤S510:在所述多个目标物理机中的每一个目标物理机部署所述多个实例中的相应实例之后,获得该目标物理机对应于该相应实例的端口;Step S510: After each of the multiple target physical machines deploys a corresponding instance in the multiple instances, obtain a port corresponding to the corresponding instance on the target physical machine;

步骤S520:获得所述多个实例和所述多个目标物理机中的多个相应端口之间的映射关系;以及Step S520: Obtain the mapping relationship between the multiple instances and multiple corresponding ports in the multiple target physical machines; and

步骤S530:将所述映射关系发送到所述多个目标物理机中的每一个目标物理机上,以使所述多个目标物理机中的每一个目标物理机响应于获得所述服务的运行指令,基于所述映射关系,运行所述服务。Step S530: Send the mapping relationship to each of the multiple target physical machines, so that each of the multiple target physical machines responds to the execution instruction for obtaining the service , based on the mapping relationship, run the service.

现有技术中服务中的各个实例的连接关系管理复杂,需要通过人工或者外围工具来维护连接关系相关配置。本案通过获得多个实例和多个目标物理机中的相应端口之间的映射关系,并将映射关系发送到每个物理机上,使得在服务运行过程中,通过映射关系就能获得服务运行过程中各个实例的连接关系,使得对连接关系的管理简化。In the prior art, the connection relationship management of each instance in the service is complicated, and it is necessary to maintain the configuration related to the connection relationship manually or by peripheral tools. In this case, by obtaining the mapping relationship between multiple instances and the corresponding ports in multiple target physical machines, and sending the mapping relationship to each physical machine, during the service running process, the mapping relationship can be obtained during the service running process. The connection relationship of each instance simplifies the management of the connection relationship.

在一些实施例中,在每一个实例完成部署后,如图2所示,通过物理机220上的代理(agent)向名字服务器260进行注册,以使名字服务器260获得服务所有的实例和对应的端口信息。在服务运行过程中,通过端口之间的映射关系,进行实例之间的调用,从而实现各个实例之间的连接。In some embodiments, after each instance is deployed, as shown in FIG. 2 , register with the name server 260 through an agent on the physical machine 220, so that the name server 260 obtains all instances of the service and the corresponding port information. During the running of the service, through the mapping relationship between the ports, the calls between the instances are made, so as to realize the connection between the instances.

在一些实施例中,在服务声明信息中,服务名(app-name)用来作为该服务的唯一索引ID。在服务部署完成后,该服务的各个实例的ip和对应的端口信息都会以服务名作为秘钥注册到名字服务器(naming-server)250中。在服务运行过程中,其他依赖服务会根据该秘钥从名字服务器260中获取到对应服务的所有实例信息,从而初始化自己的连接关系配置。In some embodiments, in the service declaration information, the service name (app-name) is used as the unique index ID of the service. After the service deployment is completed, the ip and corresponding port information of each instance of the service will be registered in the name server (naming-server) 250 using the service name as a secret key. During the running process of the service, other dependent services will obtain all instance information of the corresponding service from the name server 260 according to the key, thereby initializing their own connection relationship configuration.

在一些实施例中,名字服务器260所存储的服务的实例的ip和对应的端口信息的格式为:{“app-name-1”:{“instance1”:{“ip”:”1.1.1.1”,“ports”:{“main_port”:{“value”:8080,”portal”:”TCP”}}}}}。In some embodiments, the format of the ip and the corresponding port information of the service instance stored by the name server 260 is: {"app-name-1":{"instance1":{"ip":"1.1.1.1" , "ports":{"main_port":{"value":8080,"portal":"TCP"}}}}}.

在一些实施例中,如图6所示,根据本公开的分布式服务处理方法还包括:In some embodiments, as shown in FIG. 6, the distributed service processing method according to the present disclosure further includes:

步骤S610:获得来自所述多个目标物理机中的每一个目标物理机的资源消耗信息,所述资源消耗信息指示在该目标物理机上部署所述多个实例中的相应实例时,该物理机所消耗的资源;以及Step S610: Obtain resource consumption information from each of the multiple target physical machines, where the resource consumption information indicates that when a corresponding instance of the multiple instances is deployed on the target physical machine, the physical machine resources consumed; and

步骤S620:基于所述多个目标物理机中的每一个目标物理机的资源消耗信息,更新所述资源声明信息。Step S620: Update the resource declaration information based on the resource consumption information of each target physical machine in the multiple target physical machines.

通过获得来自多个目标物理机中的每一个目标物理机的资源消耗信息,获得物理机在部署实例后所实际消耗的资源,引入物理机的反馈修正机制,避免人工预估资源需求不准确的问题,例如,在服务声名信息中每一个实例对应的资源需求信息所指示的完成部署所需占用物理机资源小于物理机在部署相应实例时所实际消耗的资源时,通过引入物理机的反馈修正机制,使得在部署下一个服务的各个实例时,能够确保下一个服务的各个实例实现最优分布,进一步提升资源利用率。By obtaining the resource consumption information of each target physical machine from multiple target physical machines, the actual resources consumed by the physical machine after deploying the instance are obtained, and the feedback correction mechanism of the physical machine is introduced to avoid inaccurate manual estimation of resource requirements. For example, when the resource requirement information corresponding to each instance in the service name information indicates that the physical machine resources required to complete the deployment are less than the resources actually consumed by the physical machine when deploying the corresponding instance, it can be corrected by introducing feedback from the physical machine The mechanism makes it possible to ensure the optimal distribution of each instance of the next service when deploying each instance of the next service, and further improve resource utilization.

继续参看图2,物理机220上的代理(agent),通过周期性的向API服务器210发送信息,使得API服务器获得其上的资源消耗信息,并将资源消耗信息存在到数据存储服务器230中,以更新资源声明信息。Continuing to refer to FIG. 2, the agent (agent) on the physical machine 220 periodically sends information to the API server 210, so that the API server obtains resource consumption information on it, and stores the resource consumption information in the data storage server 230, to update the resource declaration information.

在一些实施例中,如图7所示,根据本公开的分布式服务处理方法还包括:In some embodiments, as shown in FIG. 7, the distributed service processing method according to the present disclosure further includes:

步骤S710:响应于所述服务接收到实例更新操作,更新所述服务声明信息,所述实例更新操作用于更新所述多个实例中的第一实例;Step S710: updating the service declaration information in response to the service receiving an instance update operation, the instance update operation being used to update the first instance of the plurality of instances;

步骤S720:基于更新后的服务声明信息,获得第一实例更新信息,所述第一实例更新信息用于指示对应的目标物理机更新所述第一实例;以及Step S720: Obtain first instance update information based on the updated service declaration information, the first instance update information is used to instruct the corresponding target physical machine to update the first instance; and

步骤S730:将所述第一实例更新信息发送到给所述第一实例对应的目标物理机,以使该目标物理机基于所述第一实例更新信息,更新所述第一实例。Step S730: Send the first instance update information to the target physical machine corresponding to the first instance, so that the target physical machine updates the first instance based on the first instance update information.

通过更新服务声名信息,实现对服务的全生命周期管理。By updating the service name information, the full life cycle management of the service is realized.

在一些实施例中,实例更新操作可以是用户针对第一实例进行修改或者删除的操作。例如,针对第一实例的全装文件进行更新,删除第一实例的安装文件等等。In some embodiments, the instance update operation may be an operation for the user to modify or delete the first instance. For example, update the full installation file of the first instance, delete the installation file of the first instance, and so on.

例如,需要更新实例的版本时,通过更新服务声名信息,使得物理机根据更新后的服务声名信息,在实例的相应实例地址下载新版本的实例安装文件,备份完成后,停止实例运行,通过安装新版本的实例安装文件实现实例的更新,运行该实例,以完成实例的更新。For example, when the version of the instance needs to be updated, update the service name information so that the physical machine can download the new version of the instance installation file from the corresponding instance address of the instance according to the updated service name information. The instance installation file of the new version implements the instance update, and the instance is run to complete the instance update.

又例如,当删除某一实例时,通过更新服务声名信息,使得更新后的服务声名信息中的该实例的相关信息被删除,从而使得物理机根据更新后的服务声名信息,触发本地删除逻辑,例如取消名字服务注册、停服务、清理数据。For another example, when deleting a certain instance, by updating the service name information, the relevant information of the instance in the updated service name information is deleted, so that the physical machine triggers the local deletion logic according to the updated service name information, For example, cancel the name service registration, stop the service, and clean up the data.

通过上述过程,可以完成对服务的全生命周期的管理。Through the above process, the management of the whole life cycle of the service can be completed.

根据本公开的另一方面,还提供一种分布式服务处理装置,如图8所示,装置800包括:资源声明信息获取单元810,被配置用于获得物理机集合的资源声明信息,所述资源声明信息至少指示所述物理机集合中的每一个物理机的当前所具有的资源;服务声明信息获取单元820,被配置用于获得待部署的服务的服务声明信息,所述服务声明信息包括所述服务的多个实例以及所述多个实例中的每一个实例对应的用于指示完成部署所需占用物理机资源的资源需求信息;物理机确定单元830,被配用于基于所述资源声明信息和所述服务声明信息,从所述物理机集合中确定与所述多个实例中的每一个实例对应的目标物理机;以及部署单元840,被配置用于将所述多个实例中的每一个实例部署在所述多个目标物理机中与该实例相应的目标物理机上。According to another aspect of the present disclosure, a distributed service processing device is also provided. As shown in FIG. 8 , the device 800 includes: a resource declaration information acquisition unit 810 configured to obtain resource declaration information of a physical machine set, the The resource declaration information at least indicates the current resources of each physical machine in the set of physical machines; the service declaration information obtaining unit 820 is configured to obtain the service declaration information of the service to be deployed, and the service declaration information includes Multiple instances of the service and resource requirement information corresponding to each of the multiple instances for indicating physical machine resources required to complete the deployment; the physical machine determining unit 830 is configured to The declaration information and the service declaration information are used to determine a target physical machine corresponding to each instance in the plurality of instances from the set of physical machines; and the deployment unit 840 is configured to deploy the Each instance of is deployed on the target physical machine corresponding to the instance among the multiple target physical machines.

在一些实施例中,所述资源声明信息还指示所述物理机集合中的每一个物理机在多个类型中的对应类型,所述服务声明信息还包括所述多个实例中的每一个实例对应的标签信息,该标签信息指示在多个类型的物理机中与对应的实例亲和性最高的第一类型的物理机,并且,所述物理机确定单元包括:In some embodiments, the resource declaration information also indicates the corresponding type of each physical machine in the set of physical machines among multiple types, and the service declaration information also includes each instance in the multiple instances Corresponding label information, the label information indicates the first type of physical machine with the highest affinity with the corresponding instance among multiple types of physical machines, and the physical machine determining unit includes:

候选物理机获取单元,被配置用于针对所述多个实例中的每一个实例,基于该实例对应的标签信息和所述资源声名信息,从所述物理机集合中获得该实例对应的一个或多个候选物理机;以及物理机确定子单元,被配置用于针对所述多个实例中的每一个实例,基于该实例对应的资源需求信息和所述一个或多个候选物理机,获得与该实例对应的目标物理机。The candidate physical machine acquiring unit is configured to, for each of the multiple instances, obtain from the set of physical machines one or a plurality of candidate physical machines; and a physical machine determination subunit configured to obtain, for each of the plurality of instances, the resource requirement information corresponding to the instance and the one or more candidate physical machines corresponding to The target physical machine corresponding to this instance.

在一些实施例中,所述资源声明信息还指示所述物理机集合中的每一个物理机在多个可用区域中的所属可用区域,所述服务声明信息还包括所述多个实例对应的区域分布信息,所述区域分布信息指示所述多个实例中将要部署在所述多个可用区域中的每一个可用区域中的物理机上的实例的数量,并且其中,所述候选物理机获取单元包括:第一确定子单元,被配置用于基于该实例对应的一个或多个可用区域和标签信息,从所述物理机集合中获得该实例对应的一个或多个候选物理机。In some embodiments, the resource declaration information also indicates the availability zone to which each physical machine in the physical machine set belongs in multiple availability zones, and the service declaration information also includes the zones corresponding to the multiple instances distribution information, the area distribution information indicating the number of instances among the plurality of instances to be deployed on physical machines in each of the plurality of availability areas, and wherein the candidate physical machine acquisition unit includes : a first determining subunit, configured to obtain one or more candidate physical machines corresponding to the instance from the set of physical machines based on the one or more availability zones and label information corresponding to the instance.

在一些实施例中,针对所述多个实例中的每一个实例,与该实例对应的目标物理机是该实例对应的所述一个或多个候选物理机中当前所具有的资源最多的候选物理机。In some embodiments, for each of the multiple instances, the target physical machine corresponding to the instance is the candidate physical machine that currently has the most resources among the one or more candidate physical machines corresponding to the instance. machine.

在一些实施例中,所述服务声明信息还包括所述多个实例中的每一个实例相应的实例地址,所述实例地址为用于部署该实例的安装文件的地址,所述部署单元包括:实例部署信息生成单元,被配置用于将所述多个实例中的每一个实例与所述多个目标物理机中的相应目标物理机关联,以生成该实例对应的实例部署信息;以及实例部署信息发送单元,被配置用于将所述多个实例中的每一个实例的实例部署信息发送到该实例的相应目标物理机上,以使该目标物理机基于所述实例部署信息获得该实例的实例地址,并且基于该实例地址下载该实例的安装文件,以部署该实例。In some embodiments, the service declaration information further includes an instance address corresponding to each instance in the plurality of instances, and the instance address is an address of an installation file used to deploy the instance, and the deployment unit includes: An instance deployment information generating unit configured to associate each of the multiple instances with a corresponding target physical machine among the multiple target physical machines, so as to generate instance deployment information corresponding to the instance; and instance deployment An information sending unit configured to send the instance deployment information of each of the multiple instances to the corresponding target physical machine of the instance, so that the target physical machine obtains the instance of the instance based on the instance deployment information address, and download the installation file of the instance based on the instance address to deploy the instance.

在一些实施例中,装置800还包括:资源消耗信息获取单元,被配置用于获得来自所述多个目标物理机中的每一个目标物理机的资源消耗信息,所述资源消耗信息指示在该目标物理机上部署相应实例时,该物理机所消耗的资源;以及资源声明信息更新单元,被配置用于基于所述多个目标物理机中的每一个目标物理机的资源消耗信息,更新所述资源声明信息。In some embodiments, the apparatus 800 further includes: a resource consumption information obtaining unit configured to obtain resource consumption information from each target physical machine among the plurality of target physical machines, the resource consumption information indicating When the corresponding instance is deployed on the target physical machine, resources consumed by the physical machine; and a resource statement information update unit configured to update the resource consumption information of each target physical machine in the multiple target physical machines. Resource declaration information.

在一些实施例中,装置800还包括:服务声明信息更新单元,被配置用于响应于所述服务接收到实例更新操作,更新所述服务声明信息,所述实例更新操作用于更新所述多个实例中的第一实例;更新信息获取单元,被配置用于基于更新后的服务声明信息,获得第一实例更新信息,所述第一实例更新信息用于指示对应的目标物理机更新所述第一实例;以及实例更新单元,被配置用于将所述第一实例更新信息发送到给所述第一实例对应的目标物理机,以使该目标物理机基于所述第一实例更新信息,更新所述第一实例。In some embodiments, the apparatus 800 further includes: a service declaration information update unit, configured to update the service declaration information in response to the service receiving an instance update operation, and the instance update operation is used to update the multiple The first instance in the instances: the update information obtaining unit is configured to obtain the first instance update information based on the updated service statement information, and the first instance update information is used to instruct the corresponding target physical machine to update the a first instance; and an instance update unit configured to send update information of the first instance to a target physical machine corresponding to the first instance, so that the target physical machine updates information based on the first instance, The first instance is updated.

在一些实施例中,装置800还包括:端口获取单元,被配置用于在所述多个目标物理机中的每一个目标物理机部署所述多个实例中的相应实例之后,获得该目标物理机对应于该相应实例的端口;映射关系获取单元,被配置用于获得所述多个实例和所述多个目标物理机中的多个相应端口之间的映射关系;以及映射关系发送单元,被配置用于将所述映射关系发送到所述多个目标物理机中的每一个目标物理机上,以使所述多个目标物理机中的每一个目标物理机响应于获得所述服务的运行指令,基于所述映射关系,运行所述服务。In some embodiments, the apparatus 800 further includes: a port obtaining unit, configured to obtain the target physical machine after each target physical machine in the multiple target physical machines deploys the corresponding instance in the multiple instances. The machine corresponds to the port of the corresponding instance; the mapping relationship obtaining unit is configured to obtain the mapping relationship between the multiple instances and the multiple corresponding ports in the multiple target physical machines; and the mapping relationship sending unit, configured to send the mapping relationship to each of the plurality of target physical machines, so that each of the plurality of target physical machines responds to obtaining the operation of the service An instruction is used to run the service based on the mapping relationship.

根据本公开的实施例,还提供了一种电子设备、一种可读存储介质和一种计算机程序产品。According to the embodiments of the present disclosure, an electronic device, a readable storage medium, and a computer program product are also provided.

参考图9,现将描述可以作为本公开的服务器或客户端的电子设备900的结构框图,其是可以应用于本公开的各方面的硬件设备的示例。电子设备旨在表示各种形式的数字电子的计算机设备,诸如,膝上型计算机、台式计算机、工作台、个人数字助理、服务器、刀片式服务器、大型计算机、和其它适合的计算机。电子设备还可以表示各种形式的移动装置,诸如,个人数字处理、蜂窝电话、智能电话、可穿戴设备和其它类似的计算装置。本文所示的部件、它们的连接和关系、以及它们的功能仅仅作为示例,并且不意在限制本文中描述的和/或者要求的本公开的实现。Referring to FIG. 9 , a structural block diagram of an electronic device 900 that can serve as a server or a client of the present disclosure, which is an example of a hardware device that can be applied to various aspects of the present disclosure, will now be described. Electronic device is intended to mean various forms of digital electronic computing equipment, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other suitable computers. Electronic devices may also represent various forms of mobile devices, such as personal digital processing, cellular telephones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are by way of example only, and are not intended to limit implementations of the disclosure described and/or claimed herein.

如图9所示,电子设备900包括计算单元901,其可以根据存储在只读存储器(ROM)902中的计算机程序或者从存储单元908加载到随机访问存储器(RAM)903中的计算机程序,来执行各种适当的动作和处理。在RAM903中,还可存储电子设备900操作所需的各种程序和数据。计算单元901、ROM 902以及RAM 903通过总线904彼此相连。输入/输出(I/O)接口905也连接至总线904。As shown in FIG. 9 , an electronic device 900 includes a computing unit 901, which can perform calculations according to a computer program stored in a read-only memory (ROM) 902 or a computer program loaded from a storage unit 908 into a random access memory (RAM) 903. Various appropriate actions and processes are performed. In the RAM 903, various programs and data necessary for the operation of the electronic device 900 can also be stored. The computing unit 901 , ROM 902 , and RAM 903 are connected to each other through a bus 904 . An input/output (I/O) interface 905 is also connected to the bus 904 .

电子设备900中的多个部件连接至I/O接口905,包括:输入单元906、输出单元907、存储单元908以及通信单元909。输入单元906可以是能向电子设备900输入信息的任何类型的设备,输入单元906可以接收输入的数字或字符信息,以及产生与电子设备的用户设置和/或功能控制有关的键信号输入,并且可以包括但不限于鼠标、键盘、触摸屏、轨迹板、轨迹球、操作杆、麦克风和/或遥控器。输出单元907可以是能呈现信息的任何类型的设备,并且可以包括但不限于显示器、扬声器、视频/音频输出终端、振动器和/或打印机。存储单元908可以包括但不限于磁盘、光盘。通信单元909允许电子设备900通过诸如因特网的计算机网络和/或各种电信网络与其他设备交换信息/数据,并且可以包括但不限于调制解调器、网卡、红外通信设备、无线通信收发机和/或芯片组,例如蓝牙TM设备、802.11设备、WiFi设备、WiMax设备、蜂窝通信设备和/或类似物。Multiple components in the electronic device 900 are connected to the I/O interface 905 , including: an input unit 906 , an output unit 907 , a storage unit 908 and a communication unit 909 . The input unit 906 may be any type of device capable of inputting information to the electronic device 900, the input unit 906 may receive input digital or character information, and generate key signal input related to user settings and/or function control of the electronic device, and This may include, but is not limited to, a mouse, keyboard, touch screen, trackpad, trackball, joystick, microphone, and/or remote control. The output unit 907 may be any type of device capable of presenting information, and may include, but is not limited to, a display, a speaker, a video/audio output terminal, a vibrator, and/or a printer. The storage unit 908 may include, but is not limited to, a magnetic disk and an optical disk. The communication unit 909 allows the electronic device 900 to exchange information/data with other devices through a computer network such as the Internet and/or various telecommunication networks, and may include but not limited to a modem, a network card, an infrared communication device, a wireless communication transceiver and/or a chip Groups, such as Bluetooth™ devices, 802.11 devices, WiFi devices, WiMax devices, cellular communication devices, and/or the like.

计算单元901可以是各种具有处理和计算能力的通用和/或专用处理组件。计算单元901的一些示例包括但不限于中央处理单元(CPU)、图形处理单元(GPU)、各种专用的人工智能(AI)计算芯片、各种运行机器学习模型算法的计算单元、数字信号处理器(DSP)、以及任何适当的处理器、控制器、微控制器等。计算单元901执行上文所描述的各个方法和处理,例如方法100。例如,在一些实施例中,方法100可被实现为计算机软件程序,其被有形地包含于机器可读介质,例如存储单元908。在一些实施例中,计算机程序的部分或者全部可以经由ROM 902和/或通信单元909而被载入和/或安装到电子设备900上。当计算机程序加载到RAM 903并由计算单元901执行时,可以执行上文描述的方法100的一个或多个步骤。备选地,在其他实施例中,计算单元901可以通过其他任何适当的方式(例如,借助于固件)而被配置为执行方法100。The computing unit 901 may be various general-purpose and/or special-purpose processing components having processing and computing capabilities. Some examples of computing units 901 include, but are not limited to, central processing units (CPUs), graphics processing units (GPUs), various dedicated artificial intelligence (AI) computing chips, various computing units that run machine learning model algorithms, digital signal processing processor (DSP), and any suitable processor, controller, microcontroller, etc. The computing unit 901 executes various methods and processes described above, such as the method 100 . For example, in some embodiments, method 100 may be implemented as a computer software program tangibly embodied on a machine-readable medium, such as storage unit 908 . In some embodiments, part or all of the computer program may be loaded and/or installed on the electronic device 900 via the ROM 902 and/or the communication unit 909 . When the computer program is loaded into RAM 903 and executed by computing unit 901, one or more steps of method 100 described above may be performed. Alternatively, in other embodiments, the computing unit 901 may be configured to execute the method 100 in any other suitable manner (for example, by means of firmware).

本文中以上描述的系统和技术的各种实施方式可以在数字电子电路系统、集成电路系统、场可编程门阵列(FPGA)、专用集成电路(ASIC)、专用标准产品(ASSP)、芯片上系统的系统(SOC)、复杂可编程逻辑设备(CPLD)、计算机硬件、固件、软件、和/或它们的组合中实现。这些各种实施方式可以包括:实施在一个或者多个计算机程序中,该一个或者多个计算机程序可在包括至少一个可编程处理器的可编程系统上执行和/或解释,该可编程处理器可以是专用或者通用可编程处理器,可以从存储系统、至少一个输入装置、和至少一个输出装置接收数据和指令,并且将数据和指令传输至该存储系统、该至少一个输入装置、和该至少一个输出装置。Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips Implemented in a system of systems (SOC), complex programmable logic device (CPLD), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include being implemented in one or more computer programs executable and/or interpreted on a programmable system including at least one programmable processor, the programmable processor Can be special-purpose or general-purpose programmable processor, can receive data and instruction from storage system, at least one input device, and at least one output device, and transmit data and instruction to this storage system, this at least one input device, and this at least one output device an output device.

用于实施本公开的方法的程序代码可以采用一个或多个编程语言的任何组合来编写。这些程序代码可以提供给通用计算机、专用计算机或其他可编程数据处理装置的处理器或控制器,使得程序代码当由处理器或控制器执行时使流程图和/或框图中所规定的功能/操作被实施。程序代码可以完全在机器上执行、部分地在机器上执行,作为独立软件包部分地在机器上执行且部分地在远程机器上执行或完全在远程机器或服务器上执行。Program codes for implementing the methods of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general-purpose computer, a special purpose computer, or other programmable data processing devices, so that the program codes, when executed by the processor or controller, make the functions/functions specified in the flow diagrams and/or block diagrams Action is implemented. The program code may execute entirely on the machine, partly on the machine, as a stand-alone software package partly on the machine and partly on a remote machine or entirely on the remote machine or server.

在本公开的上下文中,机器可读介质可以是有形的介质,其可以包含或存储以供指令执行系统、装置或设备使用或与指令执行系统、装置或设备结合地使用的程序。机器可读介质可以是机器可读信号介质或机器可读储存介质。机器可读介质可以包括但不限于电子的、磁性的、光学的、电磁的、红外的、或半导体系统、装置或设备,或者上述内容的任何合适组合。机器可读存储介质的更具体示例会包括基于一个或多个线的电气连接、便携式计算机盘、硬盘、随机存取存储器(RAM)、只读存储器(ROM)、可擦除可编程只读存储器(EPROM或快闪存储器)、光纤、便捷式紧凑盘只读存储器(CD-ROM)、光学储存设备、磁储存设备、或上述内容的任何合适组合。In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, apparatus, or device. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. More specific examples of machine-readable storage media would include one or more wire-based electrical connections, portable computer discs, hard drives, random access memory (RAM), read only memory (ROM), erasable programmable read only memory (EPROM or flash memory), optical fiber, compact disk read only memory (CD-ROM), optical storage, magnetic storage, or any suitable combination of the foregoing.

为了提供与用户的交互,可以在计算机上实施此处描述的系统和技术,该计算机具有:用于向用户显示信息的显示装置(例如,CRT(阴极射线管)或者LCD(液晶显示器)监视器);以及键盘和指向装置(例如,鼠标或者轨迹球),用户可以通过该键盘和该指向装置来将输入提供给计算机。其它种类的装置还可以用于提供与用户的交互;例如,提供给用户的反馈可以是任何形式的传感反馈(例如,视觉反馈、听觉反馈、或者触觉反馈);并且可以用任何形式(包括声输入、语音输入或者、触觉输入)来接收来自用户的输入。To provide for interaction with the user, the systems and techniques described herein can be implemented on a computer having a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user. ); and a keyboard and pointing device (eg, a mouse or a trackball) through which a user can provide input to the computer. Other kinds of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and can be in any form (including Acoustic input, speech input or, tactile input) to receive input from the user.

可以将此处描述的系统和技术实施在包括后台部件的计算系统(例如,作为数据服务器)、或者包括中间件部件的计算系统(例如,应用服务器)、或者包括前端部件的计算系统(例如,具有图形用户界面或者网络浏览器的用户计算机,用户可以通过该图形用户界面或者该网络浏览器来与此处描述的系统和技术的实施方式交互)、或者包括这种后台部件、中间件部件、或者前端部件的任何组合的计算系统中。可以通过任何形式或者介质的数字数据通信(例如,通信网络)来将系统的部件相互连接。通信网络的示例包括:局域网(LAN)、广域网(WAN)和互联网。The systems and techniques described herein can be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., as a a user computer having a graphical user interface or web browser through which a user can interact with embodiments of the systems and techniques described herein), or including such backend components, middleware components, Or any combination of front-end components in a computing system. The components of the system can be interconnected by any form or medium of digital data communication, eg, a communication network. Examples of communication networks include: Local Area Network (LAN), Wide Area Network (WAN) and the Internet.

计算机系统可以包括客户端和服务器。客户端和服务器一般远离彼此并且通常通过通信网络进行交互。通过在相应的计算机上运行并且彼此具有客户端-服务器关系的计算机程序来产生客户端和服务器的关系。服务器可以是云服务器,也可以为分布式系统的服务器,或者是结合了区块链的服务器。A computer system may include clients and servers. Clients and servers are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by computer programs running on the respective computers and having a client-server relationship to each other. The server can be a cloud server, a server of a distributed system, or a server combined with a blockchain.

应该理解,可以使用上面所示的各种形式的流程,重新排序、增加或删除步骤。例如,本公开中记载的各步骤可以并行地执行、也可以顺序地或以不同的次序执行,只要能够实现本公开公开的技术方案所期望的结果,本文在此不进行限制。It should be understood that steps may be reordered, added or deleted using the various forms of flow shown above. For example, each step described in the present disclosure may be executed in parallel, sequentially or in a different order, as long as the desired result of the technical solution disclosed in the present disclosure can be achieved, no limitation is imposed herein.

虽然已经参照附图描述了本公开的实施例或示例,但应理解,上述的方法、系统和设备仅仅是示例性的实施例或示例,本发明的范围并不由这些实施例或示例限制,而是仅由授权后的权利要求书及其等同范围来限定。实施例或示例中的各种要素可以被省略或者可由其等同要素替代。此外,可以通过不同于本公开中描述的次序来执行各步骤。进一步地,可以以各种方式组合实施例或示例中的各种要素。重要的是随着技术的演进,在此描述的很多要素可以由本公开之后出现的等同要素进行替换。Although the embodiments or examples of the present disclosure have been described with reference to the accompanying drawings, it should be understood that the above-mentioned methods, systems and devices are merely exemplary embodiments or examples, and the scope of the present invention is not limited by these embodiments or examples, but It is limited only by the appended claims and their equivalents. Various elements in the embodiments or examples may be omitted or replaced by equivalent elements thereof. Also, steps may be performed in an order different from that described in the present disclosure. Further, various elements in the embodiments or examples can be combined in various ways. Importantly, as technology advances, many of the elements described herein may be replaced by equivalent elements appearing after this disclosure.

Claims (19)

1. A distributed service processing method, comprising:
obtaining resource declaration information for a set of physical machines, the resource declaration information indicating at least resources currently owned by each physical machine in the set of physical machines;
obtaining service declaration information of a service to be deployed, wherein the service declaration information indicates a plurality of instances of the service and resource demand information corresponding to each instance of the plurality of instances and used for indicating physical machine resources occupied for completing deployment;
determining a target physical machine corresponding to each of the plurality of instances from the set of physical machines based on the resource declaration information and the service declaration information; and
and deploying each instance in the plurality of instances on a target physical machine corresponding to the instance in the plurality of target physical machines.
2. The method of claim 1, wherein the resource claim information further indicates a corresponding type of each of the set of physical machines in a plurality of types, the service claim information further includes tag information corresponding to each of the plurality of instances, the tag information indicates a first type of physical machine of the plurality of types of physical machines that has a highest affinity to the corresponding instance, and the determining, from the set of physical machines, the target physical machine corresponding to each of the plurality of instances based on the resource claim information and the service claim information comprises:
for each of the plurality of instances,
acquiring one or more candidate physical machines corresponding to the instance from the physical machine set based on the label information corresponding to the instance and the resource sound name information; and
and obtaining a target physical machine corresponding to the instance based on the resource demand information corresponding to the instance and the one or more candidate physical machines.
3. The method of claim 2, wherein the resource declaration information further indicates an available region of a plurality of available regions to which each physical machine of the set of physical machines belongs, the service declaration information further includes region distribution information corresponding to the plurality of instances, the region distribution information indicating a number of instances of the plurality of instances to be deployed on the physical machine of each of the plurality of available regions, and wherein obtaining, from the set of physical machines, one or more candidate physical machines corresponding to the instance based on the label information corresponding to the instance comprises:
and obtaining one or more candidate physical machines corresponding to the instance from the set of physical machines based on the one or more available areas and the label information corresponding to the instance.
4. The method of claim 2 or 3, wherein, for each of the plurality of instances, the target physical machine corresponding to the instance is a candidate physical machine currently having the most resources of the one or more candidate physical machines corresponding to the instance.
5. The method of any of claims 1-4, wherein the service declaration information further includes an instance address corresponding to each of the plurality of instances, the instance address being an address of an installation file used to deploy the instance, and the deploying the plurality of instances on the plurality of target physical machines, respectively, comprises:
associating each instance of the plurality of instances with a respective target physical machine of the plurality of target physical machines to generate instance deployment information corresponding to the instance; and
and sending the instance deployment information of each instance in the multiple instances to a corresponding target physical machine of the instance, so that the target physical machine obtains an instance address of the instance based on the instance deployment information, and downloads an installation file of the instance based on the instance address to deploy the instance.
6. The method of claim 1, further comprising:
obtaining resource consumption information from each of the plurality of target physical machines, the resource consumption information indicating resources consumed by the physical machine when a respective instance of the plurality of instances is deployed on the target physical machine; and
updating the resource declaration information based on resource consumption information for each of the plurality of target physical machines.
7. The method of claim 1, further comprising:
updating the service declaration information in response to the service receiving an instance update operation, the instance update operation to update a first instance of the plurality of instances;
obtaining first instance updating information based on the updated service declaration information, wherein the first instance updating information indicates a corresponding target physical machine to update the first instance; and
and sending the first instance updating information to a target physical machine corresponding to the first instance, so that the target physical machine updates the first instance based on the first instance updating information.
8. The method of claim 1, further comprising:
after each target physical machine in the plurality of target physical machines deploys a corresponding instance in the plurality of instances, obtaining a port of the target physical machine corresponding to the corresponding instance;
obtaining mapping relationships between the plurality of instances and a plurality of corresponding ports in the plurality of target physical machines; and
sending the mapping relationship to each of the plurality of target physical machines to cause each of the plurality of target physical machines to execute the service based on the mapping relationship in response to an execution instruction to obtain the service.
9. A distributed service processing apparatus, comprising:
a resource declaration information obtaining unit configured to obtain resource declaration information of a set of physical machines, the resource declaration information indicating at least a current resource of each physical machine in the set of physical machines;
the service declaration information obtaining unit is configured to obtain service declaration information of a service to be deployed, where the service declaration information includes multiple instances of the service and resource requirement information corresponding to each of the multiple instances and used for indicating that physical machine resources are occupied for completing deployment;
a physical machine determination unit adapted to determine a target physical machine corresponding to each of the plurality of instances from the set of physical machines based on the resource declaration information and the service declaration information; and
a deployment unit configured to deploy each of the plurality of instances on a target physical machine of the plurality of target physical machines corresponding to the instance.
10. The apparatus of claim 9, wherein the resource declaration information further indicates a corresponding type of each of the set of physical machines among a plurality of types, the service declaration information further includes label information corresponding to each of the plurality of instances, the label information indicating a first type of physical machine among the plurality of types of physical machines having a highest affinity with the corresponding instance, and the physical machine determination unit includes:
a candidate physical machine obtaining unit, configured to, for each of the multiple instances, obtain one or more candidate physical machines corresponding to the instance from the set of physical machines based on the tag information and the resource declaration information corresponding to the instance; and
and the physical machine determining subunit is configured to, for each of the multiple instances, obtain a target physical machine corresponding to the instance based on the resource demand information corresponding to the instance and the one or more candidate physical machines.
11. The apparatus according to claim 10, wherein the resource declaration information further indicates a belonging available area of each physical machine in the set of physical machines in a plurality of available areas, the service declaration information further includes area distribution information corresponding to the plurality of instances, the area distribution information indicating a number of instances of the plurality of instances to be deployed on the physical machine in each of the plurality of available areas, and wherein the candidate physical machine acquisition unit includes:
the first determining subunit is configured to obtain one or more candidate physical machines corresponding to the instance from the set of physical machines based on the one or more available areas and the tag information corresponding to the instance.
12. The apparatus of claim 10 or 11, wherein, for each of the plurality of instances, the target physical machine corresponding to the instance is a candidate physical machine currently having the most resources of the one or more candidate physical machines corresponding to the instance.
13. The apparatus according to any one of claims 9-12, wherein the service declaration information further includes a respective instance address of each of the plurality of instances, the instance address being an address of an installation file for deploying the instance, and the deploying unit includes:
an instance deployment information generating unit configured to associate each of the plurality of instances with a corresponding target physical machine of the plurality of target physical machines to generate instance deployment information corresponding to the instance; and
and the instance deployment information sending unit is configured to send the instance deployment information of each instance in the multiple instances to a corresponding target physical machine of the instance, so that the target physical machine obtains an instance address of the instance based on the instance deployment information, and downloads the installation file of the instance based on the instance address to deploy the instance.
14. The apparatus of claim 9, further comprising:
a resource consumption information obtaining unit configured to obtain resource consumption information from each of the plurality of target physical machines, the resource consumption information indicating resources consumed by the physical machine when the corresponding instance is deployed on the target physical machine; and
a resource declaration information updating unit configured to update the resource declaration information based on resource consumption information of each of the plurality of target physical machines.
15. The apparatus of claim 9, further comprising:
a service declaration information updating unit configured to update the service declaration information in response to the service receiving an instance update operation, the instance update operation being used to update a first instance of the plurality of instances;
an update information obtaining unit, configured to obtain first instance update information based on the updated service declaration information, where the first instance update information is used to instruct a corresponding target physical machine to update the first instance; and
and the instance updating unit is configured to send the first instance updating information to a target physical machine corresponding to the first instance, so that the target physical machine updates the first instance based on the first instance updating information.
16. The apparatus of claim 9, further comprising:
a port obtaining unit configured to obtain, after each of the plurality of target physical machines deploys a corresponding instance of the plurality of instances, a port of the target physical machine corresponding to the corresponding instance;
a mapping relation obtaining unit configured to obtain mapping relations between the plurality of instances and a plurality of corresponding ports in the plurality of target physical machines; and
a mapping relation sending unit configured to send the mapping relation to each of the plurality of target physical machines, so that each of the plurality of target physical machines responds to an execution instruction for obtaining the service, and executes the service based on the mapping relation.
17. An electronic device, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein
The memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-8.
18. A non-transitory computer readable storage medium having stored thereon computer instructions for causing the computer to perform the method of any one of claims 1-8.
19. A computer program product comprising a computer program, wherein the computer program realizes the method of any one of claims 1-8 when executed by a processor.
CN202211505451.1A 2022-11-28 2022-11-28 Distributed service processing method, device, electronic device and storage medium Pending CN115756861A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211505451.1A CN115756861A (en) 2022-11-28 2022-11-28 Distributed service processing method, device, electronic device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211505451.1A CN115756861A (en) 2022-11-28 2022-11-28 Distributed service processing method, device, electronic device and storage medium

Publications (1)

Publication Number Publication Date
CN115756861A true CN115756861A (en) 2023-03-07

Family

ID=85339667

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211505451.1A Pending CN115756861A (en) 2022-11-28 2022-11-28 Distributed service processing method, device, electronic device and storage medium

Country Status (1)

Country Link
CN (1) CN115756861A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102646052A (en) * 2011-02-16 2012-08-22 中国移动通信集团公司 A virtual machine deployment method, device and system
CN103226489A (en) * 2012-01-30 2013-07-31 国际商业机器公司 Integrated virtual infrastructure system
CN103501308A (en) * 2011-12-22 2014-01-08 德商赛克公司 Distributed cloud application deployment systems and/or associated methods
CN105279027A (en) * 2015-11-19 2016-01-27 浪潮(北京)电子信息产业有限公司 Virtual machine disposition method and apparatus
CN107748691A (en) * 2017-10-30 2018-03-02 平安科技(深圳)有限公司 Virtual machine deployment method, device, equipment and computer-readable recording medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102646052A (en) * 2011-02-16 2012-08-22 中国移动通信集团公司 A virtual machine deployment method, device and system
CN103501308A (en) * 2011-12-22 2014-01-08 德商赛克公司 Distributed cloud application deployment systems and/or associated methods
CN103226489A (en) * 2012-01-30 2013-07-31 国际商业机器公司 Integrated virtual infrastructure system
CN105279027A (en) * 2015-11-19 2016-01-27 浪潮(北京)电子信息产业有限公司 Virtual machine disposition method and apparatus
CN107748691A (en) * 2017-10-30 2018-03-02 平安科技(深圳)有限公司 Virtual machine deployment method, device, equipment and computer-readable recording medium

Similar Documents

Publication Publication Date Title
CN111753997B (en) Distributed training method, system, device and storage medium
CN112925651B (en) Application resource deployment method, device, electronic equipment and medium
CN108874539A (en) Resource allocation method, device, terminal and storage medium
WO2021098182A1 (en) Resource management method and apparatus, electronic device and storage medium
CN112947965B (en) Containerized service update method and device
WO2023109138A1 (en) Method and apparatus for starting android application in linux system, and electronic device
CN111859027A (en) Graph computing method and device
CN112925652B (en) Application resource deployment methods, devices, electronic devices and media
CN112015521A (en) Configuration method and device of inference service, electronic equipment and storage medium
CN112328301B (en) Method and device for maintaining consistency of operating environments, storage medium and electronic equipment
CN114840323A (en) Task processing method, device, system, electronic equipment and storage medium
CN112346512A (en) Time synchronization method and device
CN112527451A (en) Management method, device, equipment and storage medium of container resource pool
US11797353B2 (en) Method and system for performing workloads in a data cluster
EP4060496A2 (en) Method, apparatus, device and storage medium for running inference service platform
CN114579311B (en) Method, device, equipment and storage medium for executing distributed computing task
CN114489715B (en) A cloud phone operating system upgrade method, device, equipment and medium
US11977907B2 (en) Hybrid push and pull event source broker for serverless function scaling
CN112966201B (en) Object processing method, device, electronic device, and storage medium
CN116721007B (en) Mission control methods, systems and devices, electronic equipment and storage media
CN115756861A (en) Distributed service processing method, device, electronic device and storage medium
CN117056022A (en) RPA task execution method and device, electronic equipment and storage medium
CN116341663A (en) Extension method, device, equipment and medium of deep learning reasoning framework
CN113747423A (en) Cloud mobile phone state synchronization method, device, equipment, storage medium and program product
CN114281478B (en) Container operation method and device, electronic equipment and computer storage medium

Legal Events

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

Application publication date: 20230307