Device, method, system and storage medium for maintaining active-active cloud platform

By introducing service monitors, computing resource synchronization channels and coordinators into the cloud platform, combined with high-availability solutions, active-active switching of services and data is achieved, solving the problems of service interruption and long recovery time in the existing technology, and improving improve the stability and security of the cloud platform.

CN114499778BActive Publication Date: 2024-09-10武汉达梦数据技术有限公司
View PDF 0 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

Existing technologies cannot effectively handle service interruption problems caused by multi-instance requests and extreme situations (such as computer room power outages and server damage), especially at the service access layer and storage layer, and the recovery time is long.

Method used

Design a device to maintain active-active cloud platform, including service monitor, computing resource synchronization channel and coordinator, used to monitor service IP connectivity status, synchronize computing layer resources and ensure business data placement, combined with high availability solutions such as Keepalived And HAProxy, configure the load balancer and virtual IP to achieve active-active switching of services and data.

Benefits of technology

It effectively solves the problem of active-active in multiple computer rooms, improves the stability of business and services, makes services more secure on the cloud, and can quickly restore services in extreme situations to meet production needs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114499778B
    Figure CN114499778B
Patent Text Reader

Abstract

The present invention discloses a device, method, system and storage medium for maintaining active-active cloud platform, including: a service monitor, which is arranged at the service layer of active-active cluster, and the service monitor is used to monitor the connectivity status of the service IP of active-active cluster, and when there is an IP disconnection, the cluster switching mechanism is triggered; a computing resource synchronization channel, which is arranged at the computing layer of active-active cluster, and the computing resource synchronization channel is used to synchronize the resource status of computing layer; a coordinator, which is arranged at the storage layer of active-active cluster, and the coordinator is used to make the business data accurately land on the storage. It makes it easier to realize cluster active-active in service layer, computing layer and storage layer, solves the active-active problem of multiple computer rooms, increases the stability of business and services, makes services safer on cloud, and in extreme cases such as power outage in computer room and damage to server, the device for maintaining active-active cloud platform can also meet production needs well with cluster active-active, and has good practical value.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of cloud computing and storage technology, and in particular to a device, method, system and storage medium for maintaining active-active cloud platforms. Background Art

[0002] With the development of technology, in the process of the continuous growth of cluster scale, due to the large number of service accesses and disk writes from multiple instances, the pressure on memory and CPU is too high. In addition, in some extreme cases, the following problems will arise: simultaneous requests from multiple instances cause the memory and CPU to be full, and the cluster components Controller and Etcd cannot carry services, resulting in service interruptions that cannot be restored immediately; in extreme cases such as power outages in the computer room and server damage, a single cluster cannot meet production needs, and it takes a longer time to repair the cluster and restore services; the community's only solution for K8S at the computing layer, Federation, only performs active-active processing of multiple clusters at the computing layer, but is powerless at the service access layer and storage layer. Summary of the invention

[0003] The purpose of the present invention is to overcome the above-mentioned technical deficiencies and propose a device, method, system and storage medium for maintaining active-active cloud platforms, so as to solve the technical problem that a single cluster in the prior art is prone to service interruption and cannot cope with extreme situations well.

[0004] In order to achieve the above technical objectives, in a first aspect, the technical solution of the present invention provides a device for maintaining active-active cloud platform, comprising:

[0005] A service monitor is provided at the service layer of the active-active cluster. The service monitor is used to monitor the connectivity status of the service IP of the active-active cluster. When there is an IP disconnection, a cluster switching mechanism is triggered.

[0006] A computing resource synchronization channel is provided at the computing layer of the active-active cluster, and is used to synchronize the resource status of the computing layer;

[0007] The coordinator is arranged in the storage layer of the active-active cluster, and is used to accurately place the business data on the storage.

[0008] Compared with the prior art, the beneficial effects of the device for maintaining the active-active cloud platform provided by the present invention include: the device for maintaining the active-active cloud platform includes: a service monitor, which is arranged at the service layer of the active-active cluster, and the service monitor is used to monitor the connectivity status of the service IP of the active-active cluster, and when there is an IP disconnection, the cluster switching mechanism is triggered; a computing resource synchronization channel, which is arranged at the computing layer of the active-active cluster, and the computing resource synchronization channel is used to synchronize the resource status of the computing layer; a coordinator, which is arranged at the storage layer of the active-active cluster, and the coordinator is used to accurately place the business data on the storage. The device for maintaining the active-active cloud platform provided by this embodiment makes it easier to realize the active-active cluster in the service layer, computing layer, and storage layer, solves the active-active problem of multiple computer rooms, and increases the stability of business and services, making services safer on the cloud. In extreme cases such as power outages in computer rooms and server damage, the device for maintaining the active-active cloud platform cooperates with the active-active cluster to meet production needs well, and has good practical value.

