System configuration freezing and change management for services deployed via continuous delivery on data centers configured in cloud platforms

By using declarative specifications independent of the cloud platform to manage the data center and mainstream pipelines on the cloud computing platform, the problems of complex software artifact changes and high maintenance costs in the cloud platform are solved, and system stability and controllability are improved.

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

Patent Information

Application Number
CN202180095275.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-01-29
Publication Date
2024-10-29
Estimated Expiration
2041-01-29

AI Technical Summary

Technical Problem

In cloud computing platforms, managing and deploying changes to software artifacts is complex and error-prone, especially in multi-tenant systems, tracking and maintaining changes to system configurations results in high maintenance costs, and it is difficult to prevent the system during high traffic periods or failure analysis. Modification affects stability.

Method used

Using declarative specifications that are independent of the cloud platform, the cloud platform infrastructure language is used to generate and manage data centers on multiple cloud platforms. It provides a system configuration freezing function that allows prohibiting changes to the system within a specific time interval to ensure system stability. and manage the software release and deployment process through mainstream pipelines.

Benefits of technology

It reduces the risk of system stability being affected by software artifact modifications, reduces maintenance costs, and improves system reliability and controllability during periods of high traffic or failure analysis.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117099079B_ABST
    Figure CN117099079B_ABST
Patent Text Reader

Abstract

A computing system, such as a multi-tenant system, deploys software artifacts in a data center created in a cloud platform using a cloud platform infrastructure language that is independent of the cloud platform. The system allows a user to specify a system configuration freeze for a period of time for services configured to run in a data center on the cloud platform. During the system freeze, changes to the system are prohibited or suspended. The system generates a pipeline for modifying the system configuration of the service. The pipeline includes a change phase for making changes associated with the service and a pre-change phase for acquiring a lock. If the system receives a request to perform a system freeze of a data center entity, the system acquires a lock on the service of the data center entity. As a result, execution of the pipeline configured to change the system configuration of the service is shelved.
Need to check novelty before this filing date? Find Prior Art

Description

Background Art Technical Field

[0002] The disclosure generally relates to management of software releases in a cloud computing platform, and to system configuration freezing to enforce services via continuous delivery on a data center configured in the cloud computing platform, and management of changes to software artifacts deployed on a data center configured in the cloud computing platform.

[0003] Related technical description

[0004] 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. Organizations are moving their services to cloud platforms to provide scalability and elasticity of computing resources.

[0005] Organizations maintain cloud 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. Continuous delivery platforms make it easier for developers to make changes to software artifacts that affect services running on the system and deploy updated software artifacts. However, sometimes it is not desirable to make any changes to the services running on the system. The organization that provides the system may tend to impose a system freeze (also called a feature freeze or compute suspension) during such a time period. For example, if the system expects particularly high traffic. Modifying software artifacts associated with a service may reduce the stability of the system because unforeseen situations such as software defects or software errors may be encountered as a result of the change.

[0006] Large systems such as multi-tenant systems can manage services for a large number of organizations representing tenants of the multi-tenant system and can interact with multiple cloud platforms. A multi-tenant system may have to maintain thousands of tenants across multiple cloud platforms. In addition, the software, languages, and features supported by each cloud platform may be different. Therefore, tracking changes made to services deployed on data centers configured on cloud platforms is a cumbersome and error-prone process. As a result, even if there is a computational outage for a service deployed in an online system, it is very likely that the developer will change the software artifacts associated with the service, thereby reducing the stability of the system.

[0007] Furthermore, several users and user teams may be involved in a software release associated with a service. Therefore, tracking changes made to services deployed on a data center configured on a cloud platform becomes complicated because frequent changes may be made to source code as well as system configurations. Tracking changes to services deployed in large systems is cumbersome because the relevant information is either difficult to access or unavailable. This results in high maintenance costs for multi-tenant systems that support and track software releases and changes to software releases on a data center configured on a cloud platform. BRIEF DESCRIPTION OF THE DRAWINGS

[0008] Figure 1 is a block diagram showing a system environment of a multi-tenant system configured in a data center on a cloud platform according to an embodiment.

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

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

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

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

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

[0014] 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.

[0015] Figure 7 The overall process for generating a pipeline for configuring and deploying software artifacts on a data center on a cloud platform according to an embodiment is shown.

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

[0017] 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.

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

[0019] Fig.11A system architecture of a system configuration freezing module according to an embodiment is shown.

[0020] Fig.12 An exemplary pipeline for enforcing a system configuration freeze is shown, according to an embodiment.

[0021] Fig.13 A process for making changes to a system configuration of a service deployed on a data center in a cloud platform according to an embodiment is shown.

[0022] Fig.14 An overall process for performing a system configuration freeze of a data center entity configured in a data center on a cloud platform according to an embodiment is shown.

[0023] Fig.15 The system architecture of the change processing module according to the embodiment is shown.

[0024] Fig.16 An exemplary main pipeline for managing changes is shown according to an embodiment.

[0025] Fig.17 An overall process of change management for configuring services deployed on a data center on a cloud platform according to an embodiment is shown.

[0026] Fig.18 Illustrated are processes performed by the change management phase of the main pipeline, according to an embodiment.

[0027] Fig.19 A process for managing a queue for collecting change-related event information is shown according to an embodiment.

[0028] Fig. 20 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 typical computer system used in an environment.

[0029] 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.

[0030] 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

[0031] 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.

[0032] 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 cloud platform among multiple 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 the 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.

