Ensuring data protection and control in distributed hybrid multi-cloud environment
By creating customized resources in Kubernetes clusters and implementing asynchronous replication and locking mechanisms across clusters, the challenge of persistent volume access in distributed hybrid multi-cloud environments is solved, ensuring the security of data consistency and application mobility.
Patent Information
- Application Number
- CN202380021299.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2022-03-17
- Filing Date
- 2023-03-14
- Publication Date
- 2024-09-24
AI Technical Summary
In a distributed hybrid multi-cloud environment of Kubernetes clusters, the challenge of asynchronous access to persistent volumes across more than two clusters has not been addressed, resulting in file systems that may be corrupted in asynchronous mode, a lack of appropriate locking methods, and impacting data consistency and security. Application mobility.
By creating new custom resources (CR) in the Kubernetes cluster, asynchronous replication and locking mechanisms across the cluster are implemented to ensure that applications and databases are not damaged during the migration process, providing cross-geographical cloud mobility and data integrity.
Effectively maintains data consistency and secure application mobility in multi-cloud environments, ensuring the integrity of persistent volumes, ensuring data security and integrity even during stateful applications and I/O operations.
Smart Images

Figure 00000000_0000
Abstract
Description
Background Art
[0001] The present invention relates generally to the field of cloud computing, and more particularly to ensuring data protection and control in a distributed hybrid multi-cloud environment with a Kubernetes cluster.
[0002] A multi-cloud environment exists when an enterprise utilizes multiple public cloud services, which most often come from different cloud providers. Since all cloud providers are not created equally, organizations employ a multi-cloud strategy to deliver best-of-breed IT services, to prevent lock-in to a single cloud provider, or to take advantage of cloud arbitrage and select a provider for a specific service based on which provider is offering the lowest price at that time.
[0003] A hybrid cloud environment exists when an enterprise's cloud environment includes private cloud infrastructure (such as the enterprise's own data center) and one or more public cloud services that typically work together to achieve business goals. Therefore, if an enterprise's cloud environment includes multiple public cloud services and private cloud components, it is considered a hybrid multicloud environment.
[0004] Kubernetes is an open source system for managing containerized applications across multiple hosts. It provides basic mechanisms for the deployment, maintenance, and scaling of applications. Enterprises provide Kubernetes-based platforms or infrastructure as a service (IaaS) for deploying Kubernetes. When Kubernetes is deployed, a cluster is formed. A Kubernetes cluster consists of at least one worker machine (i.e., node) running a containerized application. The worker node hosts a pod (i.e., a collection of running containers in a cluster) that is a component of the application workload. The cluster also includes a control plane that manages the worker nodes and containers in the cluster. In a production environment, the control plane typically runs across multiple computers, and the cluster typically runs multiple nodes, thereby providing fault tolerance and high availability. Summary of the invention
[0005] Aspects of embodiments of the present invention disclose methods, computer program products, and computer systems for ensuring data protection and control in a distributed hybrid multi-cloud environment with a Kubernetes cluster. A processor determines whether a corresponding quorum of a set of clusters is online. In response to determining that a corresponding quorum of the set of clusters is online, the processor determines whether one or more applications of the cluster are running on another cluster in the set of clusters. In response to determining that one or more applications of the cluster are not running on another cluster in the set of clusters, the processor determines whether the cluster is designated as a highest priority cluster. In response to determining that the cluster is designated as a highest priority cluster, the processor determines whether a primary cluster in the set of clusters is online. In response to determining that the primary cluster is online, the processor scales a new custom resource to one (1). BRIEF DESCRIPTION OF THE DRAWINGS
[0006] Figure 1 is a functional block diagram illustrating a distributed data processing environment according to an embodiment of the present invention.
[0007] Figure 2 is a flowchart depicting the operating steps of a data protection program according to an embodiment of the present invention, which is used to control application integrity locking in a distributed hybrid multi-cloud environment with a Kubernetes cluster using new custom resources.
[0008] Figure 3 A cloud computing environment according to an embodiment of the present invention is depicted.
[0009] Figure 4 Depicts the abstract model layers according to an embodiment of the present invention.
[0010] Figure 5 Describes a method for running a data protection program according to an embodiment of the present invention. Figure 1 A block diagram of components of a compute node of a cloud computing environment within a distributed data processing environment. DETAILED DESCRIPTION
[0011] With digital transformation and exponential data growth, enterprises want to expand their computing capabilities beyond the limits of data centers by storing data and computing on the cloud, and more often on many different clouds. There are many technologies for multi-cloud, multi-cluster, and multi-geo container application management, but these technologies focus entirely on stateless application mobility across sites. In order to achieve a true hybrid multi-cloud environment, embodiments of the present invention recognize that stateful application mobility also needs to be enabled.
[0012] Embodiments of the present invention recognize that when a distributed hybrid multi-cloud environment is deployed using Kubernetes clusters (also referred to herein as simply "clusters"), the challenge of asynchronously accessing persistent volumes (also referred to as "PersistentVolumes" or "PVs") across more than two clusters is not addressed. This creates a problem where PVs may become corrupted when the file system is accessed simultaneously without proper locking methods, which is not possible in asynchronous mode. Therefore, embodiments of the present invention recognize the need to maintain consistency in a multi-cloud environment and enable cloud mobility across geography for stateful applications and databases that are not geographically distributed aware.
[0013] Embodiments of the present invention provide a system and method that works with a Kubernetes cluster to ensure locking of persistent volumes, which will control access to loosely coupled asynchronous replication. Even if an application and its database are migrated from one location to another cloud, if the application and database are not completely terminated in all other locations, the embodiments of the present invention should prevent access at any location. Embodiments of the present invention ensure that access locks are generated, maintained, migrated, and released when needed at the application level. This will help ensure data integrity and secure application mobility, even for stateful applications, when there are PV input / output (I / O) operations running.
[0014] Embodiments of the present invention enhance the functionality of Kubernetes clusters across multiple geographic locations. Embodiments of the present invention provide an underlying asynchronous replication set across clusters, where it can generate persistent volumes across different clouds (including clouds within private premises). In the case where different cloud providers provide different Kubernetes cluster types, embodiments of the present invention implement application integrity locking between clouds by creating new custom resources (also referred to as "custom resources" or "CRs") on each Kubernetes cloud service controlled by embodiments of the present invention. The new custom resources have an operator on each cluster to expose application programming interface (API) services to transfer states between clusters.
[0015] In Kubernetes, a resource is an endpoint in the Kubernetes API that stores a collection of API objects of a certain type. A custom resource is an extension of the Kubernetes API that represents customizations to a specific Kubernetes installation. Custom resources are defined using the Custom Resource Definition (also known as Custom Resource Definition or "CRD") API, where defining a CRD object creates a new custom resource with a specified name and schema. CRDs allow users to create new types of resources without adding another API server.
[0016] Implementation of the embodiments of the present invention may take various forms, and exemplary implementation details are discussed below with reference to the accompanying drawings.
[0017] Figure 1 is a functional block diagram illustrating a distributed data processing environment, generally designated 100, according to one embodiment of the present invention. The term "distributed" as used herein describes a computer system that includes multiple physically distinct devices operating together as a single computer system. Figure 1This merely provides an illustration of one implementation and does not imply any limitation on the environments in which different embodiments may be implemented.Many modifications to the depicted environment may be made by those skilled in the art without departing from the scope of the invention as recited by the claims.
[0018] The distributed data processing environment 100 includes a hybrid multi-cloud environment 110 and user computing devices 120 interconnected by a network 105. The network 105 can be, for example, a telecommunications network, a local area network (LAN), a wide area network (WAN) such as the Internet, or a combination of the three, and can include wired, wireless, or fiber optic connections. The network 105 may include one or more wired and / or wireless networks capable of receiving and sending data, voice, and / or video signals, including multimedia signals, including voice, data, and video information. In general, the network 105 can be any combination of connections and protocols that will support communications between the hybrid multi-cloud environment 110, the user computing devices 120, and other computing devices (not shown) within the distributed data processing environment 100.
[0019] The hybrid multi-cloud environment 110 is a cloud computing environment having at least one public cloud and at least one private cloud. In an embodiment, the hybrid multi-cloud environment 110 represents a server computing system utilizing multiple computers as a server system, such as in a cloud computing environment, capable of communicating with a user computing device 120 and other computing devices (not shown) within the distributed data processing environment 100 via a network 105. In another embodiment, the hybrid multi-cloud environment 110 represents a computing system utilizing clustered computers and components (e.g., database server computers, application server computers, etc.) that act as a single seamless resource pool when accessed within the distributed data processing environment 100. The hybrid multi-cloud environment 110 includes a cluster 112. The hybrid multi-cloud environment 110 may include internal and external hardware components, such as those described with respect to FIG. Figure 3-Figure 5 further depicted and described in detail.
[0020] Clusters 112 operate as Kubernetes clusters, each of which contains a copy of data protection program 114 and an application to be protected by data protection program 114. A Kubernetes cluster is a collection of computing nodes that run containerized applications. In an embodiment of the present invention, clusters 112 include at least three clusters. The nodes of clusters 112 may include internal and external hardware components, such as Figure 5 further depicted and described in detail.
[0021] Data protector 114 operates as a method for ensuring data protection and control in a distributed hybrid multi-cloud environment with a Kubernetes cluster. In other words, data protector 114 sets and controls entities that will protect applications running on clusters controlled by StatefulSets or Deployment entities, which are standard entities on clusters used to protect applications on clusters that use PV, such as cluster 112. The present invention creates a new layer on top of a StatefulSet or Deployment that will prevent breaches in a hybrid multi-cloud environment. In another embodiment, data protector 114 may reside on another computing device, server, cloud server, or on multiple devices (not shown) distributed elsewhere within distributed data processing environment 100, as long as data protector 114 has access to network 105. In the depicted embodiment, data protector 114 is a standalone program with copies running on each cluster of cluster 112. In another embodiment, data protector 114 may be integrated into another software product, such as a cloud service provision. About Figure 2 The main operation of the data protection program 114 is depicted and described in further detail. Before the main operation of the data protection program 114 can proceed, an initial setup is completed by the user, such as through the user interface 122 of the user computing device 120.
[0022] In an embodiment, the data protector 114 enables a user to complete the initial setup of a new CR defined using a CRD for use in a distributed hybrid multi-cloud environment (e.g., hybrid multi-cloud environment 110) with a Kubernetes cluster. As used herein, "new CR" and "new CRD" refer to new custom resources created and controlled by the data protector 114. The initial setup includes enabling a user (e.g., an administrator) to set the following settings for all clusters. In an embodiment, the data protector 114 enables a user to create a new CR. In an embodiment, the data protector 114 enables an administrator with authorization to obtain, list, edit, and create new CRs on all clusters in the hybrid multi-cloud environment. In an embodiment, the data protector 114 enables a user to create (i.e., set) a Kubernetes operator (or just "operator"), which is a software extension of Kubernetes that manages applications and their components using custom resources to control the operation of the new CR. The Kubernetes operator ensures that the data protector 114 runs correctly in each cluster of the cluster 112.
[0023] In an embodiment, the data protector 114 enables an administrator to set a cluster priority setting and a home cluster for a new CR. The cluster priority setting tells the operator the initial priority (i.e., which cluster) as to where an application will run during normal operation. In an embodiment, the data protector 114 has two modes of operation: (1) normal and (2) disaster recovery. When operating in normal mode, the data protector 114 runs the new CR on the highest priority cluster as defined by the administrator, and no disaster recovery is declared. By setting the home cluster for the new CR, the data protector 114 enables setting which cluster has the data source, assuming this is based on asynchronous replication due to the extended distances between different clouds. For data consistency, there needs to be one cluster that acts as the "primary owner" of the data source, which will always be the primary point of asynchronous replication.
[0024] In an embodiment, data protector 114 enables an administrator to set which clusters are part of a new CR on the operator, which will be a list of Kubernetes clusters that are part of the CR, where the list contains all Kubernetes cluster API endpoints. The present embodiment assumes that there are at least three clusters, where the quorum (majority of the clusters) is automatically calculated by the number of clusters on the list.
[0025] A CR declaration has at least two definitions. In an embodiment, the data protector 114 enables an administrator to define (1) one or more persistent volumes (PVs) and persistent volume declarations (PVCs) and (2) one or more state collections or deployment entities in a Kubernetes cluster. Both (1) and (2) are Kubernetes entities that define running applications and, in the embodiments herein, are controlled by the data protector 114. These definitions may also be imported when the CRD is initially created. When a new CR is scaled to one (1), the initial number of replicas (i.e., pods) of the application desired for the deployment or state collection must be defined. If the new CR is scaled to zero (0), the data protector 114 sets the deployment or state collection replicas to zero (0).
[0026] In an embodiment, the data protector 114 enables an administrator to set an application migration that causes the application migration command to redefine cluster priorities across all Kubernetes clusters (i.e., determine a new highest priority cluster defined by the administrator in the application migration) so that the data protector 114 will automatically enforce the correct application migration to the new highest priority cluster. For example, the data protector 114 enables an administrator to set the migration of an application from cloud A to cloud B within the hybrid multi-cloud environment 110. By enabling the administrator to set application migrations, the data protector 114 enables the administrator to change the application location.
[0027] The user computing device 120 operates as a computing device associated with a user on which the user can interact with the data protection program 114 through an application user interface. In the depicted embodiment, the user computing device 120 includes an instance of the user interface 122. In an embodiment, the user computing device 120 may be a laptop computer, a tablet computer, a smart phone, a smart watch, an e-reader, smart glasses, a wearable computer, or any programmable electronic device capable of communicating with various components and devices within the distributed data processing environment 100 via the network 105. In general, the user computing device 120 represents one or more programmable electronic devices or a combination of programmable electronic devices capable of executing machine-readable program instructions and communicating with other computing devices (not shown) within the distributed data processing environment 100 via a network, such as the network 105.
[0028] The user interface 122 provides an interface between the data protection program 114 on the hybrid multi-cloud environment 110 and the user of the user computing device 120. In one embodiment, the user interface 122 is a mobile application software. Mobile application software or "app" is a computer program designed to run on smart phones, tablet computers and other mobile computing devices. In one embodiment, the user interface 122 can be a graphical user interface (GUI) or a network (web) user interface (WUI), which can display text, documents, network (web) browser windows, user options, application interfaces and operating instructions, as well as information (such as graphics, text and sound) presented to the user by the program and control sequences used by the user to control the program. The user interface 122 enables the user of the user computing device 120 to complete the initial setup of the data protection program 114 and / or act as an administrator of the data protection program 114. The user interface 122 enables the user of the user computing device 120 to view or manage the functions and / or outputs of the data protection program 114 as needed, for example, if necessary, the user can declare disaster recovery.
[0029] Figure 2 2 is a flowchart 200 depicting the operational steps of a data protection program 114 according to an embodiment of the present invention, which is used to control application integrity locking in a distributed hybrid multi-cloud environment with a Kubernetes cluster using a new CR. It should be understood that Figure 2 The process depicted in shows one possible iteration of the data protection program 114 running on each cluster 112, where the process is viewed from the perspective of one cluster at a time.
[0030] In decision 205, data protector 114 determines whether there are a quorum of clusters. In an embodiment, data protector 114 determines whether there are a quorum of "healthy" (i.e., can communicate with each other) or online clusters 112. A quorum of clusters is defined as a majority of clusters 112, i.e., more than 50% of clusters 112, e.g., if there are three clusters, two clusters must be online to have a quorum. In an embodiment, data protector 114 receives an indication from a Kubernetes operator on the cluster whether there is a quorum between online clusters.
[0031] If data protector 114 determines that a quorum does not exist (decision 205, "no" branch), data protector 114 proceeds to step 210. In step 210, data protector 114 scales the CR to zero (0) on the clusters where a quorum was not determined to exist to ensure consistency of the given data, and then proceeds to step 215. In step 215, data protector 114 sends a communication to all reachable clusters (i.e., clusters that are responsive to the communication because they are online) that the CR is down on that cluster, and then proceeds back to wait until a quorum is achieved.
[0032] If the data protector 114 determines that a quorum exists (decision 205, "yes" branch), the data protector 114 proceeds to decision 220. In decision 220, the data protector 114 determines whether the one or more applications are running on any other reachable clusters. If the data protector 114 determines that the one or more applications are running on any other reachable clusters (decision 220, "yes" branch), the data protector 114 proceeds to step 210 (as described above) to scale the CR to zero (0) to ensure consistency, and the protected one or more applications are only started in one cluster. Therefore, by setting the CR to zero (0) for the cluster, the data protector 114 protects the one or more applications from corruption.
[0033] If the data protector 114 determines that the application is not running on any other reachable cluster (decision 220, "no" branch), the data protector 114 proceeds to decision 225. In decision 225, the data protector 114 determines whether this is the cluster with the highest priority within the quorum. In an embodiment, the data protector 114 determines whether this is the cluster with the highest priority within the quorum by checking which cluster is set as the highest priority by an administrator (e.g., a user who is set as an administrator through the user interface 122 on the user computing device 120). If the data protector 114 determines that this is not the cluster with the highest priority within the quorum (decision 225, "no" branch), the data protector 114 proceeds to step 210 (as described above) to scale the CR to zero (0) because the cluster with the highest priority within the quorum should be the only cluster that launches one or more applications (i.e., runs one or more applications).
[0034] If data protection program 114 determines that this is the cluster with the highest priority within the quorum (decision 225, "yes" branch), data protection program 114 proceeds to decision 230. In decision 230, data protection program 114 determines whether the primary cluster is up. In an embodiment, data protection program 114 determines whether the primary cluster is up, i.e., online, and ready to run one or more applications. The primary cluster is the cluster on which the data source is stored and is defined by the administrator during initial setup.
[0035] If the data protection program 114 determines that the primary cluster is not up (decision 230, "no" branch), the data protection program 114 proceeds to decision 235. At decision 235, the data protection program 114 determines whether disaster recovery (DR) is declared, for example, by an administrator who sets the operating mode of the data protection program 114. If the administrator has placed the data protection program 114 in a normal operating mode, DR is not declared. If the administrator has placed the data protection program 114 in a DR operating mode, DR is declared, which basically means that the administrator does not believe that the primary cluster is online or will be online. If the data protection program 114 determines that DR is not declared (decision 235, "no" branch), the data protection program 114 proceeds to step 210 (described above) to scale the CR to zero (0).
[0036] If data protector 114 determines that the primary cluster is up (decision 230, "yes" branch), or if data protector 114 determines that DR is declared (decision 235, "yes" branch), data protector 114 proceeds to step 240. In step 240, data protector 114 scales the CR to one (1) and then proceeds to step 245. In step 245, data protector 114 sends a communication to all reachable clusters that the application is scaled to one (1) and then proceeds to step 250. In step 250, data protector 114 sets the deployment or state collection entity (whichever entity the cluster has) to the desired replicas (i.e., the number of pods set by the user during configuration, depending on the needs of the application to be protected), thereby ensuring that only one of the Kubernetes clusters within the hybrid multi-cloud environment will access the persistent volume claim (PVC) to guarantee the integrity of one or more applications. In an embodiment, the data protection program 114 enables the application to start running by setting the state set or deployment entity to the desired replica set during configuration. In other words, the CR is active on the cluster that is scaled to one (1) and the application runs in that cluster, owning the data, while the other clusters are set to zero (0). This will force the application to remain down because the CR will set the state set or deployment entity to zero (0). After completing step 250, the data protection program 114 loops back to the beginning to continue checking conditions for the clusters as described above.
[0037] It should be understood that although the present disclosure includes detailed descriptions about cloud computing, the implementation of the teachings recorded herein is not limited to cloud computing environments. Instead, the embodiments of the present invention can be implemented in conjunction with any other type of computing environment now known or later developed.
[0038] Cloud computing is a service delivery model for enabling convenient, on-demand network access to a shared pool of configurable computing resources (e.g., networks, network bandwidth, servers, processing, memory, storage, applications, virtual machines, and services) that can be quickly provisioned and released with minimal management effort or interaction with the service provider. The cloud model can include at least five characteristics, at least three service models, and at least four deployment models.
[0039] Features are as follows:
[0040] On-demand self-service: Cloud consumers can unilaterally and automatically provision computing capabilities, such as server time and network storage, as needed without requiring manual interaction with the service provider.
[0041] Broad network access: Capabilities are available over the network and accessed through standard mechanisms that facilitate use by heterogeneous thin or thick client platforms (e.g., mobile phones, laptops, and PDAs).
[0042] Resource pooling: A provider's computing resources are pooled to serve multiple consumers using a multi-tenant model, where different physical and virtual resources are dynamically allocated and reallocated based on demand. There is a sense of location independence, as consumers typically do not control or know the exact location of the resources provided, but may be able to specify the location at a higher level of abstraction (e.g., country, state, or data center).
[0043] Rapid elasticity: Capacity to scale out quickly and to release quickly to scale in quickly can be quickly and elastically, and in some cases automatically, provisioned. To the consumer, the capacity available for provisioning often appears to be unlimited and can be purchased in any quantity at any time.
[0044] Metered Services: Cloud systems automatically control and optimize resource usage by leveraging metering capabilities at some level of abstraction appropriate to the type of service (e.g., storage, processing, bandwidth, and active user accounts). Resource usage can be monitored, controlled, and reported, providing transparency to both providers and consumers of the utilized services.
[0045] The service model is as follows:
[0046] Software as a Service (SaaS): The capability provided to consumers is to use the provider's applications running on a cloud infrastructure. Applications are accessible from a variety of client devices through a thin client interface such as a web browser (e.g., web-based email). Consumers do not manage or control the underlying cloud infrastructure, including the network, servers, operating systems, storage, or even individual application capabilities, with the possible exception of limited user-specific application configuration settings.
[0047] Platform as a Service (PaaS): The capability provided to consumers is to deploy consumer-created or acquired applications created using programming languages and tools supported by the provider onto the cloud infrastructure. Consumers do not manage or control the underlying cloud infrastructure, including networks, servers, operating systems, or storage, but have control over the deployed applications and possible configuration of the application hosting environment.
[0048] Infrastructure as a Service (IaaS): The capability provided to consumers is the provisioning of processing, storage, networking, and other basic computing resources on which consumers can deploy and run arbitrary software, which may include operating systems and applications. Consumers do not manage or control the underlying cloud infrastructure, but have control over the operating system, storage, deployed applications, and possibly limited control over selected networking components (e.g., host firewalls).
[0049] The deployment model is as follows:
[0050] Private Cloud: The cloud infrastructure is operated only for the organization. It can be managed by the organization or a third party and can exist on-premises or off-premises.
[0051] Community cloud: The cloud infrastructure is shared by several organizations and supports a specific community with common concerns (e.g., mission, security requirements, policies, and compliance considerations). It can be managed by the organization or a third party and can exist on-premises or off-premises.
[0052] Public cloud: Cloud infrastructure is available to the general public or large industry groups and is owned by an organization that sells cloud services.
[0053] Hybrid cloud: A cloud infrastructure is a combination of two or more clouds (private, community, or public) that remain unique entities but are bound together by standardized or proprietary technologies that enable data and application portability (e.g., cloud bursting for load balancing between clouds).
[0054] The cloud computing environment is service-oriented, with a focus on statelessness, low coupling, modularity, and semantic interoperability. At the core of cloud computing is the infrastructure consisting of a network of interconnected nodes.
[0055] Reference now Figure 3 , depicts an illustrative cloud computing environment 50. As shown, the cloud computing environment 50 includes one or more cloud computing nodes 10, with which local computing devices used by cloud consumers (such as, for example, personal digital assistants (PDAs) or cellular phones 54A, desktop computers 54B, laptop computers 54C, and / or automotive computer systems 54N) can communicate. The nodes 10 can communicate with each other. They can be physically or virtually grouped (not shown) in one or more networks, such as private clouds, community clouds, public clouds, or hybrid clouds, or combinations thereof, as described above. This allows the cloud computing environment 50 to provide infrastructure as a service, platform as a service, and / or software as a service, for which cloud consumers do not need to maintain resources on local computing devices. It should be understood that Figure 1The types of computing devices 54A-N shown in are intended to be illustrative only, and computing node 10 and cloud computing environment 50 may communicate with any type of computerized device over any type of network and / or network addressable connection (e.g., using a web browser).
[0056] Reference now Figure 4 , showing the cloud computing environment 50 ( Figure 3 ) provides a set of functional abstraction layers. It should be understood in advance that Figure 4 The components, layers, and functions shown in are intended to be illustrative only, and embodiments of the present invention are not limited thereto. As depicted, the following layers and corresponding functions are provided:
[0057] The hardware and software layer 60 includes hardware and software components. Examples of hardware components include: mainframes 61; servers based on RISC (Reduced Instruction Set Computer) architecture 62; servers 63; blade servers 64; storage devices 65; and network and networking components 66. In some embodiments, software components include network application server software 67 and database software 68.
[0058] Virtualization layer 70 provides an abstraction layer from which the following examples of virtual entities can be provided: virtual servers 71 ; virtual storage 72 ; virtual networks 73 , including virtual private networks; virtual applications and operating systems 74 ; and virtual clients 75 .
[0059] In one example, the management layer 80 may provide the functionality described below. Resource provisioning 81 provides dynamic procurement of computing resources and other resources for performing tasks within a cloud computing environment. Metering and pricing 82 provides cost tracking when resources are utilized within a cloud computing environment, as well as billing or invoicing for the consumption of these resources. In one example, these resources may include application software licenses. Security provides authentication for cloud consumers and tasks, as well as protection for data and other resources. User portal 83 provides access to the cloud computing environment for consumers and system administrators. Service level management 84 provides cloud computing resource allocation and management so that the required service levels are met. Service level agreement (SLA) planning and fulfillment 85 provides pre-scheduling and procurement of cloud computing resources, where future demand for cloud computing resources is anticipated based on the SLA.
[0060] The workload layer 90 provides examples of functions that can take advantage of the cloud computing environment. Examples of workloads and functions that can be provided from this layer include: mapping and navigation 91; software development and lifecycle management 92; virtual classroom education delivery 93; data analysis processing 94; transaction processing 95; and data protection processing 96.
[0061] Figure 5Describes an embodiment of the present invention suitable for Figure 1 1 is a block diagram of components of one of the cloud computing nodes 10 running the data protection program 114 within the distributed data processing environment 100 of FIG. Figure 5 This merely provides an illustration of one implementation and does not imply any limitation with respect to the environments in which different embodiments may be implemented.Many modifications to the depicted environments may be made.
[0062] The computing device 500 includes a communication fabric 502 that provides communications between a cache 516, a memory 506, a persistent storage device 508, a communication unit 510, and an input / output (I / O) interface 512. The communication fabric 502 may be implemented using any architecture designed to pass data and / or control information between processors (such as microprocessors, communication and network processors, etc.), system memory, peripheral devices, and any other hardware components within the system. For example, the communication fabric 502 may be implemented using one or more buses or crossbar switches.
[0063] Memory 506 and persistent storage 508 are computer-readable storage media. In this embodiment, memory 506 includes random access memory (RAM). In general, memory 506 may include any suitable volatile or non-volatile computer-readable storage media. Cache 516 is a fast memory that enhances the performance of computer processor 504 by saving recently accessed data from memory 506 and data near the accessed data.
[0064] Programs may be stored in persistent storage 508 and memory 506 for execution and / or access by one or more of the respective computer processors 504 via cache 516. In an embodiment, persistent storage 508 includes a magnetic hard drive. Alternatively, or in addition to a magnetic hard drive, persistent storage 508 may include a solid-state hard drive, a semiconductor memory device, a read-only memory (ROM), an erasable programmable read-only memory (EPROM), flash memory, or any other computer-readable storage medium capable of storing program instructions or digital information.
[0065] The media used by persistent storage 508 also may be removable. For example, a removable hard drive may be used for persistent storage 508. Other examples include optical and magnetic disks, thumb drives, and smart cards that are inserted into a drive for transfer to another computer-readable storage medium that is also part of persistent storage 508.
[0066] In these examples, communications unit 510 provides communications with other data processing systems or devices. In these examples, communications unit 510 includes one or more network interface cards. Communications unit 510 can provide communications using either or both physical and wireless communications links. Programs can be downloaded to persistent storage device 508 through communications unit 510.
[0067] I / O interface 512 allows input and output of data with other devices that may be connected to one of cloud computing nodes 10. For example, I / O interface 512 may provide connection to external devices 518 such as a keyboard, keypad, touch screen, and / or some other suitable input device. External devices 518 may also include portable computer-readable storage media, such as, for example, thumb drives, portable optical or magnetic disks, and memory cards. Software and data for practicing embodiments of the present invention may be stored on such portable computer-readable storage media and may be loaded onto persistent storage 508 via I / O interface 512. I / O interface 512 is also connected to display 520.
[0068] Display 520 provides a mechanism for displaying data to a user and may be, for example, a computer monitor.
[0069] The programs described herein are identified based on the applications implemented in specific embodiments of the invention. However, it should be understood that any specific program terminology herein is used only for convenience, and thus the present invention should not be limited to use only in any specific application identified and / or implied by such terminology.
[0070] The present invention may be a system, method and / or computer program product. The computer program product may include a computer-readable storage medium (or multiple media) having computer-readable program instructions thereon, the computer-readable program instructions being used to cause a processor to perform various aspects of the present invention.
[0071] Computer readable storage medium can be a tangible device that can retain and store instructions for use by instruction execution devices. Computer readable storage medium can be, for example, but not limited to, electronic storage devices, magnetic storage devices, optical storage devices, electromagnetic storage devices, semiconductor storage devices, or any suitable combination of the foregoing. A non-exhaustive list of more specific examples of computer readable storage medium includes the following: portable computer disk, hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), static random access memory (SRAM), portable compact disk read-only memory (CD-ROM), digital versatile disk (DVD), memory stick, floppy disk, mechanical encoding device (such as a punch card or a convex structure in a groove) with instructions recorded thereon, and any suitable combination of the foregoing. Computer readable storage medium as used herein should not be interpreted as a temporary signal itself, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagated by waveguides or other transmission media (for example, light pulses transmitted by optical fiber cables), or electrical signals transmitted by wires.
[0072] The computer-readable program instructions described herein can be downloaded from a computer-readable storage medium to a corresponding computing / processing device, or downloaded to an external computer or external storage device via a network (e.g., the Internet, a local area network, a wide area network, and / or a wireless network). The network can include copper transmission cables, optical transmission fibers, wireless transmissions, routers, firewalls, switches, gateway computers, and / or edge servers. The network adapter card or network interface in each computing / processing device receives the computer-readable program instructions from the network, and forwards the computer-readable program instructions to be stored in a computer-readable storage medium in the corresponding computing / processing device.
[0073] The computer-readable program instructions for performing the operation of the present invention can be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-related instructions, microcode, firmware instructions, state setting data, or source code or object code written in any combination of one or more programming languages, including object-oriented programming languages (such as Smalltalk, C++, etc.) and traditional procedural programming languages (such as "C" programming languages or similar programming languages). The computer-readable program instructions can be executed completely on the user's computer, partially on the user's computer, executed as an independent software package, partially on the user's computer and partially on a remote computer, or completely on a remote computer or server. In the latter case, the remote computer can be connected to the user's computer through any type of network (including a local area network (LAN) or a wide area network (WAN)), or can be connected to an external computer (for example, by using the Internet of an Internet service provider). In some embodiments, in order to perform various aspects of the present invention, the electronic circuit including, for example, a programmable logic circuit, a field programmable gate array (FPGA) or a programmable logic array (PLA) can perform the computer-readable program instructions by personalizing the electronic circuit using the state information of the computer-readable program instructions.
[0074] Various aspects of the present invention are described herein with reference to the flow chart and / or block diagram of the method, device (system) and computer program product according to embodiments of the present invention. It will be understood that each frame of the flow chart and / or block diagram and the combination of frames in the flow chart and / or block diagram can be implemented by computer-readable program instructions.
[0075] These computer-readable program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device create a device for implementing the functions / actions specified in one or more boxes of the flowchart and / or block diagram. These computer-readable program instructions can also be stored in a computer-readable storage medium, which can instruct a computer, a programmable data processing device, and / or other equipment to work in a specific manner, so that the computer-readable storage medium in which the instructions are stored includes an article of manufacture, which includes instructions for implementing various aspects of the functions / actions specified in one or more boxes of the flowchart and / or block diagram.
[0076] Computer-readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device, so that a series of operational steps are performed on the computer, other programmable apparatus, or other device to produce a computer-implemented process, so that the instructions executed on the computer, other programmable apparatus, or other device implement the functions / actions specified in one or more boxes of the flowchart and / or block diagram.
[0077] The flow chart and block diagram in the accompanying drawings illustrate the architecture, function and operation of the possible implementation of the system, method and computer program product according to various embodiments of the present invention. In this regard, each frame in the flow chart or block diagram can represent a module, segment or part of an instruction, which includes one or more executable instructions for realizing the specified logical function. In some alternative implementations, the functions mentioned in the frame may not occur in the order mentioned in the accompanying drawings. For example, the two frames shown in succession can actually be performed substantially simultaneously, or these frames can sometimes be performed in reverse order, depending on the functions involved. It will also be noted that each frame of the block diagram and / or flow chart and the combination of the frames in the block diagram and / or flow chart can be implemented by a system based on special-purpose hardware, which performs a specified function or action based on the system based on special-purpose hardware, or performs a combination of special-purpose hardware and computer instructions.
[0078] The description of various embodiments of the present invention has been given for the purpose of illustration, but it is not intended to be exhaustive or limited to the disclosed embodiments. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope of the invention. The terms used herein are selected to best explain the principles of the embodiments, practical applications, or technical improvements to the technology found on the market, or to enable other persons of ordinary skill in the art to understand the embodiments disclosed herein.
Claims
1. A computer-implemented method running on a cluster in a collection of clusters, the method comprising: determining, by one or more processors, whether a corresponding quorum of the cluster set is online; In response to determining that a corresponding quorum of the set of clusters is online, determining, by the one or more processors, whether one or more applications of a cluster are running on another cluster in the set of clusters; In response to determining that the one or more applications of the cluster are not running on another cluster in the set of clusters, determining, by the one or more processors, whether the cluster is designated as a highest priority cluster; In response to determining that the cluster is designated as the highest priority cluster, determining, by the one or more processors, whether a master cluster in the set of clusters is online; In response to determining that the primary cluster is online, scaling, by the one or more processors, the new customized resource to one (1).
2. The method according to claim 1, further comprising: sending, by the one or more processors, a communication to each cluster in the set of clusters that are online, the communication announcing that the new customized resource has been scaled to one (1); as well as The one or more processors set the deployment entity or the state collection entity to the desired replica.
3. The method according to claim 1, wherein: In response to determining that a corresponding quorum of the cluster set is not online: scaling, by the one or more processors, the new customized resource to zero (0) on the cluster; and A communication is sent, by the one or more processors, to each cluster in the set of clusters that are online, wherein the communication includes that the new customized resource has been scaled to zero (0).
4. The method according to claim 1, wherein: In response to determining that the one or more applications of the cluster are running on another cluster in the set of clusters: scaling, by the one or more processors, the new customized resource to zero (0) on the cluster; as well as A communication is sent, by the one or more processors, to each cluster in the set of clusters that are online, wherein the communication includes that the new customized resource has been scaled to zero (0).
5. The method according to claim 1, wherein: In response to determining that the cluster is not designated as a highest priority cluster: scaling, by the one or more processors, the new customized resource to zero (0) on the cluster; as well as A communication is sent, by the one or more processors, to each cluster in the set of clusters that are online, wherein the communication includes that the new customized resource has been scaled to zero (0).
6. The method according to claim 1, wherein: In response to determining that the primary cluster is not online, determining, by the one or more processors, whether a disaster recovery mode is in operation.
7. The method according to claim 6, wherein: In response to determining that disaster recovery mode is not running: scaling, by the one or more processors, the new customized resource to zero (0) on the cluster; and A communication is sent, by the one or more processors, to each cluster in the set of clusters that are online, wherein the communication includes that the new customized resource has been scaled to zero (0).
8. A computer program product running on a cluster in a cluster set, the computer program product comprising: One or more computer-readable storage media and program instructions stored together on the one or more computer-readable storage media, the stored program instructions comprising: program instructions for determining whether a corresponding quorum of said cluster set is online; program instructions for determining whether one or more applications of a cluster are running on another cluster in the set of clusters in response to determining that a corresponding quorum of the set of clusters is online; program instructions to determine whether a cluster is designated as a highest priority cluster in response to determining that the one or more applications of the cluster are not running on another cluster in the set of clusters; program instructions for determining whether a master cluster in the set of clusters is online in response to determining that the cluster is designated as the highest priority cluster; In response to determining that the primary cluster is online, program instructions are provided to scale the new custom resource to one (1).
9. The computer program product of claim 8, further comprising: program instructions for sending a communication to each cluster in the set of clusters that are online, the communication stating that the new customized resource has been scaled to one (1); as well as Program instructions that set a deployment entity or state collection entity to a desired replica.
10. The computer program product of claim 8, wherein: In response to determining that a corresponding quorum of the cluster set is not online: program instructions to scale the new custom resource to zero (0) on the cluster; as well as Program instructions for sending a communication to each cluster in the set of clusters that are online, wherein the communication includes that the new customized resource has been scaled to zero (0).
11. The computer program product of claim 8, wherein: In response to determining that the one or more applications of the cluster are running on another cluster in the set of clusters: program instructions for scaling said new custom resource to zero (0) on said cluster; as well as Program instructions for sending a communication to each cluster in the set of clusters that are online, wherein the communication includes that the new customized resource has been scaled to zero (0).
12. The computer program product of claim 8, wherein: In response to determining that the cluster is not designated as a highest priority cluster: program instructions to scale the new custom resource to zero (0) on the cluster; as well as Program instructions for sending a communication to each cluster in the set of clusters that are online, wherein the communication includes that the new customized resource has been scaled to zero (0).
13. The computer program product of claim 8, wherein: In response to determining that the primary cluster is not online, program instructions determine whether a disaster recovery mode is operating.
14. The computer program product of claim 13, wherein: In response to determining that disaster recovery mode is not running: program instructions to scale the new custom resource to zero (0) on the cluster; as well as Program instructions for sending a communication to each cluster in the set of clusters that are online, wherein the communication includes that the new customized resource has been scaled to zero (0).
15. A computer system comprising: one or more computer processors; one or more computer-readable storage media; Program instructions commonly stored on the one or more computer-readable storage media are used to be executed by at least one computer processor of the one or more computer processors on a cluster in the cluster set, the stored program instructions comprising: program instructions for determining whether a corresponding quorum of said cluster set is online; program instructions for determining whether one or more applications of a cluster are running on another cluster in the set of clusters in response to determining that a corresponding quorum of the set of clusters is online; instructions to determine whether a cluster is designated as a highest priority cluster in response to determining that the one or more applications of the cluster are not running on another cluster in the set of clusters; program instructions for determining whether a master cluster in the set of clusters is online in response to determining that the cluster is designated as the highest priority cluster; In response to determining that the primary cluster is online, program instructions are provided to scale the new custom resource to one (1).
16. The computer system of claim 15, further comprising: program instructions for sending a communication to each cluster in the set of clusters that are online, the communication stating that the new customized resource has been scaled to one (1); as well as Program instructions that set a deployment entity or state collection entity to a desired replica.
17. The computer system according to claim 15, wherein: In response to determining that a corresponding quorum of the cluster set is not online: program instructions to scale the new custom resource to zero (0) on the cluster; as well as Program instructions for sending a communication to each cluster in the set of clusters that are online, wherein the communication includes that the new customized resource has been scaled to zero (0).
18. The computer system according to claim 15, wherein: In response to determining that the one or more applications of the cluster are running on another cluster in the set of clusters: program instructions to scale the new custom resource to zero (0) on the cluster; as well as Program instructions for sending a communication to each cluster in the set of clusters that are online, wherein the communication includes that the new customized resource has been scaled to zero (0).
19. The computer system of claim 15, wherein: In response to determining that the cluster is not designated as a highest priority cluster: program instructions to scale the new custom resource to zero (0) on the cluster; as well as Program instructions for sending a communication to each cluster in the set of clusters that are online, wherein the communication includes that the new customized resource has been scaled to zero (0).
20. The computer system of claim 15, further comprising: In response to determining that the primary cluster is not online, program instructions for determining whether a disaster recovery mode is operating; as well as In response to determining that disaster recovery mode is not running: program instructions to scale the new custom resource to zero (0) on the cluster, and Program instructions for sending a communication to each cluster in the set of clusters that are online, wherein the communication includes that the new customized resource has been scaled to zero (0).