[0009] According to some embodiments of the present invention, the service monitor comprises:

[0010] An IP monitoring unit, used to monitor the connectivity status of the service IP of the active-active cluster;

[0011] A virtual IP generation unit is used to manage internal IPs and generate virtual IPs;

[0012] Configure the proxy unit to configure proxy access to avoid real IP exposure.

[0013] According to some embodiments of the present invention, the computing resource synchronization channel includes:

[0014] Configuration collection unit, used to collect Service, PVC, and ConfigMap configurations;

[0015] A metadata storage unit, used for storing metadata information;

[0016] The metadata synchronization unit is used to synchronize metadata to the peer cluster.

[0017] According to some embodiments of the present invention, the coordinator includes:

[0018] The disk placement configuration unit is used to configure the disk placement strategy;

[0019] Volume migration unit, used for volume migration and mounting

[0020] The associated computing unit is used to associate the computing layer PVC.

[0021] According to some embodiments of the present invention, the apparatus for maintaining active-active cloud platforms further includes: a central image warehouse, which provides image files to the cluster end when the storage of the cluster end is exhausted.

[0022] In a second aspect, the technical solution of the present invention provides a method for maintaining active-active cloud platform, comprising the following steps:

[0023] Configure the load balancer through a high availability solution and generate a virtual IP address;

[0024] Establishing an active-active service monitor, the service monitor is used to monitor the connectivity status of the service IP of the active-active cluster;

[0025] Establishing a computing resource synchronization channel, wherein the computing resource synchronization channel is used to synchronize the resource status of the computing layer;

[0026] A data drop location and disk coordinator is established, and the data drop location and disk coordinator is used to accurately drop business data on the storage.

[0027] According to some embodiments of the present invention, when a failover occurs, the coordinator triggers a volume migration and schedules the volume to an active and available cluster.

[0028] According to some embodiments of the present invention, the high availability solution includes at least one of the following: a Keepalived component and a HAProxy component.

[0029] In the third aspect, the technical solution of the present invention provides a system for maintaining the active-active dual status of a cloud platform, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, it implements the method for maintaining the active-active dual status of a cloud platform as described in any one of the second aspects.

[0030] In a fourth aspect, the technical solution of the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions are used to enable a computer to execute the method for maintaining active-active cloud platforms as described in any one of the second aspects.

[0031] Additional aspects and advantages of the present invention will be given in part in the following description and in part will be obvious from the following description, or will be learned through practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] The above and / or additional aspects and advantages of the present invention will become apparent and easily understood from the description of the embodiments in conjunction with the following drawings, wherein the abstract drawings are identical to one of the drawings in the specification:

[0033] Figure 1A schematic diagram of the structure of an apparatus for maintaining active-active cloud platforms provided by one embodiment of the present invention;

[0034] Figure 2 A flowchart of a method for maintaining active-active cloud platforms provided by another embodiment of the present invention. DETAILED DESCRIPTION

[0035] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.

[0036] It should be noted that, although the functional modules are divided in the system schematic diagram and the logical order is shown in the flowchart, in some cases, the steps shown or described may be performed in a different order than the module division in the system or the order in the flowchart. The terms "first", "second", etc. in the specification, claims and the above drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.

[0037] There are generally three types of backup between the primary and standby data centers: hot standby, cold standby, and active-active. In the case of hot standby, only the primary data center is responsible for user services. At this time, the standby data center backs up the primary data center in real time. When the primary data fails, the standby data center can automatically take over the services of the primary data center. Users' services will not be interrupted, so they will not feel the switching of data centers. In the case of cold standby, only the primary data center is responsible for services, but the standby data center will not back up the primary data center in real time. At this time, backup may be performed periodically or not. If the primary data center fails, the user's business will be interrupted. Both the primary and standby data centers are responsible for user services at the same time. At this time, the primary and standby data centers back up each other and perform real-time backup.

