DEPLOYMENT STRATEGIES FOR CONTINUOUS DELIVERY OF SOFTWARE RTIFACTS IN CLOUD PLATFORMS
Computing systems, for example, multi-tenant systems deploy software artifacts in data centers created in a cloud platform using a cloud platform infrastructure language that is cloud platform independent. The system receives an artifact version map that identifies versions of software artifacts for data center entities of the data center and a cloud platform independent master pipeline that includes instructions for performing operations related to services on the data center, for example, deploying software artifacts, provisioning computing resources, and so on. The system receives a deployment manifest that provides declarative specification of deployment strategies for deploying software artifacts in data centers. The system implements a deployment operator that executes on a cluster of computing systems of the cloud platform to implement the deployment strategies.
This disclosure relates in general to continuous delivery of software in cloud computing platforms, and in particular to specifying high level deployment strategies for continuous delivery of software cloud computing platforms.
Description of the Related ArtOrganizations are increasingly replying on cloud platforms (or cloud computing platforms) such as AWS (AMAZON WEB SERVICES), GOOGLE cloud platform, MICROSOFT AZURE, and so on for their infrastructure needs. Cloud platforms provide servers, storage, databases, networking, software, and so on over the internet to organizations. Conventionally, organizations maintained data centers that house hardware and software used by the organization. However, maintaining data centers can result in significant overhead in terms of maintenance, personnel, and so on. As a result, organizations are shifting their data centers to cloud platforms that provide scalability and elasticity of computing resources.
Organizations maintain cloud infrastructure on cloud platforms using continuous delivery platforms that can manage and deploy applications on cloud platforms. Such continuous delivery platforms allow organizations to simplify software deployment process and manage applications, firewalls, clusters, servers, load balancers, and other computing infrastructure on the cloud platform. However, deploying software releases for services provided on a cloud platform using a continuous delivery platform can be complex. For example, organizations implement different deployment strategies based on the type of application or system being deployed. An organization may implement a multi-service deployment, a rolling deployment, or a deployment based on multiple environments to reduce downtime, or incrementally releasing a service to subset of users.
Conventional techniques for implementing such strategies require implementing long and fragmented pipelines. Any change in the deployment strategy requires significant changes to the deployment pipelines by service owners. This requires significant development effort on the part of service owners. Furthermore, maintenance of such code is complex due to the complexity of the pipelines. For example, debugging and trouble shooting using such complex pipelines requires significant effort.
The figures depict various embodiments for purposes of illustration only. One skilled in the art will readily recognize from the following discussion that alternative embodiments of the structures and methods illustrated herein may be employed without departing from the principles of the embodiments described herein.
The figures use like reference numerals to identify like elements. A letter after a reference numeral, such as “115a,” indicates that the text refers specifically to the element having that particular reference numeral. A reference numeral in the text without a following letter, such as “115,” refers to any or all of the elements in the figures bearing that reference numeral.
DETAILED DESCRIPTIONCloud platforms provide computing resources, such as storage, computing resources, applications, and so on to computing systems on an on-demand basis via a public network such as internet. Cloud platforms allow enterprises to minimize upfront costs to set up computing infrastructure and also allow enterprises to get applications up and running faster with less maintenance overhead. Cloud platforms also allow enterprises to adjust computing resources to rapidly fluctuating and unpredictable demands. Enterprises can create a data center using a cloud platform for use by users of the enterprise. However, implementing a data center on each cloud platform requires expertise in the technology of the cloud platform.
Embodiments create data centers in a cloud platform using a cloud platform infrastructure language that is cloud platform independent. 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 specifying how to create the data center. The cloud platform independent declarative specification is configured to generate the data center on any of a plurality of cloud platforms and is specified using a cloud platform infrastructure language. The system receives information identifying a target cloud platform for creating the data center and compiles the cloud platform independent declarative specification to generate a cloud platform specific data center representation. The system sends the cloud platform specific data center representation and a set of instructions 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 the computing resources of the data center configured by the cloud platform.
In one embodiment, the system performs operations related to software releases on data centers configured on a cloud platform, for example, deploying software releases, provisioning resources, performing rollback of software releases, and so on. The system accesses a data center configured on a target cloud platform. The data center is generated based on a cloud platform independent declarative specification comprising a hierarchy of data center entities. Each data center entity comprises one or more of (1) a service or (2) one or more other data center entities. The system generates a cloud platform independent master pipeline that comprises: (1) a sequence of stages for deployment of a software artifact, for example, a development stage, a test stage, and a production stage, and (2) criteria for promoting the software artifact from one stage to a subsequent stage of the sequence of stages. The system compiles the cloud platform independent master pipeline to generate a cloud platform dependent detailed pipeline for the target cloud platform with instructions for performing operations related to services according to the layout of data center defined by the declarative specification. The system executes the cloud platform dependent detailed pipeline on the target cloud platform, for example, to deploy software releases on data center entities of the data center.
In one embodiment, the system accesses the data center configured on a target cloud platform. The system receives a cloud platform independent artifact version map associating data center entities of the data center with versions of software artifacts targeted for deployment on the data center entities. Each software artifact comprises executable instructions associated with a service configured for execution on one or more cloud platforms. The system generates a cloud platform specific master pipeline for the target cloud platform based on the cloud platform independent artifact version map. The cloud platform specific master pipeline comprises instructions to perform operations such as build and deploy appropriate versions of deployment artifacts for services on data center entities in accordance with the cloud platform independent version map. The system transmits the cloud platform specific deployment pipeline to the target cloud platform for execution. The artifact version map and the master pipelines can be used to perform various actions related to services including deployment of service, destroying services, provisioning resources for services, destroying resources for services, and so on.
According to an embodiment, the system receives a cloud platform independent deployment manifest identifying a deployment strategy for deploying a software artifact on the data center entities of the data center. The system generates a deployment pipeline for the target cloud platform with instructions for deploying the software artifact according to the layout of data center defined by the cloud platform independent declarative specification. The deployment pipeline includes a deployment stage that specifies a deployment operator. The deployment operator implements the identified deployment strategy. The system transmits the deployment pipeline to the target cloud platform for execution. The deployment operator executes on a cluster of computing systems and executes a set of operations implementing the deployment strategy.
The deployment strategy used for deploying the software artifact may be modified by modifying the cloud platform independent deployment manifest to specify a new deployment strategy. For example, the system may receive a second cloud platform independent deployment manifest identifying a second deployment strategy for deploying the software artifact on the data center entities of the data center. The system generates a second deployment pipeline specifying a second deployment operator implementing the second deployment strategy. The remaining stages of the second deployment pipeline match corresponding stages of the first deployment pipeline. The system transmits the second deployment pipeline to the target cloud platform for execution. The second deployment operator executes on the cluster of computing systems and executes a second set of operations implementing the second deployment strategy.
According to an embodiment, the system receives status updates for various operations from the set of operations performed by the deployment operator executing on the cluster of computing system. This allows the system or a user via a user interface to monitor the progress of the deployment strategy.
A cloud platform is also referred to herein as a substrate. The declarative specification of data center is substrate independent or substrate agnostic. If operations related to a data center such as deployment of software releases, provisioning of resources, and so on are performed using conventional techniques, the user has to provide cloud platform specific instructions. Accordingly, the user needs expertise of the cloud platform being used. Furthermore, the instructions are cloud platform specific and are not portable across multiple platforms. For example, the instructions for deploying software on an AWS cloud platform are different from instructions on a GCP cloud platform. A developer needs to understand the details of how each feature is implemented on that specific cloud platform. The system disclosed provides a cloud platform infrastructure language that allows users to perform operations on data centers using instructions that are cloud platform independent and can be executed on any cloud platform selected from a plurality of cloud platforms. A compiler of the cloud platform infrastructure language generates a cloud platform specific detailed instructions for a target cloud platform.
The cloud platform infrastructure language may be referred to as a domain specific language (DSL). The system may represent a multi-tenant system but is not limited to multi-tenant systems and can be any online system or any computing system with network access to the cloud platform.
System EnvironmentThe multi-tenant system 110 stores information of one or more tenants 115. Each tenant may be associated with an enterprise that represents a customer of the multi-tenant system 110. Each tenant may have multiple users that interact with the multi-tenant system via client devices 105.
A cloud platform may also be referred to as a cloud computing platform or a public cloud environment. A tenant may use the cloud platform infrastructure language to provide a declarative specification of a data center that is created on a target cloud platform 120 and to perform operations using the data center, for example, provision resources, perform software releases and so on. A tenant 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 so on that can be used by users, for example, users associated with the tenant. Each tenant may offer different functionality to users of the tenant. Accordingly, each tenant may execute different services on the data center configured for the tenant. The multi-tenant system may implement different mechanisms for release and deployment of software for each tenant. A tenant may further obtain or develop versions of software that include instructions for various services executing in a data center. Embodiments allow the tenant to deploy specific versions of software releases for different services running on different computing resources of the data center.
The computing resources of a data center are secure and may not be accessed by users that are not authorized to access them. For example, a data center 125a that is created for users of tenant 115a may not be accessed by users of tenant 115b unless access is explicitly granted. Similarly, data center 125b that is created for users of tenant 115b may not be accessed by users of tenant 115a, unless access is explicitly granted. Furthermore, services provided by a data center may be accessed by computing systems outside the data center, only if access is granted to the computing systems in accordance with the declarative specification of the data center.
With the multi-tenant system 110, data for multiple tenants may be stored in the same physical database. However, the database is configured so that data of one tenant is kept logically separate from that of other tenants so that one tenant does not have access to another tenant's data, unless such data is expressly shared. It is transparent to tenants that their data may be stored in a table that is shared with data of other customers. A database table may store rows for a plurality of tenants. Accordingly, in a multi-tenant system, various elements of hardware and software of the system may be shared by one or more tenants. For example, the multi-tenant system 110 may execute an application server that simultaneously processes requests for a number of tenants. However, the multi-tenant system enforces tenant-level data isolation to ensure that jobs of one tenant do not access data of other tenants.
Examples of cloud platforms include AWS (AMAZON web services), GOOGLE cloud platform, or MICROSOFT AZURE. A cloud platform 120 offers computing infrastructure services that may be used on demand by a tenant 115 or by any computing system external to the cloud platform 120. Examples of the computing infrastructure services offered by a cloud platform include servers, storage, databases, networking, security, load balancing, software, analytics, intelligence, and other infrastructure service functionalities. These infrastructure services may be used by a tenant 115 to build, deploy, and manage applications in a scalable and secure manner.
The multi-tenant system 110 may include a tenant data store that stores data for various tenants of the multi-tenant store. The tenant data store may store data for different tenants in separate physical structures, for example, separate database tables or separate databases. Alternatively, the tenant data store may store data of 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 of different tenants.
Each component shown in
The interactions between the various components of the system environment 100 are typically performed via a network, not shown in
Although the techniques disclosed herein are described in the context of a multi-tenant system, the techniques can be implemented using other systems that may not be multi-tenant systems. For example, an online system used by a single organization or enterprise may use the techniques disclosed herein to create one or more data centers on one or more cloud platforms 120.
System ArchitectureThe multi-tenant system 110 includes a deployment module for deploying software artifacts on the cloud platforms. The deployment module can perform various operations associated with software releases, for example, provisioning resources on a cloud platform, deploying software releases, performing rollbacks of software artifacts installed on data center entities, and so on.
The data center generation module 220 includes instructions for creating data centers 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 centers created by the data center generation module 220.
The data center generation module 220 receives from users, for example, users of a tenant, a cloud platform independent declarative specification of a data center. The cloud platform independent declarative specification of a data center specifies various entities of the data center. In an embodiment, the cloud platform independent declarative specification of a data center comprises a hierarchical organization of data center entities, where each data center entity may comprise one or more services, one or more other data center entities or a combination of both.
The software release management module 230 receives as inputs (1) an artifact version map 225 and (2) a master pipeline 235. The artifact version map 225 identifies specific versions of software releases or deployment artifacts that are targeted for deployment on specific data center entities. The artifact version map 225 maps data center entities to software release versions that are targeted to be deployed on the data center entities. The master pipeline 235 includes instructions for operations related to software releases on the data center, for example, deployment of services, destroying services, provisioning resources for services, destroying resources for services, and so on.
The master pipeline 235 may include instructions for performing operations related to software releases for different environments such as development environment, test environment, canary environment, and production environment, and instructions for determining when a software release is promoted from one environment to another environment. For example, if the deployments of a software release in a development environment execute more than a threshold number of test cases, the software release is promoted for test environment for further testing, for example, system level and integration testing. If the software release in a test environment passes a threshold of test coverage, the software release is promoted to canary environment where the software release is provided to a small subset of users on a trial basis. If the software release in a canary environment executes without errors for a threshold time, the software release is promoted to production environment where the software release is provided to all users.
The software release management module 230 compiles the input artifact version map 225 and the master 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 a software release or deployment artifact on the data center entities as specified in the artifact version map 225. The software release management module 230 may receive modifications to one of the inputs. For example, a user may modify the input artifact version map 225 and provide the same master pipeline 235. Accordingly, the same master pipeline is being used but different software releases are being deployed on data center entities. The software release management module 230 recompiles the inputs to generate a new cloud platform specific detailed pipeline 255 that deploys the versions of software releases according to the new artifact version map 225.
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 master pipeline may also be referred to as a master deployment pipeline or a master orchestration pipeline.
The parsing module 310 parses various types of user input including declarative specification of a data center, artifact version map 225, and master pipelines 235. The parsing module 310 generates data structures and metadata representations of the input processed and provides the generated data structures and metadata representations to other modules of the software release management module 230 for further processing.
The metadata store 340 stores various transformed metadata representations of data centers that are generated by the software release management module 230. The transformed metadata representations may be used for performing rollback to a previous version if an issue is encountered in a current version of the data center. The transformed metadata representations may be used for validation, auditing, governance, and so on at various stages of the transformation process.
The pipeline generator module 320 processes the master pipelines in conjunction with the artifact version map received as input to generate a detailed pipeline for a target cloud platform. The pipelines comprise stages that include instructions for provisioning services or deploying applications for deploying versions of software releases for various services on the cloud platform according to the artifact version map. The artifact version map store 330 stores artifact version maps received from users and the pipeline store 340 stores master pipelines as well as pipelines generated by the pipeline generator module 320.
The pipeline execution engine 360 executes the detailed pipelines generated by the pipeline generator module 320. In an embodiment, the pipeline execution engine 360 is a system such as SPINNAKER that executes pipelines for releasing/deploying software. The pipeline execution engine 360 parses the pipelines and executes each stage of the pipeline on a target cloud computing platform.
Cloud Platform-Based Data Center GenerationThe declarative specification 410 includes definitions of various types of data center entities including service group, service, team, environment, and schema. The declarative specification includes one or more instances of data centers. Following is a description of various types of data center entities and their examples. The examples are illustrative and show some of the attributes of the data center entities. Other embodiments may include different attributes and an attribute with the same functionality may be given a different name than that indicated herein. In an embodiment, the declarative specification is specified using hierarchical objects, for example, JSON (Javascript object notation) that conform to a predefined schema.
A service group 520 represents a set of capabilities and features and services offered by one or more computing systems that can be built and delivered independently, in accordance with one embodiment. A service group may be also referred to as a logical service group, a functional unit, or a bounded context. A service group 520 may also be viewed a set of services of a set of cohesive technical use-case functionalities offered by one or more computing systems. A service group 520 enforces security boundaries. A service group 520 defines a scope for modifications. Thus, any modifications to an entity, such as a capability, feature, or service offered by one or more computing systems within a service group 520 may propagate as needed or suitable to entities within the service group, but does not propagate to an entity residing outside the bounded definition of the service group 520. A data center may include multiple service groups 520. A service group definition specifies attributes including a name, description, an identifier, schema version, and a set of service instances. An example of a service group is a blockchain service group that includes a set of services used to providing blockchain functionality. Similarly, a security service group provides security features. A user interface service group provides functionality of specific user interface features. A shared document service group provides functionality of sharing documents across users. Similarly, there can be several other service groups.
Service groups support reusability of specification so that tenants or users interested in developing a data center have a library of service groups that they can readily use. The boundaries around services of a service groups are based on security concerns and network concerns among others. A service group is associated with protocols for performing interactions with the service group. In an embodiment, a service group provides a collection of APIs (application programming interfaces) and services that implement those APIs. Furthermore, service groups are substrate independent. A service group provides a blast radius scope for the services within the service group so that any failure of a service within the service group has impact limited to services within the service group and has minimal impact outside the service group.
Following is an example of a specification of a service group. The 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, not indicated herein.
As shown in the example above, a service group may specify a set of clusters. A cluster represents a set of computing nodes, for example, a set of servers, a set of virtual machines, or a set of containers (such as KUBERNETES containers). A physical server may run multiple containers, where each container has its own share of filesystem, CPU, memory, process space, and so on.
The service group specifies a set of services. A service group may specify a cluster for a service so that the data center deployed on a cloud platform runs clusters of computing nodes and maps the services to clusters based on the specified mapping if included in the declarative specification. For example, in the service group example shown above, the service instance serviceinstance0002 is specified to run on cluster instance cluster1.
The service group may specify security groups, each security group specifying a set of services that are allowed to interact with each other. Services outside the security group are required to pass additional authentication to communicate with services within the security group. Alternatively, the services within a security group use one protocol to interact with each other and services outside the security group use a different protocol that requires enhances authentication to interact with services within the security group. Accordingly, a security group specifies policies that determine how services can interact with each other. A security policy may specify one or more environments for which the security policy is applicable. For example, a security policy policy1 may apply to a particular environment env1 (e.g., production environment) and another security policy policy2 may apply to another environment env2 (e.g., development environment). A security policy may be specified for a service group type or for a specific service type.
In an embodiment, the security policy specifies expressions for filtering the service groups based on various attributes so that the security policy is applicable to the filtered set of service groups. For example, the security policy may specify a list of IP (internet protocol) addresses that are white listed for a set of service groups identified by the filtered set and accordingly these computing systems are allowed access to the service group or to specific set of services within the service group.
In an embodiment, a security policy may specify for a service group, a set of source services and a set of destination services. The source services for a particular service specify the services outside the security group that are allowed to connect with this particular service. The destination services for a particular service specify the services outside the security group that this particular service needs to connect to. During provisioning and deployment, the data center generation module generates instructions for the cloud platform that implement specific network policies using cloud platform specific features and network functionality such that the network policies implement the security policies specified in the declarative specification.
A data center entity called a cell represents a set of services that interact with each other in a vertical fashion and can be scaled by additional instances or copies of the cell, i.e., copies of the set of services. Creating multiple instances of a cell allows a system to scale a set of services that interact with each other. A data center instance may include one or more cells. Each cell may include one or more services. A data center may include instances of service groups or cells.
A service definition specifies metadata for a type of service, for example, database service, load balancer service, and so on. The metadata be describe various attributes of a service including a name of the service, description of the service, location of documentation for the service, any sub-services associated with the service, an owner for the service, a team associated with the service, build dependencies for the service specifying other services on which this service depends at build time, start dependencies of the service specifying the other services that should be running when this particular service is started, authorized clients, DNS (domain name server) name associated with the service, a service status, a support level for the service, and so on. The service definition specifies a listening ports attribute specifying the ports that the service can listen on for different communication protocols, for example, the service may listen on a port p1 for UDP protocol and a port p2 for TCP protocol. Other services within the data center can interact with a service via the ports specified by the service.
The service definition specifies an attribute outbound access that specifies destination endpoints, for example, external URLs (uniform resource locators) specifying that the service needs access to the specified external URLs. During deployment, the data center generation module ensures that the cloud platform implements access policies such that instances of this service type are provided with the requested access to the external URLs.
The outbound access specification may identify one or more environment types for the service for which the outbound access is applicable. For example, an outbound access for a set of endpoints S1 may apply to a particular environment env1 (e.g., production environment) and outbound access for a set of endpoints S2 may apply to another environment env2 (e.g., development environment).
Following is an example of a service definition.
A team definition 450 includes team member names and other attributes of a team for example, name, email, communication channel and so on. Following is an example of a team definition. A service may be associated with one or more teams that are responsible to modifications made to that service. Accordingly, any modification made to that service is approved by the team. A service may be associated with a team responsible for maintenance of the service after it is deployed in a cloud platform. A team may be associated with a service group and is correspondingly associated with all services of that service group. For example, the team approves any changes to the service group, for example, services that are part of the service group. A team may be associated with a data center and is accordingly associated with all service groups within the data center. A team association specified at a data center level provides a default team for all the service groups within the data center and further provides a default team for all services within the service groups.
According to an embodiment, a team association specified at the functional level overrides the team association provided at the data center level. Similarly, a team association specified at the service level overrides the default that may have been provided by a team association specified at the service group level or a data center level. A team can decide how certain action is taken for the data center entity associated with the team. The team associations also determine the number of accounts on the cloud platform that are created for generating the final metadata representation of the data center for a cloud platform by the compiler and for provisioning and deploying the data center on a cloud platform. The data center generation module 210 creates one or more user accounts in the cloud platform and provides access to the team members to the user accounts. Accordingly, the team members are allowed to perform specific actions associated with the data center entity associated with the team, for example, making or approving structural changes to the data center entity or maintenance of the data center entity when it is deployed including debugging and testing issues that may be identified for the data center entity.
Conventional techniques associate the same team with the data center through out the design process thereby resulting in the organizational structure having an impact on the design of the data center or service group. Embodiments decouple the team definition from the constructions that define the data center entity, thereby reducing the impact of the teams on the design and architecture of the data center entity.
An environment definition 460 specifies a type of system environment represented by the data center, for example, development environment, staging environment, test environment, or production environment. A schema definition 470 specifies schema that specifies syntax of specific data center entity definitions. The schema definition 470 is used for validating various data center entity definitions. The data center generation module determines security policies for the data center in the cloud platform specific metadata representation based on the environment. For example, a particular set of security policies may be applicable for an environment env1 and a different set of security policies may be applicable for environment env2. For example, the security policies provide much more restricted access in production environment as compared to development environment. The security policy may specify the length of time that a security token is allowed to exist for specific purposes. For example, long access tokens (e.g., week long access tokens) may be allowed in development environment but access tokens with much smaller life time (e.g., few hours) used in production environment. Access tokens may allow users or services with access to specific cloud platform resources.
A data center definition 420 specifies the attributes and components of a data center instance. A declarative specification may specify multiple data center instances. The data center definition 420 specifies attributes including a name, description, a type of environment, a set of service groups, teams, domain name servers for the data center, and so on. A data center definition may 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. An instance of a data center is deployed in a particular cloud platform and may be associated with a particular environment type, for example, development, testing, staging, production, and so on.
Following is a definition of a data center instance. The data center instance definition includes a list of service groups included in the data center instance and other attributes including an environment of the data center, a data center identifier, a name, a region representing a geographical region, one or more teams associated with the data center, and a schema version.
The data center generation module 220 creates data centers on cloud platforms based on a declarative specification using the following steps. The data center generation module 210 receives a cloud platform independent declarative specification of a data center. The cloud platform independent declarative specification may be for a tenant of the multi-tenant system or for any other computing system, for example, an online system. The cloud platform independent declarative specification is specified using the cloud platform infrastructure language. The cloud platform independent declarative specification of the data center is configured to generate the data center on any of a plurality of cloud platforms.
The data center generation module 210 receives information identifying a target cloud platform for creating the data center based on the cloud platform independent declarative specification. The target cloud platform could be any of a plurality of cloud platforms, for example, AWS, AZURE, GCP, and so on. The data center generation module 210 further receives information to connect with the target cloud platform, for example, credentials for creating a connection with the target cloud platform. A cloud platform may also be referred to as a cloud computing platform.
The data center generation module 210 compiles the cloud platform independent declarative specification to generate a cloud platform specific data center representation for creating the data center on the target cloud computing platform. For example, the cloud platform specific data center representation may refer to user accounts, network addresses, and so on that are specific to the target cloud computing platform.
The data center generation module 210 sends the platform specific data center representation along with instructions for deploying the data center on the target cloud computing platform. The target cloud computing platform executes the instructions to configure the computing resources of the target cloud computing platform to generate the 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 was created for a tenant of the multi-tenant system, users associated with the tenant are provided with access to the data center.
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 the data center. The cloud-platform independent detailed metadata representation 620 defines details of each instance of data center entity specified in the cloud-platform independent declarative specification 610. The data center generation module 210 creates unique identifiers for data center entity instances, for example, service instances.
In an embodiment, the cloud-platform independent detailed metadata representation 620 includes an array of instances of data center entity types, 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 further include the details of a team of users that are allowed to perform certain actions associated with the service instance. The details of the team are used during provisioning and deployment by the data center generation module 210, for example, for creating a user account for the service instance and allowing members of the team to access the user account.
The cloud-platform independent detailed metadata representation 620 includes attributes of each instance of data center entity. Accordingly, the description of each instance of data center entity is expanded to include all details. As a result, the cloud-platform independent detailed metadata representation 620 of a data center may be significantly larger than the cloud-platform independent declarative specification 610. For example, the cloud-platform independent declarative specification 610 may be few thousand lines of specification, whereas the cloud-platform independent detailed data center representation 620 may be millions of lines of generated code. As a result, the data center generation module 210 keeps the cloud-platform independent detailed metadata representation 620 as immutable, i.e., once the representation is finalized, no modifications are performed to the representation. For example, if any updates, deletes, or additions of data center entities need to be performed, they are performed on the cloud platform independent declarative specification 610.
The data center generation module 210 receives a target cloud platform on which the data center is expected to be provisioned and deployed and generates a cloud platform specific detailed metadata representation 630 of the data center. For example, the data center generation module 210 interacts with the target cloud platform to generate certain entities (or resources), for example, user accounts, virtual private clouds (VPCs), and networking resources such as subnets on the VPCs, various connections between entities in the cloud platform, and so on. The data center generation module 210 receives resource identifiers of resources that are created in the target cloud platform, for example, user account names, VPC IDs, and so on, and incorporates these in the cloud-platform independent detailed metadata representation 620 to obtain the cloud platform specific metadata representation 630 of the data center. In an embodiment, the data center generation module 210 creates one unique user account on the cloud platform for each team for a given combination of a service group and a service. The user account is used by the team for performing interactions with that particular service for that service group, for example, for debugging, for receiving alerts, and so on.
The target cloud platform may perform several steps to process the cloud-platform specific detailed metadata representation 630. For example, the 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 network policies of the cloud platform. The cloud platform may further create security groups to implement network strategies to implement the data center according to the declarative specification.
The cloud platform independent declarative specification specifies dependencies between services, for example, start dependencies for each service listing all services that should be running when a particular service is started. The data center generation module 220 generates the cloud platform specific detailed metadata representation of the data center that includes information describing these dependencies such that the instructions for deploying the service ensure that the cloud platform starts the services in an order specified by the dependencies such that for each service, the services required to be started before the service are running when the service is started. Accordingly, the dependencies between services represent a dependency graph and the cloud platform starts running the services in an order determined based on the dependency graph such that if service A depends on service B, the service B is started before service A is started.
The data center generation module 220 creates trust relationships between user accounts that allow services to access other services via secure communication channels. These trust relationships are generated using substrate specific instructions generated based on the declarative specification, for example, based on outbound access attributes specified for services. The data center generation module 220 sends instructions to the cloud platform to create network policies based on cloud platform specific mechanisms that control the interactions and access across service groups and services, for example, as specified by the constructs of the declarative specification such as outbound access, security groups, security policies and so on.
The data center generation module 210 deploys the cloud platform specific metadata representation 630 on the specific target cloud platform for which the representation was generated. The data center generation module 210 may perform various validations using the generated metadata representations, including policy validations, format validations, and so on.
The cloud platform independent declarative specification 610 may be referred to as a declared data center representation, cloud-platform independent detailed metadata representation 620 referred to as a derived metadata representation of the data center, and cloud platform specific metadata representation 630 referred to as a hydrated metadata representation of the data center.
Overall Process for Deployment of Software Artifacts on a Data CenterThe software release management module 230 generates 720 a cloud platform independent master pipeline. In an embodiment, the cloud platform independent master pipeline includes stages corresponding to environments of the data centers, for example, development environment, test environment, canary environment, and production environment. The master pipeline composes a sequence of progressive and/or conditional deployment across various environments such as development environment, test environment, staging environment, or production environment. The master pipeline may be triggered by delivery of the image for a software artifact and includes stages or instructions to deploy the build in environments of type development. The software artifact that is built is conditionally promoted to one or more test environments, followed by one or more canary environments before eventually getting deployed to production environments. The master pipeline may be customized by users, for example, service owners to represent a specific orchestration across environments. The master pipeline may be customized to capture specific promotion criteria for moving from one stage to next. For example, different tenants of the multi-tenant system may customize the master pipeline in a different manner. In an embodiment, the master pipeline by default uses the latest version of software for a software artifact for a service and builds and deploys the version across various environments. The user can use the artifact version map to ensure that a specific version of a software artifact is deployed on specific data center entities.
In an embodiment, each service deployed in the data center has a cloud platform independent master pipeline generated from the data center entities as defined by the declarative specification of the data center, for example, master pipeline for data center instances, master pipeline for service groups, master pipeline for cells, master pipeline for services, and so on. The master pipelines may be triggered on delivery of images of software artifacts. The master pipelines may implement a service owner-controlled continuous deployment. The master pipelines may implement data center instance owner-owned or release owner-owned on-demand deployment.
Certain portions of the master pipeline may be customized by the users, for example, by tenants of a multi-tenant system that are deploying services on a data center. For example, the promotion decision pipeline may be customized by a tenant to determine which test cases are executed and what threshold is The software release management module 230 receives 730 customizations to logic for promoting a software artifact from one stage to another stage of the cloud platform independent master pipeline.
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 of each data center as specified by the cloud platform independent declarative specification for the data center.
The software release management module 230 further receives 750 code for releasing one or more features of services deployed on the data center. The software release management module 230 executes 760 the cloud platform specific detailed deployment pipeline to deploy software artifacts based on the received code.
The pipeline at each stage is a hierarchical pipeline comprising lower level pipelines. For example, the development environment pipeline 810 comprises a development master pipeline that feeds into data center pipelines D11, D12, . . . , depending on the number of data centers specified as having development environment in the declarative specification of the data centers.
The test environment pipeline 820 comprises a test master pipeline that feeds into data center pipelines D21, D22, . . . , depending on the number of data centers specified as having test environment in the declarative specification of the data centers.
The canary environment pipeline 820 comprises a canary master pipeline that feeds into data center pipelines D31, D32, . . . , depending on the number of data centers specified as having canary environment in the declarative specification of the data centers.
The production environment pipeline 820 comprises a production master pipeline that feeds into data center pipelines D21, D22, . . . , depending on the number of data centers specified as having test environment in the declarative specification of the data centers.
Each environment pipeline 810, 820, 830 includes a promotion decision pipeline 815a, 815b, 815c respectively. The outputs of the data center pipelines of the environment pipeline are collected by the promotion decision pipeline 815 that determines whether the software artifact is ready for promotion to the next stage. The promotion decision pipeline 815 may determine based on test case results obtained by the data centers whether the software artifact for the service is promoted to the next stage. For example, if more than a threshold test cases are passed, the promotion decision pipeline 815 promotes the software artifact to the next stage. The last environment stage, for example, the production environment pipeline may not have a promotion decision pipeline since there is no subsequent stage to which the software artifact needs to be promoted. As shown in
A master pipeline comprises multiple pipelines, for example, a provisioning pipeline for provisioning resources of the target cloud platform and a deployment pipeline for deploying a software artifact on a data center entity. Each pipeline comprises a sequence of stages, each stage representing one or more actions that need to be performed by the target cloud platform towards provisioning and deploying of the data center. The data center generation module 210 generates detailed pipelines for deploying versions of software artifacts on data center entities.
In an embodiment, the pipeline generator module 320 generates detailed pipelines using pipeline templates that include variables. A 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 referred to as hydration of the pipeline template. A pipeline template contains templating expressions used as placeholders for actual values used in the deployment. For example, a templating expression may be replaced by target specific parameter values or expressions. Multiple pipeline instances may be generated by hydrating the pipeline template for different targets. The template variables represent parameters that may be replaced with specific values for a given target to generate a pipeline instance specific to that target. For example, a template variable “account id” may be replaced with an actual value of account id, for example, “12345” during hydration.
In one embodiment, the pipeline generator module 320 generates pipelines in a hierarchical fashion based on the hierarchy of the data center entities of the data center. For example, the data center comprises data center entities of different types including data centers, service groups, services, and so on. A data center entity may include one or more child data center entities. For example, a data center includes one or more service groups as child data center entities. A service group includes one or more services as child data center entities. Accordingly, the data center generation module 210 starts at a data center entity at a level of the hierarchy and generates pipelines of data center entities below that 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 pipelines for services within the service group.
The process for executing pipelines 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 the target cloud platform. The software release deployment module 230 executes the master pipeline for one or more data centers. The software release deployment module 230 executes the aggregate pipelines for each service group of each data center. The aggregate pipeline comprises pipelines for services within the service group. For each service within each service group, the pipeline is executed by executing all the stages of the pipeline. The execution of the provisioning pipelines results in provisioning of the resource for a service and the deployment pipeline causes deployment of the service in the target cloud platform.
The environment pipeline for an environment E includes instructions to deploy 910 the software on a set of data center entities, for example, a set of data center entities specified as having the environment E. In an embodiment, the software artifact is generated by compiling source code for a service. The source code may be obtained from a version control software. The set of data center entities may include data center instances, service groups, cells, services, or any combination of these.
The environment pipeline for the environment E further includes instructions for running 920 tests for testing the deployed software artifact on the set of data center entities. The environment pipeline for the environment E further includes instructions for evaluating 930 the test results against promotion criteria, for example, using the promotion decision pipeline 815. If the promotion criteria are not satisfied, the steps 910, 920, 930, and 940 may be repeated using a revised software artifact, for example, a software artifact generated from source code that includes fixes for certain defects identified during the testing 920. The environment pipeline for the environment E further includes instructions for proceeding 950 to the next stage if the promotion criteria are satisfied.
In an embodiment, the master pipeline comprises a hierarchy of pipelines. The hierarchy comprises multiple levels and pipelines at a particular level include pipelines of the next lower level as children pipelines. For example, at the highest level of hierarchy the master pipeline includes a release master pipeline that deploys a set of services related to a product. The next level of hierarchy includes service master pipelines that represent al deployments of a particular service across various environments. The next level of hierarchy may include service group master pipelines followed by service master pipelines.
A master pipeline may be driven by pull requests that occur a version control system for software receives a request for considering changes committed to an external repository for inclusion in a project's main repository. Accordingly, the master pipeline is automatically triggered when a pull request is received and deploys a software artifact based on the latest software version for which the pull request is received. The master pipeline performs continuous delivery of software artifacts based on pull requests. The master pipeline may be driven based on an on-demand manner, for example, by invoking a request using application programming interface (API) of the deployment module 210. The on-demand deployment based on master pipelines may be requested for any set of services and for any version for a given service as specified using the API. The master pipeline may be invoked to request a rollback from the current version to a previous version or a rollforward from the currently deployed version to a more recent version.
In an embodiment, the deployment module 210 creates a service master pipeline for each service. These pipelines get triggered when a pull request is received for a repository of the software. The deployment module 210 receives pipeline templates from users for specific services. These pipeline templates include detailed instructions for testing, validation, build, etc. for specific services. The data center generation module 220 receives a cloud platform independent declarative specification for one or more data centers. The data center generation module 220 generates (or configures) data centers according to the received cloud platform independent declarative specifications. The deployment module 210 receives promotion decision 815 pipelines. The promotion decision 815 pipelines are integrated into the overall master pipeline.
The pipeline generator creates all pipelines for each data center from the templates and combines them via master pipelines in a hierarchical fashion, for example, as illustrated in
Following is a snippet of a master pipeline showing various stages. Each stage may specify attributes including a stage name, a type of pipeline, a stage type (e.g., master deployment pipeline or promotion pipeline), prior stages, and so on.
As shown in the examiner master pipeline, the first stage is an artifact version map. The next stage is a master deployment pipeline for deploying to development environment. The next stage is a promotion pipeline for determining whether the software artifact can be promoted to the next stage. The next stage is a master deployment pipeline for deploying to test environment. The next stage is a promotion pipeline for determining whether the software artifact can be promoted to the next stage that is staging environment.
Software Artifact Version MapIn an embodiment, the deployment module 210 receives an artifact version map that associates various software artifacts and their versions with data center entities. The artifact version map provides a declarative specification of the specific versions of software artifacts that need to be deployed for services in different data center entities. Each data center entity may be uniquely identified based on its location within the data center hierarchy as specified by the declarative specification of the data center. For example, for a service, a software library may act as a software artifact. The software artifact may have multiple versions, for example, V1, V2, V3, and so on. The artifact version map may 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 master pipelines and instructions that ensure that the appropriate software artifact versions are deployed in the data center entities as specified in the artifact version map.
In an 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 may comprise a set of <service>:<version> key pairs that are associated with various data center entities distributed across a hierarchy of a data center. The artifact version map key pairs act as whitelists for corresponding pipelines. If a key for a service is not included into an artifact version map, all pipelines for that service are excluded during execution of the pipeline. Different artifact version maps may be applied to the same master pipeline resulting in different services being included/excluded during execution of the master pipeline.
Following is an example artifact version map. The artifact version map specifies environment types using the attribute “env_types”. In the following example, the environment type development is specified. The environment type may include one or more data center instances; a data center instance may include one or more service groups, a service group may include one or more services. In the following example, the software artifact name is specified as library1 and version as version1 and is associated with the service instance instance001. However, the software artifact name and version may be associated with any level of data center entity in the hierarchy. For example, of the software artifact name and version is specified or a service group, the software artifact name and version is applicable to all services within the service group unless the software artifact name and version is overridden with different values of the software artifact name and version specified for a particular service instance within the service group. Similarly, the software artifact name and version can be specified for a data center instance and is applicable to all service groups or cells within the data center instance unless an overriding value is specified for a service group.
In an embodiment, the artifact version map specifies a data center entity using a full path of the data center entity, for example, “stagger_group1/data center1/service_group2/service1”. In an embodiment, the artifact version map specifies a set of data center entities using regular expressions in the full path of the data center entity. For example, a full path that includes service_group[?] includes service_group1, service_group2, service_group3, and so on.
Following is an example of an artifact version map specifying regular expressions to define a set of services. The environment types are specified as dev and test and the data center entities in the full path including data center instances and service groups are specified as wildcards and service instances are specified as “service*”. Accordingly, for all data center instances for dev and test environments, for all service groups, for services names matching service*, the version V1 of application app1 will be deployed.
-
- env_types:
- name: “dev test”
- data center_instances:
- name: “(.*)”
- service_group:
- name: “(.*)”
- services:
- service_instance: “service*”
- name: “app1”
- versions:
- version: “V1”
- data center_instances:
- name: “dev test”
- env_types:
In some embodiments, the artifact version map may specify parameters used by pipelines. Accordingly, the specified parameters will be applicable to a stagger group for which the parameter is specified.
Deployment ManifestThe system allows service owners to specify a deployment manifest that provides declarative specification of a deployment strategy, e.g., blue green, blue green with rolling upgrades, canary, pre-validated canary, and so on. Implementing a deployment strategy requires handling low-level pipelines that may be long, fragmented, and branched. Furthermore, any change in strategy (e.g., reconfiguring) requires cumbersome/low level changes to pipelines. The service owner needs to track and manage multiple JSON files used for specifying and configuring the pipelines. For example, to implement a simple blue green strategy, six or seven JSON (JavaScript object notation) configuration files need to be specified and a pipeline with more than 20 stages needs to be specified. Any changes to the strategy require modification of these stages of the pipelines and configuration files. Also, the service owner needs to specify failure logic for each stage (to roll back to previous stage). With multiple strategies, there are many pipelines to handle. Furthermore, making changes to a strategy requires changes to several different configuration files and stages of pipelines.
In contrast the system according to various embodiments allows users to use a declarative specification that identifies the deployment strategy and the system receives the deployment manifest and implements the specified deployment strategy. According to an embodiment, the deployment module 210 allows users, for example, service owners to provide a declarative specification that identifies a deployment strategy for deploying software artifacts in a data center configured in a cloud platform. The deployment strategy is specified using a configuration file that allows declarative specification of the deployment strategy. The configuration file may be referred to as a deployment manifest file. The deployment manifest file may be a YAML file or a file based on any other format such as XML or plain text. The deployment manifest file identifies the deployment strategy to be used and attributes associated with the deployment strategy.
Following is an example of a portion of a deployment manifest file that specifies the deployment strategy type. Following example specification uses the blue-green deployment strategy. In an embodiment, an optional deployment strategy is used if the deployment manifest does not specify a particular deployment strategy.
-
- metadata:
- name: deployment
- spec:
- replicas: 2
- revisionHistoryLimit: 2
- selector:
- matchLabels:
- app: rollout-bluegreen
- matchLabels:
- template:
- metadata:
- labels:
- app: rollout-bluegreen
- spec:
- containers:
- name: rollouts-demo
- image: argoproj/rollouts-demo:blue
- imagePullPolicy: Always
- ports: —containerPort: 8080
- metadata:
- metadata:
The deployment manifest file specifies additional information that may be used by a specific deployment strategy, for example, the functional integration tests (FIT) to run before promoting the software artifact as the attribute fit-tests. The following example specification also illustrates the various services that are created on a cluster to handle the request traffic received by the system for implementing the specific deployment strategy, for example, the activeService attribute that specifies the service that receives the active traffic being sent to the old version of a software artifact, and a previewService that receives a portion of the traffic being directed to the new version of the software artifact. The deployment manifest also includes an attribute autoPromotionEnabled that specifies whether the promotion of the software artifact is automatic or requires manual review. The deployment manifest may specify the promotion function to use to promote the software artifact from one environment to another environment, for example, from development environment to production environment. The deployment manifest may also specify the retention policy for old versions of the software artifact and retention before promotion for new version of the software artifact. In an embodiment, the declarative specification of the deployment strategy specifies a threshold percentage representing the number of tests of each type that need to be executed successfully to meet the promotion criteria. If the promotion criteria is not met, the system does not promote the artifact and may return an error or send an alert. If the promotion criteria is met, the system takes the next action according to the deployment strategy being implemented. For example, for blue green strategy, if the promotion criteria is met, the system starts directing the traffic to the preview service and marks the preview service as the next active service.
-
- strategy:
- blueGreen:
- activeService: rollout-bluegreen-active
- previewService: rollout-bluegreen-preview
- autoPromotionEnabled: false
- fit-tests:
- suite1
- test2
- blueGreen:
- strategy:
The system reads the declarative specification of a strategy and applies the strategy. For example, the system configures various services that may be specified by the specification such as the preview service and the active services. The system directs the traffic to the services according to the specification. The system executes the tests, for example, tests specified using the fit-tests attribute. The system determines based on the autoPromotionEnabled whether to promote the software artifact automatically or request approval from a system administrator. The system uses the results of the tests to make a determination, whether to promote the software artifact and if the results meet the specified promotion condition, the system promotes the artifact to the appropriate environment.
As illustrated by the examples above, the system allows various deployment strategies to be specified using the deployment manifest. For example, the system allows the deployment manifest to specify a blue green strategy in which two environments are specified, a staging environment 1210a and a production environment 1210b as shown in
As another example, the system allows the deployment manifest to specify a canary strategy in which a target environment is updated incrementally to a subset of users in smaller phases, for example, updated for 5% of users after a time interval, updated for 25% of users after another time interval, updated for 50% of users after another time interval, and so on. The declarative specification of each strategy specified using the deployment manifest may include attributes that are specific to the deployment strategy. For example, for canary strategy, the deployment manifest may specify the weight or fraction of traffic to different servers, a promotion function, and a rollback condition for determining when to perform rollbacks.
As another example, the system allows the deployment manifest to specify a rolling deployment strategy that updates instances of a service incrementally over a period of time. For example, first a single instance of the service is updated, next after a time interval a second instance of the service is updated, next after another time interval, a third instance of the service is updated and this process continues until all services are updated.
In some embodiments, the deployment manifest also includes a specification of a topology of the cluster of nodes used for applying the deployment strategy. Accordingly, the deployment operator uses the topology specified by the deployment manifest for implementing the deployment strategy. As shown below the topology specification identifies different subsets of nodes of a computing cluster for use by a deployment strategy.
-
- topology:
- subsets:
- name: subset-a
- nodeSelectorTerm:
- matchExpressions:
- key: node
- operator: In
- values:
- zone-a
- replicas: 1
- name: subset-b
- nodeSelectorTerm:
- matchExpressions:
- key: node
- operator: In
- 10 values:
- zone-b
- replicas: 50%
- subsets:
- topology:
The data center generation module generates 1310 one or more data centers on a target cloud platform. The data centers are generated from a cloud platform independent declarative specification and has a hierarchy of data center entities. The software release management module 230 receives instructions to deploy a software artifact on one or more data center entities, for example, to release a new version of a software artifact.
The software release management module 230 receives a deployment manifest identifying a deployment strategy for a software artifact for deploying on a target cloud platform. The software release management module 230 deploys the software artifact according to the deployment strategy specified in the deployment manifest.
The software release management module 230 generates 1130 a deployment pipeline including a deployment stage specifying a deployment operator with instructions for implementing the deployment strategy. The software release management module 230 executes the deployment pipeline. The execution 1140 of the deployment stage of the deployment pipeline causes the deployment operator to be sent for execution on a cluster of computing systems, for example, a Kubernetes cluster. The deployment operator is executed 1150 on the cluster of computing systems. The execution of the deployment operator on the cluster of computing system causes a set of operations to be performed on the cluster of computing systems. The set of operations implement the deployment strategy.
The deployment stage 1245 is configured to deploy a deployment operator 1200 configured to implement the deployment strategy specified using the deployment manifest 1220. The deployment operator 1230 is executed on the cluster 1230 for implementing the deployment strategy. The deployment operator 1230 invokes various modules such as the functional integration and test module, the promote module, the deploy module, availability zones, and so on. within the cluster to implement the deployment strategies. The cluster 1230 includes multiple computing systems, for example, different environments 1210 such as staging environment 1210a and production environment 1210b. The deployment strategy may control the flow of user traffic to the different computing systems associated with the environments 1210.
The specification of the deployment operator may be included in the deployment manifest 1380. The deployment manifest 1380 includes a deployment definition 1373 that provides the core attributes needed to specify the deployment of a software artifact, for example, specifications of containers of the cluster for the deployment. The deployment strategy 1375 identifies the deployment strategy and specifies the core attributes of the specific deployment strategy. The customizations 1377 are optional specifications used for customizing the deployment strategy, for example, using pre-deploy operations and post-deploy operations and specifying customized promotion functions.
These actions are specified using callback functions that can be invoked by the deployment operator 1200. For example, the data center specification may provide specific promotion functions that are user specified. The deployment operator invokes these promotion functions via a predefined protocol that passes a link to the instructions and parameters. The data canter may provide specific functions for auditing that are invoked by the deployment operator, thereby supporting data center specific auditing policies and root cause analysis.
According to an embodiment, the deployment operator implements automatic self healing policies while executing the deployment strategies. For example, the deployment operator may retry execution of a stage in case of failures according to a retry strategy specified by the declarative specification of the data center. The retry strategy as specified by the declarative specification may be data center specific.
The data center 1450 also includes the various accounts 1440 created for managing the computing and network resources 1445 and services of the data center 1450. The deployment manifest is processed by the deployment module 210. The deployment module 210 generates the master pipeline 1465 based on the declarative specification of data centers configured on the cloud platform. The deployment module 210 determines based on the deployment manifest, the data center entities where a software artifact version is being deployed and the deployment strategy to apply for that specific software artifact version. Accordingly, different deployment strategies may be executed for different software artifacts being deployed in different portions of a data center or different data centers configured on the cloud platform. The deployment module 210 performs provisioning 1470 of the cluster of computing systems for implementing the deployment strategy. The deployment module 210 executes 1475 the pipeline. The deployment stage 1480 of the pipeline causes the deployment operator 1200 to be triggered on the cluster 1230.
The deployment operator 1200 parses the specification of the deployment strategy as specified by the deployment manifest and executes the strategy based on the specification. The deployment operator 1200 provides alerts 1420 to the user via the user interface 1410 to inform the user of the progress of the deployment strategy. In an embodiment, the deployment operator 1200 catches exceptions generated by various operations of the deployment strategy. The deployment operator 1200 determines the status of execution of the strategy and the stages of the deployment strategy that successfully executed and the stage that failed and provides the information via the alert 1420. The deployment operator 1200 is also configured to roll back certain stages in case of failure. Accordingly, the deployment operator implements transactional semantics during execution of the deployment strategy. For example, the deployment strategy comprises one or more sets of stages and the deployment operator ensures that a set of stages is either executed completely or not executed if a failure is encountered. This prevents partial execution of the strategy that is difficult to process and difficult to clean up in view of failures.
The user interface 1410 also allows the user to provide deployment strategy instructions 1425, for example, if the promotion of the software artifact require manual approval, the user interface 1410 allows the user to provide the user input to the deployment operator 1200.
Computer ArchitectureThe storage device 1508 is a non-transitory computer-readable storage medium, such as a hard drive, compact disk read-only memory (CD-ROM), DVD, or a solid-state memory device. The memory 1506 holds instructions and data used by the processor 1502. The pointing device 1514 may be a mouse, track ball, or other type of pointing device, and is used in combination with the keyboard 1510 to input data into the computer system 200. The graphics adapter 1512 displays images and other information on the display 1518. The network adapter 1516 couples the computer system 1500 to a network.
As is known in the art, a computer 1500 can have different and/or other components than those shown in
The computer 1500 is adapted to execute computer modules for providing the functionality described herein. As used herein, the term “module” refers to computer program instruction and other logic for providing a specified functionality. A module can be implemented in hardware, firmware, and/or software. A module can include one or more processes, and/or be provided by only part of a process. A module is typically stored on the storage device 1508, loaded into the memory 1506, and executed by the processor 1502.
The types of computer systems 1500 used by the entities of a system environment can vary depending upon the embodiment and the processing power used by the entity. For example, a client device may be a mobile phone with limited processing power, a small display 1518, and may lack a pointing device 1514. A multi-tenant system or a cloud platform, in contrast, may comprise multiple blade servers working together to provide the functionality described herein.
Additional ConsiderationsThe particular naming of the components, capitalization of terms, the attributes, data structures, or any other programming or structural aspect is not mandatory or significant, and the mechanisms that implement the embodiments described may have different names, formats, or protocols. Further, the systems may be implemented via a combination of hardware and software, as described, or entirely in hardware elements. Also, the particular division of functionality between the various system components described herein is merely exemplary, and not mandatory; functions performed by a single system component may instead be performed by multiple components, and functions performed by multiple components may instead performed by a single component.
Some portions of above description present features in terms of algorithms and symbolic representations of operations on information. These algorithmic descriptions and representations are the means used by those skilled in the data processing arts to most effectively convey the substance of their work to others skilled in the art. These operations, while described functionally or logically, are understood to be implemented by computer programs. Furthermore, it has also proven convenient at times, to refer to these arrangements of operations as modules or by functional names, without loss of generality.
Unless specifically stated otherwise as apparent from the above discussion, it is appreciated that throughout the description, discussions utilizing terms such as “processing” or “computing” or “calculating” or “determining” or “displaying” or the like, refer to the action and processes of a computer system, or similar electronic computing device, that manipulates and transforms data represented as physical (electronic) quantities within the computer system memories or registers or other such information storage, transmission or display devices.
Certain embodiments described herein include process steps and instructions described in the form of an algorithm. It should be noted that the process steps and instructions of the embodiments could be embodied in software, firmware or hardware, and when embodied in software, could be downloaded to reside on and be operated from different platforms used by real time network operating systems.
The embodiments described also relate to apparatuses for performing the operations herein. An apparatus may be specially constructed for the required purposes, or it may comprise a general-purpose computer selectively activated or reconfigured by a computer program stored on a computer readable medium that can be accessed by the computer. Such a computer program may be stored in a non-transitory computer readable storage medium, such as, but is not limited to, any type of disk including floppy disks, optical disks, CD-ROMs, magnetic-optical disks, read-only memories (ROMs), random access memories (RAMs), EPROMs, EEPROMs, magnetic or optical cards, application specific integrated circuits (ASICs), or any type of media suitable for storing electronic instructions, and each coupled to a computer system bus. Furthermore, the computers referred to in the specification may include a single processor or may be architectures employing multiple processor designs for increased computing capability.
The algorithms and operations presented herein are not inherently related to any particular computer or other apparatus. Various general-purpose systems may also be used with programs in accordance with the teachings herein, or it may prove convenient to construct more specialized apparatus to perform the required method steps. The required structure for a variety of these systems will be apparent to those of skill in the, along with equivalent variations. In addition, the present embodiments are not described with reference to any particular programming language. It is appreciated that a variety of programming languages may be used to implement the teachings of the embodiments as described herein.
The embodiments are well suited for a wide variety of computer network systems over numerous topologies. Within this field, the configuration and management of large networks comprise storage devices and computers that are communicatively coupled to dissimilar computers and storage devices over a network, such as the Internet.
Finally, it should be noted that the language used in the specification has been principally selected for readability and instructional purposes and may not have been selected to delineate or circumscribe the inventive subject matter. Accordingly, the disclosure of the embodiments is intended to be illustrative, but not limiting.
Claims
1. A computer implemented method for deploying software artifacts for services executing in data centers configured on a cloud platform, the method comprising:
- accessing a data center configured on a target cloud platform, the data center generated based on a cloud platform independent declarative specification 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;
- receiving a cloud platform independent deployment manifest identifying a deployment strategy for deploying a software artifact on the data center entities of the data center;
- generating a deployment pipeline for the target cloud platform with instructions for deploying the software artifact according to a layout of data center defined by the cloud platform independent declarative specification, the deployment pipeline including a deployment stage specifying a deployment operator implementing the identified deployment strategy; and
- transmitting the deployment pipeline to the target cloud platform for execution, wherein the deployment operator executes on a cluster of computing systems, the deployment operator executing a set of operations implementing the deployment strategy.
2. The computer implemented method of claim 1, further comprising:
- modifying the deployment strategy used for deploying the software artifact by modifying the cloud platform independent deployment manifest to specify a new deployment strategy.
3. The computer implemented method of claim 1, wherein the deployment strategy is a first deployment strategy, the deployment pipeline is a first deployment pipeline, the cloud platform independent deployment manifest is a first cloud platform independent deployment manifest, the set of operations is a first set of operations, further comprising:
- receiving a second cloud platform independent deployment manifest identifying a second deployment strategy for deploying the software artifact on the data center entities of the data center;
- generating a second deployment pipeline specifying a second deployment operator implementing the second deployment strategy, wherein the remaining stages of the second deployment pipeline match corresponding stages of the first deployment pipeline; and
- transmitting the second deployment pipeline to the target cloud platform for execution, wherein the second deployment operator executes on the cluster of computing systems, the deployment operator executing a second set of operations implementing the second deployment strategy.
4. The computer implemented method of claim 1, further comprising:
- receiving one or more status updates for various operations from the set of operations performed by the deployment operator executing on the cluster of computing systems.
5. The computer implemented method of claim 1, wherein the data center comprises a staging environment and a production environment, and wherein the deployment strategy comprises performing testing on the staging environment and shifting user traffic from the production environment to the staging environment.
6. The computer implemented method of claim 1, wherein the deployment strategy comprises releasing a new version of the software artifact to incrementally larger subsets of users.
7. The computer implemented method of claim 1, wherein the deployment strategy comprises releasing a new version of the software artifact to incrementally larger subsets of computing systems of the cluster of computing systems.
8. The computer implemented method of claim 1, further comprising:
- receiving the cloud platform independent declarative specification; and
- compiling the cloud platform independent declarative specification to generate a cloud platform specific data center representation.
9. 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 software artifacts for services executing in data centers configured on a cloud platform, the steps comprising:
- accessing a data center configured on a target cloud platform, the data center generated based on a cloud platform independent declarative specification 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;
- receiving a cloud platform independent deployment manifest identifying a deployment strategy for deploying a software artifact on the data center entities of the data center;
- generating a deployment pipeline for the target cloud platform with instructions for deploying the software artifact according to a layout of data center defined by the cloud platform independent declarative specification, the deployment pipeline including a deployment stage specifying a deployment operator implementing the identified deployment strategy; and
- transmitting the deployment pipeline to the target cloud platform for execution, wherein the deployment operator executes on a cluster of computing systems, the deployment operator executing a set of operations implementing the deployment strategy.
10. The non-transitory computer readable storage medium of claim 9, wherein the instructions further cause the computer processor to perform steps comprising:
- modifying the deployment strategy used for deploying the software artifact by modifying the cloud platform independent deployment manifest to specify a new deployment strategy.
11. The non-transitory computer readable storage medium of claim 9, wherein the deployment strategy is a first deployment strategy, the deployment pipeline is a first deployment pipeline, the cloud platform independent deployment manifest is a first cloud platform independent deployment manifest, the set of operations is a first set of operations, wherein the instructions further cause the computer processor to perform steps comprising:
- receiving a second cloud platform independent deployment manifest identifying a second deployment strategy for deploying the software artifact on the data center entities of the data center;
- generating a second deployment pipeline specifying a second deployment operator implementing the second deployment strategy, wherein the remaining stages of the second deployment pipeline match corresponding stages of the first deployment pipeline; and
- transmitting the second deployment pipeline to the target cloud platform for execution, wherein the second deployment operator executes on the cluster of computing systems, the deployment operator executing a second set of operations implementing the second deployment strategy.
12. The non-transitory computer readable storage medium of claim 9, wherein the instructions further cause the computer processor to perform steps comprising:
- receiving one or more status updates for various operations from the set of operations performed by the deployment operator executing on the cluster of computing systems.
13. The non-transitory computer readable storage medium of claim 9, wherein the data center comprises a staging environment and a production environment, and wherein the deployment strategy comprises performing testing on the staging environment and shifting user traffic from the production environment to the staging environment.
14. The non-transitory computer readable storage medium of claim 9, wherein the deployment strategy comprises releasing a new version of the software artifact to incrementally larger subsets of users.
15. The non-transitory computer readable storage medium of claim 9, wherein the deployment strategy comprises releasing a new version of the software artifact to incrementally larger subsets of computing systems of the cluster of computing systems.
16. The non-transitory computer readable storage medium of claim 9, wherein the instructions further cause the computer processor to perform steps comprising:
- receive the cloud platform independent declarative specification; and
- compile the cloud platform independent declarative specification to generate a cloud platform specific data center representation.
17. A computer system comprising:
- a computer processor; 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 data centers in a cloud platform, the steps comprising; accessing a data center configured on a target cloud platform, the data center generated based on a cloud platform independent declarative specification 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; receiving a cloud platform independent deployment manifest identifying a deployment strategy for deploying a software artifact on the data center entities of the data center; generating a deployment pipeline for the target cloud platform with instructions for deploying the software artifact according to a layout of data center defined by the cloud platform independent declarative specification, the deployment pipeline including a deployment stage specifying a deployment operator implementing the identified deployment strategy; and transmitting the deployment pipeline to the target cloud platform for execution, wherein the deployment operator executes on a cluster of computing systems, the deployment operator executing a set of operations implementing the deployment strategy.
18. The computer system of claim 17, wherein the instructions further cause the computer processor to perform steps comprising:
- modifying the deployment strategy used for deploying the software artifact by modifying the cloud platform independent deployment manifest to specify a new deployment strategy.
19. The computer system of claim 17, wherein the deployment strategy is a first deployment strategy, the deployment pipeline is a first deployment pipeline, the cloud platform independent deployment manifest is a first cloud platform independent deployment manifest, the set of operations is a first set of operations, wherein the instructions further cause the computer processor to perform steps comprising:
- receiving a second cloud platform independent deployment manifest identifying a second deployment strategy for deploying the software artifact on the data center entities of the data center;
- generating a second deployment pipeline specifying a second deployment operator implementing the second deployment strategy, wherein the remaining stages of the second deployment pipeline match corresponding stages of the first deployment pipeline; and
- transmitting the second deployment pipeline to the target cloud platform for execution, wherein the second deployment operator executes on the cluster of computing systems, the deployment operator executing a second set of operations implementing the second deployment strategy.
20. The computer system of claim 17, wherein the instructions further cause the computer processor to perform steps comprising:
- receiving one or more status updates for various operations from the set of operations performed by the deployment operator executing on the cluster of computing systems.
Type: Application
Filed: Aug 13, 2021
Publication Date: Feb 23, 2023
Inventors: Dmitry Sergeyevich Kiselev (Los Gatos, CA), Jeaneth Aguilar Vergara (Granite Bay, CA), Apoorv Mahajan (Foster City, CA), Harikumar Kumar Sulochana (Fremont, CA), Nikhil Mohan Sail (Dublin, CA), Nishant Loyola Dsouza (Santa Clara, CA)
Application Number: 17/402,448