CN113301089B - A cloud service node deployment method and device - Google Patents
A cloud service node deployment method and device Download PDFInfo
- Publication number
- CN113301089B CN113301089B CN202010737231.6A CN202010737231A CN113301089B CN 113301089 B CN113301089 B CN 113301089B CN 202010737231 A CN202010737231 A CN 202010737231A CN 113301089 B CN113301089 B CN 113301089B
- Authority
- CN
- China
- Prior art keywords
- deployment
- availability zone
- user
- zone
- primary
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/60—Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Information Transfer Between Computers (AREA)
- Stored Programmes (AREA)
Abstract
Description
技术领域Technical Field
本申请属于云服务技术领域,尤其涉及一种云服务节点部署方法和装置。The present application belongs to the field of cloud service technology, and in particular, relates to a cloud service node deployment method and device.
背景技术Background technique
对于应用服务提供方而言,一般会购买一些云服务以辅助自身应用服务的有效运行。例如:数据库服务等。对于云服务而言,通常只有一个服务节点为用户提供服务,为了保证云服务的高可用性,一般在某一个可用区部署一个主节点提供服务,,然后,在其它可用区部署一个或者多个备节点。其中,备节点的数据一般是通过网络从主节点同步的,备节点中的数据以及配置是与主节点保持一致的。当主节点在提供服务的时候发生故障,云服务平台会进行容灾切换,将备节点切换为主节点,通过切换后的主节点为用户持续提供服务。Application service providers usually purchase some cloud services to assist in the effective operation of their own application services. For example, database services. For cloud services, there is usually only one service node to provide services to users. In order to ensure the high availability of cloud services, a master node is usually deployed in a certain availability zone to provide services, and then one or more standby nodes are deployed in other availability zones. The data of the standby node is generally synchronized from the master node through the network, and the data and configuration in the standby node are consistent with the master node. When the master node fails while providing services, the cloud service platform will perform disaster recovery switching, switch the standby node to the master node, and continue to provide services to users through the switched master node.
目前,对于多可用区的选择,一般是云服务平台预设一些组合可用区,用户在请求可用区的时候,从这些组合里选定。Currently, for the selection of multiple availability zones, cloud service platforms generally preset some combinations of availability zones, and users select from these combinations when requesting an availability zone.
然而,通过这种方式来部署可用区,会导致部署不够灵活,资源调度效率较低的问题,这对上述组合可用区的部署中所存在的问题,目前尚未提出有效的解决方案。However, deploying availability zones in this way will lead to inflexible deployment and low resource scheduling efficiency. Currently, no effective solution has been proposed for the problems existing in the deployment of the above-mentioned combined availability zones.
发明内容Summary of the invention
本申请目的在于提供一种云服务节点部署方法和装置,以解决现有的组合可用区部署所存在的成功率低、资源调度效率低的问题。The purpose of the present application is to provide a cloud service node deployment method and device to solve the problems of low success rate and low resource scheduling efficiency in the existing combined availability zone deployment.
本申请提供一种云服务节点部署方法和装置是这样实现的:The present application provides a cloud service node deployment method and device which are implemented as follows:
一种云服务节点部署方法,包括:A cloud service node deployment method, comprising:
获取用户的云服务实例购买请求;Obtain the user's cloud service instance purchase request;
响应于所述实例购买请求,获取用户指定的主可用区部署方式和备可用区部署方式,其中,主可用区部署方式和备可用区部署方式是用户分别指定的;In response to the instance purchase request, obtaining a primary availability zone deployment mode and a backup availability zone deployment mode specified by a user, wherein the primary availability zone deployment mode and the backup availability zone deployment mode are respectively specified by the user;
根据主可用区部署方式部署主节点,根据备可用区部署方式部署备节点。Deploy the master node according to the deployment mode of the primary availability zone, and deploy the standby node according to the deployment mode of the standby availability zone.
一种云服务节点部署方法,包括:A cloud service node deployment method, comprising:
接收用户的云服务实例购买请求;Receive a cloud service instance purchase request from a user;
响应于所述实例购买请求,显示可用区部署选定界面,其中,所述可用区部署选定界面包括:主可用区部署方式选定区域和备可用区部署方式选定区域;In response to the instance purchase request, displaying an availability zone deployment selection interface, wherein the availability zone deployment selection interface includes: a primary availability zone deployment mode selection area and a backup availability zone deployment mode selection area;
接收用户在主可用区部署方式区域的选定操作和用户在备可用区部署方式区域的选定操作,并将选定区域对应的选择项作为用户指定的主可用区部署方式和备可用区部署方式;Receive the user's selected operation in the primary availability zone deployment mode area and the user's selected operation in the backup availability zone deployment mode area, and use the selected items corresponding to the selected areas as the primary availability zone deployment mode and the backup availability zone deployment mode specified by the user;
将用户指定的主可用区部署方式和备可用区部署方式,携带在所述云服务实例购买请求中发送至云平台管理系统。The primary availability zone deployment mode and the backup availability zone deployment mode specified by the user are carried in the cloud service instance purchase request and sent to the cloud platform management system.
一种云服务节点部署装置,位于云平台管理系统中,包括:A cloud service node deployment device, located in a cloud platform management system, includes:
第一获取模块,用于获取用户的云服务实例购买请求;A first acquisition module is used to acquire a user's cloud service instance purchase request;
第二获取模块,用于响应于所述实例购买请求,获取用户指定的主可用区部署方式和备可用区部署方式,其中,主可用区部署方式和备可用区部署方式是用户分别指定的;A second acquisition module is used to respond to the instance purchase request and acquire a primary availability zone deployment mode and a backup availability zone deployment mode specified by a user, wherein the primary availability zone deployment mode and the backup availability zone deployment mode are respectively specified by the user;
部署模块,用于根据主可用区部署方式部署主节点,根据备可用区部署方式部署备节点。The deployment module is used to deploy the master node according to the deployment mode of the primary availability zone and deploy the standby node according to the deployment mode of the standby availability zone.
一种云服务节点部署装置,位于终端中,包括:A cloud service node deployment device, located in a terminal, comprising:
第一接收模块,用于接收用户的云服务实例购买请求;A first receiving module, configured to receive a cloud service instance purchase request from a user;
显示模块,用于响应于所述实例购买请求,显示可用区部署选定界面,其中,所述可用区部署选定界面包括:主可用区部署方式选定区域和备可用区部署方式选定区域;A display module is used to display an available zone deployment selection interface in response to the instance purchase request, wherein the available zone deployment selection interface includes: a primary available zone deployment mode selection area and a backup available zone deployment mode selection area;
第二接收模块,用于接收用户在主可用区部署方式区域的选定操作和用户在备可用区部署方式区域的选定操作,并将选定区域对应的选择项作为用户指定的主可用区部署方式和备可用区部署方式;The second receiving module is used to receive the user's selection operation in the primary availability zone deployment mode area and the user's selection operation in the backup availability zone deployment mode area, and use the selection items corresponding to the selected areas as the primary availability zone deployment mode and the backup availability zone deployment mode specified by the user;
发送模块,用于将用户指定的主可用区部署方式和备可用区部署方式,携带在所述云服务实例购买请求中发送至云平台管理系统。The sending module is used to carry the primary availability zone deployment mode and the backup availability zone deployment mode specified by the user in the cloud service instance purchase request and send them to the cloud platform management system.
一种服务端设备,包括处理器以及用于存储处理器可执行指令的存储器,所述处理器执行所述指令时实现如下方法的步骤:A server device includes a processor and a memory for storing instructions executable by the processor, wherein the processor implements the following method steps when executing the instructions:
获取用户的云服务实例购买请求;Obtain the user's cloud service instance purchase request;
响应于所述实例购买请求,获取用户指定的主可用区部署方式和备可用区部署方式,其中,主可用区部署方式和备可用区部署方式是用户分别指定的;In response to the instance purchase request, obtaining a primary availability zone deployment mode and a backup availability zone deployment mode specified by a user, wherein the primary availability zone deployment mode and the backup availability zone deployment mode are respectively specified by the user;
根据主可用区部署方式部署主节点,根据备可用区部署方式部署备节点。Deploy the master node according to the deployment mode of the primary availability zone, and deploy the standby node according to the deployment mode of the standby availability zone.
一种终端设备,包括处理器以及用于存储处理器可执行指令的存储器,所述处理器执行所述指令时实现如下方法的步骤:A terminal device comprises a processor and a memory for storing instructions executable by the processor, wherein when the processor executes the instructions, the steps of the following method are implemented:
接收用户的云服务实例购买请求;Receive a cloud service instance purchase request from a user;
响应于所述实例购买请求,显示可用区部署选定界面,其中,所述可用区部署选定界面包括:主可用区部署方式选定区域和备可用区部署方式选定区域;In response to the instance purchase request, displaying an availability zone deployment selection interface, wherein the availability zone deployment selection interface includes: a primary availability zone deployment mode selection area and a backup availability zone deployment mode selection area;
接收用户在主可用区部署方式区域的选定操作和用户在备可用区部署方式区域的选定操作,并将选定区域对应的选择项作为用户指定的主可用区部署方式和备可用区部署方式;Receive the user's selected operation in the primary availability zone deployment mode area and the user's selected operation in the backup availability zone deployment mode area, and use the selected items corresponding to the selected areas as the primary availability zone deployment mode and the backup availability zone deployment mode specified by the user;
将用户指定的主可用区部署方式和备可用区部署方式,携带在所述云服务实例购买请求中发送至云平台管理系统。The primary availability zone deployment mode and the backup availability zone deployment mode specified by the user are carried in the cloud service instance purchase request and sent to the cloud platform management system.
一种计算机可读存储介质,其上存储有计算机指令,所述指令被执行时实现如下所述方法的步骤:A computer-readable storage medium having computer instructions stored thereon, wherein the instructions, when executed, implement the steps of the method described below:
获取用户的云服务实例购买请求;Obtain the user's cloud service instance purchase request;
响应于所述实例购买请求,获取用户指定的主可用区部署方式和备可用区部署方式,其中,主可用区部署方式和备可用区部署方式是用户分别指定的;In response to the instance purchase request, obtaining a primary availability zone deployment mode and a backup availability zone deployment mode specified by a user, wherein the primary availability zone deployment mode and the backup availability zone deployment mode are respectively specified by the user;
根据主可用区部署方式部署主节点,根据备可用区部署方式部署备节点。Deploy the master node according to the deployment mode of the primary availability zone, and deploy the standby node according to the deployment mode of the standby availability zone.
一种计算机可读存储介质,其上存储有计算机指令,所述指令被执行时实现如下方法的步骤:A computer-readable storage medium having computer instructions stored thereon, wherein the instructions, when executed, implement the steps of the following method:
接收用户的云服务实例购买请求;Receive a cloud service instance purchase request from a user;
响应于所述实例购买请求,显示可用区部署选定界面,其中,所述可用区部署选定界面包括:主可用区部署方式选定区域和备可用区部署方式选定区域;In response to the instance purchase request, displaying an availability zone deployment selection interface, wherein the availability zone deployment selection interface includes: a primary availability zone deployment mode selection area and a backup availability zone deployment mode selection area;
接收用户在主可用区部署方式区域的选定操作和用户在备可用区部署方式区域的选定操作,并将选定区域对应的选择项作为用户指定的主可用区部署方式和备可用区部署方式;Receive the user's selected operation in the primary availability zone deployment mode area and the user's selected operation in the backup availability zone deployment mode area, and use the selected items corresponding to the selected areas as the primary availability zone deployment mode and the backup availability zone deployment mode specified by the user;
将用户指定的主可用区部署方式和备可用区部署方式,携带在所述云服务实例购买请求中发送至云平台管理系统。The primary availability zone deployment mode and the backup availability zone deployment mode specified by the user are carried in the cloud service instance purchase request and sent to the cloud platform management system.
本申请提供的云服务节点部署方法和装置,在用户请求购买云服务实例的时候,主可用区部署方式和备可用区部署方式是用户分别指定的,而不是采用主备可用区组合的方式,通过这种方式解决了现有的主备可用区组合部署所导致的灵活性低、资源利用率低下的问题,达到了有效提升部署灵活性和资源利用率的技术效果。The cloud service node deployment method and device provided by the present application, when a user requests to purchase a cloud service instance, the primary availability zone deployment mode and the backup availability zone deployment mode are separately specified by the user, rather than adopting a primary and backup availability zone combination mode. This method solves the problems of low flexibility and low resource utilization caused by the existing primary and backup availability zone combination deployment, and achieves the technical effect of effectively improving deployment flexibility and resource utilization.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请中记载的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
图1是本申请提供的云服务节点部署系统的架构图;FIG1 is an architecture diagram of a cloud service node deployment system provided by the present application;
图2是本申请提供的现有的可用区组合部署方式示意图;FIG2 is a schematic diagram of an existing combination deployment method of available zones provided by the present application;
图3是本申请提供的分别选定主可用区和备可用区的部署示意图;FIG3 is a deployment diagram of selecting a primary availability zone and a backup availability zone respectively provided by the present application;
图4是本申请提供的选定主可用区、备可用区随机部署的部署示意图;FIG4 is a schematic diagram of a deployment of randomly selected primary availability zones and backup availability zones provided by the present application;
图5是本申请提供的主备可用区都随机部署的部署示意图;FIG5 is a schematic diagram of a deployment in which both primary and backup availability zones are randomly deployed as provided by the present application;
图6是本申请提供的备可用区与主可用区同区部署的部署示意图;FIG6 is a schematic diagram of deployment of a backup availability zone and a primary availability zone in the same zone provided by the present application;
图7是本申请提供的云服务节点部署方法的方法流程图;FIG7 is a method flow chart of a cloud service node deployment method provided by the present application;
图8是本申请提供的云服务节点部署方法的方法流程图;FIG8 is a method flow chart of a cloud service node deployment method provided by the present application;
图9是本申请供的计算机终端的架构图;FIG9 is a diagram showing the architecture of a computer terminal provided by the present application;
图10是本申请提供的云服务节点部署装置的结构框图。FIG10 is a structural block diagram of the cloud service node deployment device provided in the present application.
具体实施方式Detailed ways
为了使本技术领域的人员更好地理解本申请中的技术方案,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都应当属于本申请保护的范围。In order to enable those skilled in the art to better understand the technical solutions in the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of this application.
对于应用或者服务发布者,在发布服务应用的时候,往往需要向云平台请求一些服务,例如,云存储服务。为此,云平台可以提供了一个服务购买页面,用户登录到该服务购买页面中可以进行所需服务的购买(例如:云计算服务、云存储服务等)。在进行服务购买的时候,用户仅需要选择地域和主备节点的部署方式即可。When publishing service applications, application or service publishers often need to request some services from the cloud platform, such as cloud storage services. To this end, the cloud platform can provide a service purchase page, where users can log in to purchase the required services (such as cloud computing services, cloud storage services, etc.). When purchasing services, users only need to select the region and the deployment method of the primary and backup nodes.
其中,主节点是云产品实例提供用户服务的节点,备节点是主节点的容灾节点,具有与主节点同样的数据和配置,用于在主节点故障的时候,代替主节点提供服务。对于节点而言,是设置在可用区中的,主节点所在的可用区称为主可用区,备节点所在的可用区称为备可用区。The master node is the node that provides user services for cloud product instances, and the backup node is the disaster recovery node of the master node. It has the same data and configuration as the master node and is used to replace the master node to provide services when the master node fails. For nodes, they are set in the availability zone. The availability zone where the master node is located is called the primary availability zone, and the availability zone where the backup node is located is called the backup availability zone.
如图1所示,提供了一种云服务节点部署系统,可以包括:客户端101、云平台管理系统102和待部署区域103。As shown in FIG. 1 , a cloud service node deployment system is provided, which may include: a client 101 , a cloud platform management system 102 , and a to-be-deployed area 103 .
其中,客户端101可以向用户提供服务购买界面,用户登录到该服务购买界面可以选定地域和节点部署方式,从而触发对服务的购买。The client 101 may provide a service purchase interface to the user. The user logs into the service purchase interface and may select a region and a node deployment mode, thereby triggering the purchase of the service.
云平台管理系统102可以是单一的云服务器,也可以是云服务器集群,用于接收用户的选定,并按照用户的选定在待部署区域中进行服务节点部署,并在服务提供阶段对待部署区域中各个可用区进行集中管控。The cloud platform management system 102 can be a single cloud server or a cloud server cluster, which is used to receive user selections, deploy service nodes in the area to be deployed according to the user's selections, and centrally manage and control each availability zone in the area to be deployed during the service provision phase.
待部署区域103可以包括多个地域,地域是云厂商数据中心所在的物理地域位置(如图1中包括:地域A、地域B和地域C),每个地域下建立有数据中心,每个地域下通常会建立有多个可用区(如图1中可用区1、可用区2等等)。云平台管理系统102可以根据用户的选定确定在哪个地域的哪个可用区中部署主节点,在哪个可用区中部署备节点。The area to be deployed 103 may include multiple regions, where a region is the physical location of a cloud vendor's data center (such as Region A, Region B, and Region C in FIG1 ), each region has a data center, and each region generally has multiple availability zones (such as Availability Zone 1, Availability Zone 2, etc. in FIG1 ). The cloud platform management system 102 may determine in which availability zone of which region to deploy the master node, and in which availability zone to deploy the standby node, based on the user's selection.
上述的云平台管理系统102可以包括:图2中的云服务售卖页和云厂商管控系统,其中,云服务售卖页为用户购买云服务的页面,用户可以通过云服务售卖页选择在不同的地域下购买云服务;云厂商管控系统,是用户运维管控云服务的系统,可以包括:用于记录云服务信息配置的元数据库、用于用户资源调度的资源管理服务、用于保证云服务高可用性的可高用服务,以及其它管控服务。具体的,元数据库用于记录云产品实例的基础信息,也记录实例的可用区部署信息;资源调度服务用于对数据中心的计算资源做整合调度,为云产品管理底层资源;高可用服务会在云产品发生异常的时候进行干预处理,以尽量保证产品提供的服务不受影响。The above-mentioned cloud platform management system 102 may include: the cloud service sales page and cloud vendor management system in Figure 2, wherein the cloud service sales page is a page for users to purchase cloud services, and users can choose to purchase cloud services in different regions through the cloud service sales page; the cloud vendor management system is a system for users to operate and manage cloud services, which may include: a metadata database for recording cloud service information configuration, a resource management service for user resource scheduling, a high-availability service for ensuring high availability of cloud services, and other management services. Specifically, the metadata database is used to record the basic information of cloud product instances, and also records the availability zone deployment information of the instances; the resource scheduling service is used to integrate and schedule the computing resources of the data center and manage the underlying resources for cloud products; the high-availability service will intervene when an abnormality occurs in a cloud product to try to ensure that the services provided by the product are not affected.
如图2所示,数据中心为上述待部署区域103中某地域的云厂商数据中心,用于为用户服务以及云服务提供计算储存资源,用户服务和云服务都部署在数据中心内。As shown in FIG. 2 , the data center is a cloud vendor data center in a certain region of the above-mentioned area to be deployed 103 , which is used to provide computing and storage resources for user services and cloud services. Both user services and cloud services are deployed in the data center.
为了使得用户可以选择可用区进行部署,现有的一般是平台提供了多个组合可用区,然后用户从这些组合里选择可用区进行资源调度,部署到对应的服务应用中。即,如图2所示,在可用区选择上,是预先设置了多个组合:多可用区(A+B)、多可用区(A+C)和多可用区(B+C),用户在进行云服务购买的时候,仅能从这些预设的组合里进行选择。这样就导致用户在需要配置主可用区的时候,无法配置,且仅可以从这些组合中进行选择,无法自己灵活设定,这就导致部署配置的灵活性较低、准确度也较低。In order to allow users to select availability zones for deployment, the existing platforms generally provide multiple combinations of availability zones, and then users select availability zones from these combinations for resource scheduling and deployment to corresponding service applications. That is, as shown in Figure 2, multiple combinations are pre-set for availability zone selection: multiple availability zones (A+B), multiple availability zones (A+C), and multiple availability zones (B+C). When users purchase cloud services, they can only choose from these preset combinations. This results in the user being unable to configure the primary availability zone when they need to, and can only choose from these combinations, and cannot flexibly set it themselves, which results in low flexibility and accuracy in deployment configuration.
具体的,上述仅能从预设的组合中进行选择的方式主要存在如下问题:Specifically, the above method of only being able to select from preset combinations mainly has the following problems:
1)需要预先配置组合,配置操作比较复杂,且配置的组合需要维护,且一般情况下一个地域下所能提供的组合数量非常有限,很难满足不同用户的各种部署需求。1) The combination needs to be pre-configured, the configuration operation is relatively complicated, and the configured combination needs to be maintained. In general, the number of combinations that can be provided in a region is very limited, which makes it difficult to meet the various deployment requirements of different users.
2)用户仅能选定组合(例如,仅能选择在A和B两个可用区部署)但是无法明确主节点和备节点分别在哪个可用区,例如:选择了A+B可用区,那么主节点可能在A可用区,也可能在B可用区,如果用户的应用服务部署在A可用区,用户希望云平台提供的云服务的主节点也在A可用区,那么这种方式无法实现,导致用户的服务与主节点部署的可用区不同。2) Users can only select a combination (for example, they can only choose to deploy in two availability zones, A and B), but cannot specify in which availability zones the master node and the standby node are located. For example, if A+B availability zones are selected, the master node may be in A or B. If the user's application service is deployed in A, and the user hopes that the master node of the cloud service provided by the cloud platform is also in A, this method cannot be implemented, resulting in the user's service being deployed in a different availability zone from the master node.
3)这种组合可用区的资源调度范围必须是对应组合可用区里的可用区,例如:A+B可用区,那么只能在A可用区和B可用区内分配资源,如果某一个可用区没有资源就会分配失败,进而导致售卖失败,即,可用区售卖成功的概率会降低。3) The resource scheduling scope of this combination of availability zones must be the availability zones in the corresponding combination of availability zones, for example: A+B availability zones. In this case, resources can only be allocated in availability zones A and B. If there are no resources in one availability zone, the allocation will fail, which will lead to a sales failure. That is, the probability of a successful sale of an availability zone will be reduced.
针对预设组合可用区所存在的问题,在本例中提供了一种可用区设定方式,将主备可用区的选择权下方给用户,即,用户可以根据需要选择主可用区的设定方式(例如:指定某个可用区作为主可用区,或者,选择随机设定可用区为主可用区),可以根据需要选择备可用区的设定方式(例如:指定某个可用区作为备可用区,或者,选择随机设定可用区为备可用区)。即,将主备可用区分开设定。在用户设定完主备可用区之后,后端系统按照用户选择进行管理。In response to the problems existing in the preset combined availability zones, this example provides an availability zone setting method, which gives the user the right to choose the primary and backup availability zones. That is, the user can select the setting method of the primary availability zone as needed (for example, specifying a certain availability zone as the primary availability zone, or selecting a randomly set availability zone as the primary availability zone), and can select the setting method of the backup availability zone as needed (for example, specifying a certain availability zone as the backup availability zone, or selecting a randomly set availability zone as the backup availability zone). That is, the primary and backup availability zones are set separately. After the user sets the primary and backup availability zones, the back-end system manages them according to the user's selection.
具体的,可以如图3所示,在云服务售卖页上可以如图3显示,包括:地域选择项、主可用区选择项和备可用区选择项。其中,地域选择项中可以包括:杭州、北京、上海等地域标识,用户通过点选来确定希望的云厂商数据中心所在的物理地域位置。例如,用户点选“杭州”作为选定的地域,在主备可用区选择项中就可以显示“杭州”地域下的多个可用区。Specifically, as shown in FIG3, the cloud service sales page may be displayed as shown in FIG3, including: region selection items, primary availability zone selection items, and backup availability zone selection items. Among them, the region selection items may include: Hangzhou, Beijing, Shanghai and other region identifiers, and the user clicks to determine the physical location of the desired cloud vendor data center. For example, if the user clicks "Hangzhou" as the selected region, multiple availability zones under the "Hangzhou" region can be displayed in the primary and backup availability zone selection items.
在主可用区选项中,可以存在多个选项,主要分为:随机和多个可用区,其中,选定随机就表明可以杭州地域下的多个可用区中随机选择一个可用区作为主可用区,用户并不关心主可用区在的位置,如果不是选择随机,那么用户就需要在多个可用区中选择一个可用区作为主可用区(例如:可用区A),那么对于后端系统就需要将主节点设置在可用区A中,且一直维护这种设定。There are multiple options in the primary availability zone option, which are mainly divided into: random and multiple availability zones. Among them, selecting random means that an availability zone can be randomly selected from multiple availability zones in the Hangzhou region as the primary availability zone. The user does not care about the location of the primary availability zone. If random is not selected, the user needs to select an availability zone from multiple availability zones as the primary availability zone (for example: availability zone A). In this case, the backend system needs to set the master node in availability zone A and maintain this setting all the time.
在备可用区选项中,可以存在多个选项,主要分为:随机和多个可用区,其中,选定随机就表明可以杭州地域下的多个可用区中随机选择一个可用区作为备可用区,用户并不关心备可用区在的位置,如果不是选择随机,那么用户就需要在多个可用区中选择一个可用区作为备可用区(例如:可用区B),那么对于后端系统就需要将备节点设置在可用区B中,且一直维护这种设定。There are multiple options in the backup availability zone option, which are mainly divided into: random and multiple availability zones. Among them, selecting random means that an availability zone can be randomly selected from multiple availability zones in the Hangzhou region as the backup availability zone. The user does not care about the location of the backup availability zone. If random is not selected, the user needs to select an availability zone from multiple availability zones as the backup availability zone (for example: availability zone B). In this case, the backend system needs to set the backup node in availability zone B and maintain this setting all the time.
即,用户可以按照如图3的方式设置地域、主可用区和备可用区,后端管控系统接收到用户请求,会按照用户选定的主备节点部署方式来进行节点部署。That is, the user can set the region, primary availability zone, and backup availability zone as shown in Figure 3. When the backend management and control system receives the user's request, it will deploy the nodes according to the primary and backup node deployment method selected by the user.
针对不同的使用需求,可以存在但不限于如下几种情况:According to different usage requirements, there may be but are not limited to the following situations:
情况1:Case 1:
有些用户的服务是部署在多个可用区的,且用户希望对服务进行容灾管理,那么就需要云产品的可用区部署与服务是一致的,例如,用户的服务部署是在A可用区和B可用区,那么用户希望云产品的主节点部署在A可用区,备节点部署在B可用区。Some users' services are deployed in multiple availability zones, and users want to perform disaster recovery management for the services. In this case, the availability zone deployment of the cloud product must be consistent with the service. For example, if the user's service is deployed in availability zone A and availability zone B, then the user wants the cloud product's master node to be deployed in availability zone A and the standby node to be deployed in availability zone B.
针对该情况可以如图3所示:This situation can be shown in Figure 3:
用户在选定地域之后,主可用区会选择可用区A,备可用区会选择可用区B。即,用户选择的主可用区A+备可用区B。在选定后,这种选择信息会进入到云厂商管控系统中进行管控,且这些选择信息会记录在元数据库中。相应的,云厂商管控系统会在数据中心进行部署,即,将主节点部署在可用区A中,将备节点部署在可用区B中。在数据库实例运维操作的时候,都会基于元数据库中记录的配置进行相关操作,以保证用户实例的可用区部署方式不变。具体的,在这种设定下:After the user selects the region, the primary availability zone will select availability zone A, and the backup availability zone will select availability zone B. That is, the user selects the primary availability zone A + backup availability zone B. After the selection, this selection information will enter the cloud vendor's management and control system for management, and this selection information will be recorded in the metadata database. Correspondingly, the cloud vendor's management and control system will be deployed in the data center, that is, the primary node will be deployed in availability zone A, and the backup node will be deployed in availability zone B. During the operation and maintenance of the database instance, relevant operations will be performed based on the configuration recorded in the metadata database to ensure that the availability zone deployment method of the user instance remains unchanged. Specifically, under this setting:
1)当主节点发生故障时,高可用系统会及时切换到备库,等到主节点自动化系统修复以后,在用户配置的可运维时间内,将可用区A的节点重新设置为主节点提供服务,从而保证实例的可用区部署不变;1) When the master node fails, the high-availability system will promptly switch to the backup database. After the master node automation system is repaired, the node in availability zone A will be reset to the master node within the user-configured maintenance time to provide services, thereby ensuring that the instance's availability zone deployment remains unchanged;
2)当对数据库实例的规格进行升级或者对实例进行迁移的时候,也需要保证实例的可用区部署不变,即,在可用区A中部署主节点,在可用区B中部署备节点。2) When upgrading the specifications of a database instance or migrating an instance, it is also necessary to ensure that the instance's availability zone deployment remains unchanged, that is, deploy the primary node in availability zone A and the standby node in availability zone B.
情况2:Case 2:
有时候用户仅关系主节点的部署位置,不关心备节点的部署位置,这样用户仅需要选择主节点对应的可用区,对于备节点可以选择实例节点随机部署。例如,用户本身的服务很多是部署在可用区B的,那么用户希望将主节点部署在可用区B,备节点随机部署即可。Sometimes users only care about the deployment location of the master node, not the deployment location of the standby node. In this case, users only need to select the availability zone corresponding to the master node, and can choose to randomly deploy instance nodes for the standby node. For example, many of the user's services are deployed in availability zone B, so the user wants to deploy the master node in availability zone B and the standby node can be randomly deployed.
针对该情况可以如图4所示:This situation can be shown in Figure 4:
用户在选定地域之后,主可用区会选择可用区B,备可用区会选择随机。即,用户选择的主可用区B+备可用区随机。在选定后,这种选择信息会进入到云厂商管控系统中进行管控,且这些选择信息会记录在元数据库中。相应的,云厂商管控系统会在数据中心进行部署,即,将主节点部署在可用区B中,并随机部署备节点(例如部署在可用区C或者A或者B都可以)。在数据库实例运维操作的时候,都会基于元数据库中记录的配置进行相关操作,以保证用户实例的主可用区部署不变,备可用区随机部署。After the user selects the region, the primary availability zone will select availability zone B, and the backup availability zone will select a random one. That is, the user selects the primary availability zone B + the backup availability zone randomly. After the selection, this selection information will enter the cloud vendor's management and control system for management, and this selection information will be recorded in the metadata database. Correspondingly, the cloud vendor's management and control system will be deployed in the data center, that is, the primary node will be deployed in availability zone B, and the backup node will be deployed randomly (for example, it can be deployed in availability zone C, A, or B). During the operation and maintenance of the database instance, relevant operations will be performed based on the configuration recorded in the metadata database to ensure that the primary availability zone deployment of the user instance remains unchanged and the backup availability zone is deployed randomly.
在选择随机可用区部署的情况下,资源调度只需要评估地域下所有可用区,然后选择在资源充足的可用区部署即可。When random availability zone deployment is selected, resource scheduling only needs to evaluate all availability zones in the region and then select an availability zone with sufficient resources for deployment.
值得注意的是,对于用户服务所在的可用区位置,云平台是无感知的,仅是用户自己知晓,图中所示出的用户服务所在可用区与主备节点所在可用区之间是没有关联的,仅基于用户设定来进行主备节点的可用区部署。It is worth noting that the cloud platform is unaware of the availability zone location of the user service. Only the user knows it. There is no correlation between the availability zone where the user service is located and the availability zone where the primary and standby nodes are located. The availability zones of the primary and standby nodes are deployed only based on user settings.
情况3:用户只是需要一个公网访问的云数据库实例,主备节点部署的可用区都不关心,那么用户可以选择实例的主备节点都随机部署。Case 3: The user only needs a cloud database instance that is accessible from the public network and does not care about the availability zones where the primary and standby nodes are deployed. In this case, the user can choose to randomly deploy both the primary and standby nodes of the instance.
针对该情况可以如图5所示:This situation can be shown in Figure 5:
用户在选定地域之后,主可用区和备可用区都会选择随机。即,用户选择的主可用区随机+备可用区随机。在选定后,这种选择信息会进入到云厂商管控系统中进行管控,且这些选择信息会记录在元数据库中。相应的,云厂商管控系统会在数据中心进行部署,即,将主节点部署进行随机部署(例如部署在可用区C或者A或者B都可以),并随机部署备节点(例如部署在可用区C或者A或者B都可以)。在数据库实例运维操作的时候,都会基于元数据库中记录的配置进行相关操作,即,主备节点都随机部署。After the user selects the region, both the primary and backup availability zones will be randomly selected. That is, the user selects the primary availability zone randomly + the backup availability zone randomly. After the selection, this selection information will enter the cloud vendor's management and control system for management, and this selection information will be recorded in the metadata database. Correspondingly, the cloud vendor's management and control system will deploy in the data center, that is, the primary node deployment will be randomly deployed (for example, it can be deployed in availability zone C, A, or B), and the backup node will be randomly deployed (for example, it can be deployed in availability zone C, A, or B). During the operation and maintenance of the database instance, relevant operations will be performed based on the configuration recorded in the metadata database, that is, the primary and backup nodes are randomly deployed.
在选择随机可用区部署的情况下,资源调度只需要评估地域下所有可用区,然后选择资源充足的可用区部署即可。When random availability zone deployment is selected, resource scheduling only needs to evaluate all availability zones in the region and then select an availability zone with sufficient resources for deployment.
值得注意的是,对于用户服务所在的可用区位置,云平台是无感知的,仅是用户自己知晓,图中所示出的用户服务所在可用区与主备节点所在可用区之间是没有关联的,仅基于用户设定来进行主备节点的可用区部署。It is worth noting that the cloud platform is unaware of the availability zone location of the user service. Only the user knows it. There is no correlation between the availability zone where the user service is located and the availability zone where the primary and standby nodes are located. The availability zones of the primary and standby nodes are deployed only based on user settings.
通过随机部署方式的引入,使得所有对数据库实例的运维操作都不需要过多地维持之前节点所部署的可用区,可以对资源整合进行优化。By introducing the random deployment method, all operation and maintenance operations on the database instance do not need to excessively maintain the availability zone where the node was deployed previously, which can optimize resource integration.
情况4:针对一些性能敏感而对跨可用区容灾需求不大的用户,可以将云服务的主备节点部署在同一个可用区,从而减少因为不同可用区之间网络延迟带来的性能损耗。Case 4: For some performance-sensitive users who do not have much demand for cross-zone disaster recovery, the primary and backup nodes of the cloud service can be deployed in the same zone to reduce the performance loss caused by network latency between different zones.
针对该情况可以如图6所示:This situation can be shown in Figure 6:
用户在选定地域之后,可以显示主可用区可选的可用区,显示备可用区可选的可用区,为了可以满足用户需求,图6中在备可用区增加了一个选项“与主可用区同区部署”。在用户备可用区选择与主可用区同区部署的情况下,如果主可用区选择可用区A,那么备可用区就也是可用区A,如果主可用区选择随机部署,那么备可用区就跟着主可用区,主可用区随机部署到可用区B,那么备可用区就也到可用区B,主可用区随机部署到可用区C,那么备可用区就也到可用区C。将用户的选择存储在元数据库中,在数据库实例运维操作的时候,都会基于元数据库中记录的配置进行相关操作,即,备可用区与主可用区部署在同一可用区。After the user selects the region, the available zones for the primary zone and the backup zone are displayed. In order to meet user needs, an option "Deploy in the same zone as the primary zone" is added to the backup zone in Figure 6. If the user chooses to deploy the backup zone in the same zone as the primary zone, if the primary zone is selected as zone A, then the backup zone is also zone A. If the primary zone is randomly deployed, then the backup zone follows the primary zone. If the primary zone is randomly deployed to zone B, then the backup zone is also deployed to zone B. If the primary zone is randomly deployed to zone C, then the backup zone is also deployed to zone C. The user's selection is stored in the metadata database. During the operation and maintenance of the database instance, relevant operations are performed based on the configuration recorded in the metadata database, that is, the backup zone is deployed in the same zone as the primary zone.
在上例中,主备可用区可分别指定,也可以随机选择,后端系统按照用户设定进行管理。In the above example, the primary and backup availability zones can be specified separately or randomly selected, and the backend system manages them according to the user settings.
具体的,对于图3至图6中的云服务售卖页中的主备可用区选择而言,其中的可用区选项,可以是与地域同时显示的,也可以是在选择地域后,再进行显示的。例如,可以是用户在选定地域“杭州”之后,云厂商管控系统确定杭州这个地域下的数据中心中哪些可用区的资源量是充足的,将资源量充足的可用区作为可选择的可用区显示在选择区域内。例如,如果确定出可用区A、可用区C是资源充足的,可用区B是资源不充足的,那么可以显示可用区A和可用区C,而不显示可用区B。也可以直接显示杭州这个地域下的数据中心中的所有可用区,等到进行节点部署的时候,再确定可用区资源是否充足。具体采用哪种方式可以根据需求选择。Specifically, for the selection of primary and backup availability zones in the cloud service sales page in Figures 3 to 6, the availability zone options can be displayed simultaneously with the region, or can be displayed after the region is selected. For example, after the user selects the region "Hangzhou", the cloud vendor management and control system determines which availability zones in the data center under the Hangzhou region have sufficient resources, and displays the availability zones with sufficient resources as selectable availability zones in the selection area. For example, if it is determined that availability zones A and C are sufficient in resources, and availability zone B is insufficient in resources, then availability zones A and C can be displayed, but availability zone B is not displayed. It is also possible to directly display all availability zones in the data center under the Hangzhou region, and then determine whether the availability zone resources are sufficient when the node is deployed. The specific method can be selected according to needs.
然而,值得注意的是,上述场景附图和实施例仅是一种示例性说明,在实际实现的云服务售卖页面的展示方式,显示顺序,以及地域的选择等等都可以根据实际需要和情况进行一定的变形,本申请对此不做限定。However, it is worth noting that the above-mentioned scene drawings and embodiments are only exemplary descriptions. The display method, display order, and regional selection of the actual cloud service sales page can be modified to a certain extent according to actual needs and circumstances, and this application does not limit this.
在用户选择随机部署可用区的情况下,所有对数据库实例的运维操作都不需要过多地维持之前节点所部署的可用区,有利于资源的整合优化。因为用户可以按照自己的服务需求自由选择组合可用区,从而解决了之前需要预配置组合可用区而组合数量有限的问题。对于用户指定节点部署的可用区,云服务后端会记录用户的指定的配置,相关的运维操作都会保证用户的节点可用区部署不变,以符合用户预期,解决了节点部署可用区不明确的问题。在用户随机节点部署的可用区情况下,节点部署与可用区解绑,从而可以灵活地选择地域下任一有资源的可用区,资源调度效率更高,从而提高了售卖成功率。在节点部署可用区可随机的情况下,资源调度可以在不同可用区之间进行,从而减少了不同可用区资源不对等造成的资源碎片,提高了资源利用率,因为资源由原本的在一个可用区选择变成在多个可用区内进行选择,资源池相当于变大了,从而可以提高云产品的售卖成功率;不同可用区之间可以自由组合,可以满足用户多样性的需求。When users choose to deploy the availability zone randomly, all operation and maintenance operations on the database instance do not need to maintain the availability zone where the node was deployed too much, which is conducive to the integration and optimization of resources. Because users can freely choose to combine the availability zones according to their service needs, it solves the problem of limited number of combinations that need to be pre-configured. For the availability zone where the user specifies the node deployment, the cloud service backend will record the user's specified configuration, and the relevant operation and maintenance operations will ensure that the user's node availability zone deployment remains unchanged to meet the user's expectations, solving the problem of unclear node deployment availability zone. In the case of user random node deployment availability zone, node deployment is unbound from the availability zone, so that any availability zone with resources in the region can be flexibly selected, and resource scheduling efficiency is higher, thereby improving the sales success rate. In the case of random node deployment availability zone, resource scheduling can be carried out between different availability zones, thereby reducing resource fragmentation caused by unequal resources in different availability zones and improving resource utilization. Because resources are selected from multiple availability zones instead of in one availability zone, the resource pool is equivalent to becoming larger, which can improve the sales success rate of cloud products; different availability zones can be freely combined to meet the diverse needs of users.
图7是本申请所述一种云服务节点部署方法一个实施例的方法流程图。虽然本申请提供了如下述实施例或附图所示的方法操作步骤或装置结构,但基于常规或者无需创造性的劳动在所述方法或装置中可以包括更多或者更少的操作步骤或模块单元。在逻辑性上不存在必要因果关系的步骤或结构中,这些步骤的执行顺序或装置的模块结构不限于本申请实施例描述及附图所示的执行顺序或模块结构。所述的方法或模块结构的在实际中的装置或终端产品应用时,可以按照实施例或者附图所示的方法或模块结构连接进行顺序执行或者并行执行(例如并行处理器或者多线程处理的环境,甚至分布式处理环境)。Figure 7 is a method flow chart of an embodiment of a cloud service node deployment method described in the present application. Although the present application provides method operation steps or device structures as shown in the following embodiments or drawings, more or fewer operation steps or module units may be included in the method or device based on routine or no creative labor. In the steps or structures where there is no necessary causal relationship logically, the execution order of these steps or the module structure of the device is not limited to the execution order or module structure described in the embodiments of the present application and shown in the drawings. When the method or module structure is applied to an actual device or terminal product, it can be connected according to the method or module structure shown in the embodiment or drawings for sequential execution or parallel execution (for example, a parallel processor or a multi-threaded processing environment, or even a distributed processing environment).
具体的,如图7所示,本申请一种实施例提供的一种云服务节点部署方法可以包括:Specifically, as shown in FIG7 , a cloud service node deployment method provided by an embodiment of the present application may include:
步骤701:获取用户的云服务实例购买请求;Step 701: Obtain a user's cloud service instance purchase request;
即,用户在发布自身服务的时候,有时需要购买云服务,例如:云数据库服务等。在这个时候,用户可以登陆到云服务售卖页面,以购买云服务。That is, when users publish their own services, they sometimes need to purchase cloud services, such as cloud database services, etc. At this time, users can log in to the cloud service sales page to purchase cloud services.
步骤702:响应于所述实例购买请求,获取用户指定的主可用区部署方式和备可用区部署方式,其中,主可用区部署方式和备可用区部署方式是用户分别指定的;Step 702: In response to the instance purchase request, obtaining a primary availability zone deployment mode and a backup availability zone deployment mode specified by the user, wherein the primary availability zone deployment mode and the backup availability zone deployment mode are respectively specified by the user;
在购买云服务的时候,一般需要用户选择主可用区和备可用区,现有的一般是主备组合的售卖方式,这样会导致可选择局限性比较大,且容易因为资源不足而导致售卖不成功。为此,在本例中,主可用区部署方式和备可用区部署方式是用户分别指定的,且在部署方式中引入了随机部署方式和固定节点的部署方式。When purchasing cloud services, users are generally required to select the primary and backup availability zones. The existing sales methods generally use a primary and backup combination, which results in relatively limited choices and can easily lead to sales failures due to insufficient resources. Therefore, in this example, the primary and backup availability zone deployment methods are specified by the user, and random deployment methods and fixed node deployment methods are introduced in the deployment methods.
即,提供了多种选择方式,这样对于用户指定节点部署的可用区,云服务后端会记录用户的指定的配置,相关的运维操作都会保证用户的节点可用区部署不变,以符合用户预期,解决了节点部署可用区不明确的问题。在用户随机节点部署的可用区情况下,节点部署与可用区解绑,从而可以灵活地选择地域下任一有资源的可用区,资源调度效率更高,从而提高了售卖成功率。在节点部署可用区可随机的情况下,资源调度可以在不同可用区之间进行,从而减少了不同可用区资源不对等造成的资源碎片,提高了资源利用率。That is, multiple selection methods are provided. For the availability zone where the user specifies the node deployment, the cloud service backend will record the user's specified configuration, and the relevant operation and maintenance operations will ensure that the user's node availability zone deployment remains unchanged to meet user expectations, solving the problem of unclear node deployment availability zone. In the case of random node deployment availability zones, the node deployment is unbound from the availability zone, so that any availability zone with resources in the region can be flexibly selected, and resource scheduling efficiency is higher, thereby improving the sales success rate. In the case where the node deployment availability zone can be random, resource scheduling can be performed between different availability zones, thereby reducing resource fragmentation caused by unequal resources in different availability zones and improving resource utilization.
步骤703:根据主可用区部署方式部署主节点,根据备可用区部署方式部署备节点。Step 703: deploy the master node according to the deployment mode of the primary availability zone, and deploy the standby node according to the deployment mode of the standby availability zone.
上述的主可用区部署方式可以包括但不限于以下至少之一:随机部署、在用户指定可用区部署;上述备可用区部署方式可以包括但不限于以下至少之一:随机部署、在用户指定可用区部署、与主可用区同区部署。The above-mentioned primary availability zone deployment method may include but is not limited to at least one of the following: random deployment, deployment in a user-specified availability zone; the above-mentioned backup availability zone deployment method may include but is not limited to at least one of the following: random deployment, deployment in a user-specified availability zone, and deployment in the same zone as the primary availability zone.
为了解决节点部署可用区不明确的问题,云服务后端会记录用户的指定的配置,相关的运维操作都会保证用户的节点可用区部署不变,以符合用户预期。具体的,在获取用户指定的主可用区部署方式和备可用区部署方式之后,可以存储所述用户指定的主可用区部署方式和备可用区部署方式;在对所述用户的云服务实例运维的时候,根据用户指定的主可用区部署方式和备可用区部署方式进行操作,以保证用户指定的云服务实例的主可用区部署方式和备可用区部署方式不变。In order to solve the problem of unclear node deployment availability zones, the cloud service backend will record the user's specified configuration, and related operation and maintenance operations will ensure that the user's node availability zone deployment remains unchanged to meet user expectations. Specifically, after obtaining the primary availability zone deployment method and backup availability zone deployment method specified by the user, the primary availability zone deployment method and backup availability zone deployment method specified by the user can be stored; when operating and maintaining the user's cloud service instance, operations are performed according to the primary availability zone deployment method and backup availability zone deployment method specified by the user to ensure that the primary availability zone deployment method and backup availability zone deployment method of the cloud service instance specified by the user remain unchanged.
在用户随机节点部署的可用区情况下,节点部署与可用区解绑,从而可以灵活地选择地域下任一有资源的可用区,资源调度效率更高,从而提高了售卖成功率。在节点部署可用区可随机的情况下,资源调度可以在不同可用区之间进行,从而减少了不同可用区资源不对等造成的资源碎片,提高了资源利用率。为此,在用户选定主可用区部署方式对随机部署的情况下,根据主可用区部署方式部署主节点可以包括:从可用区中随机选择一个有资源的可用区作为主可用区部署主节点。即,从资源充足的可用区中随机选择可用区作为主可用区或备可用区进行部署。In the case of random node deployment in the availability zone, the node deployment is unbound from the availability zone, so that any availability zone with resources in the region can be flexibly selected, and resource scheduling efficiency is higher, thereby improving the success rate of sales. In the case where the node deployment availability zone can be random, resource scheduling can be performed between different availability zones, thereby reducing resource fragmentation caused by unequal resources in different availability zones and improving resource utilization. To this end, in the case where the user selects the primary availability zone deployment method for random deployment, deploying the master node according to the primary availability zone deployment method may include: randomly selecting an availability zone with resources from the availability zone as the primary availability zone to deploy the master node. That is, randomly selecting an availability zone from the availability zones with sufficient resources as the primary availability zone or the backup availability zone for deployment.
考虑到数据中心是存在地域划分的,因此,用户在进行云服务购买的,还需要选定地域,主备可用区也是选定区域下的可用区。即,响应于所述实例购买请求,获取用户指定的主可用区部署方式和备可用区部署方式,可以包括:响应于所述实例购买请求,获取用户选定的地域;返回在用户选定的地域下的可用区,供用户选择;接收用户指定的主可用区部署方式和备可用区部署方式。Considering that data centers are divided by region, users need to select a region when purchasing cloud services, and the primary and backup availability zones are also availability zones under the selected region. That is, in response to the instance purchase request, obtaining the primary availability zone deployment mode and the backup availability zone deployment mode specified by the user may include: in response to the instance purchase request, obtaining the region selected by the user; returning the availability zones under the region selected by the user for selection by the user; receiving the primary availability zone deployment mode and the backup availability zone deployment mode specified by the user.
在返回在用户选定的地域下的可用区的时候可以遍历所述用户选定的地域下的所有可用区;确定出资源值大于预设资源量的可用区;将大于预设资源量的可用区作为在用户选定的地域下的可用区进行返回,供用户选择。例如,可以是用户在选定地域“杭州”之后,云厂商管控系统确定杭州这个地域下的数据中心中哪些可用区的资源量是充足的,将资源量充足的可用区作为可选择的可用区显示在选择区域内。例如,如果确定出可用区A、可用区C是资源充足的,可用区B是资源不充足的,那么可以显示可用区A和可用区C,而不显示可用区B。也可以直接显示杭州这个地域下的数据中心中的所有可用区,等到进行节点部署的时候,再确定可用区资源是否充足。具体采用哪种方式可以根据需求选择。When returning the available zones in the region selected by the user, all available zones in the region selected by the user can be traversed; the available zones with resource values greater than the preset resource amount are determined; and the available zones with resource values greater than the preset resource amount are returned as available zones in the region selected by the user for selection by the user. For example, after the user selects the region "Hangzhou", the cloud vendor management and control system determines which available zones in the data center in the region of Hangzhou have sufficient resources, and displays the available zones with sufficient resources as selectable available zones in the selection area. For example, if it is determined that available zones A and C have sufficient resources, and available zones B have insufficient resources, then available zones A and C can be displayed, but available zone B is not displayed. It is also possible to directly display all available zones in the data center in the region of Hangzhou, and then determine whether the available zone resources are sufficient when the node is deployed. The specific method can be selected according to needs.
对于用户终端而言,提供了一种云服务节点部署方法,可以如图8所示,包括如下步骤:For the user terminal, a cloud service node deployment method is provided, which can be shown in FIG8 and includes the following steps:
步骤801:接收用户的云服务实例购买请求;Step 801: receiving a cloud service instance purchase request from a user;
步骤802:响应于所述实例购买请求,显示可用区部署选定界面,其中,所述可用区部署选定界面包括:主可用区部署方式选定区域和备可用区部署方式选定区域;Step 802: In response to the instance purchase request, display an availability zone deployment selection interface, wherein the availability zone deployment selection interface includes: a primary availability zone deployment mode selection area and a backup availability zone deployment mode selection area;
步骤803:接收用户在主可用区部署方式区域的选定操作和用户在备可用区部署方式区域的选定操作,并将选定区域对应的选择项作为用户指定的主可用区部署方式和备可用区部署方式;Step 803: receiving the user's selection operation in the primary availability zone deployment mode area and the user's selection operation in the backup availability zone deployment mode area, and using the selection items corresponding to the selected areas as the primary availability zone deployment mode and the backup availability zone deployment mode specified by the user;
步骤804:将用户指定的主可用区部署方式和备可用区部署方式,携带在所述云服务实例购买请求中发送至云平台管理系统。Step 804: The primary availability zone deployment mode and the backup availability zone deployment mode specified by the user are carried in the cloud service instance purchase request and sent to the cloud platform management system.
在上述步骤802中,主可用区部署方式可以包括但不限于以下至少之一:随机部署、在用户指定可用区部署。备可用区部署方式可以包括但不限于以下至少之一:随机部署、在用户指定可用区部署、与主可用区同区部署。In the above step 802, the primary availability zone deployment method may include but is not limited to at least one of the following: random deployment, deployment in a user-specified availability zone. The backup availability zone deployment method may include but is not limited to at least one of the following: random deployment, deployment in a user-specified availability zone, and deployment in the same zone as the primary availability zone.
具体的,在实现的时候,响应于所述实例购买请求,显示可用区部署选定界面,可以包括:响应于所述实例购买请求,显示地域选择界面;接收用户在地域选择界面的选定操作,以确定用户选定的地域;将用户选定的地域发送至云平台管理系统;接收并显示云平台管理系统返回的在用户选定的地域下的可用区,供用户选择。Specifically, during implementation, in response to the instance purchase request, displaying the available zone deployment selection interface may include: in response to the instance purchase request, displaying the region selection interface; receiving the user's selection operation on the region selection interface to determine the region selected by the user; sending the region selected by the user to the cloud platform management system; receiving and displaying the available zones under the user-selected region returned by the cloud platform management system for the user to select.
本申请上述实施例所提供的方法实施例可以在计算机终端、计算机终端或者类似的运算装置中执行。以运行在计算机终端上为例,图9是本发明实施例的一种云服务节点部署方法的计算机终端的硬件结构框图。如图9所示,计算机终端10可以包括一个或多个(图中仅示出一个)处理器102(处理器102可以包括但不限于微处理器MCU或可编程逻辑器件FPGA等的处理装置)、用于存储数据的存储器104、以及用于通信功能的传输模块106。本领域普通技术人员可以理解,图9所示的结构仅为示意,其并不对上述电子装置的结构造成限定。例如,计算机终端10还可包括比图9中所示更多或者更少的组件,或者具有与图9所示不同的配置。The method embodiments provided in the above embodiments of the present application can be executed in a computer terminal, a computer terminal or a similar computing device. Taking running on a computer terminal as an example, FIG9 is a hardware structure block diagram of a computer terminal of a cloud service node deployment method in an embodiment of the present invention. As shown in FIG9, the computer terminal 10 may include one or more (only one is shown in the figure) processors 102 (the processor 102 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA), a memory 104 for storing data, and a transmission module 106 for communication functions. It can be understood by those of ordinary skill in the art that the structure shown in FIG9 is only for illustration, and it does not limit the structure of the above-mentioned electronic device. For example, the computer terminal 10 may also include more or fewer components than those shown in FIG9, or have a configuration different from that shown in FIG9.
存储器104可用于存储应用软件的软件程序以及模块,如本发明实施例中的云服务节点部署方法对应的程序指令/模块,处理器102通过运行存储在存储器104内的软件程序以及模块,从而执行各种功能应用以及数据处理,即实现上述的应用程序的云服务节点部署方法。存储器104可包括高速随机存储器,还可包括非易失性存储器,如一个或者多个磁性存储装置、闪存、或者其他非易失性固态存储器。在一些实例中,存储器104可进一步包括相对于处理器102远程设置的存储器,这些远程存储器可以通过网络连接至计算机终端10。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。The memory 104 can be used to store software programs and modules of application software, such as program instructions/modules corresponding to the cloud service node deployment method in the embodiment of the present invention. The processor 102 executes various functional applications and data processing by running the software programs and modules stored in the memory 104, that is, the cloud service node deployment method of the above-mentioned application is realized. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include a memory remotely arranged relative to the processor 102, and these remote memories may be connected to the computer terminal 10 via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
传输模块106用于经由一个网络接收或者发送数据。上述的网络具体实例可包括计算机终端10的通信供应商提供的无线网络。在一个实例中,传输模块106包括一个网络适配器(Network Interface Controller,NIC),其可通过基站与其他网络设备相连从而可与互联网进行通讯。在一个实例中,传输模块106可以为射频(Radio Frequency,RF)模块,其用于通过无线方式与互联网进行通讯。The transmission module 106 is used to receive or send data via a network. The specific example of the above network may include a wireless network provided by a communication provider of the computer terminal 10. In one example, the transmission module 106 includes a network adapter (Network Interface Controller, NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission module 106 can be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.
在软件层面,上述装置可以如图10所示,可以包括:At the software level, the above device may be as shown in FIG10 and may include:
第一接收模块1001,用于接收用户的云服务实例购买请求;The first receiving module 1001 is used to receive a cloud service instance purchase request from a user;
显示模块1002,用于响应于所述实例购买请求,显示可用区部署选定界面,其中,所述可用区部署选定界面包括:主可用区部署方式选定区域和备可用区部署方式选定区域;The display module 1002 is used to display an availability zone deployment selection interface in response to the instance purchase request, wherein the availability zone deployment selection interface includes: a primary availability zone deployment mode selection area and a backup availability zone deployment mode selection area;
第二接收模块1003,用于接收用户在主可用区部署方式区域的选定操作和用户在备可用区部署方式区域的选定操作,并将选定区域对应的选择项作为用户指定的主可用区部署方式和备可用区部署方式;The second receiving module 1003 is used to receive the user's selection operation in the primary available zone deployment mode area and the user's selection operation in the backup available zone deployment mode area, and use the selection items corresponding to the selected areas as the primary available zone deployment mode and the backup available zone deployment mode specified by the user;
发送模块1004,用于将用户指定的主可用区部署方式和备可用区部署方式,携带在所述云服务实例购买请求中发送至云平台管理系统。The sending module 1004 is used to carry the primary availability zone deployment mode and the backup availability zone deployment mode specified by the user in the cloud service instance purchase request and send them to the cloud platform management system.
在一个实施方式,上述主可用区部署方式可以包括但不限于以下至少之一:随机部署、在用户指定可用区部署。In one embodiment, the above-mentioned primary availability zone deployment method may include but is not limited to at least one of the following: random deployment, deployment in a user-specified availability zone.
在一个实施方式中,上述备可用区部署方式可以包括但不限于以下至少之一:随机部署、在用户指定可用区部署、与主可用区同区部署。In one embodiment, the above-mentioned deployment mode of the backup availability zone may include but is not limited to at least one of the following: random deployment, deployment in a user-specified availability zone, and deployment in the same zone as the primary availability zone.
在一个实施方式中,所述显示模块1002可以包括:第一显示单元,用于响应于所述实例购买请求,显示地域选择界面;接收单元,用于接收用户在地域选择界面的选定操作,以确定用户选定的地域;发送单元,用于将用户选定的地域发送至云平台管理系统;第二显示单元,用于接收并显示云平台管理系统返回的在用户选定的地域下的可用区,供用户选择。In one embodiment, the display module 1002 may include: a first display unit, used to display a region selection interface in response to the instance purchase request; a receiving unit, used to receive a user's selection operation on the region selection interface to determine the region selected by the user; a sending unit, used to send the region selected by the user to the cloud platform management system; and a second display unit, used to receive and display the available area in the region selected by the user returned by the cloud platform management system for the user to select.
在软件层面,部署在服务器端的云服务节点部署装置,可以包括:At the software level, the cloud service node deployment device deployed on the server side may include:
第一获取模块,用于获取用户的云服务实例购买请求;A first acquisition module is used to acquire a user's cloud service instance purchase request;
第二获取模块,用于响应于所述实例购买请求,获取用户指定的主可用区部署方式和备可用区部署方式,其中,主可用区部署方式和备可用区部署方式是用户分别指定的;A second acquisition module is used to respond to the instance purchase request and acquire a primary availability zone deployment mode and a backup availability zone deployment mode specified by the user, wherein the primary availability zone deployment mode and the backup availability zone deployment mode are respectively specified by the user;
部署模块,用于根据主可用区部署方式部署主节点,根据备可用区部署方式部署备节点。The deployment module is used to deploy the master node according to the deployment mode of the primary availability zone and deploy the standby node according to the deployment mode of the standby availability zone.
在一个实施方式中,主可用区部署方式可以包括但不限于以下至少之一:随机部署、在用户指定可用区部署;备可用区部署方式可以包括但不限于以下至少之一:随机部署、在用户指定可用区部署、与主可用区同区部署。In one embodiment, the deployment method of the primary availability zone may include but is not limited to at least one of the following: random deployment, deployment in a user-specified availability zone; the deployment method of the backup availability zone may include but is not limited to at least one of the following: random deployment, deployment in a user-specified availability zone, and deployment in the same zone as the primary availability zone.
在一个实施方式中,上述云服务节点部署装置还可以包括:存储模块,用于在获取用户指定的主可用区部署方式和备可用区部署方式之后,存储所述用户指定的主可用区部署方式和备可用区部署方式;操作模块,用于在对所述用户的云服务实例运维的时候,根据用户指定的主可用区部署方式和备可用区部署方式进行操作,以保证用户指定的云服务实例的主可用区部署方式和备可用区部署方式不变。In one embodiment, the above-mentioned cloud service node deployment device may also include: a storage module, which is used to store the primary availability zone deployment mode and the backup availability zone deployment mode specified by the user after obtaining the primary availability zone deployment mode and the backup availability zone deployment mode specified by the user; an operation module, which is used to operate according to the primary availability zone deployment mode and the backup availability zone deployment mode specified by the user when operating and maintaining the user's cloud service instance, so as to ensure that the primary availability zone deployment mode and the backup availability zone deployment mode of the cloud service instance specified by the user remain unchanged.
在一个实施方式中,上述部署模块具体用于在用户选定主可用区部署方式对随机部署的情况下,从可用区中随机选择一个有资源的可用区作为主可用区部署主节点。In one embodiment, the deployment module is specifically used to randomly select an availability zone with resources from the availability zones as the primary availability zone to deploy the master node when the user selects the primary availability zone deployment mode for random deployment.
在一个实施方式中,上述第二获取模块具体可以用于响应于所述实例购买请求,获取用户选定的地域;返回在用户选定的地域下的可用区,供用户选择;接收用户指定的主可用区部署方式和备可用区部署方式。In one embodiment, the above-mentioned second acquisition module can be specifically used to respond to the instance purchase request, obtain the region selected by the user; return the available zone under the region selected by the user for user selection; and receive the primary available zone deployment method and the backup available zone deployment method specified by the user.
在一个实施方式中,返回在用户选定的地域下的可用区,可以包括:遍历所述用户选定的地域下的所有可用区;确定出资源值大于预设资源量的可用区;将大于预设资源量的可用区作为在用户选定的地域下的可用区进行返回,供用户选择。In one embodiment, returning the available zones in the region selected by the user may include: traversing all available zones in the region selected by the user; determining available zones having resource values greater than a preset resource amount; and returning available zones having resource values greater than the preset resource amount as available zones in the region selected by the user for the user to select.
本申请的实施例还提供能够实现上述实施例中的云服务节点部署方法中全部步骤的一种电子设备的具体实施方式,所述电子设备具体包括如下内容:处理器(processor)、存储器(memory)、通信接口(Communications Interface)和总线;其中,所述处理器、存储器、通信接口通过所述总线完成相互间的通信;所述处理器用于调用所述存储器中的计算机程序,所述处理器执行所述计算机程序时实现上述实施例中的云服务节点部署中的全部步骤,例如,所述处理器执行所述计算机程序时实现下述步骤:The embodiments of the present application also provide a specific implementation of an electronic device capable of implementing all the steps in the cloud service node deployment method in the above embodiments, wherein the electronic device specifically includes the following contents: a processor, a memory, a communication interface, and a bus; wherein the processor, the memory, and the communication interface communicate with each other through the bus; the processor is used to call a computer program in the memory, and when the processor executes the computer program, all the steps in the cloud service node deployment in the above embodiments are implemented. For example, when the processor executes the computer program, the following steps are implemented:
步骤1:获取用户的云服务实例购买请求;Step 1: Obtain the user's cloud service instance purchase request;
步骤2:响应于所述实例购买请求,获取用户指定的主可用区部署方式和备可用区部署方式,其中,主可用区部署方式和备可用区部署方式是用户分别指定的;Step 2: in response to the instance purchase request, obtaining a primary availability zone deployment mode and a backup availability zone deployment mode specified by the user, wherein the primary availability zone deployment mode and the backup availability zone deployment mode are respectively specified by the user;
步骤3:根据主可用区部署方式部署主节点,根据备可用区部署方式部署备节点。Step 3: Deploy the master node according to the deployment mode of the primary availability zone, and deploy the standby node according to the deployment mode of the standby availability zone.
或者,所述处理器执行所述计算机程序时实现下述步骤:Alternatively, the processor implements the following steps when executing the computer program:
步骤1:接收用户的云服务实例购买请求;Step 1: Receive a user's cloud service instance purchase request;
步骤2:响应于所述实例购买请求,显示可用区部署选定界面,其中,所述可用区部署选定界面包括:主可用区部署方式选定区域和备可用区部署方式选定区域;Step 2: In response to the instance purchase request, displaying an availability zone deployment selection interface, wherein the availability zone deployment selection interface includes: a primary availability zone deployment mode selection area and a backup availability zone deployment mode selection area;
步骤3:接收用户在主可用区部署方式区域的选定操作和用户在备可用区部署方式区域的选定操作,并将选定区域对应的选择项作为用户指定的主可用区部署方式和备可用区部署方式;Step 3: Receive the user's selected operation in the primary availability zone deployment mode area and the user's selected operation in the backup availability zone deployment mode area, and use the selected items corresponding to the selected areas as the primary availability zone deployment mode and the backup availability zone deployment mode specified by the user;
步骤4:将用户指定的主可用区部署方式和备可用区部署方式,携带在所述云服务实例购买请求中发送至云平台管理系统。Step 4: The primary availability zone deployment mode and the backup availability zone deployment mode specified by the user are carried in the cloud service instance purchase request and sent to the cloud platform management system.
从上述描述可知,本申请实施例在用户请求购买云服务实例的时候,主可用区部署方式和备可用区部署方式是用户分别指定的,而不是采用主备可用区组合的方式,通过这种方式解决了现有的主备可用区组合所导致的售卖成功率低、资源利用率低下的问题,达到了有效提升售卖成功率和资源利用率的技术效果。From the above description, it can be seen that in the embodiment of the present application, when a user requests to purchase a cloud service instance, the primary availability zone deployment mode and the backup availability zone deployment mode are specified by the user separately, rather than adopting a primary and backup availability zone combination. This method solves the problems of low sales success rate and low resource utilization caused by the existing primary and backup availability zone combination, and achieves the technical effect of effectively improving the sales success rate and resource utilization.
本申请的实施例还提供能够实现上述实施例中的云服务节点部署方法中全部步骤的一种计算机可读存储介质,所述计算机可读存储介质上存储有计算机程序,该计算机程序被处理器执行时实现上述实施例中的云服务节点部署方法的全部步骤,例如,所述处理器执行所述计算机程序时实现下述步骤:The embodiments of the present application also provide a computer-readable storage medium capable of implementing all the steps in the cloud service node deployment method in the above embodiments. The computer-readable storage medium stores a computer program. When the computer program is executed by a processor, all the steps in the cloud service node deployment method in the above embodiments are implemented. For example, when the processor executes the computer program, the following steps are implemented:
步骤1:获取用户的云服务实例购买请求;Step 1: Obtain the user's cloud service instance purchase request;
步骤2:响应于所述实例购买请求,获取用户指定的主可用区部署方式和备可用区部署方式,其中,主可用区部署方式和备可用区部署方式是用户分别指定的;Step 2: in response to the instance purchase request, obtaining a primary availability zone deployment mode and a backup availability zone deployment mode specified by the user, wherein the primary availability zone deployment mode and the backup availability zone deployment mode are respectively specified by the user;
步骤3:根据主可用区部署方式部署主节点,根据备可用区部署方式部署备节点。Step 3: Deploy the master node according to the deployment mode of the primary availability zone, and deploy the standby node according to the deployment mode of the standby availability zone.
或者,所述处理器执行所述计算机程序时实现下述步骤:Alternatively, the processor implements the following steps when executing the computer program:
步骤1:接收用户的云服务实例购买请求;Step 1: Receive a user's cloud service instance purchase request;
步骤2:响应于所述实例购买请求,显示可用区部署选定界面,其中,所述可用区部署选定界面包括:主可用区部署方式选定区域和备可用区部署方式选定区域;Step 2: In response to the instance purchase request, displaying an availability zone deployment selection interface, wherein the availability zone deployment selection interface includes: a primary availability zone deployment mode selection area and a backup availability zone deployment mode selection area;
步骤3:接收用户在主可用区部署方式区域的选定操作和用户在备可用区部署方式区域的选定操作,并将选定区域对应的选择项作为用户指定的主可用区部署方式和备可用区部署方式;Step 3: Receive the user's selected operation in the primary availability zone deployment mode area and the user's selected operation in the backup availability zone deployment mode area, and use the selected items corresponding to the selected areas as the primary availability zone deployment mode and the backup availability zone deployment mode specified by the user;
步骤4:将用户指定的主可用区部署方式和备可用区部署方式,携带在所述云服务实例购买请求中发送至云平台管理系统。Step 4: The primary availability zone deployment mode and the backup availability zone deployment mode specified by the user are carried in the cloud service instance purchase request and sent to the cloud platform management system.
从上述描述可知,本申请实施例在用户请求购买云服务实例的时候,主可用区部署方式和备可用区部署方式是用户分别指定的,而不是采用主备可用区组合的方式,通过这种方式解决了现有的主备可用区组合所导致的售卖成功率低、资源利用率低下的问题,达到了有效提升售卖成功率和资源利用率的技术效果。From the above description, it can be seen that in the embodiment of the present application, when a user requests to purchase a cloud service instance, the primary availability zone deployment mode and the backup availability zone deployment mode are specified by the user separately, rather than adopting a primary and backup availability zone combination. This method solves the problems of low sales success rate and low resource utilization caused by the existing primary and backup availability zone combination, and achieves the technical effect of effectively improving the sales success rate and resource utilization.
本说明书中的各个实施例均采用递进的方式描述,各个实施例之间相同相似的部分互相参见即可,每个实施例重点说明的都是与其他实施例的不同之处。尤其,对于硬件+程序类实施例而言,由于其基本相似于方法实施例,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the hardware + program embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
上述对本说明书特定实施例进行了描述。其它实施例在所附权利要求书的范围内。在一些情况下,在权利要求书中记载的动作或步骤可以按照不同于实施例中的顺序来执行并且仍然可以实现期望的结果。另外,在附图中描绘的过程不一定要求示出的特定顺序或者连续顺序才能实现期望的结果。在某些实施方式中,多任务处理和并行处理也是可以的或者可能是有利的。The above is a description of a specific embodiment of the present specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the accompanying drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
虽然本申请提供了如实施例或流程图所述的方法操作步骤,但基于常规或者无创造性的劳动可以包括更多或者更少的操作步骤。实施例中列举的步骤顺序仅仅为众多步骤执行顺序中的一种方式,不代表唯一的执行顺序。在实际中的装置或客户端产品执行时,可以按照实施例或者附图所示的方法顺序执行或者并行执行(例如并行处理器或者多线程处理的环境)。Although the present application provides method operation steps as described in the embodiments or flowcharts, more or fewer operation steps may be included based on conventional or non-creative labor. The order of steps listed in the embodiments is only one way of executing the order of many steps and does not represent the only execution order. When the actual device or client product is executed, it can be executed in the order of the method shown in the embodiments or the drawings or in parallel (for example, in a parallel processor or multi-threaded processing environment).
上述实施例阐明的系统、装置、模块或单元,具体可以由计算机芯片或实体实现,或者由具有某种功能的产品来实现。一种典型的实现设备为计算机。具体的,计算机例如可以为个人计算机、膝上型计算机、车载人机交互设备、蜂窝电话、相机电话、智能电话、个人数字助理、媒体播放器、导航设备、电子邮件设备、游戏控制台、平板计算机、可穿戴设备或者这些设备中的任何设备的组合。The systems, devices, modules or units described in the above embodiments may be implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a computer. Specifically, the computer may be, for example, a personal computer, a laptop computer, a vehicle-mounted human-computer interaction device, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.
虽然本说明书实施例提供了如实施例或流程图所述的方法操作步骤,但基于常规或者无创造性的手段可以包括更多或者更少的操作步骤。实施例中列举的步骤顺序仅仅为众多步骤执行顺序中的一种方式,不代表唯一的执行顺序。在实际中的装置或终端产品执行时,可以按照实施例或者附图所示的方法顺序执行或者并行执行(例如并行处理器或者多线程处理的环境,甚至为分布式数据处理环境)。术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、产品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、产品或者设备所固有的要素。在没有更多限制的情况下,并不排除在包括所述要素的过程、方法、产品或者设备中还存在另外的相同或等同要素。Although the present specification embodiment provides the method operation steps as described in the embodiment or flow chart, more or less operation steps may be included based on conventional or non-creative means. The order of steps listed in the embodiment is only one way of executing the order of many steps, and does not represent a unique execution order. When the device or terminal product in practice is executed, it can be executed in sequence or in parallel (such as a parallel processor or a multi-threaded processing environment, or even a distributed data processing environment) according to the method shown in the embodiment or the accompanying drawings. The term "include", "include" or any other variant thereof is intended to cover non-exclusive inclusion, so that the process, method, product or equipment including a series of elements not only includes those elements, but also includes other elements that are not clearly listed, or also includes elements inherent to such process, method, product or equipment. In the absence of more restrictions, it is not excluded that there are other identical or equivalent elements in the process, method, product or equipment including the elements.
为了描述的方便,描述以上装置时以功能分为各种模块分别描述。当然,在实施本说明书实施例时可以把各模块的功能在同一个或多个软件和/或硬件中实现,也可以将实现同一功能的模块由多个子模块或子单元的组合实现等。以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。For the convenience of description, the above devices are described in various modules according to their functions. Of course, when implementing the embodiments of this specification, the functions of each module can be implemented in the same or more software and/or hardware, or the module implementing the same function can be implemented by a combination of multiple sub-modules or sub-units. The device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
本领域技术人员也知道,除了以纯计算机可读程序代码方式实现控制器以外,完全可以通过将方法步骤进行逻辑编程来使得控制器以逻辑门、开关、专用集成电路、可编程逻辑控制器和嵌入微控制器等的形式来实现相同功能。因此这种控制器可以被认为是一种硬件部件,而对其内部包括的用于实现各种功能的装置也可以视为硬件部件内的结构。或者甚至,可以将用于实现各种功能的装置视为既可以是实现方法的软件模块又可以是硬件部件内的结构。Those skilled in the art also know that, in addition to implementing the controller in a purely computer-readable program code, the controller can be made to implement the same function in the form of logic gates, switches, application-specific integrated circuits, programmable logic controllers, and embedded microcontrollers by logically programming the method steps. Therefore, such a controller can be considered as a hardware component, and the devices for implementing various functions included therein can also be considered as structures within the hardware component. Or even, the devices for implementing various functions can be considered as both software modules for implementing the method and structures within the hardware component.
本发明是参照根据本发明实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present invention is described with reference to the flowchart and/or block diagram of the method, device (system), and computer program product according to the embodiment of the present invention. It should be understood that each process and/or box in the flowchart and/or block diagram, as well as the combination of the process and/or box in the flowchart and/or block diagram can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device produce a device for implementing the functions specified in one or more processes in the flowchart and/or one or more boxes in the block diagram.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing device to work in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including an instruction device that implements the functions specified in one or more processes in the flowchart and/or one or more boxes in the block diagram.
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions may also be loaded onto a computer or other programmable data processing device so that a series of operational steps are executed on the computer or other programmable device to produce a computer-implemented process, whereby the instructions executed on the computer or other programmable device provide steps for implementing the functions specified in one or more processes in the flowchart and/or one or more boxes in the block diagram.
在一个典型的配置中,计算设备包括一个或多个处理器(CPU)、输入/输出接口、网络接口和内存。In a typical configuration, a computing device includes one or more processors (CPU), input/output interfaces, network interfaces, and memory.
内存可能包括计算机可读介质中的非永久性存储器,随机存取存储器(RAM)和/或非易失性内存等形式,如只读存储器(ROM)或闪存(flash RAM)。内存是计算机可读介质的示例。The memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and/or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
计算机可读介质包括永久性和非永久性、可移动和非可移动媒体可以由任何方法或技术来实现信息存储。信息可以是计算机可读指令、数据结构、程序的模块或其他数据。计算机的存储介质的例子包括,但不限于相变内存(PRAM)、静态随机存取存储器(SRAM)、动态随机存取存储器(DRAM)、其他类型的随机存取存储器(RAM)、只读存储器(ROM)、电可擦除可编程只读存储器(EEPROM)、快闪记忆体或其他内存技术、只读光盘只读存储器(CD-ROM)、数字多功能光盘(DVD)或其他光学存储、磁盒式磁带,磁带磁磁盘存储或其他磁性存储设备或任何其他非传输介质,可用于存储可以被计算设备访问的信息。按照本文中的界定,计算机可读介质不包括暂存电脑可读媒体(transitory media),如调制的数据信号和载波。Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
本领域技术人员应明白,本说明书的实施例可提供为方法、系统或计算机程序产品。因此,本说明书实施例可采用完全硬件实施例、完全软件实施例或结合软件和硬件方面的实施例的形式。而且,本说明书实施例可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art will appreciate that the embodiments of this specification may be provided as methods, systems or computer program products. Therefore, the embodiments of this specification may take the form of a complete hardware embodiment, a complete software embodiment or an embodiment combining software and hardware. Moreover, the embodiments of this specification may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.
本说明书实施例可以在由计算机执行的计算机可执行指令的一般上下文中描述,例如程序模块。一般地,程序模块包括执行特定任务或实现特定抽象数据类型的例程、程序、对象、组件、数据结构等等。也可以在分布式计算环境中实践本说明书实施例,在这些分布式计算环境中,由通过通信网络而被连接的远程处理设备来执行任务。在分布式计算环境中,程序模块可以位于包括存储设备在内的本地和远程计算机存储介质中。The present specification embodiments may be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. The present specification embodiments may also be practiced in distributed computing environments where tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules may be located in local and remote computer storage media, including storage devices.
本说明书中的各个实施例均采用递进的方式描述,各个实施例之间相同相似的部分互相参见即可,每个实施例重点说明的都是与其他实施例的不同之处。尤其,对于系统实施例而言,由于其基本相似于方法实施例,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。在本说明书的描述中,参考术语“一个实施例”、“一些实施例”、“示例”、“具体示例”、或“一些示例”等的描述意指结合该实施例或示例描述的具体特征、结构、材料或者特点包含于本说明书实施例的至少一个实施例或示例中。在本说明书中,对上述术语的示意性表述不必须针对的是相同的实施例或示例。而且,描述的具体特征、结构、材料或者特点可以在任一个或多个实施例或示例中以合适的方式结合。此外,在不相互矛盾的情况下,本领域的技术人员可以将本说明书中描述的不同实施例或示例以及不同实施例或示例的特征进行结合和组合。Each embodiment in this specification is described in a progressive manner, and the same and similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment. In the description of this specification, the description of the reference terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the embodiment of this specification. In this specification, the schematic representation of the above terms does not necessarily target the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described can be combined in any one or more embodiments or examples in a suitable manner. In addition, in the absence of contradiction, a person skilled in the art can combine and combine the different embodiments or examples described in this specification and the features of different embodiments or examples.
以上所述仅为本说明书实施例的实施例而已,并不用于限制本说明书实施例。对于本领域技术人员来说,本说明书实施例可以有各种更改和变化。凡在本说明书实施例的精神和原理之内所作的任何修改、等同替换、改进等,均应包含在本说明书实施例的权利要求范围之内。The above is only an example of the embodiment of the present specification and is not intended to limit the embodiment of the present specification. For those skilled in the art, the embodiment of the present specification may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the embodiment of the present specification shall be included in the scope of the claims of the embodiment of the present specification.
Claims (13)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010737231.6A CN113301089B (en) | 2020-07-28 | 2020-07-28 | A cloud service node deployment method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010737231.6A CN113301089B (en) | 2020-07-28 | 2020-07-28 | A cloud service node deployment method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113301089A CN113301089A (en) | 2021-08-24 |
CN113301089B true CN113301089B (en) | 2024-08-02 |
Family
ID=77318188
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010737231.6A Active CN113301089B (en) | 2020-07-28 | 2020-07-28 | A cloud service node deployment method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113301089B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114356345A (en) * | 2021-12-31 | 2022-04-15 | 远光软件股份有限公司 | A solution deployment method, device, and computer-readable storage medium |
CN114826900B (en) * | 2022-04-22 | 2024-03-29 | 阿里巴巴(中国)有限公司 | Service deployment processing method and device for distributed cloud architecture |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7818615B2 (en) * | 2004-09-16 | 2010-10-19 | Invensys Systems, Inc. | Runtime failure management of redundantly deployed hosts of a supervisory process control data acquisition facility |
TW201328550A (en) * | 2011-12-16 | 2013-07-01 | Inventec Corp | Rack system and monitoring method for rack system |
CN107770086A (en) * | 2017-03-13 | 2018-03-06 | 平安科技(深圳)有限公司 | The method and device of load balancing based on Centralized Controller and DCI equipment |
CN109032760A (en) * | 2018-08-01 | 2018-12-18 | 北京百度网讯科技有限公司 | Method and apparatus for application deployment |
CN111158949A (en) * | 2018-11-07 | 2020-05-15 | 中国移动通信集团重庆有限公司 | Disaster-tolerant architecture configuration method, switching method, device, device, and storage medium |
-
2020
- 2020-07-28 CN CN202010737231.6A patent/CN113301089B/en active Active
Non-Patent Citations (1)
Title |
---|
云区域(region),可用区(AZ),跨区域数据复制(Cross-region replication)与灾备(Disaster Recovery)(部分2);疯狂的萝卜;《CSDN》;第1-2页 * |
Also Published As
Publication number | Publication date |
---|---|
CN113301089A (en) | 2021-08-24 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11182196B2 (en) | Unified resource management for containers and virtual machines | |
US11102284B2 (en) | Service processing methods and systems based on a consortium blockchain network | |
US10075387B1 (en) | Mobile server connection | |
CN110764963A (en) | Service exception handling method, device and equipment | |
CN113301089B (en) | A cloud service node deployment method and device | |
CN113553178A (en) | Task processing method, device and electronic device | |
CN113377652B (en) | Test data generation method and device | |
CN112202829A (en) | Social robot scheduling system and scheduling method based on micro-service | |
CN113032134A (en) | Method and device for realizing cloud computing resource allocation and cloud management server | |
CN119743484A (en) | A multi-heterogeneous storage cluster management method and storage medium | |
CN113467956B (en) | Node resource management method and device | |
CN115328608A (en) | Kubernetes container vertical expansion adjusting method and device | |
CN112486664A (en) | Node capacity expansion method, system, terminal and storage medium | |
CN114629958B (en) | Resource allocation method, device, electronic equipment and storage medium | |
CN110764690B (en) | Distributed storage system and leader node election method and device thereof | |
CN109117423B (en) | Table partition configuration method, device and system of database system | |
CN109257201B (en) | A kind of license sending method and device | |
CN118488069A (en) | A cloud phone hot start method and cloud phone management platform | |
CN113452767B (en) | Load balancing method and device applied to service cluster | |
HK40059126A (en) | Cloud service node deployment method and device | |
CN112418796B (en) | Sub-process task node activation method and device, electronic equipment and storage medium | |
CN114896637A (en) | Data processing method and device, electronic equipment and storage medium | |
CN120301863B (en) | Method for realizing automatic service discovery based on xxl-job transformation of service registration center | |
CN114500279B (en) | Plug-in configuration method and device | |
CN116501474B (en) | System, method and device for processing batch homogeneous tasks |
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 | ||
REG | Reference to a national code |
Ref country code: HK Ref legal event code: DE Ref document number: 40059126 Country of ref document: HK |
|
GR01 | Patent grant | ||
GR01 | Patent grant | ||
TR01 | Transfer of patent right |
Effective date of registration: 20250710 Address after: Room 1-2-A06, Yungu Park, No. 1008 Dengcai Street, Sandun Town, Xihu District, Hangzhou City, Zhejiang Province, 310024 Patentee after: Aliyun Computing Co.,Ltd. Country or region after: China Address before: Greater Cayman, British Cayman Islands Patentee before: ALIBABA GROUP HOLDING Ltd. Country or region before: Cayman Islands |
|
TR01 | Transfer of patent right |