[0038] The present invention provides a device for maintaining the active-active cloud platform, which makes it easier to implement the active-active cluster in the service layer, computing layer, and storage layer, and effectively solves the active-active problem of multiple computer rooms. It also increases the stability of business and services, making services more secure on the cloud. In extreme cases such as power outages in the computer room and damage to the server, the device for maintaining the active-active cloud platform in conjunction with the active-active cluster can also meet production needs well, and has good practical value.

[0039] The embodiments of the present invention are further described below in conjunction with the accompanying drawings.

[0040] Reference Figure 1 , Figure 1 A schematic diagram of the structure of an apparatus for maintaining active-active cloud platforms provided by one embodiment of the present invention.

[0041] In one embodiment, the device for maintaining the active-active cloud platform includes: a service monitor, which is arranged at the service layer of the active-active cluster, and the service monitor is used to monitor the connectivity status of the service IP of the active-active cluster. When there is an IP disconnection, the cluster switching mechanism is triggered; a computing resource synchronization channel, which is arranged at the computing layer of the active-active cluster, and the computing resource synchronization channel is used to synchronize the resource status of the computing layer; a coordinator, which is arranged at the storage layer of the active-active cluster, and the coordinator is used to accurately place the business data on the storage. The device for maintaining the active-active cloud platform provided in this embodiment makes it easier to implement the active-active cluster in the service layer, computing layer, and storage layer, and solves the active-active problem of multiple computer rooms well, and also increases the stability of business and services, making services more secure on the cloud. In extreme cases such as power outages in the computer room and damage to the server, the device for maintaining the active-active cloud platform can also meet production needs well in conjunction with the active-active cluster, and has good practical value.

[0042] In one embodiment, the device for maintaining the active-active cloud platform includes: a service monitor, which is arranged at the service layer of the active-active cluster, and the service monitor is used to monitor the connectivity status of the service IP of the active-active cluster. When there is an IP disconnection, the cluster switching mechanism is triggered; a computing resource synchronization channel, which is arranged at the computing layer of the active-active cluster, and the computing resource synchronization channel is used to synchronize the resource status of the computing layer; a coordinator, which is arranged at the storage layer of the active-active cluster, and the coordinator is used to accurately place the business data on the storage. The service monitor includes: an IP monitoring unit, which is used to monitor the connectivity status of the service IP of the active-active cluster, and when there is an IP disconnection, the cluster switching mechanism is triggered; a virtual IP generation unit, which is used to manage the internal IP and generate the virtual IP. The information disclosed to the outside is only the virtual IP, which effectively protects the information security of the system; and a configuration proxy unit, which is used to configure proxy access to avoid the exposure of the real IP.

[0043] In one embodiment, the device for maintaining the active-active cloud platform includes: a service monitor, which is set at the service layer of the active-active cluster, and the service monitor is used to monitor the connectivity status of the service IP of the active-active cluster. When there is an IP disconnection, the cluster switching mechanism is triggered; a computing resource synchronization channel, which is set at the computing layer of the active-active cluster, and the computing resource synchronization channel is used to synchronize the resource status of the computing layer; a coordinator, which is set at the storage layer of the active-active cluster, and the coordinator is used to accurately place the business data on the storage. The computing resource synchronization channel includes: a configuration collection unit, which is used to collect Service, PVC, and ConfigMap configurations; a metadata storage unit, which is used to store metadata information; and a metadata synchronization unit, which is used to synchronize metadata to a peer cluster.

[0044] In one embodiment, the device for maintaining the active-active cloud platform includes: a service monitor, which is set in the service layer of the active-active cluster, and the service monitor is used to monitor the connectivity status of the service IP of the active-active cluster. When there is an IP disconnection, the cluster switching mechanism is triggered; a computing resource synchronization channel, which is set in the computing layer of the active-active cluster, and the computing resource synchronization channel is used to synchronize the resource status of the computing layer; a coordinator, which is set in the storage layer of the active-active cluster, and the coordinator is used to accurately land the business data on the storage. The coordinator includes: a disk configuration unit, which is used to configure the disk strategy; a volume migration unit, which is used for volume migration and mounting, and an associated computing unit, which is used to associate the computing layer PVC.

