Method, medium and system for constructing multi-base fault-tolerant continuous delivery of data center on cloud computing platform

By using independent declarative specifications to generate data centers on multiple cloud platforms, and leveraging the fault-tolerant architecture of primary and secondary control data centers, the interruption problem of software releases in public cloud environments is solved, and efficient and reliable software deployment and fault tolerance are achieved. .

CN117120984BActive Publication Date: 2024-10-29SALESFORCE INC
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202280016223.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-01-28
Publication Date
2024-10-29
Estimated Expiration
2042-01-28

AI Technical Summary

Technical Problem

Existing continuous delivery technologies are difficult to effectively handle infrastructure failures in public cloud environments, resulting in service interruptions, and traditional technologies are insufficient to deploy software artifacts in multi-tenant systems and cannot ensure non-disruptive software release and fault tolerance.

Method used

Use declarative specifications that are independent of cloud platforms to generate data centers on multiple cloud platforms, and ensure non-disruptive and fault-tolerant software releases through the fault-tolerant architecture of the main control data center and auxiliary control data centers, using declarative specifications based on The pipeline manages the deployment and rollback of software artifacts.

Benefits of technology

It achieves interruption-free software release and fault-tolerant deployment in multi-tenant systems, reduces the risk of service interruption, and improves the efficiency and reliability of software release management on the cloud platform.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117120984B_ABST
    Figure CN117120984B_ABST
Patent Text Reader

Abstract

A computing system, e.g., a multi-tenant system, deploys software artifacts in data centers created in a cloud platform using a cloud platform infrastructure language that is independent of the cloud platform. The system uses a control data center having a service set group for configuring other data centers, e.g., for performing continuous delivery of software artifacts to other data centers. The system uses a primary control data center and a secondary control data center. The primary control data center configures infrastructure of tenant data centers, e.g., by configuring computing resources in the cloud platform for the tenant data centers according to a declarative specification of the tenant data centers. The secondary control data center efficiently controls the process of configuring the tenant data centers, e.g., if the primary control data center fails.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The disclosed text generally relates to continuous delivery of released software in a cloud computing platform, and in particular, to a method, medium and system for multi-base fault-tolerant continuous delivery of a data center built on a cloud computing platform. Background Art

[0002] Organizations are increasingly responding on cloud platforms (or cloud computing platforms) such as AWS (Amazon Web Services), Google Cloud Platform, Microsoft AZURE, etc. to meet their infrastructure needs. Cloud platforms provide servers, storage, databases, networks, software, etc. to organizations over the Internet. Typically, organizations maintain data centers that contain the hardware and software used by the organization. However, maintaining a data center can lead to a lot of overhead in terms of maintenance, personnel, etc. Therefore, organizations are moving their data centers to cloud platforms to provide scalability and elasticity of computing resources.

[0003] Organizations maintain computing infrastructure on cloud platforms using continuous delivery platforms that can manage and deploy applications on cloud platforms. Such continuous delivery platforms allow organizations to simplify the software deployment process and manage applications, firewalls, clusters, servers, load balancers, and other computing infrastructure on cloud platforms. However, deploying software releases for services provided on cloud platforms using continuous delivery platforms can be complex. For example, different versions of software may have to be deployed on different services running on different cloud computing resources. In addition, each cloud platform uses different tools to manage resources.

[0004] Large systems such as multi-tenant systems may manage services for a large number of organizations representing tenants of the multi-tenant system and may interact with multiple cloud platforms. Furthermore, maintaining services for multiple tenants requires enforcing boundaries in the cloud platform across the data and applications of different tenants. Systems that maintain services on cloud platforms also need to ensure that continuous delivery of any new releases is performed without interruption. If the system is a multi-tenant system, a failure in the infrastructure used to perform continuous delivery of software artifacts may limit the ability to manage all services running for all tenants. Such a failure will interrupt the installation of new features as well as any fixes due to defects or failures in existing services. Traditional systems that cannot effectively handle such infrastructure failures may result in prolonged interruptions of services. Traditional techniques for continuous delivery are suitable for traditional data centers managed and operated by a single organization. Continuous delivery on public cloud environments involves several additional considerations such as the possibility of unauthorized data access, shared resources, lack of direct control of computing resources by the organization, etc. Traditional techniques for continuous delivery are not sufficient for deploying software artifacts on public cloud environments. BRIEF DESCRIPTION OF THE DRAWINGS

[0005] Figure 1is a block diagram illustrating a system environment for configuring a multi-tenant system of a data center on a cloud platform according to an embodiment.

[0006] Figure 2A is a block diagram illustrating the system architecture of the deployment module 210 according to an embodiment.

[0007] Figure 2B An overall process for deploying software artifacts in a data center is shown, according to an embodiment.

[0008] Figure 3 is a block diagram illustrating the architecture of a software release management module according to one embodiment.

[0009] Figure 4 An example of a data center declarative specification is shown according to one embodiment.

[0010] Figure 5 An exemplary data center created on a cloud platform based on a declarative specification according to one embodiment is shown.

[0011] Figure 6 is a block diagram illustrating generation of a data center on a cloud platform based on a declarative specification according to one embodiment.

[0012] Figure 7 An overall process for generating a pipeline for deploying software artifacts on a data center configured on a cloud platform according to an embodiment is shown.

[0013] Figure 8 An exemplary main waterline according to an embodiment is shown.

[0014] Fig. 9 The overall process of stage execution of the environment of the mainstream pipeline on the cloud platform according to the implementation scheme is shown.

[0015] Fig.10 An exemplary main waterline according to an embodiment is shown.

[0016] Fig.11 An overall process for deploying software artifacts on a data center configured on a cloud platform according to an embodiment is shown.

[0017] Fig.12 is a block diagram illustrating the architecture of a fault-tolerant continuous delivery module according to one embodiment.

[0018] Fig.13 is a block diagram illustrating the architecture of a control data center according to one embodiment.

[0019] Fig.14A and 14BAn architecture of a fault-tolerant architecture of a control data center for continuous delivery of software artifacts to a data center configured in a cloud platform is shown according to one embodiment.

[0020] Fig.15 A process for configuring a data center on a cloud platform using the fault-tolerant architecture for controlling a data center shown in FIG. 14 according to an implementation scheme is shown.

[0021] Fig.16 A process for handling a failure in a primary control data center, according to an embodiment, is shown.

[0022] Fig.17 is a diagram showing a method according to one embodiment of the present invention. Figure 1 A block diagram of a functional view of a common computer system used in an environment.

[0023] These figures depict various embodiments for purposes of illustration only. Those skilled in the art will readily recognize from the following discussion that alternative embodiments of the structures and methods shown herein may be employed without departing from the principles of the embodiments described herein.

[0024] The figures use similar reference numbers to identify similar elements. A letter following a reference number, such as "115a," indicates that the text refers specifically to the element with that particular reference number. A reference number in the text without a following letter, such as "115," refers to any or all elements in the figures with that reference number. DETAILED DESCRIPTION

[0025] Cloud platforms provide computing resources such as storage, computing resources, applications, etc. to computing systems on demand via public networks such as the Internet. Cloud platforms allow enterprises to minimize the upfront costs of setting up computing infrastructure, and also allow enterprises to start and run applications faster with less maintenance overhead. Cloud platforms also allow enterprises to adjust computing resources to adapt to rapidly fluctuating and unpredictable demands. Enterprises can use cloud platforms to create data centers for use by the enterprise's users. However, implementing a data center on each cloud platform requires expertise in cloud platform technology.

[0026] The implementation scheme uses a cloud platform-independent cloud platform infrastructure language to create a data center in a cloud platform. The system receives a cloud platform-independent declarative specification of a data center. The declarative specification describes the structure of the data center and may not provide instructions for specifying how to create the data center. The cloud platform-independent declarative specification is configured to generate a data center on any one of a plurality of cloud platforms and is specified using a cloud platform infrastructure language. The system receives information identifying a target cloud platform for creating a data center and compiles the cloud platform-independent declarative specification to generate a cloud platform-specific data center representation. The system sends a cloud platform-specific data center representation and an instruction set for execution on a target cloud platform. The target cloud platform executes instructions for configuring the data center using the platform-specific data center representation. The system provides users with access to data center computing resources configured by the cloud platform.

[0027] In one embodiment, the system performs operations related to a software release on a data center configured on a cloud platform, such as deploying a software release, providing resources, performing a rollback of a software release, etc. The system accesses a data center configured on a target cloud platform. The data center is generated based on a declarative specification independent of the cloud platform, the specification including a hierarchy of data center entities. Each data center entity includes one or more of (1) a service or (2) one or more other data center entities. The system generates a main pipeline independent of the cloud platform, the main pipeline including: (1) a sequence of stages for deploying software artifacts, such as a development stage, a test stage, and a production stage; and (2) standards for advancing software artifacts from one stage to a subsequent stage in the sequence of stages. The system compiles the main pipeline independent of the cloud platform based on the data center layout defined by the declarative specification to generate a cloud platform-dependent detailed pipeline for the target cloud platform, and instructions for performing operations related to the service. The system executes the cloud platform-dependent detailed pipeline on the target cloud platform, such as deploying a software release on the data center entity of the data center.

[0028] In one embodiment, the system receives an artifact version mapping independent of the cloud platform, and the artifact version mapping associates the data center entity of the data center with the version of the software artifact targeted for deployment on the data center entity. Each software artifact includes an executable instruction associated with a service configured for execution on one or more cloud platforms. The system generates a cloud platform-specific mainstream pipeline for the target cloud platform based on the artifact version mapping independent of the cloud platform. The cloud platform-specific mainstream pipeline includes instructions for performing operations such as building and deploying appropriate versions of deployment artifacts for services on the data center entity according to the version mapping independent of the cloud platform. The system transmits the deployment pipeline specific to the cloud platform to the target cloud platform for execution. Artifact version mapping and mainstream pipeline can be used to perform various actions related to services, including deploying services, destroying services, providing service resources, destroying service resources, etc.