[0033] 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 that is independent of the cloud platform, and the specification includes 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 cloud platform-independent main pipeline that includes: (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 cloud platform-independent main pipeline 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 service-related operations. The system executes the cloud platform-dependent detailed pipeline on the target cloud platform, such as deploying a software release on the data center entities of the data center.

[0034] The system allows users to specify a system freeze (also known as a computing suspension) for a period of time for services running in a data center configured on a cloud platform. During the system freeze, changes to the system are prohibited or suspended. Changes that can be prevented during the system freeze include upgrades to software artifacts, changes to resource configurations used by the system (e.g., infrastructure resources such as load balancers, databases, servers, firewalls, network resources, etc.), data center configuration changes, modifications to libraries and other system artifacts used by the system, modifications to applications, etc. Although online systems can use continuous delivery platforms to allow developers to modify source code used in software artifacts, the embodiments disclosed herein allow organizations to shelve any such changes during a specific time interval.

[0035] For example, an organization that provides services via an online system may determine that during periods of high traffic, the services running on the online system should not be disrupted. Therefore, embodiments allow the system to be frozen so that the system continues to run and no changes can be made to the system. This reduces the likelihood of encountering system downtime.

[0036] As another example, a system may have some issues that require a team to analyze the system to determine the cause of the issue. However, during the period of time while the system is being analyzed to determine the cause of a particular issue, the system administrator may prefer to freeze the system's services so that no changes can be made to the software artifacts while the system is being monitored and debugged. This helps isolate issues with modifications to the system while the system is being monitored and debugged that make it difficult to determine whether the issue is caused by the original software in the service or by any changes made to the software while debugging the issue.

[0037] As another example, there may be multiple subsystems running within a system. The disclosed embodiments allow for subsystems to be modified in a mutually exclusive manner such that only one subsystem (or a small set of subsystems) is modified at a time. A particular subsystem may be modified at a time by deploying a software artifact for that subsystem. A system administrator may prefer to impose a pause on the remaining subsystems so that only one subsystem is modified at a time. Once a subsystem is deployed and tested, the pause is lifted to ensure that the subsystem operates reliably before allowing other subsystems to proceed with making changes to their corresponding software artifacts. The embodiments allow for such a pause to be imposed on the system, thereby selectively preventing modifications to software artifacts deployed in the system.

[0038] The cloud platform is also referred to herein as a substrate. The system may represent a multi-tenant system, but is not limited to a multi-tenant system, and may be any online system or any computing system with network access to the cloud platform.

[0039] Overall system environment

[0040] Figure 11 is a block diagram showing a system environment of a multi-tenant system configured on a cloud platform data center 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.

[0041] 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.

[0042] 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.

[0043] 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 systems according to the declarative specification of the data center.

[0044] 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.

[0045] 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.

[0046] 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.

[0047] 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.

[0048] The interactions between the various components of the system environment 100 are typically performed 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.

[0049] 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.

[0050] System Architecture

[0051] 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.

[0052] 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 or software artifacts for various services or applications running on the data center created by the data center generation module 220 .

[0053] 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.

[0054] 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, etc.

[0055] The mainstream pipeline 235 may include instructions for performing operations related to software releases in different environments (such as development environments, test environments, canary environments, and production environments), 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 a 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 a 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 is executed without error within a threshold time, the software release is advanced to a production environment, in which the software release is provided to all users.

[0056] 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.

[0057] 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.

[0058] Figure 2B An overall process for deploying software artifacts in a data center is shown according to an embodiment. Figure 2B The layout of 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.

[0059] 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 system configuration freezing module 350, a change processing module 355, and a pipeline execution engine 360. Other embodiments may include more Figure 3 The modules indicated herein may be more, fewer, or different modules.

[0060] Can run on different systems in a distributed manner Figure 3 For example, the pipeline generator module 320 may be executed on a computing system of a multi-tenant system, and the pipeline execution engine 360 ​​may be executed on a computing system of a cloud platform that deploys data center entities and services.

[0061] Parsing module 310 parses various types of user input, including declarative specifications of data centers, artifact version mapping 225, and main pipeline 235. Parsing module 310 generates data structures and metadata representations of the processed inputs, and provides the generated data structures and metadata representations to other modules of software release management module 230 for further processing.

[0062] 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.

[0063] 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 stages that include instructions for providing services or deploying applications, and is used to release versions of deployment software for various services on the cloud platform according to the artifact version mapping.

[0064] The artifact version map storage 330 stores artifact version maps received from users, and the pipeline storage 340 stores the main pipeline and the pipeline generated by the pipeline generator module 320 .

[0065] The system configuration freezing module 350 receives and processes a request to perform a system configuration freeze on a service running in a data center entity of a data center configured on a cloud platform. The received request specifies one or more services or data center entities configured on the cloud platform and a time interval for requesting to perform a system configuration freeze on the services or data center entities. Fig.11 Further details of the system configuration freeze module 350 are provided. Various processes performed by the system configuration freeze module 350 are described herein.

[0066] The change processing module 355 identifies requests to make changes to services installed in the data center and tracks information describing the changes. The change processing module 350 interacts with the change management system and records the execution details of the pipeline that implements the changes in the service. The recorded details can be used for auditing, for example, to determine why certain changes were made to the service configuration of the data center.

[0067] 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. The pipeline execution engine 360 ​​can be executed on one or more computing systems of the cloud platform.

[0068] Data center generation based on cloud platform

[0069] 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 modes.

[0070] The declarative specification 410 includes definitions of various types of data center entities, including service groups, services, teams, environments, and modes. 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 that conform to a predefined schema, such as JSON (Javascript Object Notation).

[0071] 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 the entity within the service group, but not to entities 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, schema 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.

[0072] 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 an API (application programming interface) and a collection of services that implement these APIs. In addition, service groups are independent of the substrate. 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.

[0073] 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.

[0074]

[0075]

[0076]

[0077] 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.

[0078] 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.

[0079] A service group 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. A security policy 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 env1 (e.g., a production environment), and another security policy "Policy 2" can apply to another environment env2 (e.g., a development environment). Security policies can be specified for service group types or specific service types.

[0080] 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.

[0081] 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.

[0082] 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.

[0083] The service definition specifies metadata for the type of service, such as 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 subservices 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 building, 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, etc. The service definition specifies the listening port property, which specifies the ports that the service can listen to for different communication protocols, for example, the service can listen to port p1 for the UDP protocol and port p2 for the TCP protocol. Other services in the data center can interact with the service via the port specified by the service.

[0084] 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.

[0085] The outbound access specification may identify one or more environment types of the service to which the outbound access applies. For example, outbound access of endpoint set S1 may apply to a specific environment env1 (e.g., a production environment), and outbound access of endpoint set S2 may apply to another environment env2 (e.g., a development environment).

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

[0087] {

[0088] "Service_Definition":[

[0089] {

[0090] "Authorization_Client":[],

[0091] "Create_dependencies":[],

[0092] "Description":"Description of the service",

[0093] "dns_name":"dns1",

[0094] "file":"URL",

[0095] "Name":"Name1",

[0096]

[0097] 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.

[0098] 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 210 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.

[0099] 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.

[0100]

[0101]

[0102] The environment definition 460 specifies the type of system environment represented by the data center, for example, a development environment, a trial operation 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 env1, and a different set of security policies may apply to the environment env2. 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 service life of the access token used in the production environment is much smaller (e.g., a few hours). The access token may allow a user or service to access specific cloud platform resources.

[0103] The data center definition 420 specifies the properties and components of a data center instance. The 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, etc.

[0104] The following is the 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 pattern version.

[0105]

[0106] Figure 52 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 210. Figure 5 As 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.

[0107] 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 210 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 of a plurality of cloud platforms.

[0108] The data center generation module 210 receives information identifying a target cloud platform for creating a data center based on a declarative specification independent of a cloud platform. The target cloud platform can be any of a plurality of cloud platforms, for example, AWS, AZURE, GCP, etc. The data center generation module 210 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.

[0109] The data center generation module 210 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.

[0110] The data center generation module 210 sends a platform-specific data center representation and instructions for deploying the data center on a 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 210 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, access to the data center is provided to users associated with the tenant.

[0111] 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 210 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 that is incrementally modified by a user. The data center generation module 210 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 210 can configure a data center on any target cloud platform based on the cloud platform-independent declarative specification 610.

[0112] The data center generation module 210 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 210 creates a unique identifier for a data center entity instance (e.g., a service instance).

[0113] 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 user team that is allowed to perform certain actions associated with the service instance. The data center generation module 210 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.

[0114] 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 210 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.

[0115] The data center generation module 210 receives a target cloud platform on which a 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 210 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, etc. The data center generation module 210 receives resource identifiers of resources created in the target cloud platform, such as user account names, VPC IDs, etc., 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 210 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, etc.

[0116] 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 a network policy for the cloud platform. The cloud platform may further create security groups to implement the network policy to implement a data center according to the declarative specification.

[0117] 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.

[0118] 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 substrate-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.

[0119] The data center generation module 210 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 210 can use the generated metadata representation to perform various validations, including policy validation, format validation, etc.

[0120] 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.

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

[0122] 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 one or more data centers 710 on a target cloud platform. Each data center is generated according to a declarative specification independent of the cloud platform and has a hierarchical structure of data center entities.

[0123] The software release management module 230 generates a main pipeline 720 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 (for example, 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.

[0124] 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, etc. The mainstream pipeline can be triggered when an image of a software artifact is delivered. The mainstream pipeline can enable continuous deployment controlled by the service owner. The mainstream pipeline can enable on-demand deployment owned by a data center instance owner or a release owner.

[0125] Certain parts of the main pipeline can 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 can be customized by a tenant to determine which test cases to execute and what the threshold is. The software release management module 230 receives customization 730 of the logic for advancing software artifacts from one stage to another in the main pipeline that is independent of the cloud platform.

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

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

[0128] 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.

[0129] 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.

[0130] 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.

[0131] 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.

[0132] 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.

[0133] Each environment pipeline 810, 820, 830 includes a push decision pipeline 815a, 815b, 815c, respectively. The push decision pipeline 815 collects the output of the data center pipeline of the environment pipeline, 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. 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.

[0134] 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 210 generates a detailed pipeline for deploying a software artifact version on a data center entity.

[0135] 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".

[0136] 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, etc. 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 210 starts from the data center entity at the hierarchical level and generates pipelines for the data center entities below that level. For example, the pipeline generator module 320 starts from the data center level and generates pipelines for the service groups within the data center. For each service group, the pipeline generator module 320 generates pipelines for the services within the service group.

[0137] The process for executing a pipeline according to one embodiment is as follows. The software release deployment module 230 receives a request to deploy a software artifact on a data center entity set in a target cloud platform. The software release deployment module 230 executes the main pipeline for one or more data centers. The software release deployment module 230 executes an aggregate pipeline for each service group in 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.

[0138] 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 .

[0139] The environment pipeline for environment E includes instructions to deploy software 910 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.

[0140] The environment pipeline for environment E also includes instructions for running tests for testing software artifacts deployed on the data center entity set 920. The environment pipeline for environment E also includes instructions for evaluating the test results 930 against the advancement criteria, for example, using the advancement decision pipeline 815. If the advancement criteria are not met, steps 910, 920, 930, and 940 can 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 to the next stage 950 if the advancement criteria are met.

[0141] 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.

[0142] 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.

[0143] 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.

[0144] 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.

[0145] The pipeline generator creates all pipelines for each data center from 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.

[0146] 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, etc.

[0147]

[0148]

[0149] 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 pushed 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 pushed to the next stage (i.e., the staging environment).

[0150] Software artifact version mapping

[0151] 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, etc. 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.

[0152] 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.

[0153] 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.

[0154] 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.

[0155]

[0156]

[0157] In one embodiment, the artifact version mapping uses the full path of the datacenter entity, such as "stagger_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, etc.

[0158] The following is an example of an artifact version mapping that specifies a regular expression to define a service set. The environment types are specified as dev 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 (dev) and test environments, version V1 of the application "application 1" will be deployed.

[0159]

[0160] 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.

[0161] According to the implementation scheme, the following process is used to configure the deployment of software artifacts on a data center on a cloud platform. The data center generation module generates one or more data centers on a target cloud platform. Each data center is generated according to a declarative specification that is independent of the cloud platform and has a hierarchy of data center entities.

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

[0163] The software release management module 230 compiles 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.

[0164] The software release management module 230 further receives code 750 for releasing one or more features of a service deployed on the 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 a cloud platform-specific deployment pipeline to deploy software artifacts based on the received code.

[0165] 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 the configuration of the retry operation of the data center entity, including retry strategy, the 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 automatically, etc. For example, the 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 stage 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.

[0166] System configuration freeze of services

[0167] In one embodiment, the system configuration freeze module 350 performs a system configuration freeze on services deployed in the target cloud platform. The system configuration freeze may be performed in response to a request received from a user (e.g., a system administrator). The request may identify a data center entity and request a freeze of the system configuration of all services running on the data center entity. The system configuration freeze ensures that no system configuration changes are made to the services of the data center entity and that no software artifacts associated with the services running on the data center entity are modified.

[0168] In one embodiment, the system receives a request to set a system configuration freeze for a data center entity (e.g., a service group, a cell, a data center, etc.). The system determines the services within the data center entity, for example, based on a declarative specification of the data center or based on metadata describing a topological hierarchy of the data center. For example, the system performs a hierarchical traversal of all data center entities below the data center entity and identifies all services within the data center entity. The system performs a system configuration freeze on all services identified within the data center entity D1, unless the system receives a request to create an exception (i.e., an override) for a particular service S1 or a smaller data center entity D2 within the identified data center entity D1 to not perform a system configuration freeze on the service S1 or the smaller data center entity D2.

[0169] A system configuration freeze may be performed in response to determining that a workload greater than a threshold amount is expected during a time interval. For example, if a tenant of a multi-tenant system expects a large number of processing requests during a time interval such as a holiday, the tenant may request that services running on the production system be frozen during the time interval to avoid the possibility of service interruption.

[0170] In one embodiment, the system may receive a modified declarative specification and a request to perform a system configuration freeze on a data center entity. For example, a data center may be modified to add a data center entity D2 within the hierarchy of data center entity D1, or to add a service s1 within the hierarchy of data center entity D1. The system creates the requested data center entity D2 or service S1, and enforces a system configuration freeze on the created service or data center entity during a specified time interval.

[0171] A system configuration freeze may be performed in response to determining that a problem associated with a data center entity is being diagnosed during a time interval. For example, a tenant of a multi-tenant system may identify a problem with a data center entity or service, such as a performance problem that causes poor performance of the service. A system administrator of the tenant may run diagnostic processes and tools to identify the root cause of the problem. While diagnosing the problem, the tenant may prefer to freeze the system configuration of the data center entity or service to minimize changes to the system so that the problem can be accurately diagnosed.

[0172] A system configuration freeze may be performed in response to determining that a particular system configuration change is being performed during a time interval. The system configuration freeze prevents any other system configuration changes during the time interval. Thus, the system can ensure that changes to system configurations that may interfere with each other are performed in a mutually exclusive manner, such that only one change is performed at a time, and any other changes are blocked during the period.

[0173] Although the embodiments described herein illustrate processes in the context of a multi-tenant system, the disclosed techniques may be applied to any other system, such as a system dedicated to a single organization.

[0174] Fig.11 1 shows the system architecture of the system configuration freezing module according to the embodiment. The system configuration freezing module 350 includes a freezing request processing module 1110, a lock manager 1120 and a system configuration freezing metadata storage 1130. Other embodiments may include Fig.11 More or fewer components than those indicated herein may be used.

[0175] The freeze request processing module 1110 receives and processes a system configuration freeze request. The system configuration freeze request may be received from a client device of a user (e.g., a system administrator). The system configuration freeze request specifies a time interval during which the system configuration freeze needs to be enforced. The system configuration freeze request may identify one or more services that need to be frozen during the specified time interval. The system configuration freeze request may specify a data center entity of a data center for performing the system configuration freeze. Thus, the request specifies that all services running in the data center entity need to be frozen during the specified time interval, so that no modifications are performed on the software artifacts associated with these services, and no modifications are performed on any type of configuration of these services. The freeze request processing module 1110 identifies a list of services that need to be frozen during the specified time interval. For example, if the system configuration freeze request specifies a data center entity, the freeze request processing module 1110 identifies all services configured to run in the data center entity.

[0176] The system configuration freeze metadata storage 1130 stores metadata related to performing a service configuration freeze, including metadata describing a request for a system configuration freeze. The metadata describing the request includes a request identifier, a time period during which the system freeze request needs to be enforced, and a data center entity for which the system configuration freeze needs to be enforced. The time interval can be specified using a start time and an end time or by using a start time and a length of a time interval. The system configuration freeze metadata storage 1130 also stores a mapping from services to locks, which can be obtained by the system configuration freeze module 350 for enforcing a freeze on a service, or by a pipeline for modifying a service configuration. The metadata describing the lock includes an estimate of the length of the time period for which the lock is requested.

[0177] The lock manager 1120 receives a request to acquire a lock and acquires the requested lock. The lock manager receives the request to acquire a lock from the freeze request processing module 1110 or from the pipeline execution module. In one embodiment, the lock manager is a distributed lock service that can be run on a system different from the computing system running the freeze request processing module 1110. The lock manager 1120 also receives a request to release a previously acquired lock and releases the lock. Acquiring a lock associated with a service within a specific time period ensures that no pipeline configured to modify the service can proceed within the time period. Releasing the lock after the time interval allows any pipeline attempting to modify the service configuration to continue, thereby ending the system configuration freeze of the service.

[0178] The pipeline generator module 320 generates a pipeline for making changes to the system configuration of a data center entity. The generated pipeline is configured to allow the system configuration freezing module 350 to freeze the configuration of any service.

[0179] Fig.12 An exemplary pipeline for enforcing a system configuration freeze is shown, according to an embodiment. Fig.12 Some stages of a pipeline generated for modifying the service configuration of a service, for example, for modifying software artifacts associated with the service. The generated pipeline may include Fig.12 Other stages not shown. Fig.12 The pipeline shown in can be Fig.10 A portion of the service pipeline 1030 is shown in FIG.

[0180] Thus, the generated pipeline 1200 includes a pre-change phase 1210, a change phase 1220, and a post-change phase 1230. The change phase 1220 includes various types of system configuration changes that can be implemented by the software release management module 230. These system configuration changes include, but are not limited to, deploying new services in a data center entity, destroying services in a data center entity, providing resources in a data center entity, destroying resources in a data center entity, performing any utility operations, or performing a rollback of a service deployment by reverting to an earlier version of a service or software artifact. The system configuration freeze module 350 is configured to freeze all of these types of changes to the data center entity during a time interval.

[0181] The pre-change stage 1210 includes instructions for acquiring locks associated with the service. The post-change stage 1230 includes instructions for releasing the locks acquired in the pre-change stage 1210. In one embodiment, information identifying the locks associated with each service is stored in the system configuration freeze metadata storage 1130. Therefore, the pipeline generator module 320 can access the locks associated with the pipeline and generate instructions for acquiring the locks, and include the generated instructions in the pre-change pipeline. Alternatively, the pipeline generator module 320 can generate instructions for accessing the system configuration freeze metadata storage 1130 to obtain the identifier of the lock associated with the service and then acquiring the lock. If the lock cannot be acquired, for example, if the lock has been previously acquired by another entity and has not been released, the instructions for acquiring the lock in the pre-change stage 1210 cause the pipeline execution to be suspended. For example, the system configuration freeze module 350 acquires the locks of all services that need to be frozen during the time interval, thereby suspending the execution of any pipeline that attempts to change the system configuration of the service during the time interval. In one embodiment, if the lock associated with the service cannot be acquired, the pre-change stage 1210 instruction causes the execution of the pipeline 1200 to fail. In one embodiment, if the lock associated with the service cannot be acquired within a threshold time period, the pre-change stage 1210 instruction causes the execution of the pipeline 1200 to fail. Therefore, the execution of the pipeline times out and fails after a period of time. If the execution of the pipeline fails, subsequent stages, such as the change stage 1220 and the post-change stage 1230, are not executed.

[0182] System configuration freezing process

[0183] Fig.13 1 shows a process for changing the system configuration of a service deployed on a data center in a cloud platform according to an embodiment. The data center generation module 220 generates one or more data centers 1310 based on a declarative specification independent of the cloud platform, for example, Figure 6 and 713. Each data center has a set of services deployed in the data center. The software release management module 230 receives an artifact version map 1320, which includes information describing any changes that need to be made to the services installed and executed in the data center. For example, the changes may include adding a new service to the data center, removing a service currently deployed in the data center, changing the configuration of a service, deploying a new version of a software artifact for a service, etc.

[0184] The software release management module 230 generates a cloud-independent main pipeline 1330, which includes a change management phase, such as Fig.12 The software release management module 230 compiles the cloud platform-independent main pipeline 1340 to generate a cloud platform-specific detailed pipeline, which includes instructions for deploying services according to the artifact version mapping on the data center deployed on the target cloud platform.

[0185] The software release management module 230 receives instructions 1350 for modifying the system configuration of a service deployed on a data center entity. The software release management module 230 executes a detailed pipeline specific to the cloud platform to make appropriate modifications to the system configuration of the service according to the artifact version mapping 1360. The detailed pipeline specific to the cloud platform includes a change phase, which includes instructions for making changes associated with one or more software artifacts of the data center entity, a pre-change phase, which includes instructions for acquiring locks, and a post-change phase, which is used to release the locks after the changes are made. If the pre-change phase fails to acquire the lock, the execution of the pipeline is suspended.

[0186] Fig.14 The overall process for performing a system configuration freeze of a data center entity configured in a data center on a cloud platform according to an embodiment is shown. The system configuration freeze module 350 receives a request 1410 to perform a system configuration freeze for a duration interval on the data center entity. The system configuration freeze module 350 identifies all services configured for execution within the data center entity. The system configuration freeze module 350 can identify the services based on a declarative specification of a data center to which the data center entity belongs. The request to perform a system configuration freeze specifies a time interval for requesting to enforce the system configuration freeze.

[0187] The system configuration freeze module 350 acquires locks 1430 associated with services of the data center entity within the time interval. In one embodiment, once the time interval for the system configuration freeze begins, the system configuration freeze module 350 accesses the system configuration freeze metadata storage 1130 to determine the identifier 1420 of the lock corresponding to each service identified, and acquires the lock corresponding to the lock identifier.

[0188] After the time interval begins and before the time interval ends, the software release management module 230 receives a request 1440 to modify the system configuration of the service running on the data center during the time interval. The software release management module 230 executes a pipeline 1450 for deploying software artifacts associated with the service running on the data center entity. The execution of the pipeline results in the execution of the pre-change phase of the pipeline, which causes the pipeline execution to be suspended until the lock is acquired. After the time interval is completed, the system configuration freeze module 350 releases the lock 1460 acquired for the service running on the data center entity. As a result, the pre-change phase of the pipeline is able to acquire the lock and cause the pipeline execution to be completed 1470, thereby allowing the requested change to the service to be executed after the time interval. According to some embodiments, after the change phase is completed and the requested modification is made to the system configuration, the post-change phase releases the lock acquired for the service. This process ensures that any pipeline that attempts to modify the service running on the data center entity is blocked from being modified during the time interval.

[0189] According to some embodiments, the pre-change phase includes an instruction to determine whether the pre-change phase of the pipeline fails to acquire a lock for more than a threshold time. If the pre-change phase of the pipeline fails to acquire a lock for more than the threshold time, execution of the pipeline fails. Therefore, an indication of pipeline execution failure is provided to the user, and the user must send a subsequent instruction to make a system configuration modification to the service.

[0190] In one embodiment, if a pipeline that modifies the system configuration of a service of a data center entity is being executed when a system configuration freeze of the data center entity is requested, the system postpones the system configuration freeze and correspondingly delays the interval in which the system configuration freeze occurs until the current pipeline execution is completed. However, the system prevents any new pipeline execution that may change the system configuration of the service of the data center entity from starting until the system configuration freeze is completed. This is because the currently executing pipeline has a lock associated with the service, resulting in the system configuration freeze request being shelved when the system configuration freeze module 350 attempts to acquire the lock on the service of the data center entity. The system administrator can manually destroy the currently running pipeline to allow the system configuration freeze to continue.

[0191] In one embodiment, if a failure occurs during pipeline execution when a system configuration freeze is enforced on a data center entity, the pipeline execution may result in locks being acquired but not released. The lock manager 1120 performs a lock garbage collection process that checks whether any locks remain unreleased after the time interval of the system configuration freeze. If the lock manager 1120 identifies any locks associated with services of the data center entity after the time interval, the lock manager 1120 releases those locks.

[0192] In some embodiments, a lock is associated with a duration that represents an estimate of the length of time it is expected to acquire the lock. The system can use the duration of a lock as an estimate of the time it takes for a pipeline to execute. The system can prioritize certain pipelines based on their expected duration of execution, for example, a shorter pipeline can be prioritized over a pipeline that takes significantly longer. However, if a pipeline takes longer to execute than the duration specified for the lock, the system will only record the difference. The system maintains a list of services for which the specified lock duration is significantly lower than the actual duration for acquiring the lock. The system prioritizes these pipelines differently from other pipelines that have precise durations specified for the lock. In one embodiment, the system automatically determines the lock duration based on the past execution time of the pipeline.

[0193] In one embodiment, the system configuration freeze is associated with a priority. Requests to modify services are also associated with a priority measure. If during the system configuration freeze interval, the software release management module 230 receives a service modification request such that the priority of the service modification request is higher than the priority of the system configuration freeze, then the service modification request of the data center entity is allowed to proceed during the time interval regardless of the system configuration freeze. The system provides this mechanism so that if a problem that may have occurred during a system configuration freeze (e.g., a pause) requires some emergency repair, then the repair is allowed to proceed.

[0194] System architecture of the change processing module

[0195] Fig.15 1 shows the system architecture of the change processing module according to the embodiment. The change processing module 355 includes a change determination module 1510, a change management client 1520, an event queue manager 1530, an event listener and an event queue storage 1550. Other embodiments may include Fig.15 More or fewer components than those indicated herein may be used.

[0196] The change determination module 1510 identifies changes being performed on services installed in one or more data centers. In one embodiment, the change determination module 1510 receives an instruction set that identifies changes to be performed compared to the current configuration of the services on the data center. For example, the change may specify a new service to be added, an existing service to be deleted, a service configuration that needs to be modified, etc.

[0197] In one embodiment, the change determination module 1510 stores various versions of the artifact version mapping. The software release management module 230 stores version V1 of the artifact version mapping corresponding to the current configuration of the data center on the target cloud computer. The software release management module 230 receives version V2 of the artifact version mapping that needs to be implemented on the target cloud computer. Version V2 of the artifact version mapping is different from version V1. The change determination module 1510 compares the two versions of the artifact version mapping to determine the difference between them. Therefore, the change determination module 1510 compares the received new version of the artifact version mapping with the previous version of the artifact version mapping currently being deployed to identify the changes requested in the new version of the artifact version mapping. These changes can include new services that need to be installed on a specific data center entity, versions of existing services that need to be changed (e.g., upgraded) on a specific data center entity, services that need to be removed from a specific data center entity, etc. The pipeline generator generates a main pipeline to implement the requested changes to the service configuration.

[0198] The change management client 1520 interacts with the change management system to store information describing the changes being performed. The change management system can be any system that stores records describing the changes and manages tasks related to the changes, such as sending alerts or messages related to the changes, receiving approvals for specific changes, etc. The change management client 1520 calls the API of the change management system to interact with the change management system. The change management system can be an external system that provides change management as a service.

[0199] The event queue manager 1530 creates and manages queues that store events related to deployment tasks. The event queue manager 1530 can create queues for various teams that need to be notified of specific events. For example, a team may be responsible for a data center entity defined in a data center declarative specification. The change processing module identifies specific events, such as failure or success events of services installed in a data center entity, and notifies the team. The event listener 1540 listens to events in the pipeline execution engine 360. Events describe detailed actions performed for each pipeline, such as whether a specific stage is successfully executed or failed, or whether a specific stage generates a message, etc. The event listener 1540 classifies events and associates them with specific data center entities. Therefore, the event listener 1540 provides information describing the event to the event queue manager 1530 for storage in the event queue. The event queue storage 1550 stores different queues, such as queues for one or more teams defined in the declarative specification of the data center.

[0200] Fig.16 An exemplary main pipeline for managing changes according to an embodiment is shown. The main pipeline includes similar Figure 8Those stages corresponding to different system environments shown in , through which software artifacts are advanced for deployment to the data center. Therefore, the main pipeline 1600 includes stages for different environments of the data center, including a development environment, a test environment, a canary environment, and a production environment. The main pipeline also includes a change management stage, and therefore, the main pipeline 1600 includes a development environment stage 810, which feeds into a test environment stage 820, which feeds into a change management stage 1610, which feeds into a canary environment pipeline 830, which feeds into a production environment pipeline 840, which feeds into a change closure stage 1620. Each stage is represented by the pipeline executed for that stage.

[0201] The master pipeline represents a set of pipelines forming a hierarchy, e.g., a pipeline corresponding to each data center entity in a hierarchy of data center entities formed by data centers, as specified by a declarative specification for generating a data center. The change management phase of each pipeline performs actions related to managing the changes represented by the master pipeline. For example, the change management phase includes instructions for performing interactions with a change management system.

[0202] In one embodiment, the change management phase includes instructions for creating a change case in a change management system, the change case representing a set of changes performed by the main pipeline. The change case of the change management system represents information describing the set of changes performed on the services of the data center. The change set can be stored as one or more records in a database of the change management system.

[0203] In one embodiment, the configuration file (e.g., artifact version mapping) includes information describing an existing change case, which will be used to store information describing a set of changes performed on a service in a data center. For example, a user (e.g., a system administrator) can create a change case and provide it in the configuration file for use in the change management phase.

[0204] The change management stages of the various pipelines represented by the main pipeline provide the deployment status of various services to the change management system for storage in association with the change case. For example, the pipeline of a particular service provides the deployment status of that service to the change management system. The status can indicate whether the deployment was successful, whether the deployment failed, whether the deployment generated errors or warnings, etc.

[0205] If the deployment of all services specified by the artifact version mapping is successful, the Change Close phase closes the change case. Closing the change case prevents further modifications to the change case, e.g., no further information may be stored in the change case. However, users can review the information stored in the change case, e.g., to review specific changes made to services.

[0206] Change Management Process

[0207] Fig.17 The overall process of change management of services deployed on data centers on a cloud platform according to the configuration of the embodiment is shown. The data center generation module 220 generates one or more data centers 1710 based on a declarative specification independent of the cloud platform, for example, Figure 6 and 7 17. Each data center has a set of services deployed in the data center. The software release management module 230 receives an artifact version map 1720, which includes information describing any changes that need to be made to the services installed and executed in the data center. For example, the changes may include adding a new service to the data center, removing a service currently deployed in the data center, changing the configuration of a service, deploying a new version of a software artifact for a service, etc.

[0208] The software release management module 230 generates a cloud-independent main pipeline 1730, which includes a change management phase, such as Fig.16 The main pipeline shown in . The cloud-independent main pipeline can also include a change closure stage at the end of the pipeline. The software release management module 230 compiles the cloud-independent main pipeline to generate a cloud-specific detailed pipeline 1740, which includes instructions for deploying services according to the artifact version mapping on the data center deployed on the target cloud platform.

[0209] The software release management module 230 receives source code 1750 for compiling to build software artifacts and deploying them on the target cloud platform. The software release management module 230 executes a detailed pipeline specific to the cloud platform to deploy the appropriate version 1760 of the software artifact according to the artifact version mapping. The execution of the detailed pipeline specific to the cloud platform results in the execution of the change management phase for each service deployed according to the artifact version mapping. The execution of the change management phase of the main pipeline can result in the creation of a change case in the change management system. The execution of the change management phase of the pipeline for a single service sends the execution status of the pipeline for storage in association with the change case in the change management system. The execution of the change management phase of the pipeline for a single service can cause the pipeline to wait for approval before advancing the software artifact processed by the pipeline to a subsequent stage, for example, from the test stage to the canary stage or from the canary stage to the production stage. The execution of the change closure phase of the main pipeline causes the change case to be closed so that no more modifications can be recorded in the change case.

[0210] Fig.18The process performed by the change management phase of the main pipeline according to the embodiment is shown. The software release management module 230 creates a change case 1810 in the change management system. The cloud-independent main pipeline includes a pipeline set, which includes at least one pipeline for each service deployed or modified in the data center. Each pipeline in the set includes a change management phase.

[0211] The software release management module 230 repeats steps 1820, 1830, and 1840 for each pipeline associated with the service in the data center. The software release management module 230 executes the pipeline 1820 associated with the service. The software release management module 230 sends the execution status of the pipeline to the change management system 1830. The software release management module 230 receives approval 1840 to enter the next stage. The approval can be received from a user or team associated with the service. If the software release management module 230 receives an indication that the advancement to the next stage is not approved, the software release management module 230 performs steps to repeat some steps of the pipeline, for example, after receiving revised source code or modified software artifacts. For example, if the number of passed test cases is below a threshold, the approval may be rejected. Therefore, the source code is modified and the steps are repeated so that at least the threshold number of test cases are passed, thereby receiving the approval. Once all pipelines in the pipeline set are approved and the pipeline set is successfully executed, the software release management module 230 performs a close change phase, which causes the change case to be closed.

[0212] In one embodiment, the software release management module 230 monitors the events recorded by the pipeline execution engine, which indicate the status of each action performed by the pipeline execution engine. The software release management module 230 analyzes each event in the data center context to determine whether the event is important enough to be recorded in a change case, and then sends information describing the event to a queue for reporting to the team associated with the service.

[0213] Fig.19A process for managing a queue for collecting event information related to changes in service configuration according to an embodiment is shown. The event listener 1540 of the change processing module 355 listens for events 1910 from the pipeline execution engine. For each event, the change processing module 355 performs the following steps 1920, 1930, 1940 and 1940. The change processing module 355 determines the service for which the event is generated. Therefore, the change processing module 355 evaluates the event to determine whether the event is important enough to be recorded and reported to the team associated with the service 1920 by the change management system. If the change processing module 355 determines that the event is important enough to be recorded and reported, the change processing module 355 identifies the queue 1930 of the team associated with the service. The change processing module 355 sends event information 1940 to the identified queue. The event is reported to the team associated with the service via the queue. The change processing module 355 sends a status update 1950 to the change management system based on the event for storage associated with the change case.

[0214] Computer architecture

[0215] Fig. 20 is a diagram showing a method for using the Figure 1 1 is a high-level block diagram of a functional view of a typical computer system that is one of the entities shown in environment 100 of FIG. At least one processor 2002 is shown coupled to a chipset 2004. Also coupled to the chipset 2004 are memory 2006, storage devices 2008, keyboard 2010, graphics adapter 2012, pointing device 2014, and network adapter 2016. Display 2018 is coupled to graphics adapter 2012. In one embodiment, the functionality of chipset 2004 is provided by memory controller hub 2020 and I / O controller hub 2022. In another embodiment, memory 2006 is coupled directly to processor 2002 rather than chipset 2004.

[0216] Storage device 2008 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 2006 holds instructions and data used by processor 2002. Pointing device 2014 may be a mouse, trackball, or other type of pointing device, and is used in conjunction with keyboard 2010 to input data into computer system 200. Graphics adapter 2012 displays images and other information on display 2018. Network adapter 2016 couples computer system 2000 to a network.

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

[0218] Computer 2000 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 2008, loaded into memory 2006, and executed by processor 2002.

[0219] The type of computer system 2000 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 2018, and may lack a pointing device 2014. In contrast, a multi-tenant system or cloud platform may include multiple blade servers that work together to provide the functionality described herein.

[0220] Other considerations

[0221] 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.

[0222] 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.

[0223] Unless otherwise clearly indicated 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.

[0224] 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.

[0225] 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.

[0226] 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.

[0227] 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.

[0228] 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 managing changes to a service executed in a data center configured on a cloud platform, the method comprising: Accessing a data center configured on a target cloud platform, the data center executing a service set, the data center comprising a hierarchy of data center entities, wherein each data center entity comprises (1) one or more services or (2) one or more other data center entities; receiving a modification of the set of services executed on the data center; Generate a main pipeline for deploying services on a target cloud platform, the main pipeline comprising: a plurality of stages comprising instructions for deploying the service, each stage corresponding to a system environment, wherein at least some of the system environments belong to a list including a development environment, a test environment, and a production environment; and the change management phase, which includes instructions for interacting with the change management system; compiling the main pipeline to generate a set of pipelines corresponding to the set of services, each generated pipeline including a change management stage; and Each of the set of pipelines is executed, wherein execution of a change management phase of the pipeline provides a deployment status of one or more services to a change management system.

2. The computer-implemented method of claim 1 , further comprising: receiving an audit request for a specific change in a specific service deployed in the data center; In response to receiving the audit request, identifying a deployment status of the particular service from the change management system; and In response to the audit request, the identified deployment status of the particular service is provided. 3 . The computer-implemented method of claim 1 , wherein the change management phase of the main pipeline occurs before a phase of the production environment. 4 . The computer-implemented method of claim 1 , wherein the set of pipelines forms a hierarchy corresponding to the hierarchy of data center entities in the data center.

5. The computer-implemented method of claim 1, wherein the main pipeline advances software artifacts of a service through a set of system environments.

6. The computer-implemented method of claim 5, wherein a stage of the plurality of stages of the main pipeline includes instructions for executing a set of test cases to determine whether to advance the software artifact from a current stage to a next stage.

7. The computer-implemented method of claim 1, wherein the master pipeline comprises a hierarchy of pipelines that corresponds to the hierarchy of data center entities specified by a cloud platform-independent declarative specification.

8. The computer-implemented method of claim 7, wherein the hierarchy of pipelines comprises a data center instance pipeline, wherein the data center instance pipeline comprises one or more service group pipelines, wherein the service group pipeline comprises one or more service pipelines.

9. The computer implemented method of claim 7, wherein the change management stage of the generated pipeline includes instructions awaiting approval to proceed to the next stage.

10. The computer-implemented method of claim 1 , further comprising: Receive declarative specifications that are independent of cloud platforms; and The cloud platform-independent declarative specification is compiled to generate a cloud platform-specific data center representation.

11. The computer-implemented method of claim 10, wherein compiling the cloud platform-independent declarative specification comprises: generating a first version of a cloud-independent detailed metadata representation of the data center from the cloud-independent declarative specification; and A second version of the cloud-independent detailed metadata representation of the data center is generated from the modified declarative specification.

12. The computer-implemented method of claim 11 , further comprising: generating a platform-specific detailed metadata representation for the target cloud platform based on the first version of the cloud platform-independent detailed metadata representation; and The data center is deployed on the target cloud platform based on the platform specific detailed metadata representation.

13. The computer-implemented method of claim 10, wherein the cloud platform-independent declarative specification comprises a definition of one or more data center instances, each data center instance comprising one or more service groups, wherein each service group comprises a service set.

14. The computer-implemented method of claim 1, wherein the modification of the set of services executed on the data center is specified via an artifact version mapping.

15. The computer-implemented method of claim 14, further comprising: The modification of the set of services executed on the data center is determined by comparing the artifact version mapping to previously received artifact version mappings.

16. A non-transitory computer-readable storage medium for storing instructions, which, when executed by a computer processor, cause the computer processor to perform steps for configuring a data center in a cloud platform, the steps comprising: Accessing a data center configured on a target cloud platform, the data center executing a service set, the data center comprising a hierarchy of data center entities, wherein each data center entity comprises (1) one or more services or (2) one or more other data center entities; receiving a modification of the set of services executed on the data center; Generate a main pipeline for deploying services on a target cloud platform, the main pipeline comprising: a plurality of stages comprising instructions for deploying the service, each stage corresponding to a system environment, wherein at least some of the system environments belong to a list including a development environment, a test environment, and a production environment; and the change management phase, which includes instructions for interacting with the change management system; compiling the main pipeline to generate a set of pipelines corresponding to the set of services, each generated pipeline including a change management stage; and Each of the set of pipelines is executed, wherein execution of a change management phase of the pipeline provides a deployment status of one or more services to a change management system.

17. The non-transitory computer-readable storage medium of claim 16, wherein the instructions further cause the computer processor to perform steps comprising: receiving an audit request for a specific change in a specific service deployed in the data center; In response to receiving the audit request, identifying a deployment status of the particular service from the change management system; and In response to the audit request, the identified deployment status of the particular service is provided.

18. The non-transitory computer-readable storage medium of claim 16, wherein the change management phase of the main pipeline occurs before a phase of the production environment.

19. The non-transitory computer-readable storage medium of claim 16, wherein the instructions further cause the computer processor to perform steps comprising: The modification of the set of services executed on the data center is determined by comparing an artifact version map with a previously received artifact version map.

20. A computer system comprising: Computer processors; and A non-transitory computer-readable storage medium for storing instructions, which, when executed by the computer processor, cause the computer processor to perform steps for configuring a data center in a cloud platform, the steps comprising: Accessing a data center configured on a target cloud platform, the data center executing a service set, the data center comprising a hierarchy of data center entities, wherein each data center entity comprises (1) one or more services or (2) one or more other data center entities; receiving a modification of the set of services executed on the data center; Generate a main pipeline for deploying services on a target cloud platform, the main pipeline comprising: a plurality of stages comprising instructions for deploying the service, each stage corresponding to a system environment, wherein at least some of the system environments belong to a list including a development environment, a test environment, and a production environment; and the change management phase, which includes instructions for interacting with the change management system; compiling the main pipeline to generate a set of pipelines corresponding to the set of services, each generated pipeline including a change management stage; and Each of the set of pipelines is executed, wherein execution of a change management phase of the pipeline provides a deployment status of one or more services to a change management system.

Citation Information

Patent Citations

  • System and method for workflow orchestration for use with a cloud computing environment

    CN104487948A

  • Low-power adaptive pipeline parallel method

    CN108845873A