[0045] In one embodiment, a device for maintaining the active-active cloud platform includes: a service monitor, which is arranged at the service layer of the active-active cluster, and the service monitor is used to monitor the connectivity status of the service IP of the active-active cluster. When there is an IP disconnection, a cluster switching mechanism is triggered; a computing resource synchronization channel, which is arranged at the computing layer of the active-active cluster, and the computing resource synchronization channel is used to synchronize the resource status of the computing layer; a coordinator, which is arranged at the storage layer of the active-active cluster, and the coordinator is used to accurately land the business data on the storage; a central image warehouse, when the cluster end storage is exhausted, the central image warehouse provides the cluster end with the image file.

[0046] refer to Figure 2 , Figure 2 A flowchart of a method for maintaining active-active cloud platforms is provided in another embodiment of the present invention. The method for maintaining active-active cloud platforms includes but is not limited to steps S110 to S140.

[0047] Step S110, configuring a load balancer through a high availability solution and generating a virtual IP address;

[0048] Step S120, establishing an active-active service monitor, where the service monitor is used to monitor the connectivity status of the service IP of the active-active cluster;

[0049] Step S130, establishing a computing resource synchronization channel, where the computing resource synchronization channel is used to synchronize the resource status of the computing layer;

[0050] Step S140: Establish a data placement disk coordinator, which is used to ensure that business data is accurately placed on the storage.

[0051] The present invention also provides a method for maintaining active-active cloud platforms, comprising the following steps: configuring a load balancer through a high-availability solution and generating a virtual IP address; establishing an active-active service monitor, which is used to monitor the connectivity status of the service IP of the active-active cluster; establishing a computing resource synchronization channel, which is used to synchronize the resource status of the computing layer; establishing a data drop-to-disk coordinator, which is used to accurately drop business data on the storage device.

[0052] In one embodiment, a method for maintaining active-active cloud platform includes the following steps: configuring a load balancer through a high availability solution and generating a virtual IP address; establishing an active-active service monitor, the service monitor is used to monitor the connectivity status of the service IP of the active-active cluster; establishing a computing resource synchronization channel, the computing resource synchronization channel is used to synchronize the resource status of the computing layer; establishing a data drop disk coordinator, the data drop disk coordinator is used to accurately drop business data on the storage. When a failover occurs, the coordinator triggers a volume transfer and schedules the volume to the active and available cluster.

[0053] In one embodiment, a method for maintaining active-active cloud platform includes the following steps: configuring a load balancer through a high-availability solution and generating a virtual IP address; establishing an active-active service monitor, the service monitor is used to monitor the connectivity status of the service IP of the active-active cluster; establishing a computing resource synchronization channel, the computing resource synchronization channel is used to synchronize the resource status of the computing layer; establishing a data drop disk coordinator, the data drop disk coordinator is used to accurately drop the business data on the storage. The high-availability solution includes at least one of the following: Keepalived component and HAProxy component.

[0054] The present invention also provides a system for maintaining dual-active cloud platforms, including: a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the method for maintaining dual-active cloud platforms as described above is implemented.

[0055] The processor and the memory may be connected via a bus or other means.

[0056] The memory, as a non-transient computer-readable storage medium, can be used to store non-transient software programs and non-transient computer executable programs. In addition, the memory may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some embodiments, the memory may optionally include a memory remotely disposed relative to the processor, and these remote memories may be connected to the processor via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0057] It should be noted that the system for maintaining the active-active cloud platform in this embodiment may include a business processing module, an edge database, a server version information register, and a data synchronization module. When the processor executes a computer program, it implements the method for maintaining the active-active cloud platform as applied in the system for maintaining the active-active cloud platform as described above.

[0058] The device embodiments described above are merely illustrative, and the units described as separate components may or may not be physically separated, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0059] In addition, an embodiment of the present invention also provides a computer-readable storage medium, which stores computer-executable instructions, and the computer-executable instructions are executed by a processor or controller, for example, by a processor in the above-mentioned terminal embodiment, so that the above-mentioned processor can execute the method of maintaining dual active of the cloud platform in the above-mentioned embodiment.

