Orchestration of data center creation on cloud platform
Through declarative specifications and cloud platform infrastructure languages that are independent of the cloud platform, the data center on the cloud platform is automatically configured, solving the problems of configuration complexity and high error rate in the existing technology, and achieving a more efficient and reliable data center. manage.
Patent Information
- Application Number
- CN202380022985.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2022-07-29
- Filing Date
- 2023-01-26
- Publication Date
- 2024-10-01
AI Technical Summary
Configuring data centers with multi-tenant systems on cloud platforms is complex and error-prone, resulting in downtime and service interruptions affecting large numbers of users. Existing technologies require manual steps and expertise and are prone to security violations and human error.
Adopt cloud platform-independent declarative specifications, use cloud platform infrastructure language to generate and configure data centers on multiple cloud platforms, generate cloud platform-specific instruction sets by compiling declarative specifications, automate pipeline and version mapping management, and reduce Manual operation and possibility of error.
Improves the availability, ease of use and reliability of data center configurations on cloud platforms, reduces downtime, reduces human error and the need to store duplicate information, and improves storage efficiency.
Smart Images

Figure CN118742886A_ABST
Abstract
Description
[0001] Inventors:
[0002] S. Dhruvakumar
[0003] V. Gupta
[0004] A.B.Whitchar
[0005] M. Chakkalapani
[0006] C.S. Moise
[0007] Z.P. Sheehan Technical Field
[0008] The disclosure generally relates to configuration of services in a cloud computing platform, and particularly to orchestrating datacenter creation in a cloud computing platform. Background Art
[0009] Organizations are increasingly relying 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, networking, software, etc. to organizations via the Internet. Conventionally, organizations maintain data centers that house the hardware and software used by the organization. However, maintaining a data center can result in significant overhead in terms of maintenance, personnel, etc. Therefore, organizations are moving their data centers to cloud platforms that provide sealing capabilities and elasticity of computing resources.
[0010] Large systems (such as multi-tenant systems) can manage services for a large number of organizations representing tenants of multi-tenant systems, and can interact with multiple cloud platforms. Multi-tenant systems may have to maintain thousands of such data centers on cloud platforms. Each data center may have different requirements for software release. In addition, the software, language, and features supported by each cloud platform may be different. For example, different cloud platforms may support different mechanisms for implementing network policies or access control. In addition, great efforts are required when allocating resources (such as databases / accounts / computing clusters) and deploying software in cloud platforms. Therefore, it is complicated to configure a data center including multiple services on a cloud platform. Typically, configuration involves manual steps and is prone to errors and security violations. These errors usually lead to downtime. Such downtime for large systems (such as multi-tenant systems) can affect a very large number of users and cause significant service interruptions. BRIEF DESCRIPTION OF THE DRAWINGS
[0011] Figure 1 is a block diagram illustrating a system environment for configuring a multi-tenant system of a data center on a cloud platform according to one embodiment.
[0012] Figure 2A is a block diagram illustrating the system architecture of the deployment module 210 according to one embodiment.
[0013] Figure 2B An overall process for deploying software artifacts in a data center is shown according to one embodiment.
[0014] Figure 3 is a block diagram illustrating the architecture of a software release management module according to one embodiment.
[0015] Figure 4 An example of a data center declarative specification is shown according to one embodiment.
[0016] Figure 5 An exemplary data center created on a cloud platform based on a declarative specification according to one embodiment is shown.
[0017] 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.
[0018] Figure 7 An overall process for generating a pipeline for deploying software artifacts on a data center configured on a cloud platform is shown according to one embodiment.
[0019] Figure 8 An exemplary main waterline is shown according to one embodiment.
[0020] Fig. 9 An overall process performed on a cloud platform by stages for a mainstream pipeline environment according to one embodiment is shown.
[0021] Fig.10 An exemplary data center configuration as specified using a declarative specification is shown according to one embodiment.
[0022] Fig.11 An exemplary main waterline is shown according to one embodiment.
[0023] Fig.12 A system architecture of an orchestration engine according to one embodiment is shown.
[0024] Fig.13 A flow chart illustrating a process of creating a data center in a cloud platform is shown, according to one embodiment.
[0025] Fig.14 A process of building an aggregation pipeline according to one embodiment is shown.
[0026] Fig.15A process of collecting information for building a pipeline according to one embodiment is shown.
[0027] Fig.16 A process of setting up a pipeline for execution is shown according to one embodiment.
[0028] Fig.17 A process for building an aggregated deployment manifest according to one embodiment is shown.
[0029] Fig.18 A flow chart illustrating a process of performing operations on a data center configured on a cloud platform is shown according to one embodiment.
[0030] Fig.19 A process for generating an aggregated version map according to one embodiment is shown.
[0031] Fig. 20 According to one embodiment, Figure 1 A block diagram of a functional view of a typical computer system used in an environment.
[0032] The accompanying drawings depict various embodiments for illustration purposes 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.
[0033] The drawings use similar reference numerals to identify similar elements. A letter following a reference numeral (such as "115a") indicates that the text specifically refers to the element with the particular reference numeral. A reference numeral without a subsequent letter in the text (such as "115") refers to any or all elements with the reference numeral in the drawings. DETAILED DESCRIPTION
[0034] 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 establishing 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 according to rapidly fluctuating and unpredictable needs. Enterprises can use the computing resources of cloud platforms to create data centers. However, implementing a data center on each cloud platform requires technical expertise in the cloud platform.
[0035] The implementation scheme creates a data center in a cloud platform using a cloud platform-independent cloud platform infrastructure language. 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 in a plurality of cloud platforms and is specified using a cloud platform infrastructure language. The system receives information identifying a target cloud platform for creating a data center, and compiles the cloud platform-independent declarative specification to generate a cloud platform-specific data center representation. The system sends a cloud platform-specific data center representation and an instruction set for execution on the target cloud platform. The target cloud platform executes the instructions to configure the data center using the platform-specific data center representation. The system provides users with access to computing resources of a data center configured by a cloud platform.
[0036] According to one embodiment, a system receives a declarative specification independent of a cloud platform for creating a data center on a cloud platform. The system generates an aggregate pipeline including a hierarchy of pipelines. The hierarchy of pipelines includes pipelines for creating data center entities of a data center. The aggregate pipeline is configured to create a data center. The system generates an aggregate deployment version mapping that associates data center entities of a data center with versions of software artifacts targeted for deployment on these data center entities. The system collects a set of software artifacts based on the aggregate deployment version mapping. The software artifacts are associated with the data center entities of the data center being created. The system executes the aggregate pipeline in conjunction with the aggregate deployment version mapping to create a data center according to a declarative specification independent of a cloud platform. The aggregate pipeline configures services based on the set of software artifacts.
[0037] When creating a data center on a cloud platform, multiple operations may need to be performed on various data center entities in the data center. For example, the system may receive the following request: deploy version V1 of service S1 in service group G1, deploy version V2 of service S2 on service group G1, and deploy version V3 of service S3 on service group G2, etc. Since various operations may be frequently performed on data center entities, such as deployment, deployment, patching, etc., it is troublesome to require service owners to specify the version of each artifact to be used for each operation, the version of the pipeline to be used, and other configuration details for each operation. A system according to an embodiment receives multiple version mappings (also referred to as version lists or deployment lists) from service owners. The version mapping identifies the version of the software artifact, the version of the pipeline, and any related configuration details. The system receives information indicating the context in which each version mapping can be used from the service owner. For example, the context can specify the type of data center entity (or the specific name of the data center entity) to which the version mapping applies, the type of environment (development environment, test environment, production environment), the type of operation that the version mapping can be used for (deployment, deployment, patching, ...), etc. The system receives a runtime request to perform operations for a specific environment on a set of data center entities. For example, the operation may be provisioning, the environment may be a development environment, and the datacenter entity may be a specific service instance. The system analyzes the available version mappings to identify the most appropriate version mapping for the current context.
[0038] According to one embodiment, a system receives a declarative specification independent of a cloud platform for creating a data center on a cloud platform. The system generates an aggregate pipeline including a hierarchy of pipelines. The hierarchy of pipelines includes pipelines for creating data center entities of a data center. The aggregate pipeline is configured to create a data center. The system generates an aggregate deployment version mapping that associates data center entities of a data center with versions of software artifacts targeted for deployment on these data center entities. The system collects a set of software artifacts based on the aggregate deployment version mapping. The software artifacts are associated with the data center entities of the data center being created. The system executes the aggregate pipeline in conjunction with the aggregate deployment version mapping to create a data center according to a declarative specification independent of a cloud platform. The aggregate pipeline configures services based on the set of software artifacts.
[0039] The disclosed system solves the problem of creating an aggregate version map that contains all deployment information for all possible targets in a cloud platform on which one or more operations are being performed. A user (e.g., a system administrator of a tenant of a multi-tenant system) can specify this information. Specifying the information is cumbersome for the user and causes the information to be defined twice in multiple places, for example, in the user's existing version map and in the aggregate version map specified for a particular set of operations. The user provides a path to the aggregate version map through metadata, and the system looks up the path to perform the desired operation.
[0040] Advantages of the disclosed system include: improved usability and ease of deployment in a cloud platform, since service owners do not need to specify version mappings for each deployment instance; improved reliability and faster loading times, since there are fewer manual steps and less potential for human error; and improved storage efficiency, since duplicate information defined and stored in multiple locations is removed. Storage efficiency is improved since users provide a single copy of each version mapping that can be used for multiple deployments.
[0041] The cloud platform is also referred to as a substrate in this article. The declarative specification of the data center is substrate-independent or independent. If conventional techniques are used to perform operations related to the data center, such as deployment of software releases, allocation of resources, etc., the user must provide instructions specific to the cloud platform. Therefore, the user needs expertise in the cloud platform used. In addition, the instructions are specific to the cloud platform and cannot be ported across multiple platforms. For example, the instructions for deploying software on the AWS cloud platform are different from the instructions on the GCP cloud platform. Developers need to understand the details of how to implement each feature on a specific cloud platform. The disclosed system provides a cloud platform infrastructure language, which allows users to use instructions that are independent of the cloud platform and can be executed on any cloud platform selected from multiple cloud platforms to perform operations on the data center. The compiler of the cloud platform infrastructure language generates detailed instructions specific to the cloud platform for the target cloud platform.
[0042] A data center configured on a cloud platform may also be referred to as a virtual data center. Although the embodiments are described with respect to a data center configured on a cloud platform (ie, a virtual data center), the disclosed technology may also be applied to a physical data center.
[0043] System may represent, but is not limited to, a multi-tenant system and may be any online system or any computing system with network access to a cloud platform.
[0044] System environment
[0045] Figure 11 is a block diagram of a system environment for configuring a multi-tenant system of a data center on a cloud platform according to one 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.
[0046] The multi-tenant system 110 stores information for one or more tenants 115. Each tenant can be associated with an enterprise representing a customer of the multi-tenant system 110. Each tenant can have multiple users that interact with the multi-tenant system via client devices 105.
[0047] 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 allocating 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, including servers, applications, storage, memory, and the like that may be used by a user (e.g., a user associated with a tenant). Each tenant may provide different functionality 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 mechanisms for publishing and deploying software for each tenant. Tenants may also 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.
[0048] The computing resources of the data center are secure and may not be accessed by 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 those computing systems according to the declarative specification of the data center.
[0049] With the multi-tenant system 110, data of multiple tenants can be stored in the same physical database. However, the database is configured so that the data of one tenant remains logically separate from the data of other tenants, so that one tenant cannot access the data of another tenant unless such data is explicitly shared. Transparently to the tenants, their data can be stored in a table shared with the data of other customers. Database tables can store rows for multiple tenants. Therefore, in a multi-tenant system, various elements of the hardware and software of the system can be shared by one or more tenants. For example, the multi-tenant system 110 can execute an application server that processes requests for multiple tenants at the same time. However, the multi-tenant system implements tenant-level data isolation to ensure that the jobs of one tenant do not access the data of other tenants.
[0050] Examples of cloud platforms include AWS (AMAZON web services), GOOGLE cloud platform, or MICROSOFTAZURE. Cloud platform 120 provides computing infrastructure services that can be used on demand by tenants 115 or by any computing system external to cloud platform 120. Examples of computing infrastructure services provided by cloud platforms include servers, storage, databases, networking, security, load balancing, software, analytics, intelligence, and other infrastructure service functionalities. Tenants 115 can use these infrastructure services to build, deploy, and manage applications in a scalable and secure manner.
[0051] The multi-tenant system 110 may include a tenant data repository that stores data for various tenants of the multi-tenant repository. The tenant data repository may store data for different tenants in separate physical structures, such as separate database tables or separate databases. Alternatively, the tenant data repository 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.
[0052] Figure 1 Each component shown in the figure represents one or more computing devices. A computing device may be a computer that executes, for example, Microsoft TM Windows TM Compatible operating system (OS), Apple TM A 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 software modules that store instructions.
[0053] Usually via Figure 1The network not shown in the figure is used to perform the interaction between the various components of the system environment 100. In one embodiment, the network uses standard communication technologies and / or protocols. In another embodiment, instead of or in addition to the above technologies, the entities can use customized and / or dedicated data communication technologies.
[0054] Although the technology disclosed herein is described in the context of a multi-tenant system, other systems that may not be multi-tenant systems may be used to implement these technologies. For example, an online system used by a single organization or enterprise may use the technology disclosed herein to create one or more data centers on one or more cloud platforms 120.
[0055] System Architecture
[0056] 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 allocating 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 of a system architecture of a deployment module 210 according to one embodiment. The deployment module 210 includes a data center generation module 220 and a software release management module 230. Other embodiments may have different and / or additional components than those described herein, and may distribute functionality between components in different ways.
[0057] The data center generation module 220 includes instructions for creating a data center on the cloud platform. The software release management module 230 includes instructions for deploying software releases for various services or applications running on the data center created by the data center generation module 220 .
[0058] 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 a platform-independent declarative specification and a 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.
[0059] 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 that is targeted for deployment on a specific data center entity. The artifact version map 225 maps the data center entity to a software release version that is 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, allocating service resources, destroying service resources, etc.
[0060] The main pipeline 235 may include instructions for performing operations related to software releases for 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 a software release is deployed in a development environment to execute more than 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 a software release in a test environment exceeds a threshold of test coverage, the software release is advanced to a canary environment, where the software release is provided to a small subset of users on a trial basis. If a software release in a canary environment executes without error within a threshold time, the software release is advanced to a production environment, where the software release is provided to all users.
[0061] 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 the appropriate version of the software release or deployment artifact as specified in the artifact version mapping 225 on the data center entity. 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. Therefore, the same main pipeline is used, but different software releases are 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, which deploys the version of the software release according to the new artifact version mapping 225.
[0062] The artifact version map may also be referred to as a deployment manifest, a version manifest, a software release map, or a software artifact version map. The main pipeline may also be referred to as a master deployment pipeline or a master orchestration pipeline. The artifact version manifest or deployment manifest specifies information specific to the data center entity, such as specific software artifact versions that should be used for the data center entity, values of parameters provided as input to the pipeline for the data center entity, types of computing resources to be used for the data center entity, specific parameter values for the configuration of computing resources for the data center entity, etc.
[0063] Figure 2B An overall process for deploying software artifacts in a data center is shown according to one embodiment. Figure 2B The layout of a data center 265 including various data center entities is shown. Figure 2B As shown, artifact version mapping 225 identifies different software versions that are targeted for release on different data center entities 275 in data center 265. The main pipeline represents the flow of deployment artifacts through various environments in 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 appropriate versions of software artifacts on data center entities according to the artifact version mapping 225.
[0064] Figure 3 2 is a block diagram illustrating 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 repository 330, a pipeline repository 340, and a pipeline execution engine 360. Other embodiments may include more than the ones described herein. Figure 3 More, fewer or different modules as indicated in .
[0065] 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.
[0066] The metadata repository 340 stores various transformed metadata representations of the data center generated by the 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, management, etc. at various stages of the transformation process.
[0067] 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 deploying services or deploying applications on the cloud platform according to the artifact version mapping for deploying software releases for various services. The artifact version mapping repository 330 stores the artifact version mapping received from the user, and the pipeline repository 340 stores the main pipeline and the pipeline generated by the pipeline generator module 320.
[0068] 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 that executes pipelines for publishing / deploying software, such as SPINNAKER. The pipeline execution engine 360 parses the pipeline and executes each stage of the pipeline on the target cloud computing platform.
[0069] Orchestration engine 350 performs orchestration of operations related to data centers or data center entities on the cloud platform, including the creation, destruction, and modification of data centers or data center entities. Orchestration engine 350 processes the declarative specification of the data center and uses the layout of the data center as defined by the declarative specification to generate a pipeline for orchestrating operations associated with the data center. Details of orchestration engine 350 are described in Fig.12 Shown and combined Fig.12 The process performed by orchestration engine 350 is further described herein.
[0070] Data center generation based on cloud platform
[0071] Figure 4 An example of a declarative specification for 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 there can be multiple instances of each data center entity type. Examples of data center entities include data centers, service groups, services, teams, environments, and modes.
[0072] 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 examples thereof. These examples are illustrative and show some of the properties of the data center entities. Other embodiments may include different properties, and properties with the same functionality may be given different names than indicated herein. In one embodiment, the declarative specification is specified using a hierarchical object that conforms to a predefined schema, such as JSON (Javascript Object Notation).
[0073] A service group 520 represents a set of capabilities and features and services provided by one or more computing systems that can be independently built and delivered according to an embodiment. A service group may also be referred to as a logical service group, a functional unit, a business unit, or a bounded context. A service group 520 may also be viewed as a set of services with a cohesive set of technical use case functionality provided by one or more computing systems. A service group 520 implements a security boundary. A service group 520 defines the scope of a modification. Thus, any modification to an entity within a service group 520 (such as a capability, feature, or service provided by one or more computing systems) may be propagated to entities within the service group as needed or appropriate, 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 example of a service group is a blockchain service group that includes a service set 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.
[0074] 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 easily use. The boundaries around the services of a service group are based on security considerations and network considerations, among other things. A service group is associated with a protocol for performing interactions with the service group. In one embodiment, a service group provides a series of APIs (application programming interfaces) and services that implement these APIs. In addition, service groups are substrate-independent. Service groups provide a blast radius range for services within the service group so that the impact of any failure of a service within the service group is limited to the services within the service group, and the impact outside the service group is minimal.
[0075] The following is an example of a 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, but this document does not indicate otherwise.
[0076]
[0077]
[0078]
[0079] As shown in the example above, a service group can specify a set of clusters. A cluster represents a group of computing nodes, for example, a server cluster, a group of virtual machines, or a group of containers (such as Kubernetes containers). A physical server can run multiple containers, each of which has its own share of file systems, CPUs, memory, process space, etc.
[0080] A service group specifies a set of services. A service group can specify a cluster for a service, such that a data center deployed on a cloud platform runs a cluster of compute nodes, and services are mapped to clusters based on a specified mapping (if included in the declarative specification). For example, in the service group example shown above, the service instance "service instance 0002" is specified to run on the cluster instance "cluster 1".
[0081] 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 need to pass additional authentication to communicate with services within the security group. Alternatively, services within the security group use one protocol to interact with each other, and services outside the security group use different protocols that require enhanced authentication to interact with services within the security group. Therefore, 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 be applied to a specific environment "Environment 1" (e.g., a production environment), and another security policy "Policy 2" can be applied to another environment "Environment 2" (e.g., a development environment). Security policies can be specified for service group types or for specific service types.
[0082] 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 service set groups. For example, the security policy may specify a list of IP (Internet Protocol) addresses that are whitelisted for the service set group identified by the filtered group, and thus allow these computing systems to access the service group or a specific service set within the service group.
[0083] In one embodiment, a security policy may specify a source service set and a destination service set for a service group. The source services for a particular service specify services outside the security group that are allowed to connect to the particular service. The destination services for a particular service specify 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 functionality to implement specific network policies such that these network policies implement the security policies specified in the declarative specification.
[0084] A data center entity called a cell represents a set of services that interact with each other in a vertical manner and can be scaled 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 scale the service sets 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.
[0085] The service definition specifies metadata for the type of service, for example, 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 documentation for the service, any subservices associated with the service, the owner of the service, the team associated with the service, the build dependencies of the service (specifying other services that the service depends on when it is built), the startup dependencies of the service (specifying other services that a particular service should run when it is started), authorized clients, the DNS (Domain Name Server) name associated with the service, the service status, the support level of the service, etc. The service definition specifies listening port properties, which specify the ports that the service can listen on for different communication protocols, for example, the service can listen on port p1 for the UDP protocol and on port p2 for the TCP protocol. Other services in the data center can interact with the service via the ports specified by the service.
[0086] The service definition specifies the attribute outbound access, which specifies the destination endpoint, for example, an external URL (Uniform Resource Locator), which specifies that the service needs to access the specified external URL. During deployment, the data center generation module ensures that the cloud platform implements the access policy so that instances of the service type are provided with the requested access to the external URL.
[0087] An outbound access specification may identify one or more environment types for a service that the outbound access applies to. For example, outbound access to a set of endpoints S1 may apply to a particular environment "environment 1" (e.g., a production environment), and outbound access to a set of endpoints S2 may apply to another environment "environment 2" (e.g., a development environment).
[0088] The following is an example of a service definition.
[0089]
[0090]
[0091] }
[0092] The team definition 450 includes the team member names and other properties of the team, such as name, email, communication channel, etc. The following are examples of team definitions. A service can be associated with one or more teams that are responsible for making modifications to the service. Therefore, any modifications to the service are approved by the team. A service can be associated with a team that is responsible for maintaining the service after the service is deployed in the cloud platform. A team can be associated with a service group and, correspondingly, with all services of the service group. For example, a team approves any changes to a service group (e.g., a service that is part of a service group). A team can be associated with a data center and, therefore, 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 also provides a default team for all services within a service group.
[0093] 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 defaults that may have been provided by team associations specified at the service group level or the data center level. A team can decide how to take specific actions on a data center entity associated with a team. The team association also determines the number of accounts created on the cloud platform for use by the compiler to generate a 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 with which the team is associated, such as making or approving structural changes to the data center entity or maintaining the data center entity when it is deployed, including debugging or testing issues that can be identified for the data center entity.
[0094] Conventional techniques associate the same team with a data center throughout the design process, resulting in organizational structure having an impact on the design of a data center or service group. The implementation separates team definition from defining the constructs of data center entities, thereby reducing the impact of the team on the design and architecture of data center entities.
[0095] {
[0096] "team_definition": [
[0097] {
[0098]
[0099] The environment definition 460 specifies the type of system environment represented by the data center, for example, a development environment, a pre-release environment, a test environment, or a production environment. The pattern definition 470 specifies a pattern, which specifies the syntax of a specific data center entity definition. The pattern definition 470 is used to verify various data center entity definitions. The data center generation module determines the security policy for the data center in the metadata representation specific to the cloud platform based on the environment. For example, a specific set of security policies may apply to the environment "environment 1", and a different set of security policies may apply to the environment "environment 2". For example, compared to the development environment, the security policy provides more constrained 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 long access token in weeks) may be allowed in the development environment, but an access token with a much smaller lifespan (e.g., a few hours) is used in the production environment. The access token may allow a user or service to access specific cloud platform resources.
[0100] 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 name, description, environment type, service set group, team, domain name server for the data center, etc. The data center definition can specify a schema definition, and any metadata representation generated from the data center definition is validated against the specified schema definition. A data center includes a set of core 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, pre-release, production, etc.
[0101] The following is a definition of a datacenter instance. A datacenter instance definition includes a list of service groups included in the datacenter instance and other properties, including the datacenter's environment, a datacenter identifier, a name, a region representing a geographic area, one or more teams associated with the datacenter, and a schema version.
[0102]
[0103]
[0104] Figure 5 2 shows some exemplary data centers created on a cloud platform based on declarative specifications according to one embodiment. A data center 510 may be created based on a declarative specification processed by a data center generation module 210. Figure 5As shown, 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.
[0105] The data center generation module 220 uses the following steps to create a data center on a cloud platform based on a declarative specification. 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 cloud platform in a plurality of cloud platforms.
[0106] The data center generation module 210 receives information identifying a target cloud platform for creating a data center based on a declarative specification that is independent of the cloud platform. The target cloud platform can be any of a plurality of cloud platforms, such as AWS, AZURE, GCP, etc. The data center generation module 210 also receives information for connecting to the target cloud platform, such as credentials for creating a connection to the target cloud platform. A cloud platform may also be referred to as a cloud computing platform.
[0107] 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.
[0108] 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, users associated with the tenant are provided with access to the data center.
[0109] Figure 6 2 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.
[0110] The data center generation module 210 processes the cloud platform-independent declarative specification 610 to generate a cloud platform-independent detailed metadata representation 620 for a data center. The cloud platform-independent detailed metadata representation 620 defines the details of each instance of a data center entity specified in the cloud platform-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).
[0111] In one embodiment, the cloud-independent detailed metadata representation 620 includes an array of instances of a datacenter 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 details of the team are used by the datacenter generation module 210 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.
[0112] The cloud-independent detailed metadata representation 620 includes the properties of each instance of the data center entity. Therefore, the description of each instance of the data center entity is expanded to include all details. Therefore, the cloud-independent detailed metadata representation 620 of the data center can be significantly larger than the cloud-independent declarative specification 610. For example, the cloud-independent declarative specification 610 can be a specification of several thousand lines, while the cloud-independent detailed data center representation 620 can be millions of lines of generated code. Therefore, the data center generation module 210 keeps the cloud-independent detailed metadata representation 620 immutable, that is, once the representation is finalized, no modifications are performed on the representation. For example, if any update, deletion, or addition of a data center entity needs to be performed, it is performed on the cloud-independent declarative specification 610.
[0113] The data center generation module 210 receives the target cloud platform on which the data center is expected to be provisioned and deployed, and generates a cloud platform-specific detailed metadata representation 630 of the data center. For example, the data center generation module 210 interacts with the target cloud platform to generate certain entities (or resources), such as user accounts, virtual private clouds (VPCs), and networking 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 combines 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, for example, for debugging, for receiving alerts, etc.
[0114] 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 permitted interactions between services. These permitted 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 also create security groups to implement a network strategy to implement a data center according to the declarative specification.
[0115] A cloud-platform-independent declarative specification specifies dependencies between services, for example, a startup dependency for each service that lists all services that should be run when a particular service is started. 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 these services in the order specified by the dependencies, so that for each service, when the service is started, these services need to be started before the service runs. Therefore, the dependencies between services represent a dependency graph, and the cloud platform starts running 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.
[0116] The datacenter 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 that are generated based on declarative specifications, for example, based on outbound access attributes specified for services. The datacenter generation module 220 sends instructions to the cloud platform to create network policies based on cloud platform-specific mechanisms that control interactions and access across service groups and services, for example, as specified by constructs of the declarative specification, such as outbound access, security groups, security policies, etc.
[0117] 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.
[0118] The cloud platform-independent declarative specification 610 may be referred to as a declared data center representation, the cloud platform-independent detailed metadata representation 620 may be referred to as a derived metadata representation of a data center, and the cloud platform-specific metadata representation 630 may be referred to as a hydrated metadata representation of a data center.
[0119] The overall process for deploying software artifacts on a data center
[0120] Figure 7 The overall process of generating a pipeline for deploying software artifacts on a data center configured on a cloud platform according to one embodiment is shown. The data center generation module generates 710 one or more data centers on a target cloud platform. Each data center is generated from a declarative specification independent of the cloud platform and has a hierarchy of data center entities.
[0121] The software release management module 230 generates 720 a main pipeline independent of the cloud platform. In one embodiment, the main pipeline independent of the cloud platform includes a stage corresponding to the environment (e.g., development environment, test environment, canary environment, and production environment) of the data center. The main pipeline constitutes a sequence of progressive and / or conditional deployment across various environments (such as development environment, test environment, pre-release environment, or production environment). The main pipeline can be triggered by delivering an image of a software artifact, and includes a stage or instruction for deploying a build version in an environment with type "development". The constructed software artifact is conditionally advanced to one or more test environments before being finally deployed to the production environment, followed by one or more canary environments. The main pipeline can be customized by a user (e.g., a service owner) to represent a specific orchestration across environments. The main pipeline can be customized to capture specific advancement criteria for moving from one stage to the next stage. For example, different tenants of a multi-tenant system can customize the main pipeline in different ways. In one embodiment, the main pipeline defaults to using the latest version of the software for the software artifact used for the service, and builds and deploys versions across various environments. Users can use artifact version mapping to ensure that specific versions of software artifacts are deployed on specific data center entities.
[0122] In one embodiment, each service deployed in a data center has a cloud-independent mainstream pipeline generated from data center entities as 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.
[0123] Some parts of the main pipeline can be customized by users, for example, by tenants of a multi-tenant system who are deploying services on a data center. For example, the decision pipeline to advance to determine which test cases to execute and what thresholds to use can be customized by the tenant. The software release management module 230 receives 730 customizations to the logic for advancing software artifacts from one stage to another in the main pipeline that is independent of the cloud platform.
[0124] The software release management module 230 compiles 740 the cloud platform-independent master pipeline to generate a cloud platform-specific detailed deployment pipeline that is specific to the hierarchy of data center entities for each data center as specified by the cloud platform-independent declarative specification for the data center.
[0125] The software release management module 230 also receives 750 code for publishing one or more features of a service deployed on the data center. The software release management module 230 executes 760 a detailed deployment pipeline specific to the cloud platform to deploy software artifacts based on the received code.
[0126] Figure 8 An exemplary main pipeline 800 is shown according to one 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 of a data center (including development environment, test environment, canary environment and production environment) are shown. Each stage also represents the pipeline executed for the stage. Therefore, 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.
[0127] 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 data center pipelines D11, D12, ... according to the number of data centers specified as having development environments in the declarative specification of the data center.
[0128] The test environment pipeline 820 includes a test main pipeline that feeds into data center pipelines D21, D22, ... according to the number of data centers specified as having test environments in the declarative specification of the data centers.
[0129] The canary environment pipeline 820 includes a canary main pipeline that feeds into the data center pipelines D31 , D32 , . . . according to the number of data centers specified as having canary environments in the declarative specification of the data centers.
[0130] The production environment pipeline 820 includes a main production pipeline that feeds into data center pipelines D21, D22, ... according to the number of data centers specified as having test environments in the declarative specification of the data centers.
[0131] Each environment pipeline 810, 820, 830 includes a push decision pipeline 815a, 815b, 815c, respectively. The output of the data center pipeline of the environment pipeline is collected by the push decision pipeline 815, which 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 for 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 passes, the push decision pipeline 815 pushes the software artifact to the next stage. The last environment stage (e.g., the production environment pipeline) may not have a push decision pipeline because the software artifact does not need to be pushed to any subsequent stage. Figure 8 As shown, 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.
[0132] The main pipeline includes multiple pipelines, for example, a deployment pipeline for deploying 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 need to be performed by the target cloud platform towards the deployment and deployment of the data center. The data center generation module 210 generates a detailed pipeline for deploying a version of a software artifact on a data center entity.
[0133] In one embodiment, the pipeline generator module 320 generates a detailed pipeline using a pipeline template including variables. The pipeline template is converted into a pipeline by providing specific values of 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 templated expressions that are used as placeholders for actual values used in deployment. For example, the templated expressions can be replaced by target-specific parameter values or expressions. 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 target-specific pipeline instances. For example, the template variable "account_id" can be replaced with the actual value of account_id, for example, "12345" during hydration.
[0134] 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 at a data center entity at a certain level of the hierarchy and generates pipelines for the data center entities below the level. For example, the pipeline generator module 320 starts at the data center level and generates pipelines for service groups within the data center. For each service group, the pipeline generator module 320 generates a pipeline for the service within the service group.
[0135] 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 set of data center entities in a target cloud platform. The software release deployment module 230 executes a 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 within each service group, the pipeline is executed by executing all stages of the pipeline. Execution of the deployment pipeline results in the deployment of resources for the service, and the deployment pipeline results in the deployment of the service in the target cloud platform.
[0136] Fig. 9 The overall process performed by the stage for the environment of the main pipeline on the cloud platform according to one embodiment is shown. Steps 910, 920, 930, 940 and 950 can be performed by each environment pipeline 810, 820, 830. The production environment pipeline 3 can only perform steps 910 and 920. It can be performed for one service or multiple services specified using the manifest file. Fig. 9 Steps shown.
[0137] The environment pipeline of environment E includes instructions for deploying 910 software on a data center entity set (e.g., a data center entity set designated as having environment E). In one embodiment, the software artifacts are generated by compiling source code for a 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.
[0138] The environment pipeline of environment E also includes instructions for running 920 tests for testing the deployed software artifacts on the data center entity set. The environment pipeline of environment E also includes instructions for evaluating 930 the test results 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 (e.g., a software artifact generated from source code that includes fixes for certain defects identified during testing 920). The environment pipeline of environment E also includes instructions for advancing 950 to the next stage if the advancement criteria are met.
[0139] 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 that deploys a set of services associated with a product. The next level of the hierarchy includes service main pipelines, which represent all deployments of a particular service across various environments. The next level of the hierarchy can include a service group main pipeline, followed by a service main pipeline.
[0140] Fig.10 An exemplary data center configuration as specified using a declarative specification according to one embodiment is shown. Root node 1020x represents a data center including a hierarchy of data center entities. Data center entities 1020a, 1020b, 1020c, 1020d, 1020e can represent service groups (e.g., functional domains). Each data center entity representing a service group includes one or more services. For example, data center entity 1020d includes services 1030c and 1030d, data center entity 1020e includes services 1030i, 1030j, and 1030k, data center entity 1020b includes services 1030e and 1030f, etc. Data center entities can include services and other data center entities. For example, data center entity 1020a includes services 1030a, 1030b, and data center entity 1020d, data center entity 1020c includes services 1030g, 1030h, and data center entity 1020e, etc. The system uses the declarative specification to determine the layout of the data center being created (as a blueprint of the data center) to guide the orchestration process of creating the data center. For example, the system creates pipelines for creating data center entities and for creating various services based on the declarative specification.
[0141] Fig.11 An exemplary aggregation pipeline generated for creating a data center based on a declarative specification according to one embodiment is shown. For example, Fig.11 Shown is the representation with Fig.10The hierarchy of Datacenter entities defined in the declarative specification corresponds to the hierarchy of pipelines that aggregate pipelines. Fig.11 The pipeline structure shown in includes data centers specified by a declarative specification (e.g., Fig.10 The system receives information identifying pipelines for each service from a service owner. For example, a service owner may provide a pipeline for a service or provide a link to a location where the pipeline is stored. Pipelines for services received from service owners are also referred to as unit pipelines. For example, pipelines 1120a, 1120b, 1120c, ..., etc. are unit pipelines for each service. Each unit pipeline can be executed to configure the corresponding service on the cloud platform. The system generates an aggregate pipeline 1110 that groups the individual service pipelines. For example, aggregate pipeline 1110a corresponds to data center entity 1010a, aggregate pipeline 1110b corresponds to data center entity 1010b, aggregate pipeline 1110d corresponds to data center entity 1010d, and so on. The system generates an aggregate pipeline 1110x for the entire data center 1020x. When all services and data center entities under a parent data center entity are configured (e.g., the service is configured and running), the parent data center entity is also configured. 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 the sub-pipelines.
[0142] The pipeline for a data center may be referred to as a main pipeline. A 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 hierarchy of the main pipeline 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 a data center instance 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 one or more service pipelines 1030. The service pipeline 1030 may include stages, each stage representing a pipeline, and the pipeline represents instructions for deploying services for a specific environment. The lowest level pipeline or leaf level pipeline in the hierarchy is called a unit pipeline and may include detailed service-specific instructions for performing operations related to the service. For example, 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 the sub-pipelines.
[0143] The main pipeline can be driven by a pull request that occurs in a version control system for the software, which receives requests for changes to be considered for submission to an external repository so as to be included 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. The main pipeline can be driven on an on-demand basis, for example, 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 for any version of a given service as specified using the API. The main pipeline can be called to request a rollback from the current version to the previous version, or to roll forward from the currently deployed version to a more recent version.
[0144] In one embodiment, the deployment module 210 creates a service master pipeline for each service. These pipelines are triggered when a pull request to the software repository is received. The deployment module 210 receives pipeline templates for specific services from service owners. These pipeline templates include detailed instructions for testing, verification, building, etc. for specific services.
[0145] The pipeline generator creates all pipelines for each data center from templates and combines them in a hierarchical manner via master pipelines. In one embodiment, the pipeline generator generates service pipelines for each service; the pipeline generator generates a service group master pipeline to call the service pipeline; the pipeline generator generates a data center instance master pipeline to call the service group pipeline.
[0146] Software artifact version mapping
[0147] 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 the 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.
[0148] In one embodiment, the artifact version map 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 map can include a set of <service>:<version> key pairs associated with various data center entities distributed across a data center hierarchy. The artifact version map key pairs act as a whitelist for the corresponding pipeline. If the key for a service is not included in the artifact version map, all pipelines for the service are excluded during execution of the pipeline. Different artifact version maps can be applied to the same mainstream pipeline, resulting in different services being included / excluded during execution of the mainstream pipeline.
[0149] 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 example, 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 example, the software artifact name is specified as "Library 1", the version is specified as "Version 1" and is associated with the service instance "Instance 001". However, the software artifact name and version can be associated with a data center entity at any level in the hierarchy. For example, if a software artifact name and version are specified for a service group, the software artifact name and version apply to all services within the service group unless the software artifact name and version are overridden by different values of the software artifact name and version specified for a specific service instance within the service group. Similarly, a software artifact name and version can be specified for a data center instance, and the software artifact name and version apply to all service groups or cells within the data center instance unless an override value is specified for the service group.
[0150]
[0151]
[0152] In one embodiment, the artifact version mapping specifies the datacenter entity using the full path of the datacenter entity, e.g., "interleaved_group1 / datacenter1 / service_group2 / service1". In one embodiment, the artifact version mapping specifies the set of datacenter entities in the full path of the datacenter entity using a regular expression. For example, a full path including "service_group[?]" includes service_group1, service_group2, service_group3, etc.
[0153] The following is an example of an artifact version mapping that specifies a regular expression for defining a service set. The environment type is specified as "dev&test", the datacenter entity including datacenter instances and service groups in the full path is specified as a wildcard, and the service instance is specified as "service*". Therefore, for all datacenter instances of the "dev&test" environment, for all service groups, for service names matching "service*", version V1 of the application "application1" will be deployed.
[0154] Environment_Type:
[0155] - Name: "Development|Test"
[0156] Datacenter_Instance:
[0157] -name:"(.*)"
[0158] Service_Group:
[0159] -name:"(.*)"
[0160] Serve:
[0161] -service_instance: "service*"
[0162] Name: "Application 1"
[0163] Version:
[0164] Version: "V1"
[0165] 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.
[0166] System architecture of the orchestration engine
[0167] Fig.12 1 shows a system architecture of an orchestration engine according to one embodiment. The orchestration engine 350 includes an orchestration gateway 1210, an orchestration pipeline builder 1220, an orchestration executor 1230, and a version map builder 1240. Other embodiments may include Fig.12 More or fewer components as shown.
[0168] Orchestration gateway 1210 is an interface supported by orchestration engine 350 for receiving orchestration requests. Orchestration gateway 1210 intercepts orchestration requests from users and automation systems. In one embodiment, orchestration gateway 1210 includes an authentication and authorization layer and MTLS (mutual transport layer security) capabilities to ensure that only authenticated and authorized requests can trigger infrastructure construction.
[0169] Orchestration requests can vary depending on the entity being built. Orchestration requests can specify a single service deployment or the deployment of an entire data center hosting multiple services and service groups. The request includes the service name, data center, service group, published version of the declarative specification, and the action that needs to be taken (e.g., create, destroy, modify). Once the request is received, the orchestration gateway distinguishes between previously built targets, targets being built, or if there are any errors in the previous deployment. If any of these conditions are met, the orchestration gateway may not take any action. If the received request does not fall into these conditions (target "already built", target "being built", or "there is an error in the deployment"), the orchestration gateway identifies the data center entities and services that need to be created and schedules requests to the executor to execute the request. The following is an exemplary request.
[0170]
[0171] The orchestration pipeline builder 1220 generates workflows and pipelines for orchestrating various processes, such as the creation, destruction, or modification of data centers and data center entities. The orchestration executor 1230 executes actions for executing any orchestration actions, such as the creation, destruction, or modification of data centers and data center entities.
[0172] The version map builder 1240 builds an aggregate version map for an operation or set of operations performed on a data center configured on the cloud platform. The system allows users to specify multiple version maps for any service, and the version map builder 1240 selects the best matching version map to use during a specific deployment or provisioning operation. The version map builder 1240 includes a filtering and mapping module 1215, a lookup module 1225, and an aggregation module 1235.
[0173] The version map builder 1240 receives the declarative specification of the data center being configured. The data center may have been configured, and the declarative specification represents the target configuration, so that the system is requested to modify the data center configuration to match the declarative specification. The deployment module 210 generates a detailed metadata representation independent of the cloud platform based on the declarative specification. The filtering and mapping module 1215 compares the target configuration specified by the detailed metadata representation independent of the cloud platform with the existing configuration of the data center to determine the changes that need to be made to the data center. The version map builder 1240 identifies the best matching version mapping that will be used to perform the requested operation on the data center. There may be multiple version mappings that can be applicable to each data center entity. The search module 1225 identifies all relevant version mappings applicable to each data center entity. The version map builder 1240 ranks all applicable version mappings and finds the best matching version mapping. The system uses the best matching version mapping to perform the required operations to reconfigure the data center to match the target data center configuration corresponding to the declarative specification. The aggregation module 1235 generates an aggregated version mapping based on a set of best matching version mappings identified for performing operations on the data center.
[0174] The service owner specifies one or more version mappings associated with the service by providing service metadata. The following is an example of a configuration file that specifies metadata for a service. The "service metadata" object specifies properties including an "admin team" that represents the team working on the service, a "service name" that identifies the service, a "service type ID" that specifies the type of the service, a "vmf repository" that represents the path to the repository of version mappings, and a set of "vmf paths" that represent the location of the version mappings associated with the service within the repository.
[0175] Service metadata:
[0176] Admin Team: Team 1
[0177] Service Name: Service 1
[0178] Service Type Id: <uuid>
[0179] vmf path:
[0180] -dir1 / production_list.yaml
[0181] -dir2 / pre-release_manifest.yaml
[0182] -dir2 / development_manifest.yaml
[0183] vmf repository: dir3 / vmf repository 1
[0184] The service owner can use the above service metadata format to specify multiple version mappings applicable to the service. Different version mappings can be specified for different data center entities, for example, version mapping M1 for service group G1, version mapping M2 for service group G2, version mapping M3 for service instance S1, etc. The version mapping builder 1240 identifies the best matching version mapping from a set of version mappings specified for each service.
[0185] Overall process of choreography
[0186] Figures 13 to 16 Flowcharts showing various processes associated with creating a data center on a cloud platform are shown. Steps of the various processes are indicated as being performed by a system (e.g., multi-tenant system 110 and cloud platform 120). Some steps may be performed by multi-tenant system 110 and some steps may be performed by cloud platform 120. These steps may be performed by various modules (e.g., orchestration engine 350 of software release management module 230) or by FIG. 2, Figure 3 or Fig.12 Other implementations may be different from Fig.13 The order shown is executed Fig.13 The steps of the process are shown.
[0187] Fig.13 A flow chart illustrating a process 1300 of creating a data center in a cloud platform is shown, according to one embodiment.
[0188] The system receives 1310 a declarative specification for creating a data center on a cloud platform. The declarative specification is a declarative specification that is independent of the cloud platform. The declarative specification specifies a hierarchy of data center entities.
[0189] The system generates 1320 an aggregation pipeline based on the declarative specification. The aggregation pipeline includes a hierarchy of pipelines, the hierarchy of pipelines including a pipeline for creating a data center entity of a data center. The aggregation pipeline is configured to create a data center.
[0190] The system generates 1330 an aggregate deployment version map. The aggregate deployment version map associates data center entities of the data center with versions of software artifacts targeted for deployment on the data center entities.
[0191] The system collects 1340 a set of software artifacts according to the aggregate deployment version map. Each software artifact in the set is associated with a data center entity of the data center being created.
[0192] The system executes 1350 an aggregation pipeline in conjunction with the aggregation deployment manifest to create a data center according to the declarative specification. The aggregation pipeline configures services of the data center based on the set of software artifacts.
[0193] Fig.14 A process of building an aggregation pipeline according to one embodiment is shown.
[0194] The system collects 1410 relevant metadata for building an aggregation pipeline. Step 1410 is also referred to herein as bootstrapping of a data center. The bootstrapping step includes collecting relevant metadata for building an aggregation pipeline that will be executed to create a data center in the cloud platform. Fig.15 Details of the bootstrapping steps are given in the flowchart shown.
[0195] The system establishes 1420 pipeline stage properties based on the collected metadata. Fig.16 The details of step 1420 are described in .
[0196] The system performs 1430 the representation of pipeline properties. Once all required attributes are collected and processed for a pipeline, pipeline properties (such as stages, conditional variables, preconditions, and other properties) are ready to be represented according to the final specification of the pipeline.
[0197] Fig.15 A process of collecting 1410 metadata information for building a pipeline is shown according to one embodiment.
[0198] The system obtains 1510 a data center layout from a declarative specification of a data center. The declarative specification of the data center specifies the data center hierarchy and the boundaries of various data center entities. The layout of the data center describes the hierarchy of data center entities and specifies whether data center entity D1 is within data center entity D2 based on the hierarchy. The system extracts the layout and can construct a data structure representing the layout. The layout specifies various service groups within the data center and the services within each service group. The system also identifies the pipelines required to deploy each service instance in the data center.
[0199] The system determines 1520 pipeline ordering and dependency information from the declarative specification. The declarative specification includes startup dependencies that specify other data center entities that are dependent on a specific data center entity. For example, the declarative specification may specify a set of services that need to be running so that a specific service can be started. The system extracts these dependencies between data center entities. The system can store these dependencies as a dependency graph. The declarative specification may specify grouping of pipelines, for example, for strategic execution of pipelines or for optimized execution of pipelines. The system extracts information describing the pipeline grouping. The declarative specification may specify ordering between data center entities, for example, a data center entity D1 associated with the organization's group G1 may need to be deployed before another data center entity D2 associated with group G2. For example, a data center entity associated with certain storage requirements may have to become available before any other data center entity is deployed. The system extracts the above different types of information from the declarative specification, including startup dependencies, pipeline grouping, and data center ordering, and combines the information into an aggregate pipeline generated for creating a data center.
[0200] The system performs 1530 an override of the service attributes requested by the service owner. A service owner may define specific steps during installation or execution of a service. For example, a service owner may define a custom workflow that specifies how a service pipeline needs to be executed. The system receives information describing such custom operations and incorporates them into the aggregate pipeline. As another example, a service owner may specify steps that require manual intervention. The system ensures that such steps are included in the pipelines for different services.
[0201] Fig.16 The process of establishing 1420 a pipeline for execution is shown according to one embodiment.
[0202] The system determines 1610 pipeline and service ordering based on dependencies extracted from the declarative specification. During the step, the system performs pipeline ordering by topologically ordering the services based on the startup dependencies defined for each service. The pipelines within each service are ordered according to metadata extracted from the declarative specification and any dependencies specified by the service owner for the particular service. In one embodiment, the pipelines are ordered in an order specified by the dependencies between the services.
[0203] The system identifies 1620 data centers, service groups, and services for deployment. In one embodiment, the system receives one or more deployment manifests that identify data center entities and corresponding services that need to be deployed in the data center entities. The deployment manifest also specifies the version of the service that needs to be deployed on a specific data center entity. The deployment manifest can specify a conditional expression to specify which data center entities need to be deployed and which data center entities need to be skipped. The system evaluates the conditional expression to identify all services that need to be deployed. The conditional expression can be evaluated differently at different times. The system aggregates the various deployment manifests received to generate an aggregated deployment manifest suitable for an aggregate pipeline. The deployment manifest can also include pipeline parameters for a service instance pipeline. The system extracts the pipeline parameters for specification in a service instance pipeline included in the aggregate pipeline.
[0204] The system assigns 1630 identifiers to pipeline stages. The system can assign a unique stage identifier to each stage. The system uses the identifiers to perform selective execution of stages in the pipeline. According to one embodiment, the system tracks the execution state of the aggregate pipeline by identifying the stages that have been previously executed and the last stage executed. In the event of a pipeline execution failure, the system determines the stage that has completed execution, identifies the next stage that was not executed, and resumes execution from the stage. In one embodiment, the system reruns the pipeline so that each stage checks whether the stage has previously completed execution successfully. If the system determines that a particular stage has previously completed successful execution, the system skips execution of the stage and continues to the next stage. The system repeats the process until a stage that was not previously executed is encountered. If the system encounters a stage that was not previously executed, the system executes the stage.
[0205] The system aggregates 1640 pipelines based on a datacenter hierarchy. The system uses the ordering of the pipelines determined 1610, various pipeline parameters extracted from a declarative specification or a deployment manifest to build an aggregated pipeline. The system uses pipeline groups defined for services to perform service-level aggregation and ordering of service pipelines. Pipeline groups represent metadata specified by service owners. The metadata definition specified by the service owner includes pipelines in each pipeline group and the ordering of pipeline groups. After ordering the service pipelines, the system aggregates all services defined for each service group (e.g., a business unit or functional domain). Within a service group, the system orders the pipelines based on dependencies extracted from a declarative specification. The system also performs datacenter aggregation by ordering service groups.
[0206] The system adds a verification phase at the end of the service group pipeline. The verification phase ensures that the service group is successfully deployed. In one embodiment, the verification phase is fixed in the pipeline, however, users can include custom verification scripts that are called by the verification phase when executing the service group aggregation pipeline. Custom verification scripts can perform integration tests and end-to-end tests. Tests designed for individual services can be completed as part of the deployment pipeline for the service.
[0207] Once all required properties are collected and processed for the pipeline, pipeline properties (such as stages, conditional variables, prerequisites, etc.) are ready to be expressed as per the final specification of the pipeline. When the orchestration needs to be triggered, runtime metadata may be required to successfully create a datacenter or datacenter entity. This is performed by passing certain artifacts required by the various sub-pipelines that make up the aggregate pipeline. These artifacts represent a snapshot of the application and include the application code as well as any dependency artifacts required to run the application.
[0208] Similar to building an aggregate pipeline, the system builds an aggregate deployment manifest from a set of input deployment manifests. Fig.17 The process of building an aggregated deployment manifest according to one embodiment is shown. A deployable service specifies the software artifacts required for its deployment in a deployment manifest 1710. These deployment manifests 1710 include information about application code versions, runtime configurations, etc. The system aggregates the information across the data center hierarchy in a bottom-up manner to aggregate the deployment manifest information into an aggregated deployment manifest 1720. A deployment manifest is also called an orchestration manifest.
[0209] The owner of a deployable datacenter entity uses a deployment manifest to specify the properties of software artifacts and runtime parameters that are processed by the datacenter's creation process. These software artifacts and parameters can vary across various environments. Deployment manifests allow service owners to use regular expressions and wildcards so that a common set of values can be used for the manifestation of their services across various environments.
[0210] The system parses the deployment manifests expressed by the service owner with wildcards based on runtime orchestration variables (such as environment variables). The orchestration manifest parser uses the appropriate deployment manifests and parameters based on a ranking mechanism. The system can receive multiple deployment manifests applicable to a specific data center entity. For example, a service owner can specify different deployment manifests for different environments (development, test, production, etc.). In addition, a deployment manifest M1 can be specified for a service, another deployment manifest M2 can be specified for the service group to which the service belongs, and another deployment manifest M3 can be specified for a data center. When the system generates an aggregated deployment manifest, the system parses the values of various attributes or parameters specified in the various deployment manifests to select applicable values for the service. The system traverses the hierarchy of data center entities specified by the declarative specification of the data center to determine the value of a specific attribute specified using the deployment manifest. The system aggregates values from multiple deployment manifests to build an aggregated deployment manifest that includes information for various services and data center entities for the data center hierarchy.
[0211] The system can evaluate wildcards and regular expressions to enumerate a set of values that apply to a particular datacenter entity. For example, if a service's deployment manifest specifies a set of versions using wildcards, the system evaluates the expression to determine the list of available versions. The list of available versions can change over time, for example, if new versions are created, then additional versions can match the same regular expression.
[0212] In some embodiments, the deployment manifest specifies the number of retries to be performed before determining an orchestration attempt as failed or successful. The deployment manifest may also include a specification for expected batch execution. The batch specification causes the orchestration to be executed in a batch manner. The system accordingly ensures that the orchestration batches are cumulatively counted toward the orchestration of the data center entity or data center.
[0213] Orchestration based on multiple service version mappings
[0214] Figure 18 to Figure 19 Flowcharts of various processes related to performing data center related operations on a cloud platform are shown. Steps of various processes are indicated as being performed by systems (e.g., multi-tenant system 110 and cloud platform 120). Some steps may be performed by multi-tenant system 110 and some steps may be performed by cloud platform 120. These steps may be performed by various modules (e.g., orchestration engine 350 of software release management module 230) or by FIG. 2, Figure 3 or Fig.12 Other embodiments may perform the steps of the processes shown in these figures in a different order than that shown in these figures.
[0215] Fig.18 A flow diagram is shown illustrating a process 1800 of performing operations on a data center configured on a cloud platform, according to one embodiment.
[0216] The system receives 1810 a request to perform an operation on a data center configured on a cloud platform. According to one embodiment, the request is specified as a declarative specification representing a target configuration of the data center. The system generates a detailed metadata representation that is independent of the cloud platform based on the declarative specification, and compares the target configuration as specified by the detailed metadata representation that is independent of the cloud platform with the existing configuration of the data center to determine the changes that need to be made to the data center. The system determines the operation to be performed on the data center based on the comparison. For example, if the target configuration includes a data center entity that is not currently available in the data center, the system includes an operation for creating a data center entity; if the target configuration does not include a data center entity that is currently available in the data center, the system includes an operation for deleting an existing data center entity; if the target configuration includes a data center entity with a configuration that is different from the configuration of a matching data center entity that is currently available in the data center, the system includes an operation for modifying the configuration of the existing data center entity.
[0217] The system generates 1820 an aggregate version map. The aggregate version map associates data center entities of a data center with versions of software artifacts targeted for deployment on the data center entities and versions of service pipelines to be used for a particular service.
[0218] The system generates 1830 an aggregate pipeline based on a declarative specification and an aggregate version mapping. The aggregate pipeline includes a hierarchy of pipelines, including pipelines for performing various operations, including creating a data center entity, deleting a data center entity, modifying the configuration of a data center entity, and the like. The aggregate pipeline is configured to create a data center if the data center does not exist, and to modify the configuration of the data center if the data center already exists. According to one embodiment, the system aggregates pipelines based on a data center hierarchy. The system uses the version of the service pipeline as determined in the aggregate version mapping for inclusion in the hierarchy of pipelines represented by the aggregate pipeline. The system constructs an aggregate pipeline using the ordering of the individual pipelines, various pipeline parameters extracted from the declarative specification. After ordering the service pipelines, the system aggregates all services defined for each service group (e.g., a business unit or functional domain). Within the service group, the system orders the pipelines based on dependencies extracted from the declarative specification. The system also performs data center aggregation by ordering the service groups.
[0219] According to one embodiment, the system determines pipeline ordering and dependency information from a declarative specification. The declarative specification includes startup dependencies that specify other data center entities that depend on a specific data center entity. For example, a declarative specification may specify a set of services that need to be run so that a specific service can be started. The system extracts these dependencies between data center entities. The system can store these dependencies as a dependency graph. The declarative specification may specify the grouping of pipelines, for example, for strategic execution of pipelines or for optimized execution of pipelines. The system extracts information describing the pipeline grouping. The declarative specification may specify the ordering between data center entities, for example, a data center entity D1 associated with the organization's group G1 may need to be deployed before another data center entity D2 associated with group G2. For example, a data center entity associated with certain storage requirements may have to become available before any other data center entity is deployed. The system extracts the above different types of information from the declarative specification, including startup dependencies, pipeline grouping, and data center ordering, and combines the information into an aggregate pipeline generated for creating a data center. The system determines pipeline and service ordering based on the dependencies extracted from the declarative specification. During the step, the system performs pipeline sequencing by topologically ordering the services based on the startup dependencies defined for each service. Pipelines within each service are ordered according to metadata extracted from the declarative specification and any dependencies specified by the service owner for the particular service. In one embodiment, pipelines are ordered in the order specified by the dependencies between services.
[0220] The system collects 1840 a set of software artifacts according to the aggregate deployment version map. Each software artifact in the set is associated with a data center entity of the data center being created. The versions of the software artifacts in the set of software artifacts are determined based on the aggregate version map, and the versions represent the best matching versions of the software artifacts applicable to the given context.
[0221] The system identifies 1850 the best matching version of the service pipeline based on the aggregate version mapping. The matching service pipeline is associated with the aggregate pipeline so that the service pipeline is executed at the appropriate stage of the aggregate pipeline.
[0222] The system executes 1860 an aggregation pipeline in conjunction with the aggregate version manifest to create a data center according to the declarative specification. The aggregation pipeline configures services of the data center based on the set of software artifacts.
[0223] According to one embodiment, the system may perform multiple iterations to create a data center based on a declarative specification. For example, a first attempt to create a data center may be partially successful, thereby creating only a subset of the data center entities as specified in the declarative specification. Therefore, during a second attempt, the system compares the configuration of the partially generated data center to the declarative specification to determine the set of operations that need to be performed to complete the configuration process of the data center. If another failure occurs during the second attempt, the system repeats the process by performing more attempts until the configuration of the data center matches the declarative specification.
[0224] Fig.19 A process for generating an aggregated version map according to one embodiment is shown. Fig.19 The process shown provides Fig.18 Details of step 1820 of the process are shown. Fig.19 The process shown shows how the system selects the best matching version mapping for a particular service instance. Repeat for each service instance for which an operation is being performed to determine the corresponding best matching version mapping. Fig.19 The system generates an aggregated version map by aggregating the best matches of the version maps determined for each service. In one embodiment, the system generates two aggregated version maps: a provisioning version map for provisioning services on a data center and a deployment version map for deploying services on a data center of a cloud platform.
[0225] The system receives 1910 a target service instance for which the best matching version mapping needs to be determined and a list of input version mappings. The target service instance can be specified by specifying a full path to the service instance in a hierarchy that identifies a data center entity. For example, the target service instance can be specified by specifying an environment type (development, test, production, etc.) and a data center entity above the service instance in a specified hierarchy (e.g., a data center, one or more service groups (e.g., functional domains, cells, etc.), and a service instance). Fig.19 The output of the process shown in is the best matching version mapping for the target service instance.
[0226] The system identifies 1920 the pipelines specified for the service instance, including the deployment pipeline and the deployment pipeline. For example, the service owner may have specified multiple pipelines for deploying and / or deploying different resources associated with the service. Examples of resources include a server cluster used by the service instance, a storage system used by the service instance, a database used by the service instance, a queue service used by the service instance, a notification service used by the service instance, and the like. Each resource may have a deployment pipeline associated with it, which is specified by the service owner for the target service instance. There may be deployment pipelines, for example, a pipeline for deploying a database, a pipeline for deploying a database pattern, a pipeline for deploying an application using a database, deployment code for each microservice associated with the service instance, and the like. Each pipeline is identified by a unique identifier, for example, the location of the pipeline's instructions (i.e., template) in a storage repository. The identifier of the pipeline is specified in the version map. Alternatively, the service definition may specify all pipelines required to deploy / deploy a service instance.
[0227] The system constructs 1930 a map M1 from pipelines to version maps associated with the pipelines. For example, if a particular version map specifies a set of pipelines, each pipeline is associated with a version map and is added to the map M1. The map M1 can be a hash map with a key based on a pipeline identifier.
[0228] The system initializes 1940 a map M2, for example, a hash map that maps pipelines to a current best matching version map for pipelines and a matching rank for the current best matching pipeline. Map M2 may be initialized as an empty map data structure.
[0229] The system iterates through the various pipeline and version mapping pairs stored in the mapping structure M1. For each pair (pipeline P, version mapping V) stored in the mapping structure M1, the system performs steps 1950 and 1960. Thus, for the version mapping V, the system determines 1950 a matching rank R based on the various criteria specified herein. If the current best matching version mapping for pipeline P is not stored so far in the mapping M2, the version mapping M and the rank R are added to the mapping M2 for the key corresponding to pipeline P. Assume that the current best matching version mapping V for pipeline P is stored in the mapping M2. 当前_最佳 And matching ranking R 当前_最佳 In this case, if the current best version map V for pipeline P stored in map M2 is 当前_最佳 If the match ranking R determined for pipeline P indicates a better match for version mapping V for pipeline P than the match ranking of M2, the system replaces entry V for pipeline P stored in mapping M2 with V. 当前_最佳 , and replace the match rank R with rank R 当前_最佳 If the current best version map V for pipeline P stored in map M2 is 当前_最佳 If the match ranking R determined for pipeline P indicates a worse match for version mapping V for pipeline P than the match ranking of M2, the system ignores version mapping V and leaves entry V stored in mapping M2 当前_最佳 And the corresponding matching ranking R 当前_最佳 .
[0230] The above steps 1950 and 1960 are repeated for all pairs (pipeline, version map) stored in map M1. Once all pairs (pipeline, version map) stored in map M1 are processed, the system generates 1970 an aggregated version map based on the version map stored in map M2 that represents the best matching version map for the corresponding pipeline.
[0231] Matching criteria for version mapping
[0232] The system determines a match ranking for a version mapping for a service instance as follows. A service instance is identified by specifying a data center entity of the hierarchy in a path from the root of the hierarchy to the service instance. For example, a path to a service instance may include a data center instance (DI), a service group instance (SG, e.g., a functional domain), a cell (CELL), and a service instance (SI). In addition, for a particular operation, the system specifies the type of environment (ENV). As an example, a target service instance path object may list an identifier of each data center entity in the path and environment as follows. For the following discussion, environments are also considered data center entities. Therefore, the target service instance path object is represented as a sequence of data center entities, each data center entity corresponding to a level of the hierarchy along the path from the root to the service instance.
[0233]
[0234]
[0235] The system determines a match object for each version mapping. The match object specifies a match type for each attribute of the target service instance path object. When the version mapping specifies the exact name of the data center entity, the match type is an exact match ("exact"). For example, the data center entity SI in the above example is "test_service", and the version match applies to SI "test_service", then the match of SI is "exact". When the version mapping specifies a regular expression and the data center entity of the target service instance path object matches the regular expression, another match type is a regular expression match ("regular expression"). For example, the data center entity SI is "test_service", and the version match applies to SI "test_*", then the match of SI is "regular expression".
[0236] Another match type is a default match ("default"). The service owner specifies a default version mapping to use when there is no exact match or regular expression match. If a default version mapping is used for a particular data center entity, the match is "default".
[0237] Another match type is the first match ("first_match"). If there is no match, the system takes the first defined target in the best matching version mapping file.
[0238] The following is an example match object for the example target service instance above.
[0239]
[0240] Other embodiments may use numerical values for each type of match. The priority of the matching version mapping is determined as a weighted aggregation of the priority values for each data center entity, where the weight depends on the level of the data center entity in the path. Thus, the environment (ENV) has the highest weight, the data center instance (DI) has the second highest weight, the service group (SG) has the second highest weight, the cell (CELL) has the second highest weight, and the service instance (SI) has the lowest weight. Each type of match is assigned a match score such that the exact match has the highest score, the regular expression match has the second highest score, the default match has the second highest score, and the first definition has the lowest score. The match scores for each data center entity are weighted as above and added together to determine the match ranking for the version mapping.
[0241] The following is an exemplary service metadata configuration file that specifies three version mapping files under the vmf path property, namely, test-vmf.yaml, pre-release-vmf.yaml, and production-vmf.yaml.
[0242] Service metadata:
[0243] Admin Team: salesforce-Team
[0244] Service name: salesforce
[0245] Service Type Id: <uuid>
[0246] vmf path:
[0247] -vmf-in / salesforce / deployment-eks / test-vmf.yaml
[0248] -vmf-in / salesforce / deployment-eks / pre-release-vmf.yaml
[0249] -vmf-in / salesforce / deployment-eks / production-vmf.yaml
[0250] vmf repository: salesforce / salesforce-vmf
[0251] The following is an example version mapping file used in a test environment.
[0252] Target:
[0253] Environment_Type:
[0254] - Name: Test
[0255] Datacenter_Instance:
[0256] - Name: Test 1 - Example
[0257] Service_Group:
[0258] - Name: Service Group 1
[0259] Serve:
[0260] - Name: Service 1
[0261] Service_Instance: Service_Instance1
[0262] Version:
[0263] - Name: Pipeline
[0264] Pipeline_Version: Test-Pipeline
[0265] - Name: test-helm
[0266] artifact_version:test-helm
[0267] The above example provides the pipeline version and artifact version for the exact datacenter entity name. The following is another example of version mapping for use in a production environment.
[0268] Target:
[0269] Environment_Type:
[0270] - Name: Production
[0271] falcon_instance:
[0272] - Name: Production 1-Instance
[0273] Function_domain:
[0274] - Name: salesforce-domain
[0275] Serve:
[0276] - Name: salesforce
[0277] Service_Instance: salesforce1
[0278] Version:
[0279] - Name: Pipeline
[0280] Pipeline_Version: Production-Pipeline
[0281] - Name: production-helm
[0282] artifact_version: production-helm
[0283] Thus, the implementation scheme provides several benefits for performing operations on a cloud platform. The system automates the process of selecting the correct target when generating a version mapping, rather than requiring the user to manually create a new template version mapping, thereby saving time and reducing the possibility of errors. The system allows users to transfer their existing version mappings, so there is only one source of truth, rather than the user having to manage two copies of the same information. In addition, storing a single copy of the version mapping results in improved storage efficiency. The system allows services with complex multiple version mapping structures to make changes to parts of their versions without affecting other version mappings for different targets. Therefore, the system allows the use of a cloud platform to modularly develop version mappings and related code for deployment and deployment.
[0284] Computer architecture
[0285] Fig. 20 is shown according to one embodiment for use as Figure 1 100. At least one processor 2002 is shown coupled to a chipset 2004. Memory 2006, storage devices 2008, keyboard 2010, graphics adapter 2012, pointing device 2014, and network adapter 2016 are also coupled to the chipset 2004. Display 2018 is coupled to the graphics adapter 2012. In one embodiment, the functionality of the chipset 2004 is provided by a memory controller hub 2020 and an I / O controller hub 2022. In another embodiment, the memory 2006 is coupled directly to the processor 2002 instead of the chipset 2004.
[0286] 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.
[0287] As is known in the art, the computer 2000 may have Fig. 20 2000. In addition, the computer 2000 may lack some of the components shown. 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 to the computer 2000 and / or remote (e.g., implemented in a storage area network (SAN)).
[0288] Computer 2000 is adapted to execute computer modules for providing the functionality described herein. As used herein, the term "module" refers to computer program instructions and other logic for providing specified functionality. Modules can be implemented in hardware, firmware, and / or software. Modules may include one or more processes, and / or may be 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.
[0289] The type of computer system 2000 used by the entities of the system environment may vary depending on the implementation and the processing power used by the entities. For example, the client device may be a mobile phone with limited processing power, 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.
[0290] Additional considerations
[0291] 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, the system may be implemented via a combination of hardware and software as described, or entirely in hardware elements. Furthermore, the specific functional divisions between the various system components described herein are 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.
[0292] Some parts of the above description present features of algorithms and symbolic representations of operations on information. These algorithmic descriptions and representations are the means by which those skilled in the art of data processing can most effectively communicate the essence of their work to other persons skilled in the art. Although these operations are described functionally or logically, it should be understood that these operations are implemented by computer programs. In addition, it has also been demonstrated that it is convenient to sometimes refer to these arrangements of operations as modules or by functional names without loss of generality.
[0293] Unless specifically stated otherwise, as is apparent from the above discussion, it will be understood that throughout the description, discussions utilizing terms such as "processing" or "computing" or "calculating" or "determining" or "displaying" etc. refer to the actions and processes of a computer system or similar electronic computing device that manipulates and transforms data represented as physical (electronic) quantities within a computer system memory or registers or other such information storage, transmission or display device.
[0294] Certain embodiments described herein include process steps and instructions described in algorithmic form. It should be noted that the process steps and instructions of the embodiments can be implemented in software, firmware or hardware, and when implemented in software, it can be downloaded to reside on different platforms used by real-time network operating systems and operated from these platforms.
[0295] 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 selectively activated or reconfigured by a computer program stored on a computer-readable medium that can be accessed by a computer. Such computer programs 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 (ROM), a random access memory (RAM), 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 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 a multi-processor design to improve computing power.
[0296] The algorithms and operations proposed herein are not inherently related to any particular computer or other device. Various general purpose systems may also be used together with the program according to the teachings herein, or it may prove convenient to construct a more specialized device to perform the required method steps. The structures required for various these systems and equivalent variations will be apparent to those skilled in the art. In addition, embodiments of the present invention are not described with reference to any particular programming language. It should be understood that various programming languages may be used to implement the teachings of the embodiments described herein.
[0297] These embodiments are well suited for various computer network systems on a variety of topologies.In the field, configuration and management of large networks include storage devices and computers that are communicatively coupled to different computers and storage devices via a network, such as the Internet.
[0298] 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 limit or delineate the subject matter of the present invention. Accordingly, the disclosure of the embodiments is intended to be illustrative rather than limiting.< / uuid> < / uuid>
Claims
1. A computer-implemented method for configuring a data center on a cloud platform, the method comprising: receiving a cloud platform-independent declarative specification for creating a data center on a cloud platform, the data center comprising a hierarchy of data center entities, wherein each data center entity comprises one or more of: (1) a service or (2) one or more other data center entities; generating an aggregate pipeline including a hierarchy of pipelines, the hierarchy of pipelines including a pipeline for creating a data center entity of the data center, the aggregate pipeline being configured to create the data center; generating an aggregated deployment version map associating data center entities of the data center with versions of software artifacts targeted for deployment on the data center entities; collecting a set of software artifacts according to the aggregated deployment version map, wherein the software artifacts are associated with a data center entity of the data center being created; and The aggregation pipeline is executed in conjunction with the aggregate deployment version mapping to create the data center according to the cloud platform independent declarative specification, the aggregation pipeline configuring services based on the set of software artifacts.
2. The computer-implemented method of claim 1 , wherein the declarative specification describes a dependency relationship between a particular service and one or more other services, the one or more other services being required to execute the particular service, the method further comprising: Based on the dependencies between the services specified in the declarative specification, an execution order of pipelines associated with the services is determined, wherein the aggregate pipeline arranges the pipelines according to the determined order.
3. The computer-implemented method of claim 2, further comprising: A topological sorting of services is performed in a data center entity based on dependencies between the services, wherein an order of pipelines in the aggregate pipeline is determined based on an order determined by the topological sorting.
4. The computer-implemented method of claim 1 , further comprising: assigning an identifier to each stage of a pipeline included in the aggregation pipeline; and An execution state of a pipeline stage is stored, the state of the stage being associated with a stage identifier of the stage.
5. The computer-implemented method of claim 4, further comprising: Determining that execution of the aggregation pipeline has failed; and Execution of the converged pipeline is resumed, the resuming comprising skipping execution of a stage in response to determining that execution of the stage has previously completed based on a stored state of the stage of the pipeline.
6. The computer-implemented method of claim 4, further comprising: A user is provided with access to the service running in the data center deployed on the cloud platform.
7. The computer-implemented method of claim 1 , wherein generating the aggregated deployment version map comprises: receiving one or more service deployment version mappings, wherein the service deployment version mappings are associated with a service; and The aggregated deployment version mapping of the data center is determined by aggregating the one or more service deployment version mappings.
8. The computer-implemented method of claim 1, wherein the cloud platform-independent declarative specification comprises a definition of one or more data center instances, wherein a data center instance comprises one or more service groups, wherein a service group comprises a service set.
9. A non-transitory computer-readable storage medium for storing instructions, which when executed by a computer processor causes the computer processor to perform steps for deploying a software artifact for a service executed in a data center configured on a cloud platform, the steps comprising: receiving a cloud platform-independent declarative specification for creating a data center on a cloud platform, the data center comprising a hierarchy of data center entities, wherein each data center entity comprises one or more of: (1) a service or (2) one or more other data center entities; generating an aggregate pipeline including a hierarchy of pipelines, the hierarchy of pipelines including a pipeline for creating a data center entity of the data center, the aggregate pipeline being configured to create the data center; generating an aggregated deployment version map associating data center entities of the data center with versions of software artifacts targeted for deployment on the data center entities; collecting a set of software artifacts according to the aggregated deployment version map, wherein the software artifacts are associated with a data center entity of the data center being created; and The aggregation pipeline is executed in conjunction with the aggregate deployment version mapping to create the data center according to the cloud platform independent declarative specification, the aggregation pipeline configuring services based on the set of software artifacts.
10. The non-transitory computer-readable storage medium of claim 9, wherein the declarative specification describes a dependency relationship between a specific service and one or more other services required to execute the specific service, wherein the instructions further cause the processor to execute steps comprising: Based on the dependencies between the services specified in the declarative specification, an execution order of pipelines associated with the services is determined, wherein the aggregate pipeline arranges the pipelines according to the determined order.
11. The non-transitory computer-readable storage medium of claim 10, wherein the instructions further cause the processor to perform steps comprising: A topological sorting of services is performed in a data center entity based on dependencies between the services, wherein an order of pipelines in the aggregate pipeline is determined based on an order determined by the topological sorting.
12. The non-transitory computer-readable storage medium of claim 9, wherein the instructions further cause the processor to perform steps comprising: assigning an identifier to each stage of a pipeline included in the aggregation pipeline; and An execution state of a pipeline stage is stored, the state of the stage being associated with a stage identifier of the stage.
13. The non-transitory computer-readable storage medium of claim 12, wherein the instructions further cause the processor to perform steps comprising: determining that execution of the aggregation pipeline has failed; and Execution of the converged pipeline is resumed, the resuming comprising skipping execution of a stage in response to determining that execution of the stage has previously completed based on a stored state of the stage of the pipeline.
14. The non-transitory computer-readable storage medium of claim 9, wherein the instructions further cause the processor to perform steps comprising: A user is provided with access to the service running in the data center deployed on the cloud platform.
15. The non-transitory computer-readable storage medium of claim 9, wherein the instructions to generate the aggregated deployment version map cause the processor to perform steps comprising: receiving one or more service deployment version mappings, wherein the service deployment version mapping is associated with a service; and The aggregated deployment version mapping of the data center is determined by aggregating the one or more service deployment version mappings.
16. The non-transitory computer-readable storage medium of claim 9, 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.
17. A computer system comprising: Computer processors; and A non-transitory computer-readable storage medium for storing instructions that, 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: receiving a cloud platform-independent declarative specification for creating a data center on a cloud platform, the data center comprising a hierarchy of data center entities, wherein each data center entity comprises one or more of: (1) a service or (2) one or more other data center entities; generating an aggregate pipeline including a hierarchy of pipelines, the hierarchy of pipelines including a pipeline for creating a data center entity of the data center, the aggregate pipeline being configured to create the data center; generating an aggregated deployment version map associating data center entities of the data center with versions of software artifacts targeted for deployment on the data center entities; collecting a set of software artifacts according to the aggregated deployment version map, wherein the software artifacts are associated with a data center entity of the data center being created; and The aggregation pipeline is executed in conjunction with the aggregate deployment version mapping to create the data center according to the cloud platform independent declarative specification, the aggregation pipeline configuring services based on the set of software artifacts.
18. The computer system of claim 17, wherein the declarative specification describes a dependency relationship between a specific service and one or more other services required to execute the specific service, wherein the instructions further cause the processor to execute steps comprising: Based on the dependencies between the services specified in the declarative specification, an execution order of pipelines associated with the services is determined, wherein the aggregate pipeline arranges the pipelines according to the determined order.
19. The computer system of claim 18, wherein the instructions further cause the processor to perform the steps comprising: A topological sorting of services is performed in a data center entity based on dependencies between the services, wherein an order of pipelines in the aggregate pipeline is determined based on an order determined by the topological sorting.
20. The computer system of claim 17, wherein the instructions further cause the processor to perform the steps comprising: assigning an identifier to each stage of a pipeline included in the aggregation pipeline; and An execution state of a pipeline stage is stored, the state of the stage being associated with a stage identifier of the stage.
21. A computer-implemented method for performing operations on a cloud platform, the method comprising: receiving a request to perform an operation on a data center configured on the cloud platform, the data center being associated with a set of services executed on the cloud platform; for a particular service from the set of services, receiving a plurality of version mappings, wherein each version mapping provides version information for a particular context associated with the data center; creating an aggregate version mapping for the requested operation, including selecting a particular version mapping from the plurality of version mappings for the particular service, the selecting being based on relevance of the particular version mapping to a current context of the requested operation; Based on the aggregation version mapping, generating an aggregation pipeline; collecting a set of software artifacts according to the aggregate version mapping; and The aggregation pipeline is executed to perform the requested operation for the data center, the aggregation pipeline performing the requested operation based on the set of software artifacts.
22. The computer-implemented method of claim 21 , further comprising: receiving a declarative specification describing a target configuration of a data center entity of the data center; and accessing the data center to extract information describing data center entities currently available in the data center; The information extracted from the data center is compared to the declarative specification to identify the data center entity on which the operation is requested to be performed.
23. The computer-implemented method of claim 22, further comprising: Determining that execution of the aggregation pipeline has failed; and Resuming execution of the aggregation pipeline includes skipping execution of a stage of the pipeline in response to determining that execution of the stage has previously completed based on the extraction information of the data center.
24. The computer-implemented method of claim 21, wherein the specific context specifies one or more of: Target environment, The target data center entity, or The target action to be performed on the cloud platform.
25. The computer-implemented method of claim 21 , wherein the operation requested to be performed on the data center is one of: Provisioning software artifacts on said cloud platform, Deploy the software artifact on said cloud platform, or The software artifact is patched on the cloud platform.
26. A computer-implemented method according to claim 21, wherein the version mapping specifies one or more of the following: the version of the pipeline to be used and the version of the software artifact to be used for the specific context, and the specific context is represented using one or more of the following: a target environment, a target data center entity, and a target action to be performed on the cloud platform.
27. The computer-implemented method of claim 21, wherein the data center comprises a hierarchy of data center entities, wherein each data center entity comprises one or more of: (1) a service or (2) one or more other data center entities.
28. The computer-implemented method of claim 21, further comprising: performing a topological sort of services in a data center entity based on dependencies that configure the data center on a cloud platform based on a declarative specification that is independent of the cloud platform, An aggregate pipeline is generated including a hierarchy of pipelines, the hierarchy of pipelines being configured to perform the operation on a data center configured on the cloud platform.
29. A non-transitory computer-readable storage medium for storing instructions that, when executed by a computer processor, cause the computer processor to perform steps for deploying a software artifact for a service executed in a data center configured on a cloud platform, the steps comprising: receiving a request to perform an operation on a data center configured on the cloud platform, the data center being associated with a set of services executed on the cloud platform; for a particular service from the set of services, receiving a plurality of version mappings, wherein each version mapping provides version information for a particular context associated with the data center; creating an aggregate version mapping for the requested operation, including selecting a particular version mapping from the plurality of version mappings for the particular service, the selecting being based on relevance of the particular version mapping to a current context of the requested operation; Based on the aggregation version mapping, generating an aggregation pipeline; collecting a set of software artifacts according to the aggregate version mapping; and The aggregation pipeline is executed to perform the requested operation for the data center, the aggregation pipeline performing the requested operation based on the set of software artifacts.
30. The non-transitory computer readable storage medium of claim 29, wherein the instructions further cause the processor to perform steps comprising: receiving a declarative specification describing a target configuration of a data center entity of the data center; and accessing the data center to extract information describing data center entities currently available in the data center; The information extracted from the data center is compared to the declarative specification to identify the data center entity on which the operation is requested to be performed.
31. The non-transitory computer-readable storage medium of claim 29, wherein the specific context specifies one or more of the following: Target environment, The target data center entity, or The target action to be performed on the cloud platform.
32. The non-transitory computer-readable storage medium of claim 29, wherein the operation requested to be performed on the data center is one of: Provisioning software artifacts on said cloud platform, Deploy the software artifact on said cloud platform, or The software artifact is patched on the cloud platform.
33. A non-transitory computer-readable storage medium according to claim 32, wherein the version mapping specifies one or more of the following: the version of the pipeline to be used and the version of the software artifact to be used for the specific context, and the specific context is represented using one or more of the following: a target environment, a target data center entity, and a target action to be performed on the cloud platform.
34. The non-transitory computer-readable storage medium of claim 29, wherein the data center comprises a hierarchy of data center entities, wherein each data center entity comprises one or more of: (1) a service or (2) one or more other data center entities.
35. The non-transitory computer-readable storage medium of claim 29, wherein the data center comprises a hierarchy of data center entities, wherein each data center entity comprises one or more of: (1) a service or (2) one or more other data center entities.
36. The non-transitory computer readable storage medium of claim 29, wherein the instructions further cause the processor to perform steps comprising: performing a topological sort of services in a data center entity based on dependencies that configure the data center on a cloud platform based on a declarative specification that is independent of the cloud platform, An aggregate pipeline is generated including a hierarchy of pipelines, the hierarchy of pipelines being configured to perform the operation on a data center configured on the cloud platform.
37. A computer system comprising: Computer processors; and A non-transitory computer-readable storage medium for storing instructions that, 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: receiving a request to perform an operation on a data center configured on the cloud platform, the data center being associated with a set of services executed on the cloud platform; for a particular service from the set of services, receiving a plurality of version mappings, wherein each version mapping provides version information for a particular context associated with the data center; creating an aggregate version mapping for the requested operation, including selecting a particular version mapping from the plurality of version mappings for the particular service, the selecting being based on relevance of the particular version mapping to a current context of the requested operation; Based on the aggregation version mapping, generating an aggregation pipeline; According to the aggregate version map, collecting a set of software artifacts; and The aggregation pipeline is executed to perform a requested operation for the data center, the aggregation pipeline performing the requested operation based on the set of software artifacts.
38. The computer system of claim 37, wherein the instructions further cause the processor to perform the steps comprising: receiving a declarative specification describing a target configuration of a data center entity of the data center; and accessing the data center to extract information describing data center entities currently available in the data center; The information extracted from the data center is compared to the declarative specification to identify the data center entity on which the operation is requested to be performed.
39. The computer system of claim 38, wherein the specific context specifies one or more of the following: Target environment, The target data center entity, or The target action to be performed on the cloud platform.
40. The computer system of claim 37, wherein the operation requested to be performed on the data center is one of: Provisioning software artifacts on said cloud platform, Deploy the software artifact on said cloud platform, or The software artifact is patched on the cloud platform.