[0029] In one embodiment, the system performs fault-tolerant continuous delivery of a data center built on a cloud platform. The data center build can configure a data center, services or service groups within the configured data center, deploy software artifacts associated with services in the data center, etc. The data center build can be associated with a change set (e.g., a code change or configuration change associated with a data center or a service running on the data center). The data center is configured on a cloud platform. The system uses a control data center with a specific service set group for configuring other data centers, such as a tenant data center created for use by a specific tenant. The control data center is also used to perform continuous delivery of software artifacts for the tenant data center. The system includes a fault-tolerant architecture for controlling data centers. Therefore, the system uses a primary control data center and a secondary control data center. Any request related to the continuous delivery of software artifacts is directed to the primary control data center. The primary control data center configures the infrastructure of the tenant data center, for example, by configuring computing resources in the cloud platform for the tenant data center according to the declarative specification of the tenant data center. The primary control data center transmits information describing the state of the configured infrastructure to the secondary control data center, which indicates the infrastructure that has been configured for the tenant data center so far. The information describing the state of the configured infrastructure allows the secondary control data center to effectively restore control of the process of configuring the tenant data center at any point in time, for example, if the primary control data center fails. If the secondary control data center controls the configuration process of the tenant data center, the secondary control data center starts transferring information describing the state of the configured infrastructure to the secondary control data center, thereby reversing the roles of the primary control data center and the secondary control data center.

[0030] The cloud platform is also referred to herein as the base layer. The declarative specification of the data center is base layer independent or base layer independent. The system can represent a multi-tenant system, but is not limited to a multi-tenant system, and can be any online system or any computing system with network access to the cloud platform.

[0031] System environment

[0032] Figure 1 1 is a block diagram showing a system environment for configuring a multi-tenant system of a data center on a cloud platform according to an embodiment. The system environment 100 includes a multi-tenant system 110, one or more cloud platforms 120, and one or more client devices 105. In other embodiments, the system environment 100 may include more or fewer components.

[0033] The multi-tenant system 110 stores information for one or more tenants 115. Each tenant may be associated with an enterprise representing a customer of the multi-tenant system 110. Each tenant may have multiple users that interact with the multi-tenant system via client devices 105.

[0034] A cloud platform may also be referred to as a cloud computing platform or a public cloud environment. Tenants may use a cloud platform infrastructure language to provide declarative specifications for a data center created on a target cloud platform 120, and use the data center to perform operations, such as providing resources, executing software releases, and the like. Tenants 115 may create one or more data centers on a cloud platform 120. A data center represents a set of computing resources, which includes servers, applications, storage, memory, and the like that can be used by a user (e.g., a user associated with a tenant). Each tenant may provide different functions to the tenant's users. Therefore, each tenant may perform different services on a data center configured for the tenant. A multi-tenant system may implement different software release and deployment mechanisms for each tenant. Tenants may further obtain or develop software versions including instructions for various services executed in a data center. The implementation scheme allows tenants to deploy specific versions of software releases for different services running on different computing resources in a data center.

[0035] The computing resources of the data center are secure and may not be accessible to users who are not authorized to access them. For example, data center 125a created for users of tenant 115a may not be accessed by users of tenant 115b unless access is explicitly authorized. Similarly, data center 125b created for users of tenant 115b may not be accessed by users of tenant 115a unless access is explicitly authorized. In addition, services provided by the data center may be accessed by computing systems outside the data center only if access is authorized to the computing system according to the declarative specification of the data center. The system uses multiple security layers to identify and authorize users to access these resources.

[0036] For a multi-tenant system 110, data for multiple tenants may be stored in the same physical database. However, the database is configured so that the data of one tenant is logically separated from the data of other tenants, so that one tenant cannot access the data of another tenant unless such data is explicitly shared. Their data may be stored in a table shared with other customers' data, which is transparent to the tenants. A database table may store rows for multiple tenants. Therefore, in a multi-tenant system, various elements of the hardware and software of the system may be shared by one or more tenants. For example, a multi-tenant system 110 may execute an application server that processes requests for multiple tenants simultaneously. However, a multi-tenant system enforces tenant-level data isolation to ensure that a tenant's job does not access the data of other tenants.

[0037] Examples of cloud platforms include AWS (Amazon Web Services), Google Cloud Platform, or Microsoft AZURE. Cloud platform 120 provides computing infrastructure services that can be used on demand by tenants 115 or any computing system outside of cloud platform 120. Examples of computing infrastructure services provided by cloud platforms include servers, storage, databases, networks, security, load balancing, software, analysis, intelligence, and other infrastructure service functions. Tenants 115 can use these infrastructure services to build, deploy, and manage applications in a scalable and secure manner.

[0038] The multi-tenant system 110 may include a tenant data store that stores data for various tenants of the multi-tenant storage. The tenant data store may store data for different tenants in separate physical structures, such as separate database tables or separate databases. Alternatively, the tenant data store may store data for multiple tenants in a shared structure. For example, user accounts for all tenants may share the same database table. However, the multi-tenant system stores additional information to logically separate data for different tenants.

[0039] Figure 1 Each component shown in the figure represents one or more computing devices. For example, a computing device may be a computer that executes Microsoft TM Windows TM Compatible operating system (OS), Apple TM A conventional computer system running OS X and / or Linux distribution. The computing device may also be a client device with computer functionality, such as a personal digital assistant (PDA), a mobile phone, a video game system, etc. Each computing device stores a software module, which stores instructions.