[0060] It will be appreciated by those skilled in the art that all or some of the steps and systems in the disclosed method above may be implemented as software, firmware, hardware and appropriate combinations thereof. Some physical components or all physical components may be implemented as software executed by a processor, such as a central processing unit, a digital signal processor or a microprocessor, or may be implemented as hardware, or may be implemented as an integrated circuit, such as an application specific integrated circuit. Such software may be distributed on a computer-readable medium, which may include a computer storage medium (or a non-transitory medium) and a communication medium (or a temporary medium). As known to those skilled in the art, the term computer storage medium includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information (such as computer-readable instructions, data structures, program modules or other data). Computer storage media include, but are not limited to, RAM, ROM, EEPROM, flash memory or other memory technologies, CD-ROM, digital versatile disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tapes, disk storage or other magnetic storage devices, or any other medium that may be used to store desired information and may be accessed by a computer. Furthermore, it is well known to those skilled in the art that communication media typically embodies computer readable instructions, data structures, program modules, or other data in a modulated data signal such as a carrier wave or other transport mechanism, and may include any information delivery media.

[0061] The above is a specific description of the preferred implementation of the present invention, but the present invention is not limited to the above-mentioned implementation mode. Technical personnel familiar with the field can also make various equivalent deformations or substitutions without violating the spirit of the present invention. These equivalent deformations or substitutions are all included in the scope defined by the claims of the present invention.

[0062] The specific implementation of the present invention described above does not constitute a limitation on the protection scope of the present invention. Any other corresponding changes and modifications made based on the technical concept of the present invention should be included in the protection scope of the claims of the present invention.

Claims

1. A device for maintaining active-active cloud platform, characterized in that: include: A service monitor is provided at the service layer of the active-active cluster. The service monitor is used to monitor the connectivity status of the service IP of the active-active cluster. When there is an IP disconnection, a cluster switching mechanism is triggered. A computing resource synchronization channel is provided at the computing layer of the active-active cluster, and is used to synchronize the resource status of the computing layer; A coordinator is arranged in the storage layer of the active-active cluster, and is used to accurately place the service data on the storage; The computing resource synchronization channel includes: Configuration collection unit, used to collect Service, PVC and ConfigMap configurations; A metadata storage unit, used for storing metadata information; The metadata synchronization unit is used to synchronize metadata to the peer cluster.

2. The device for maintaining active-active cloud platform according to claim 1, characterized in that: The service monitor comprises: An IP monitoring unit, used to monitor the connectivity status of the service IP of the active-active cluster; A virtual IP generation unit is used to manage internal IPs and generate virtual IPs; Configure the proxy unit to configure proxy access to avoid real IP exposure.

3. The device for maintaining active-active cloud platform according to claim 1, characterized in that: The coordinator comprises: The disk placement configuration unit is used to configure the disk placement strategy; Volume migration unit, used for volume migration and mounting; The associated computing unit is used to associate the computing layer PVC.

4. The device for maintaining active-active cloud platform according to claim 1, characterized in that: Also includes: The central image warehouse provides image files to the cluster end when the storage of the cluster end is exhausted.

5. A method for maintaining active-active cloud platform, applied to the device for maintaining active-active cloud platform as claimed in any one of claims 1 to 4, characterized in that: The following steps are involved: Configure the load balancer through a high availability solution and generate a virtual IP address; Establishing an active-active service monitor, the service monitor is used to monitor the connectivity status of the service IP of the active-active cluster; Establishing a computing resource synchronization channel, wherein the computing resource synchronization channel is used to synchronize the resource status of the computing layer; Establishing a data drop location and disk coordinator, wherein the data drop location and disk coordinator is used to accurately drop business data on the storage device; The computing resource synchronization channel includes: Configuration collection unit, used to collect Service, PVC and ConfigMap configurations; A metadata storage unit, used for storing metadata information; The metadata synchronization unit is used to synchronize metadata to the peer cluster.

6. A method for maintaining active-active cloud platform according to claim 5, characterized in that: When a failover occurs, the coordinator triggers the migration of volumes and schedules the volumes to the active available cluster.

7. A method for maintaining active-active cloud platform according to claim 5, characterized in that: The high availability solution includes at least one of the following: a Keepalived component and a HAProxy component.

8. A system for maintaining active-active cloud platforms, characterized in that: include: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the method for maintaining active-active cloud platforms as described in any one of claims 5 to 7 when executing the computer program.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions are used to enable a computer to execute the method for maintaining active-active cloud platforms as described in any one of claims 5 to 7.