[0040] The interactions between the various components of the system environment 100 are usually carried out via a network ( Figure 1In one embodiment, the network uses standard communication technologies and / or protocols. In another embodiment, the entity may use custom and / or dedicated data communication technologies to replace or supplement the above technologies.

[0041] Although the technology disclosed herein is described in the context of a multi-tenant system, other systems that may not be multi-tenant systems can be used to implement these technologies. For example, an online system used by a single organization or enterprise can use the technology disclosed herein to create one or more data centers on one or more cloud platforms 120.

[0042] System Architecture

[0043] The multi-tenant system 110 includes a deployment module for deploying software artifacts on a cloud platform. The deployment module can perform various operations associated with software releases, such as providing resources on the cloud platform, deploying software releases, performing rollbacks of software artifacts installed on data center entities, etc. FIG. 2 is a block diagram illustrating a system architecture of a deployment module 210 according to an embodiment. The deployment module 210 includes a data center generation module 220 and a software release management module 230. Other embodiments may have different components and / or other components than those described herein, and functionality may be distributed between components in different ways.

[0044] The data center generation module 220 includes instructions for creating a data center on the cloud platform. The software release management module 230 includes instructions for deploying software releases for various services or applications running on the data center created by the data center generation module 220 .

[0045] The data center generation module 220 receives a cloud-independent declarative specification of a data center from a user (e.g., a user of a tenant). The cloud-independent declarative specification of the data center specifies various entities of the data center. In one embodiment, the cloud-independent declarative specification of the data center includes a hierarchical organization of data center entities, where each data center entity may include one or more services, one or more other data center entities, or a combination of both. Figure 4 The various types of data center entities are described in more detail. The data center generation module 220 receives the platform-independent declarative specification and the target cloud platform as input and generates a cloud platform-specific metadata representation for the target cloud platform. The data center generation module 220 deploys the generated cloud platform-specific metadata representation on the target cloud platform to create a data center on the target cloud platform according to the declarative specification.

[0046] The software release management module 230 receives as input (1) an artifact version map 225 and (2) a main pipeline 235. The artifact version map 225 identifies a specific version of a software release or deployment artifact targeted for deployment on a specific data center entity. The artifact version map 225 maps the data center entity to a software release version targeted for deployment on the data center entity. The main pipeline 235 includes instructions for operations related to software releases on the data center, such as deploying services, destroying services, providing service resources, destroying service resources, and the like.

[0047] The main pipeline 235 may include instructions for performing operations related to software releases in different environments (such as a development environment, a test environment, a canary environment, and a production environment), as well as instructions for determining when to advance a software release from one environment to another. For example, if the deployment execution of a software release in a development environment exceeds a threshold number of test cases, the software release is advanced to the test environment for further testing, such as system-level and integration testing. If the software release in the test environment passes the threshold of test coverage, the software release is advanced to the canary environment, in which the software release is provided to a small number of users on a trial basis. If the software release in the canary environment executes without error within a threshold time, the software release is advanced to the production environment, in which the software release is provided to all users.

[0048] The software release management module 230 compiles the input artifact version mapping 225 and the main pipeline 235 to generate a cloud platform-specific detailed pipeline 255 that is transmitted to the target cloud platform. The cloud platform-specific detailed pipeline 255 includes instructions for deploying a software release or an appropriate version of a deployment artifact on a data center entity, as specified in the artifact version mapping 225. The software release management module 230 can receive a modification to one of the inputs. For example, a user can modify the input artifact version mapping 225 and provide the same main pipeline 235. Thus, the same main pipeline is used, but a different software release is deployed on the data center entity. The software release management module 230 recompiles the input to generate a new cloud platform-specific detailed pipeline 255 that deploys a version of the software release according to the new artifact version mapping 225.

[0049] Artifact version mapping can also be called deployment manifest, version manifest, software release mapping or software artifact version mapping. The main pipeline can also be called the main deployment pipeline or the main orchestration pipeline.

[0050] Figure 2B An overall process for deploying software artifacts in a data center is shown, according to an embodiment. Figure 2B The layout of a data center 265 including various data center entities is shown. Figure 2B As shown in , artifact version mapping 225 identifies different versions of software targeted for release on different data center entities 275 of data center 265. The main pipeline represents the flow of deployment artifacts through various environments of the data center. Software release management module 230 combines the information in the main pipeline 235 with the artifact version mapping 225 to determine a cloud platform specific detailed pipeline 255 that maps the appropriate versions of software artifacts on the data center entities according to the artifact version mapping 225.

[0051] Figure 3 2 is a block diagram showing the architecture of the software release management module 230 according to one embodiment. The software release management module 230 includes a parsing module 310, a pipeline generator module 320, an artifact version mapping storage 330, a pipeline storage 340, a fault-tolerant continuous delivery module 350, and a pipeline execution engine 360. Other embodiments may include more Figure 3 The modules indicated herein may be more, fewer, or different modules.

[0052] The parsing module 310 parses various types of user input, including the declarative specification of the data center, the artifact version map 225, and the main pipeline 235. The parsing module 310 generates a data structure and metadata representation of the processed input, and provides the generated data structure and metadata representation to other modules of the software release management module 230 for further processing.

[0053] Metadata storage 340 stores various transformed metadata representations of the data center generated by software release management module 230. If a problem is encountered in the current version of the data center, the transformed metadata representation can be used to perform a rollback to the previous version. The transformed metadata representation can be used for verification, auditing, governance, etc. at various stages of the transformation process.

[0054] The pipeline generator module 320 processes the main pipeline in conjunction with the artifact version mapping received as input to generate a detailed pipeline for the target cloud platform. The pipeline includes a stage that includes instructions for providing services or deploying applications to deploy software releases for various services on the cloud platform according to the artifact version mapping. The artifact version mapping storage 330 stores the artifact version mapping received from the user, and the pipeline storage 340 stores the main pipeline and the pipeline generated by the pipeline generator module 320.

[0055] The fault-tolerant continuous delivery module 350 manages the continuous delivery of software artifacts to data centers configured in the cloud platform in a fault-tolerant manner. Details of the fault-tolerant continuous delivery module 350 are described in Fig.12 Further shown in, and combined with Fig.12 Give a description.

[0056] The pipeline execution engine 360 ​​executes the detailed pipeline generated by the pipeline generator module 320. In one embodiment, the pipeline execution engine 360 ​​is a system such as SPINNAKER that executes pipelines for publishing / deploying software. The pipeline execution engine 360 ​​parses the pipeline and executes each stage of the pipeline on the target cloud computing platform.

[0057] Data center generation based on cloud platform

[0058] Figure 4 An example of a declarative specification of a data center according to one embodiment is shown. The declarative specification 410 includes multiple data center entities. A data center entity is an instance of a data center entity type, and each data center entity type can have multiple instances. Examples of data center entities include data centers, service groups, services, teams, environments, and profiles.

[0059] The declarative specification 410 includes definitions of various types of data center entities, including service groups, services, teams, environments, and profiles. The declarative specification includes one or more instances of a data center. The following is a description of various types of data center entities and their embodiments. These embodiments are illustrative and show some properties of the data center entities. Other embodiments may include different properties, and properties with the same functionality may be given names different from those indicated herein. In one embodiment, the declarative specification is specified using hierarchical objects (e.g., JSON (Javascript Object Notation)) that conform to a predefined profile.

[0060] According to one embodiment, a service group 520 represents a set of capabilities, features, and services provided by one or more computing systems that can be independently built and delivered. A service group may also be referred to as a logical service group, a functional unit, or a bounded context. A service group 520 may also be viewed as a set of services that are cohesive technical use case functional sets provided by one or more computing systems. A service group 520 enforces security boundaries. A service group 520 defines the scope of a modification. Thus, any modification to an entity, such as a capability, feature, or service provided by one or more computing systems within a service group 520, may be propagated as needed or appropriate to an entity within the service group, but not to an entity residing outside the bounded definition of the service group 520. A data center may include multiple service groups 520. A service group definition specifies attributes, including a name, description, identifier, profile version, and service set instance. An embodiment of a service group is a blockchain service group, which includes a set of services for providing blockchain functionality. Similarly, a security service group provides security features. A user interface service group provides functionality for specific user interface features. A shared document service group provides functionality for sharing documents across users. Similarly, there may be several other service groups.

[0061] Service groups support the reusability of specifications so that tenants or users interested in developing data centers have a library of service groups that they can use at any time. The boundaries of services around service groups are based on security issues and network issues, etc. Service groups are associated with protocols for performing interactions with service groups. In one embodiment, service groups provide APIs (application programming interfaces) and a collection of services that implement these APIs. In addition, service groups are independent of the base layer. Service groups provide a blast radius for services within the service group so that the impact of any service failure within the service group is limited to the services within the service group, and the impact outside the service group is minimal.

[0062] The following is an embodiment of the specification of a service group. A service group specifies various attributes representing metadata of the service group and includes a set of services within the service group. There may be other types of metadata specified for a service group that are not indicated herein.

[0063]

[0064]

[0065]

[0066] As shown in the above embodiments, a service group can specify a set of clusters. A cluster represents a set of computing nodes, for example, a set of servers, a set of virtual machines, or a set of containers (such as Kubernetes containers). A physical server can run multiple containers, each of which has its own file system, CPU, memory, processing space, etc. shared.

[0067] A service group specifies a set of services. A service group can specify a cluster for a service, such that a cluster of compute nodes is run in a data center deployed on a cloud platform, and if included in a declarative specification, services are mapped to clusters based on a specified mapping. For example, in the service group embodiment shown above, the service instance "service instance 0002" is specified to run on cluster instance cluster 1.

[0068] Service groups can specify security groups, each of which specifies a set of services that are allowed to interact with each other. Services outside the security group require additional authentication to communicate with services within the security group. Alternatively, services within the security group interact with each other using one protocol, while services outside the security group use a different protocol, which requires enhanced authentication to interact with services within the security group. Thus, security groups specify policies that determine how services interact with each other. Security policies can specify one or more environments to which the security policy applies. For example, a security policy "Policy 1" can apply to a specific environment "Environment 1" (e.g., a production environment), and another security policy "Policy 2" can apply to another environment "Environment 2" (e.g., a development environment). Security policies can be specified for service group types or for specific service types.

[0069] In one embodiment, the security policy specifies expressions for filtering service groups based on various attributes, such that the security policy applies to the filtered set of service groups. For example, the security policy may specify a list of IP (Internet Protocol) addresses that are whitelisted for the set of service groups identified by the filtered set, and thus allow these computing systems to access the service group or a specific set of services within the service group.

[0070] In one embodiment, a security policy may specify a source service set and a destination service set for a service group. The source service of a particular service specifies services outside the security group that are allowed to connect to the particular service. The target service of a particular service specifies services outside the security group that the particular service needs to connect to. During provisioning and deployment, the data center generation module generates instructions for the cloud platform that use cloud platform-specific features and network functions to implement a specific network policy, so that the network policy implements the security policy specified in the declarative specification.

[0071] A data center entity, called a cell, represents a set of services that interact with each other in a vertical manner and can be extended by additional instances or copies of the cell (i.e., copies of the service set). Creating multiple instances of a cell allows the system to expand the set of services that interact with each other. A data center instance can include one or more cells. Each cell can include one or more services. A data center can include instances of a service group or cell.

[0072] The service definition specifies metadata for a service type (e.g., a database service, a load balancer service, etc.). The metadata describes various properties of the service, including the name of the service, a description of the service, the location of the service's documentation, any sub-services associated with the service, the owner of the service, the team associated with the service, build dependencies of services that specify other services that the service depends on when built, startup dependencies of services that specify other services that should run when this particular service starts, authorized clients, the DNS (Domain Name Server) name associated with the service, the service status, the support level for the service, and so on. The service definition specifies a listening port property that specifies the ports that the service can listen on for different communication protocols, for example, a service can listen on port p1 for the UDP protocol and port p2 for the TCP protocol. Other services within the data center can interact with the service via the ports specified by the service.

[0073] The service definition specifies the attribute Outbound Access, which specifies the target endpoint, for example, the external URL (Uniform Resource Locator) that the specified service needs to access to the specified external URL. During deployment, the data center generation module ensures that the cloud platform implements the access policy to provide requested access to the external URL for instances of this service type.

[0074] An outbound access specification may identify one or more environment types for a service to which the outbound access applies. For example, outbound access for endpoint set S1 may apply to a particular environment "environment 1" (e.g., a production environment), and outbound access for endpoint set S2 may apply to another environment "environment 2" (e.g., a development environment).

[0075] The following is an example of a service definition.

[0076]

[0077]

[0078] The team definition 450 includes the names of the team members and other attributes of the team, such as name, email, communication channel, etc. The following is an embodiment of a team definition. A service can be associated with one or more teams responsible for making modifications to the service. Therefore, any modifications made to the service are approved by the team. After being deployed to the cloud platform, a service can be associated with a team responsible for maintaining the service. A team can be associated with a service group and, accordingly, with all services of the service group. For example, a team approves any changes to a service group, such as a service that is part of a service group. A team can be associated with a data center and, accordingly, with all service groups within the data center. The team association specified at the data center level provides a default team for all service groups within the data center, and further provides a default team for all services within the service group.

[0079] According to one embodiment, team associations specified at the functional level override team associations provided at the data center level. Similarly, team associations specified at the service level override default values ​​that may have been provided for team associations specified at the service group level or the data center level. A team can decide how to take certain actions for a data center entity associated with the team. The team association also determines the number of accounts created on the cloud platform for the compiler to generate the final metadata representation of the data center for the cloud platform and for provisioning and deploying the data center on the cloud platform. The data center generation module 220 creates one or more user accounts in the cloud platform and provides access to the user accounts to team members. Thus, team members are allowed to perform specific actions associated with the data center entity associated with the team, such as making or approving structural changes to the data center entity or maintaining the data center entity when the data center entity is deployed, including debugging and testing issues that can be identified for the data center entity.

[0080] Traditional techniques associate the same team with the data center throughout the design process, resulting in organizational structure influencing the design of a data center or service group. The implementation separates team definition from defining the constructs of data center entities, reducing the team's influence on the design and architecture of data center entities.

[0081]

[0082] The environment definition 460 specifies the type of system environment represented by the data center, for example, a development environment, a trial environment, a test environment, or a production environment. The summary definition 470 refers to a summary of the syntax for specifying a specific data center entity definition. The summary definition 470 is used to verify various data center entity definitions. The data center generation module determines the security policy of the data center in the metadata representation specific to the cloud platform based on the environment. For example, a specific set of security policies may apply to the environment "environment 1", and a different set of security policies may apply to the environment "environment 2". For example, compared to the development environment, the security policy provides more restricted access in the production environment. The security policy may specify the length of time that a security token is allowed to exist for a specific purpose. For example, a long access token (e.g., a week-long access token) may be allowed in a development environment, but the lifespan of the access token used in the production environment is much smaller (e.g., a few hours). An access token may allow a user or service to access specific cloud platform resources.

[0083] The data center definition 420 specifies the properties and components of a data center instance. A declarative specification can specify multiple data center instances. The data center definition 420 specifies properties including a name, description, environment type, set of service groups, team, domain name servers for the data center, etc. The data center definition can specify a profile definition, and any metadata representation generated from the data center definition is validated against the specified profile definition. A data center includes a core set of services and capabilities that enable other services to function within the data center. Instances of a data center are deployed in a specific cloud platform and can be associated with a specific environment type, such as development, test, staging, production, and so on.

[0084] The following is a definition of a datacenter instance. A datacenter instance definition includes a list of service groups included in the datacenter instance and other properties, including the environment of the datacenter, a datacenter identifier, a name, a region representing a geographic area, one or more teams associated with the datacenter, and a profile version.

[0085] {

[0086] "Datacenter_Instance":{

[0087] "Environment":"Environment 1",

[0088] "Datacenter_Instance_Identifier":"id1",

[0089] "Name":"Data_Center1",

[0090] "Region":"Region 1",

[0091] "service_group":[

[0092] "Service_Group1",

[0093] "Service_Group2",

[0094] "Service_Group3",

[0095] "Service_Group4",

[0096]

[0097] Figure 5 2 shows some exemplary data centers created on a cloud platform based on declarative specifications according to one embodiment. A data center 510 may be created based on a declarative specification processed by a data center generation module 220. Figure 5As shown in , multiple data centers can be configured within the cloud platform 120. Each data center 510 can correspond to a tenant 115 of the multi-tenant system 110. Tenant 115 can create one or more data centers 510. Alternatively, data center 510 can be created by any computing system. Each data center includes one or more service groups. For example, data center 510a includes service groups 520a and 520b, and data center 510b includes service group 520c. A data center may include multiple instances of a service group of a particular type. Each service group includes a service set. For example, service group 520a includes services 530a and 530b, service group 520b includes services 530a, 530b, and 530c, and service group 520c includes services 530e, 530f, and 530g. A service group may include multiple instances of services of the same service type.

[0098] The data center generation module 220 creates a data center on a cloud platform based on a declarative specification using the following steps. The data center generation module 220 receives a cloud platform-independent declarative specification of a data center. The cloud platform-independent declarative specification can be used for tenants of a multi-tenant system or for any other computing system, such as an online system. The cloud platform-independent declarative specification is specified using a cloud platform infrastructure language. The cloud platform-independent declarative specification of a data center is configured to generate a data center on any one of a plurality of cloud platforms.

[0099] The data center generation module 220 receives information identifying a target cloud platform for creating a data center based on a declarative specification that is independent of a cloud platform. The target cloud platform can be any one of a plurality of cloud platforms, for example, AWS, AZURE, GCP, etc. The data center generation module 220 further receives information for connecting to the target cloud platform, for example, credentials for creating a connection to the target cloud platform. A cloud platform may also be referred to as a cloud computing platform.

[0100] The data center generation module 220 compiles the cloud platform-independent declarative specification to generate a cloud platform-specific data center representation for creating a data center on a target cloud computing platform. For example, the cloud platform-specific data center representation may refer to a user account, network address, etc. that is specific to the target cloud computing platform.

[0101] The data center generation module 220 sends a platform-specific data center representation and instructions for deploying the data center on the target cloud computing platform. The target cloud computing platform executes the instructions to configure the computing resources of the target cloud computing platform to generate a data center according to the platform-specific data center representation. The data center generation module 220 provides users with access to the computing resources of the data center configured by the cloud computing platform. For example, if the data center is created for a tenant of a multi-tenant system, users associated with the tenant are provided access to the data center.

[0102] Figure 6 is a block diagram illustrating the generation of a data center on a cloud platform based on a declarative specification according to one embodiment. The data center generation module 220 receives a cloud platform-independent declarative specification 610 as input. The cloud platform-independent declarative specification 610 may be a version of the declarative specification modified incrementally by a user. The data center generation module 220 processes a specific version of the cloud platform-independent declarative specification 610. Since the cloud platform-independent declarative specification 610 is not specified for any specific target cloud platform, the data center generation module 220 can configure a data center on any target cloud platform based on the cloud platform-independent declarative specification 610.

[0103] The data center generation module 220 processes the cloud-independent declarative specification 610 to generate a detailed cloud-independent metadata representation 620 for a data center. The detailed cloud-independent metadata representation 620 defines the details of each instance of a data center entity specified in the cloud-independent declarative specification 610. The data center generation module 220 creates a unique identifier for a data center entity instance (e.g., a service instance).

[0104] In one embodiment, the cloud-independent detailed metadata representation 620 includes an array of instances of a data center entity type, for example, an array of service group instances of a particular service group type. Each service group instance includes an array of service instances. A service instance may also include details of a team of users that are allowed to perform certain actions associated with the service instance. The data center generation module 220 uses the details of the team during provisioning and deployment, for example, to create a user account for the service instance and allow members of the team to access the user account.

[0105] The cloud-independent detailed metadata representation 620 includes properties for each instance of a data center entity. Therefore, the description of each instance of a data center entity is extended to include all details. As a result, the cloud-independent detailed metadata representation 620 of a data center can be significantly larger than the cloud-independent declarative specification 610. For example, the cloud-independent declarative specification 610 can be a few thousand lines of specification, while the cloud-independent detailed data center representation 620 can be millions of lines of generated code. As a result, the data center generation module 220 maintains the cloud-independent detailed metadata representation 620 as immutable, i.e., once the representation is finalized, no modifications are performed on the representation. For example, if any updates, deletions, or additions to a data center entity need to be performed, they are performed on the cloud-independent declarative specification 610.

[0106] The data center generation module 220 receives a target cloud platform on which the data center is expected to be provisioned and deployed, and generates a cloud platform-specific detailed metadata representation 630 of the data center. For example, the data center generation module 220 interacts with the target cloud platform to generate certain entities (or resources), such as user accounts, virtual private clouds (VPCs), and network resources, such as subnets on the VPC, various connections between entities in the cloud platform, and the like. The data center generation module 220 receives resource identifiers of resources created in the target cloud platform, such as user account names, VPC IDs, and the like, and incorporates these into a cloud platform-independent detailed metadata representation 620 to obtain a cloud platform-specific metadata representation 630 of the data center. In one embodiment, the data center generation module 220 creates a unique user account for each team on the cloud platform for a given combination of service groups and services. The team uses the user account to perform interactions with specific services of the service group, such as for debugging, for receiving alarms, and the like.

[0107] The target cloud platform may perform several steps to process the cloud platform specific detailed metadata representation 630. For example, a cloud platform independent declarative specification may specify the allowed interactions between services. These allowed interactions are specified in the cloud platform specific detailed metadata representation 630 and implemented as network policies for the cloud platform. The cloud platform may further create security groups to implement network policies to implement data centers according to the declarative specification.

[0108] The cloud-platform-independent declarative specification specifies dependencies between services, for example, the startup dependencies of each service lists all services that should be running when starting a particular service. The data center generation module 220 generates a cloud-platform-specific detailed metadata representation of the data center, which includes information describing these dependencies, so that instructions for deploying services ensure that the cloud platform starts the services in the order specified by the dependencies, so that for each service, when the service is started, the services that need to be started before the service are running. Therefore, the dependencies between the services represent a dependency graph, and the cloud platform starts running the services in an order determined based on the dependency graph, so that if service A depends on service B, service B is started before service A is started.

[0109] The data center generation module 220 creates trust relationships between user accounts that allow services to access other services via secure communication channels. These trust relationships are generated using base layer specific instructions generated based on declarative specifications (e.g., based on outbound access attributes specified for services). The data center generation module 220 sends instructions to the cloud platform to create network policies based on cloud platform specific mechanisms that control service groups and interactions and access between services, for example, as specified by the structure of the declarative specification, such as outbound access, security groups, security policies, etc.

[0110] The data center generation module 220 deploys the cloud platform specific metadata representation 630 on the specific target cloud platform for which the representation is generated. The data center generation module 220 can use the generated metadata representation to perform various validations, including policy validation, format validation, and the like.

[0111] The cloud platform-independent declarative specification 610 may be referred to as a declarative datacenter representation, the cloud platform-independent detailed metadata representation 620 may be referred to as a derived metadata representation of a datacenter, and the cloud platform-specific metadata representation 630 may be referred to as a hydrated metadata representation of a datacenter.

[0112] The overall process for deploying software artifacts on a data center

[0113] Figure 7 The overall process of generating a pipeline for deploying software artifacts on a data center configured on a cloud platform according to an embodiment is shown. The data center generation module generates 710 one or more data centers on a target cloud platform. Each data center is generated according to a declarative specification independent of the cloud platform and has a hierarchy of data center entities.

[0114] The software release management module 230 generates 720 a main pipeline independent of the cloud platform. In one embodiment, the main pipeline independent of the cloud platform includes a stage corresponding to the environment of the data center, for example, a development environment, a test environment, a canary environment, and a production environment. The main pipeline constitutes a sequence of progressive and / or conditional deployment across various environments (such as a development environment, a test environment, a trial operation environment, or a production environment). The main pipeline can be triggered by passing an image of a software artifact, and includes a stage or instruction for deploying a build in an environment of a development type. The built software artifact is conditionally advanced to one or more test environments, then one or more canary environments, and finally deployed to a production environment. The main pipeline can be customized by a user (e.g., a service owner) to represent a specific orchestration across environments. The main pipeline can be customized to capture specific advancement criteria for moving from one stage to the next stage. For example, different tenants of a multi-tenant system can customize the main pipeline in different ways. In one embodiment, the main pipeline uses the latest version of the software for the software artifact of the service by default, and builds and deploys the version across various environments. Users can use artifact version mapping to ensure that a specific version of a software artifact is deployed on a specific data center entity.

[0115] In one embodiment, each service deployed in the data center has a cloud-independent mainstream pipeline generated by the data center entity defined by the declarative specification of the data center, for example, a mainstream pipeline for a data center instance, a mainstream pipeline for a service group, a mainstream pipeline for a cell, a mainstream pipeline for a service, and the like. The mainstream pipeline can be triggered when an image of a software artifact is delivered. The mainstream pipeline can implement continuous deployment controlled by the service owner. The mainstream pipeline can implement on-demand deployment owned by a data center instance owner or a release owner.

[0116] Certain portions of the main pipeline may be customized by users, for example, by tenants of a multi-tenant system that deploys services on a data center. For example, the advancement decision pipeline may be customized by tenants to determine which test cases are executed and what the thresholds are. The software release management module 230 receives 730 customizations to the logic for advancing software artifacts from one stage to another in the main pipeline that is independent of the cloud platform.

[0117] The software release management module 230 compiles 740 the cloud-independent master pipeline to generate a cloud-specific detailed deployment pipeline specific to the hierarchy of data center entities for each data center as specified by the cloud-independent declarative specification for the data center.

[0118] The software release management module 230 further receives 750 code for releasing one or more features of a service deployed on the data center. The software release management module 230 executes 760 a detailed deployment pipeline specific to the cloud platform to deploy software artifacts based on the received code.

[0119] Figure 8 An exemplary main pipeline 800 is shown in accordance with an embodiment. The main pipeline represents a sequence of stages representing a progressive conditional deployment across various data center environments. Figure 8 The stages of different environments in the data center are shown, including the development environment, the test environment, the canary environment, and the production environment. Each stage is further represented as a pipeline executed by that stage. Thus, the main pipeline 800 includes a development environment pipeline 810, which feeds into a test environment pipeline 820, which feeds into a canary environment pipeline 830, which feeds into a production environment pipeline 840.

[0120] The pipeline at each stage is a hierarchical pipeline that includes lower level pipelines. For example, the development environment pipeline 810 includes a development main pipeline that feeds into the data center pipelines D11, D12, ..., depending on the number of data centers specified as having development environments in the declarative specification of the data center.

[0121] The test environment pipeline 820 includes a test main pipeline that feeds into the data center pipelines D21, D22, ..., depending on the number of data centers specified in the declarative specification of the data centers as having test environments.

[0122] The canary environment pipeline 820 includes a canary master pipeline that feeds into the data center pipelines D31, D32, ..., depending on the number of data centers specified in the declarative specification of the data centers as having canary environments.

[0123] The production environment pipeline 820 includes a main production pipeline that feeds into the data center pipelines D21, D22, ..., depending on the number of data centers specified in the declarative specification of the data centers as having test environments.

[0124] Each environment pipeline 810, 820, 830 includes a push decision pipeline 815a, 815b, 815c, respectively. The output of the data center pipeline of the environment pipeline is collected by the push decision pipeline 815, and the push decision pipeline determines whether the software artifact is ready to be pushed to the next stage. The push decision pipeline 815 can determine whether the software artifact of the service is pushed to the next stage based on the test case results obtained by the data center. For example, if more than a threshold test case is passed, the push decision pipeline 815 pushes the software artifact to the next stage. The last environment stage, for example, the production environment pipeline may not have a push decision pipeline because there is no subsequent stage to which the software artifact needs to be pushed. As Figure 8 As shown in , the advancement decision pipeline 815a of the development environment pipeline determines whether to advance the software artifact from the development stage to the test stage; the advancement decision pipeline 815b of the test environment pipeline determines whether to advance the software artifact from the test stage to the canary stage, and the advancement decision pipeline 815c of the canary environment pipeline determines whether to advance the software artifact from the canary stage to the production stage.

[0125] The main pipeline includes multiple pipelines, for example, a provisioning pipeline for provisioning resources of a target cloud platform and a deployment pipeline for deploying software artifacts on a data center entity. Each pipeline includes a sequence of stages, each stage representing one or more actions that the target cloud platform needs to perform to provision and deploy a data center. The data center generation module 220 generates a detailed pipeline for deploying a software artifact version on a data center entity.

[0126] In one embodiment, the pipeline generator module 320 generates a detailed pipeline using a pipeline template including variables. The pipeline template is converted to a pipeline by providing specific values ​​for the variables in the pipeline. The process of generating a pipeline from a template is called hydration of a pipeline template. The pipeline template contains template expressions, which are used as placeholders for actual values ​​used in deployment. For example, the template expression can be replaced by a target-specific parameter value or expression. Multiple pipeline instances can be generated by hydrating pipeline templates for different targets. Template variables represent parameters that can be replaced with specific values ​​for a given target to generate a pipeline instance specific to that target. For example, during hydration, the template variable "account_id" can be replaced with the actual value of account_id, for example, "12345".

[0127] In one embodiment, the pipeline generator module 320 generates pipelines in a hierarchical manner based on the hierarchy of data center entities of the data center. For example, the data center includes different types of data center entities, including data centers, service groups, services, and the like. A data center entity may include one or more sub-data center entities. For example, a data center includes one or more service groups as sub-data center entities. A service group includes one or more services as sub-data center entities. Therefore, the data center generation module 220 starts from a data center entity at a hierarchical level and generates pipelines for data center entities below that level. For example, the pipeline generator module 320 starts from the data center level and generates pipelines for service groups within the data center. For each service group, the pipeline generator module 320 generates pipelines for the services within the service group.

[0128] The process for executing a pipeline according to one embodiment is as follows. The software release management module 230 receives a request to deploy a software artifact on a data center entity set in a target cloud platform. The software release management module 230 executes the main pipeline for one or more data centers. The software release management module 230 executes an aggregate pipeline for each service group of each data center. The aggregate pipeline includes pipelines for services within a service group. For each service in each service group, the pipeline is executed by executing all stages of the pipeline. Execution of the provision pipeline results in provisioning resources for the service, and the deployment pipeline results in deployment of the service in the target cloud platform.

[0129] Fig. 9 The overall process of stage execution of the environment of the main pipeline on the cloud platform according to the embodiment is shown. Steps 910, 920, 930, 940 and 950 can be executed by each environment pipeline 810, 820, 830. The production environment pipeline 3 can only execute steps 910 and 920. It can be executed for one service or multiple services specified using a manifest file. Fig. 9 Follow the steps shown in .

[0130] The environment pipeline for environment E includes instructions to deploy 910 software on a data center entity set, for example, a data center entity set designated as having environment E. In one embodiment, the software artifacts are generated by compiling source code for the service. The source code may be obtained from version control software. The data center entity set may include a data center instance, a service group, a cell, a service, or any combination of these.

[0131] The environment pipeline for environment E also includes instructions for running 920 a test for testing software artifacts deployed on a data center entity set. The environment pipeline for environment E also includes instructions for evaluating 930 the test results against a push criterion, for example, using a push decision pipeline 815. If the push criterion is not met, steps 910, 920, 930, and 940 may be repeated using a revised software artifact, for example, a software artifact generated from source code that includes a fix for certain defects identified during testing 920. The environment pipeline for environment E also includes instructions for advancing 950 to the next stage if the push criterion is met.

[0132] In one embodiment, the main pipeline includes a hierarchy of pipelines. The hierarchy includes multiple levels, and the pipelines at a particular level include the pipelines at the next lower level as sub-pipelines. For example, at the highest level of the hierarchy, the main pipeline includes a release main pipeline, which deploys a set of services related to the product. The next level of the hierarchy includes a service main pipeline, which represents all deployments of specific services across various environments. The next level of the hierarchy can include a service group main pipeline, followed by a service main pipeline.

[0133] Fig.10 An exemplary main pipeline according to an embodiment is shown. The main pipeline is a hierarchical pipeline in which each stage of the pipeline may include a pipeline with detailed instructions for executing the stage. The main pipeline hierarchy may mirror the data center hierarchy. For example, the top level of the main pipeline represents a sequence of stages for different environments. Each environment may include one or more pipelines for data center instances or pipelines for other types of data center entities. The data center instance pipeline 1010 may include a service group pipeline 1020. Each service group pipeline 1020 may include one or more service pipelines 1030. The data center instance pipeline 1010 may include a cell pipeline 1025, each cell pipeline 1025 including one or more service pipelines 1030. The service pipeline 1030 may include stages, each stage representing a pipeline representing instructions for deploying services for a specific environment. The lowest level pipeline or leaf-level pipeline in the hierarchy is referred to as a unit pipeline and may include detailed service-specific instructions for performing operations related to the service. For example, the deployment of a service may include a pre-deployment step, a deployment step, a post-deployment step, and a post-deployment test and validation step. A pipeline that is not a leaf-level pipeline and has one or more sub-pipelines is an aggregate pipeline that orchestrates the execution of sub-pipelines.

[0134] The main pipeline can be driven by a pull request that occurs, where the version control system of the software receives a request for changes to be considered for submission to an external repository for inclusion in the main repository of the project. Therefore, when a pull request is received, the main pipeline is automatically triggered, and the software artifact is deployed based on the latest software version for which the pull request was received. The main pipeline performs continuous delivery of software artifacts based on pull requests. For example, the main pipeline can be driven on an on-demand basis by calling a request using an application programming interface (API) of the deployment module 210. On-demand deployment based on the main pipeline can be requested for any set of services and any version of a given service specified using the API. The main pipeline can be called to request a rollback from the current version to a previous version, or to roll forward from the currently deployed version to a newer version.

[0135] In one embodiment, the deployment module 210 creates a service main pipeline for each service. These pipelines are triggered when a pull request is received for the repository of the software. The deployment module 210 receives pipeline templates from users for specific services. These pipeline templates include detailed instructions for testing, verifying, building, etc. for specific services. The data center generation module 220 receives cloud-independent declarative specifications for one or more data centers. The data center generation module 220 generates (or configures) a data center based on the received cloud-independent declarative specifications. The deployment module 210 receives the push decision 815 pipeline. The push decision 815 pipeline is integrated into the overall main pipeline.

[0136] The pipeline generator creates all pipelines for each data center based on the template and combines them in a hierarchical manner via the main pipeline, e.g. Fig.10 In one embodiment, the pipeline generator generates a service pipeline for each service; the pipeline generator generates a cell main pipeline to call the service pipeline; the pipeline generator generates a service group main pipeline to call the cell main pipeline; the pipeline generator generates a data center instance main pipeline to call the service group pipeline; the pipeline generator generates a service main pipeline to call the data center instance main pipeline.

[0137] Below is a snippet of the main pipeline showing the various stages. Each stage can specify properties including the stage name, the type of pipeline, the stage type (e.g., main deployment pipeline or push pipeline), previous stages, and more.

[0138]

[0139]

[0140]

[0141] As shown in the review main pipeline, the first stage is the artifact version mapping. The next stage is the main deployment pipeline for deployment to the development environment. The next stage is the push pipeline for determining whether the software artifact can be promoted to the next stage. The next stage is the main deployment pipeline for deployment to the test environment. The next stage is the push pipeline for determining whether the software artifact can be promoted to the next stage (i.e., the staging environment).

[0142] Software artifact version mapping

[0143] In one embodiment, the deployment module 210 receives an artifact version mapping that associates various software artifacts and their versions with data center entities. The artifact version mapping provides a declarative specification of specific versions of software artifacts that need to be deployed for services in different data center entities. Each data center entity can be uniquely identified based on its position in the data center hierarchy, as specified by the declarative specification of the data center. For example, for a service, a software library can act as a software artifact. Software artifacts can have multiple versions, for example, V1, V2, V3, and so on. The artifact version mapping can specify that version V1 needs to be deployed in data center entities C1 and C2, and version V2 needs to be deployed in data center entities C3 and C4. The deployment module 210 generates a main pipeline and instructions that ensure that the appropriate software artifact versions are deployed in the data center entities as specified in the artifact version mapping.

[0144] In one embodiment, the artifact version mapping is specified as a JSON (Javascript Object Notation) file, a YAML file, or a file using any other syntax for representing nested objects. The artifact version mapping can include a collection of <service>:<version> key pairs associated with various data center entities distributed across a hierarchy of data centers. The artifact version mapping key pairs act as a whitelist for the corresponding pipelines. If the key for a service is not included in the artifact version mapping, then all pipelines for that service are excluded during the execution of the pipeline. Different artifact version mappings can be applied to the same main pipeline, resulting in the inclusion / exclusion of different services during the execution of the main pipeline.

[0145] The following is an exemplary artifact version mapping. The artifact version mapping uses the attribute "environment_type" to specify the environment type. In the following embodiments, the environment type development is specified. The environment type can include one or more data center instances; a data center instance can include one or more service groups, and a service group can include one or more services. In the following embodiments, the software artifact name is specified as library 1, the version is specified as version 1, and is associated with the service instance "instance001". However, the software artifact name and version can be associated with a data center entity at any level in the hierarchy. For example, for a specified software artifact name and version or service group, the software artifact name and version applies to all services within the service group unless the software artifact name and version is overridden by a different value for the software artifact name and version specified for a specific service instance within the service group.

[0146] Similarly, a software artifact name and version can be specified for a datacenter instance and applies to all service groups or cells within the datacenter instance unless an override value is specified for a service group.

[0147]

[0148]

[0149] In one embodiment, the artifact version mapping uses the full path of the datacenter entity, such as "stage_group1 / datacenter1 / service_group2 / service1" to specify the datacenter entity. In one embodiment, the artifact version mapping uses a regular expression in the full path of the datacenter entity to specify the set of datacenter entities. For example, a full path including service_group[?] includes service_group1, service_group2, service_group3, and so on.

[0150] The following is an example of an artifact version mapping that specifies a regular expression to define a service set. The environment type is specified as development and test, and the datacenter entity in the full path (including datacenter instances and service groups) is specified as a wildcard, and the service instance is specified as "service*". Therefore, for all datacenter instances, all service groups, and service names matching service* for the development and test environments, version V1 of the application app1 will be deployed.

[0151]

[0152] In some embodiments, the artifact version mapping can specify parameters used by the pipeline. Thus, the specified parameters will apply to the interleaved group for which the parameters are specified.

[0153] Fig.11The overall process for deploying software artifacts on a data center configured on a cloud platform according to an implementation scheme is shown. The data center generation module generates 1110 one or more data centers on a target cloud platform. Each data center is generated according to a declarative specification independent of the cloud platform and has a hierarchy of data center entities.

[0154] The software release management module 230 receives 1120 as input an artifact version mapping that maps data center entities to versions of software artifacts. The software release management module 230 also receives 1130 as input a cloud platform independent main pipeline.

[0155] The software release management module 230 compiles 1140 the cloud platform-independent main pipeline in conjunction with the artifact version mapping to generate a cloud platform-specific detailed pipeline. In one embodiment, the generated cloud platform-specific detailed pipeline includes an artifact version mapping filter before certain stages to determine whether certain stages should be enabled or disabled based on the artifact version mapping.

[0156] The software release management module 230 further receives 1150 code for publishing one or more features of a service deployed on a data center. For example, the code may represent source code obtained from a version control management system that stores a source code repository to which changes are submitted by developers. The software release management module 230 executes 1160 a cloud platform-specific deployment pipeline to deploy software artifacts based on the received code.

[0157] Artifact version mapping and the main pipeline can be used to orchestrate various types of operations related to the continuous delivery of software artifacts in a cloud-based data center. Artifact version mapping and the main pipeline can be configured to perform aggregate retry operations on a service or service group or any data center entity. Artifact version mapping includes configuration of retry operations for data center entities, including retry strategies, threshold number of retries to be performed in the event of failure of a stage in the pipeline, whether confirmation from the user is required before retrying or retrying is performed automatically, and so on. For example, a retry strategy can be a fixed fallback strategy that suspends execution for a fixed period of time before retrying. Other retry strategies can be configured using artifact version mapping and the main pipeline. In one embodiment, the pipeline generator introduces a call retry phase within the aggregate pipeline to trigger the retry strategy when the previous pipeline stage fails. The retry strategy and configuration parameters specified for the data center entity apply to all data center entities and services within the data center entity unless the nested data center entity overrides the value.

[0158] System architecture for fault-tolerant continuous delivery

[0159] Fig.121 is a block diagram showing the architecture of a fault-tolerant continuous delivery module according to one embodiment. The fault-tolerant continuous delivery module includes a data center configuration module 1210, a continuous delivery request router 1220, and a control data center metadata store 1230. Other embodiments may include Fig.12 More or fewer modules as indicated in the . Functions performed by a particular module as indicated herein may be performed by other modules besides the indicated modules.

[0160] In one embodiment, the fault-tolerant continuous delivery module configures a primary control data center and an auxiliary control data center on the cloud platform. The primary control data center may also be referred to as an active control data center or an active control plane. The auxiliary control data center may also be referred to as a standby control data center or a standby control plane. The control data center herein may also be referred to as a boot data center, for example, an active control data center referred to as an active boot data center and a standby control data center referred to as a standby boot data center. The control data center includes the minimum set of services required to configure other data centers and to make changes to the configuration of the data center (e.g., reconfigure services installed on the data center, configure software artifacts associated with services on the data center, etc.).

[0161] The data center configuration module 1210 configures one or more control data centers on the target cloud platform. In one embodiment, the data center configuration module 1210 configures a primary control data center and a secondary control data center on the target cloud platform. The primary control data center is used to process requests for configuring a data center or services on a data center, and the secondary control data center is used instead of the primary control data center, for example as a backup control data center. In the event of failure of one or more services of the primary control data center, planned maintenance of one or more services of the primary control data center, data corruption of the data storage of the primary control data center, security vulnerabilities in the primary data center, or other reasons, the secondary control data center can be used instead of the primary control data center. The use of two control data centers provides fault tolerance because the probability of both control data centers failing or being unavailable at the same time is significantly lower than the probability of a single control data center failing or being unavailable.

[0162] The data center configuration module 1210 can configure a primary control data center on one target cloud platform and a secondary control data center on a different target cloud platform. This provides additional fault tolerance in the event of a cloud platform failure. For example, if two control data centers are running on the same cloud platform, and the cloud platform fails or is inaccessible for any reason, if any service needs to be configured or reconfigured, both control data centers will be unavailable, resulting in downtime. Running two control data centers on different cloud platforms ensures that the possibility of both cloud platforms being unavailable is extremely small, thereby significantly reducing the chance of downtime for the continuous delivery platform. Other embodiments may include more than two control data centers for additional fault tolerance.

[0163] The continuous delivery request router 1220 monitors requests for configurations of tenant data centers, requests for configurations or service groups or services on tenant data centers, and the like, and sends them to the control data center. In one embodiment, if the primary control data center is functional, the continuous delivery request router 1220 keeps sending configuration requests to the primary control data center. The continuous delivery request router 1220 can receive an indication that control should be transferred from the primary control data center to another control data center (e.g., an auxiliary control data center). The indication can be received in the case of various situations described herein, such as a failure of the primary control data center, a planned downtime of the primary control data center, and the like. If such an indication is received, the continuous delivery request router 1220 begins routing configuration requests to another control data center, such as an auxiliary control data center. In one embodiment, the continuous delivery request router 1220 includes a domain name service (DNS) for routing requests.

[0164] The control data center metadata store 1230 stores metadata for configuring any control data center, such as a primary control data center and a secondary control data center. A declarative specification may be used to receive metadata describing a control center, such as, Figure 4 The declarative specification shown in , which includes a set of specific service groups or service instances as further described herein. The data center configuration module 1210 calls the software release management module to generate a cloud platform specific detailed pipeline 255 for configuring the control data center, and sends the cloud platform specific detailed pipeline 255 for execution, thereby creating or configuring the control data center on the target cloud platform.

[0165] Fig.13 is a block diagram illustrating the architecture of a control data center according to one embodiment. The control data center includes a service set group, such as Fig.13. These service groups are required to perform configuration data centers in the cloud platform and to perform continuous delivery of software artifacts on the data centers. According to an embodiment, the control data center includes service groups, including a production service group 1310, a functional integration and testing service group 1320, a basic service group 1330, an access control service group 1340, an encryption service group 1350, and a site bridge service group 1360. Other embodiments may include more or fewer service groups. The service groups of the control data center are defined using metadata stored in the control data center metadata storage 1230 and are specified using a declarative specification for the control data center.

[0166] The production service group 1310 provides services required to deploy software artifacts, including pipeline generation, pipeline execution, etc. The functional integration and testing service group 1320 provides services for performing functional testing and integration testing of software artifacts to determine whether the software artifacts can be promoted from one environment to another. The basic service group 1330 includes basic services such as network time protocol (NTP), domain name system (DNS), and other core infrastructure services. The access control service group 1340 manages passwords and credentials and manages user access to computing resources. The encryption service group 1350 manages encryption of data in transmission and storage. The site bridge service group 1360 provides a connection between an organization network (for example, an organization that is a tenant of a multi-tenant system) and a computing system that acts as an endpoint in the cloud platform. Therefore, the control data center includes the services required to perform continuous delivery. The computing system accesses the control data center to configure the data center in the cloud platform and deploy software artifacts in the data center deployed in the cloud platform.

[0167] The control data center is used by all the systems of the organization or multi-tenant systems for continuous delivery and can be a point of failure because a failure in the control data center affects all entities that use the control data center for continuous delivery. Therefore, implementations use Figure 14A-14B The fault-tolerant architecture shown in .

[0168] Figure 14A-14B An architecture of a fault-tolerant architecture for controlling a data center for continuous delivery of software artifacts to a data center configured in a cloud platform is shown according to one embodiment. Figure 14A-14B A primary control data center 1410, a secondary control data center 1420, and a tenant data center 1430 are all shown. The primary control data center 1410 and the secondary control data center 1420 can be in two separate geographic areas, for example, two different states. This ensures that any disaster that may affect one control center is unlikely to affect another control data center.

[0169] The data center configuration module 1210 sends 1415 metadata describing the tenant data center to the primary control data center 1410 and the secondary control data center 1420. The primary control data center 1410 generates a pipeline for configuring the tenant data center based on the received 1415 metadata.

[0170] like Fig.14A As shown in , the master control data center 1410 controls the configuration process of the tenant data center 1430. Therefore, the master control data center 1410 executes the generated pipeline and performs the infrastructure configuration 1435 of the tenant data center 1430. For example, the master control data center 1410 can create user accounts for access by various teams defined in the declarative specification of the tenant data center, and configure the computing resources accessible to the created user accounts according to the declarative specification of the tenant data center, so that the user account can perform any specific tasks specified in the declarative specification. The control data center dynamically creates user accounts and configures infrastructure in the cloud platform as part of the continuous delivery process based on metadata describing the tenant data center, metadata describing the service, metadata describing the service group, etc. If the user account is not needed according to the metadata, the control data center can delete the account, for example, to garbage collect old accounts that are no longer used.

[0171] According to one embodiment, creating a user account by a control data center includes the following steps. The control data center accesses the declarative specification of the tenant data center. The declarative specification can be stored as metadata describing the tenant data center. The control data center processes the service definition in the declarative specification of the tenant data center. For example, if a new service definition is identified in the declarative specification of the tenant data center, the control data center determines the user account required to configure the new service and creates a new user account. The user account may be required to access computing resources, such as databases, network resources, file systems, processing resources, load balancers, Kubernetes clusters, and the like. The control data center configures the associated computing resources of the cloud platform of the tenant data center to provide the functions requested by the user account. For example, if the service requires database access, the control data center can create a user account in the database and configure one or more table spaces in the database to allow the new user account to store data in the database. The control data center executes any generated pipelines to deploy services and configures and manages services and associated infrastructure on the tenant data center.

[0172] Register the created user account in the master control data center. Registering the user account includes storing them in a data store from which the master control data center can access the user account information and use them for tasks related to the continuous delivery of software artifacts for the tenant data centers. Registration of the user account provides the control data center with information to perform various actions associated with the service, such as changing configurations, installing software artifacts, and so on. When the control data center receives a request associated with the service, the control data center accesses the user account information to identify the user account associated with the service and uses the user account to perform any necessary actions, such as upgrades, patches, and so on.

[0173] The primary control data center 1410 performs a transfer 1425 of information describing the configuration state of the tenant data center 1430 to the secondary control data center 1420. This results in the user accounts created by the primary control data center also being registered in the secondary control data center. For example, the primary control data center 1410 sends information describing each user account created in the tenant data center 1430 and the credentials for accessing the user account to the secondary control data center 1420. When creating a data center in a cloud platform, a large organization or a multi-tenant system may create thousands of user accounts.

[0174] The secondary control data center 1420 receives 1415b metadata describing the tenant data center from the data center configuration module 1210. The secondary control data center 1420 generates pipelines for the tenant data center configuration, but does not execute them. The secondary control data center 1420 simply stores the generated pipelines and tracks the execution of the pipelines based on the state information received from the primary control data center 1410. The secondary control data center 1420 performs infrastructure verification 1445 based on the received state information. For example, the secondary control data center 1420 accesses each user account created by the primary control data center 1410 received via the state transfer 1425, and verifies whether the user account can access any computing resources specified by the declarative specification of the tenant data center, and whether the appropriate computing resources have been configured in the tenant data center.

[0175] Fig. 14B 14 shows a configuration in which the auxiliary control data center has controlled the configuration process of executing the tenant data center 1430. Fig. 14B, the secondary control data center 1420 is executing the pipeline and performing infrastructure configuration 1455. The secondary control data center 1420 is transferring 1475 state information to the primary control data center 1410, such as any user accounts created, and the primary control data center 1410 is performing infrastructure validation 1465 to ensure that the user accounts created by the secondary control data center 1420 can access the computing resources specified by the declarative specification of the tenant data center 1430. Fig.14A In comparison, Fig. 14B The roles of the primary control data center 1410 and the secondary control data center 1420 are reversed. FIG. 14A to FIG. 14B This configuration change may occur due to some failure of the primary control data center 1410. The secondary control data center 1420 may wait for the failure of the primary control data center 1410 to be corrected before sending 1475 status information to the primary control data center 1410. The secondary control data center 1420 collects status information for the duration that the primary control data center 1410 is unavailable. The secondary control data center 1420 periodically checks whether the primary control data center 1410 is available, that is, whether any failure is repaired (i.e., fixed) or whether the planned downtime is over. Once the primary control data center 1410 is available, the secondary control data center 1420 sends the collected status information as a batch to the primary control data center 1410. Thereafter, when the secondary control data center 1420 performs 1455 infrastructure configuration, the secondary control data center 1420 continues to send status information.

[0176] Once the primary control data center is fully operational, the fault-tolerant continuous delivery module 350 can switch control of the entire configuration process of the tenant data center to the primary control data center 1410, making it the active control data center, and making the secondary control data center 1420 the backup control data center, such as Fig.14A as shown in .

[0177] In one embodiment, various steps are performed to perform a switch from the primary control data center to the secondary control data center. The fault-tolerant continuous delivery module 350 first ensures that no new pipelines are triggered to execute in the primary control data center. The fault-tolerant continuous delivery module 350 then sends instructions to the slave primary control data center to complete all currently executing pipelines. Specifically, the fault-tolerant continuous delivery module 350 identifies all pipelines in a running state and sends instructions to complete their execution. The fault-tolerant continuous delivery module 350 changes the configuration of the continuous delivery request router 1220 to begin directing all requests associated with continuous delivery and configuration of data centers in the cloud platform to the secondary control data center instead of the primary control data center.

[0178] If a failure occurs in the primary control data center that prevents the primary data center from completing the execution of the pipeline, the fault-tolerant continuous delivery module 350 automatically fails the entire pipeline. The fault-tolerant continuous delivery module 350 causes the secondary control data center to execute all pipelines that failed to complete execution in the primary control data center. Operations performed during pipeline execution are idempotent. Therefore, if an operation is performed multiple times, the effect of executing the operation on the system is the same as executing the operation once. For example, the operation of creating a user account checks whether the account already exists and whether it has the required access rights to system resources specified in the metadata of the tenant data center. If the account already exists and has the required access rights, the control data center will not take any further action. If the account does not exist, the control data center will create the account. Similarly, if the system performs an action to configure a service, the system checks whether the configuration has been performed previously. If the configuration has been performed previously, the control data center skips the remaining steps. If the configuration has not been performed before, the control data center performs the steps for performing the configuration.

[0179] Process for Fault-Tolerant Continuous Delivery

[0180] Fig.15 A process for configuring a data center on a cloud platform using the fault-tolerant architecture for controlling a data center shown in FIG. 14 according to an implementation scheme is shown.

[0181] The fault-tolerant continuous delivery module 350 configures 1510 the primary control data center 1410 and the secondary control data center 1420 on the cloud platform. The fault-tolerant continuous delivery module 350 accesses the declarative specifications of the primary control data center 1410 and the secondary control data center 1420 and configures them on the cloud platform. The primary control data center 1410 and the secondary control data center 1420 can be configured on two different cloud platforms.

[0182] The fault-tolerant continuous delivery module 350 receives 1520 a request to configure a tenant data center 1430 on the cloud platform. The tenant data center is associated with a tenant of the multi-tenant system. Fig.15 The process described in is shown in conjunction with a multi-tenant system, but the technology can be applied to any online system, for example, the online system of a single organization.

[0183] The fault-tolerant continuous delivery module 350 sends 1530 instructions to the primary control data center 1410 to configure the tenant data center. The instructions sent to the primary control data center 1410 cause the primary control data center 1410 to perform the following steps. The primary control data center 1410 configures the infrastructure for the tenant data center on the cloud platform, for example, by creating a user account according to the declarative specification, and configuring the computing resources of the cloud platform for access by the user account according to the declarative specification. The primary control data center 1410 periodically transmits 1540 the state of the infrastructure configured for the tenant data center to the secondary control data center, for example, the primary control data center 1410 periodically transmits information describing the created user account and associated credentials to the secondary control data center 1420.

[0184] The fault-tolerant continuous delivery module 350 communicates a sending instruction to the secondary control data center 1420, which causes the secondary control data center to verify 1540 the infrastructure of the tenant data center configured by the primary control data center. For example, the secondary control data center 1420 verifies whether any user account created by the primary control data center 1410 and transmitted 1540 to the secondary control data center 1420 is accessible and can access the computing resources required by the cloud platform.

[0185] Fig.16 A process for handling a failure in a primary control data center, according to an embodiment, is shown.

[0186] The fault-tolerant continuous delivery module 350 receives 1610 a request to transfer configuration control of a tenant data center on the cloud platform from the primary control data center to the secondary control data center. In response to receiving the request to transfer control, the fault-tolerant continuous delivery module 350 redirects 1620 requests associated with the configuration of the tenant data center from the primary control data center to the secondary control data center.

[0187] The fault-tolerant continuous delivery module 350 sends 1630 instructions to the secondary control data center 1420 to take over the configuration process of the tenant data center. Therefore, the secondary control data center 1420 performs the configuration of the tenant data center, for example, by creating user accounts and configuring the computing resources of the cloud platform according to the declarative specification of the tenant data center. The secondary control data center 1420 transmits 1640 the configuration state of the tenant data center to the primary control data center 1410. The primary control data center 1410 verifies 1640 the infrastructure configured on the tenant data center by the secondary control data center 1420 to ensure that the user account created according to the declarative specification of the tenant data center has the required access to the computing resources of the cloud platform.

[0188] Transferring the configuration state of one control data center D1 to another control data center D2 makes the process of transferring control from the control data center D1 to the other control data center D2 efficient because the other control data center D2 does not have to repeat the processing that has been performed by the control data center D1. The other control data center D2 can resume the configuration process from where the first control data center stopped the configuration process.

[0189] Computer architecture

[0190] Fig.17 is a diagram showing a method for using the Figure 1 1704. A high-level block diagram of a functional view of a general computer system is shown that illustrates one of the entities shown in environment 100 of FIG. 1704. At least one processor 1702 is shown coupled to a chipset 1704. Also coupled to chipset 1704 are memory 1706, storage devices 1708, keyboard 1710, graphics adapter 1712, pointing device 1714, and network adapter 1716. Display 1718 is coupled to graphics adapter 1712. In one embodiment, the functionality of chipset 1704 is provided by memory controller hub 1720 and I / O controller hub 1722. In another embodiment, memory 1706 is coupled directly to processor 1702 rather than chipset 1704.

[0191] Storage device 1708 is a non-transitory computer-readable storage medium, such as a hard drive, a compact disk read-only memory (CD-ROM), a DVD, or a solid-state memory device. Memory 1706 holds instructions and data used by processor 1702. Pointing device 1714 may be a mouse, trackball, or other type of pointing device and is used in conjunction with keyboard 1710 to input data into computer system 200. Graphics adapter 1712 displays images and other information on display 1718. Network adapter 1716 couples computer system 1700 to a network.

[0192] As is known in the art, the computer 1700 may have Fig.17 1700. In addition, the computer 1700 may lack certain illustrated components. For example, the computer system 1700 acting as a multi-tenant system 110 may lack the keyboard 1710 and the pointing device 1714. In addition, the storage device 1708 may be local and / or remote from the computer 1700 (e.g., embodied in a storage area network (SAN)).

[0193] Computer 1700 is suitable for executing computer modules for providing the functions described herein. As used herein, the term "module" refers to computer program instructions and other logic for providing specified functions. Modules can be implemented in hardware, software and / or firmware. Modules can include one or more processes and / or are provided by only a portion of a process. Modules are typically stored on storage device 1708, loaded into memory 1706, and executed by processor 1702.

[0194] The type of computer system 1700 used by the entities of the system environment may vary depending on the implementation and the processing capabilities used by the entities. For example, the client device may be a mobile phone with limited processing capabilities, a small display 1718, and may lack a pointing device 1714. In contrast, a multi-tenant system or cloud platform may include multiple blade servers that work together to provide the functionality described herein.

[0195] Other considerations

[0196] The specific naming of components, capitalization of terms, attributes, data structures, or any other programming or structural aspects are not mandatory or important, and the mechanisms for implementing the described embodiments may have different names, formats, or protocols. In addition, as described, the system may be implemented via a combination of hardware and software, or entirely in hardware elements. Furthermore, the specific division of functionality between the various system components described herein is merely exemplary and not mandatory; functions performed by a single system component may alternatively be performed by multiple components, and functions performed by multiple components may alternatively be performed by a single component.

[0197] Some parts of the above description present features according to algorithms and symbolic representations of operations on information. These algorithmic descriptions and representations are the means used by those skilled in the art of data processing technology to most effectively convey the essence of their work to other skilled in the art. Although these operations are described functionally or logically, they are understood to be implemented by computer programs. In addition, without losing generality, it sometimes proves convenient to refer to these operational arrangements as modules or functional names.

[0198] Unless explicitly stated from the above discussion, it should be understood that throughout the description, discussions utilizing terms such as "processing" or "computing" or "arithmetic" or "determining" or "displaying" refer to the actions and processes of a computer system or similar electronic computing device that manipulate and transform data represented as physical (electronic) quantities within a computer system memory or registers or other such information storage, transmission or display device.

[0199] Certain embodiments described herein include processing steps and instructions described in the form of algorithms. It should be noted that the processing steps and instructions of the embodiments can be embodied in software, firmware or hardware, and when embodied in software, can be downloaded to reside on different platforms used by real-time network operating systems and operated from them.

[0200] The described embodiments also relate to devices for performing the operations herein. The device may be specially constructed for the desired purpose, or it may include a general-purpose computer that is selectively activated or reconfigured by a computer program stored on a computer-readable medium that can be accessed by a computer. Such a computer program may be stored in a non-transitory computer-readable storage medium, such as, but not limited to, any type of disk including a floppy disk, an optical disk, a CD-ROM, a magneto-optical disk, a read-only memory, a random access memory, an EPROM, an EEPROM, a magnetic card or an optical card, an application-specific integrated circuit (ASIC), or any type of medium suitable for storing electronic instructions, and each medium is connected to a computer system bus. In addition, the computer mentioned in the specification may include a single processor, or may be an architecture that uses multiple processors to design to increase computing power.

[0201] The algorithm and operation proposed herein have no essential relationship with any specific computer or other device. Various general purpose systems can also be used together with the program according to the teaching of this article, or it can be proved that it is convenient to construct a more special device to perform the required method steps. For those skilled in the art, the required structure of various these systems and equivalent variants will be obvious. In addition, this embodiment is not described with reference to any specific programming language. It should be understood that various programming languages ​​can be used to implement the teaching of the embodiment as described herein.

[0202] The embodiments are well suited for use in a wide variety of computer network systems on a variety of topologies. In this field, the configuration and management of large networks includes storage devices and computers that are communicatively coupled to different computers and storage devices via a network such as the Internet.

[0203] Finally, it should be noted that the language used in the specification is primarily selected for readability and instructional purposes, and may not be selected to describe or define the inventive subject matter.Accordingly, the disclosure of the embodiments is intended to be illustrative, but not restrictive.

Claims

1. A computer-implemented method for configuring a data center on a cloud platform, the method comprising: Configuring a primary control data center and an auxiliary control data center on the cloud platform; receiving a declarative specification for configuring a tenant data center on the cloud platform, the tenant data center being associated with a tenant of a multi-tenant system, the declarative specification comprising a hierarchy of data center entities, wherein one or more data center entities in the hierarchy include other data center entities and services for execution on the cloud platform; Sending instructions to the master control data center to configure the tenant data center, the instructions causing the master control data center to perform the following steps: configuring infrastructure for the tenant data center on the cloud platform, the infrastructure being configured for a specific data center entity in the hierarchy of data center entities specified by the declarative specification, and Periodically transmitting the status of the infrastructure configured for the tenant data center to the auxiliary control data center; receiving a request to transfer control of a configuration of the tenant data center from the primary control data center to the secondary control data center; and In response to receiving the request to transfer control, requests associated with configuration of the tenant data center are redirected from the primary control data center to the secondary control data center.

2. The computer-implemented method of claim 1 , further comprising: An instruction is sent to the secondary control data center, the instruction causing the secondary control data center to verify the infrastructure of the tenant data center configured by the primary control data center.

3. A computer-implemented method according to claim 1, wherein in response to receiving a request to transfer control, the secondary control data center restores the configuration of the infrastructure of the tenant data center based on the current status received by the secondary control data center from the primary control data center.

4. The computer-implemented method of claim 3, wherein restoring the configuration of the infrastructure of one or more of the tenant data centers based on the current state causes the secondary control data center to perform operations previously performed by the primary control data center.

5. The computer-implemented method of claim 1 , wherein configuring the tenant data center comprises: The declarative specification is compiled to generate a pipeline for deploying the specific service on the cloud platform, wherein the main control data center executes the pipeline.

6. The computer-implemented method of claim 1, wherein configuring the infrastructure of one or more of the tenant data centers comprises creating a plurality of accounts on a cloud platform, each account being configured according to the declarative specification of the tenant data center.

7. The computer-implemented method of claim 1, wherein configuring the infrastructure of one or more of the tenant data centers comprises creating one or more pipelines, each pipeline comprising stages for configuring one or more data center entities for the tenant data center.

8. The computer-implemented method of claim 1, wherein a tenant data center comprises one or more service groups, wherein each service group comprises a service set.

9. The computer-implemented method of claim 1, wherein a tenant data center comprises a hierarchy of data center entities, wherein the data center entities comprise services or service groups, wherein each service group comprises a service set.

10. A computer-implemented method according to claim 1, wherein in response to the secondary control data center restoring the configuration of the infrastructure of one or more of the tenant data centers, the status of the infrastructure configured by the secondary control data center for the tenant data center is periodically transmitted to the primary control data center.

11. The computer-implemented method of claim 1 , wherein the request to transfer control of configuration of the one or more data centers on the cloud platform from the primary control data center to the secondary control data center is received in response to one or more of: a failure of one or more services of the primary control data center; planned maintenance of one or more services of the master control data center; The data stored in the data center of the master control center is corrupted; or A security breach in the master control data center.

12. The computer-implemented method of claim 1, wherein the primary control data center is in a first cloud platform and the secondary control data center is in a second cloud platform.

13. A non-transitory computer-readable storage medium for storing instructions, which, when executed by one or more computer processors, cause the one or more computer processors to perform steps for configuring a data center on a cloud platform, the steps comprising: Configuring a primary control data center and an auxiliary control data center on the cloud platform; receiving a declarative specification for configuring a tenant data center on the cloud platform, the tenant data center being associated with a tenant of a multi-tenant system, the declarative specification comprising a hierarchy of data center entities, wherein one or more data center entities in the hierarchy include other data center entities and services for execution on the cloud platform; Sending instructions to the master control data center to configure the tenant data center, the instructions causing the master control data center to perform the following steps: configuring infrastructure for the tenant data center on the cloud platform, the infrastructure being configured for a specific data center entity in the hierarchy of data center entities specified by the declarative specification, and Periodically transmitting the status of the infrastructure configured for the tenant data center to the auxiliary control data center; receiving a request to transfer control of a configuration of the tenant data center from the primary control data center to the secondary control data center; and In response to receiving the request to transfer control, requests associated with configuration of the tenant data center are redirected from the primary control data center to the secondary control data center.

14. The non-transitory computer-readable storage medium of claim 13, wherein the instructions further cause the one or more computer processors to perform steps comprising: An instruction is sent to the secondary control data center, wherein the instruction causes the secondary control data center to verify the infrastructure of the tenant data center configured by the primary control data center.

15. The non-transitory computer-readable storage medium of claim 13, wherein in response to receiving a request to transfer control, the secondary control data center restores the configuration of the infrastructure of the tenant data center based on a current status received by the secondary control data center from the primary control data center.

16. The non-transitory computer-readable storage medium of claim 15, wherein restoring the configuration of the infrastructure of one or more of the tenant data centers based on the current state causes the secondary control data center to perform operations previously performed by the primary control data center.

17. The non-transitory computer-readable storage medium of claim 13, wherein configuring the infrastructure of the one or more tenant data centers comprises creating a plurality of accounts on a cloud platform, each account being configured according to a declarative specification of the tenant data center.

18. A non-transitory computer-readable storage medium according to claim 13, wherein in response to the configuration of the infrastructure of one or more of the tenant data centers being restored by the secondary control data center, the status of the infrastructure configured by the secondary control data center for the tenant data center is periodically transmitted to the primary control data center.

19. The non-transitory computer-readable storage medium of claim 13, wherein the request to transfer control of configuration of one or more data centers on the cloud platform from the primary control data center to the secondary control data center is received in response to one or more of: a failure of one or more services of the primary control data center; planned maintenance of one or more services of the master control data center; The data stored in the data center of the master control center is corrupted; or A security breach in the master control data center.

20. A computing system comprising: one or more computer processors; and A non-transitory computer-readable storage medium for storing instructions, which, when executed by the one or more computer processors, cause the one or more computer processors to perform steps for configuring a data center on a cloud platform, the steps comprising: Configuring a primary control data center and an auxiliary control data center on the cloud platform; receiving a declarative specification for configuring a tenant data center on the cloud platform, the tenant data center being associated with a tenant of a multi-tenant system, the declarative specification comprising a hierarchy of data center entities, wherein one or more data center entities in the hierarchy include other data center entities and services for execution on the cloud platform; Sending instructions to the master control data center to configure the tenant data center, the instructions causing the master control data center to perform the following steps: configuring infrastructure on the cloud platform for the tenant data center, the infrastructure being configured for a particular data center in the hierarchy of data center entities specified by the declarative specification, and Periodically transmitting the status of the infrastructure configured for the tenant data center to the auxiliary control data center; receiving a request to transfer control of a configuration of the tenant data center from the primary control data center to the secondary control data center; and In response to receiving the request to transfer control, requests associated with configuration of the tenant data center are redirected from the primary control data center to the secondary control data center.

Citation Information

Patent Citations

  • Metering multi-tenant, microservice architecture-based integration service in a cloud computing environment

    US10819598B1

  • Framework for facilitating implementation of multi-tenant saas architecture

    US20140289391A1