CN113835835B - Method, device and computer readable storage medium for creating consistency group - Google Patents
Method, device and computer readable storage medium for creating consistency group Download PDFInfo
- Publication number
- CN113835835B CN113835835B CN202111112614.5A CN202111112614A CN113835835B CN 113835835 B CN113835835 B CN 113835835B CN 202111112614 A CN202111112614 A CN 202111112614A CN 113835835 B CN113835835 B CN 113835835B
- Authority
- CN
- China
- Prior art keywords
- consistency group
- consistency
- interfaces
- creating
- interface
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 59
- 238000004590 computer program Methods 0.000 claims description 13
- 238000012544 monitoring process Methods 0.000 claims description 11
- 238000005516 engineering process Methods 0.000 description 12
- 238000012545 processing Methods 0.000 description 8
- 230000008569 process Effects 0.000 description 5
- 238000010586 diagram Methods 0.000 description 4
- 230000004048 modification Effects 0.000 description 4
- 238000012986 modification Methods 0.000 description 4
- 238000011084 recovery Methods 0.000 description 4
- 230000009471 action Effects 0.000 description 3
- 230000008520 organization Effects 0.000 description 3
- 238000013473 artificial intelligence Methods 0.000 description 2
- 238000004891 communication Methods 0.000 description 2
- 230000001419 dependent effect Effects 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 230000006870 function Effects 0.000 description 2
- 230000003993 interaction Effects 0.000 description 2
- 230000001960 triggered effect Effects 0.000 description 2
- 230000005540 biological transmission Effects 0.000 description 1
- 238000007373 indentation Methods 0.000 description 1
- 238000010801 machine learning Methods 0.000 description 1
- 230000005055 memory storage Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000008447 perception Effects 0.000 description 1
- 230000000750 progressive effect Effects 0.000 description 1
- 238000009877 rendering Methods 0.000 description 1
- 230000001052 transient effect Effects 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/455—Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
- G06F9/45533—Hypervisors; Virtual machine monitors
- G06F9/45558—Hypervisor-specific management and integration aspects
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/455—Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
- G06F9/45533—Hypervisors; Virtual machine monitors
- G06F9/45558—Hypervisor-specific management and integration aspects
- G06F2009/45562—Creating, deleting, cloning virtual machine instances
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The application discloses a method, a device and a computer readable storage medium for creating consistency groups, and relates to the technical field of computers. When receiving an instruction of establishing a consistency group from a user, defining a resource object of the consistency group, calling an interface for establishing the consistency group, and writing information returned by the interface into a state field of the resource object of the consistency group. Therefore, the method can enable the user to observe and locate the problem by simultaneously calling a plurality of interfaces to simultaneously create a plurality of consistency groups and writing information returned by the interfaces into the status field of the resource object of the consistency group, thereby realizing high concurrency of the creation of the consistency groups, simultaneously avoiding the situation that the creation of the consistency groups can only be sequentially carried out and the information returned by the interfaces is waited for in turn, improving the observable and easy-to-interact characteristics of the creation of the consistency groups and improving the experience of the user.
Description
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a method and an apparatus for creating a consistency group. A computer-readable storage medium.
Background
In the container technology era, a large number of business application scenes are upscloud through a portable open source platform (k 8 s) container arrangement technology, k8s metadata and page browsing (PV) user data in the upscloud scene are important in data assets, protection of the PV user data in the application disaster recovery scene generally depends on a stored remote copy technology, the key of the remote copy technology is the establishment of a consistency group, the establishment of the consistency group by the current technology can only be sequentially carried out, and feedback of a storage side is waited.
Because the current technology can only sequentially establish the consistency group, interaction and perception with a user are not performed, and the condition of establishing the consistency group and the current problems cannot be fed back in time.
In view of the foregoing, it is a matter of urgent need for those skilled in the art to find an efficient method for establishing consistency groups.
Disclosure of Invention
It is an object of the present application to provide a method, apparatus, and computer-readable storage medium for creating consistency groups.
In order to solve the above technical problems, the present application provides a method for creating a consistency group, including:
monitoring an instruction of a user for establishing a consistency group;
generating a resource object of the consistency group according to the instruction;
invoking a pre-created interface of the consistency group to create the consistency group, wherein the number of the interfaces is a plurality of interfaces;
and writing information returned by the interface and used for representing the running condition of the consistency group into a state field of a resource object of the consistency group.
Preferably, the step of determining the number of interfaces is as follows:
acquiring a workload list of the resource objects of the consistency group;
obtaining volume list data under the workload, and placing the volume list data into a resource pool;
and setting the number of interfaces according to the size of the resource pool.
Preferably, the number of interfaces does not exceed the number of CPUs.
Preferably, after writing the information returned by the interface into the status field of the resource object of the consistency group, the method further includes:
and modifying or setting the state information of the resource object according to the information in the state field.
Preferably, the status field is a hidden status, and the method further includes:
and when receiving the instruction of checking the current information input by the user, popping up the state field.
Preferably, after said calling the interface of the consistency group created in advance to create the consistency group, further includes:
judging whether the establishment of the consistency group is completed or not according to the information which is returned by the interface and is used for representing the completion condition of establishing the consistency group;
if yes, adding 1 to the successful number of the consistency group currently established in the status field.
In order to solve the above technical problem, the present application further provides an apparatus for creating a consistency group, including:
the monitoring module is used for monitoring the instruction of the user for establishing the consistency group;
the generation module is used for generating the resource object of the consistency group according to the instruction;
the calling module is used for calling the interfaces of the consistency group which are created in advance to create the consistency group, wherein the number of the interfaces is a plurality of interfaces;
and the writing module is used for writing the information which is returned by the interface and is used for representing the running condition of the consistency group into the state field of the resource object of the consistency group.
Preferably, the apparatus for creating a consistency group further comprises:
and the modification module is used for modifying or setting the state information of the resource object according to the information in the state field.
Preferably, the apparatus for creating a consistency group further comprises:
and the pop-up module is used for popping up the status field when receiving the instruction of checking the current information input by the user.
Preferably, the apparatus for creating a consistency group further comprises:
the judging module is used for judging whether the establishment of the consistency group is completed or not according to the information which is returned by the interface and is used for representing the completion condition of establishing the consistency group, and if yes, the adding module is triggered;
and the adding module is used for adding 1 to the successful number of the consistency group currently established in the state field.
In order to solve the above technical problem, the present application further provides an apparatus for creating a consistency group, including:
a memory for storing a computer program;
a processor for implementing the steps of creating a consistency group as described above when executing the computer program.
To solve the above technical problem, the present application further provides a computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of creating a consistency group as described above.
According to the method for creating the consistency group, when the instruction of establishing the consistency group by the user is received, the resource object of the consistency group is defined, the interface for creating the consistency group is called, and the information returned by the interface is written into the state field of the resource object of the consistency group. Therefore, the method can enable the user to observe and locate the problem by simultaneously calling a plurality of interfaces to simultaneously create a plurality of consistency groups and writing information returned by the interfaces into the status field of the resource object of the consistency group, thereby realizing high concurrency of the creation of the consistency groups, simultaneously avoiding the situation that the creation of the consistency groups can only be sequentially carried out and the information returned by the interfaces is waited for in turn, improving the observable and easy-to-interact characteristics of the creation of the consistency groups and improving the experience of the user.
On the basis, the application also provides a device for creating the consistency group and a computer readable storage medium, and the effects are the same.
Drawings
For a clearer description of the embodiments of the present application, the drawings that are needed in the embodiments will be briefly described, it being apparent that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flow chart of a method of creating consistency groups provided by an embodiment of the present application;
FIG. 2 is a flow chart of another method of creating consistency groups provided by embodiments of the present application;
FIG. 3 is a block diagram of an apparatus for creating consistency groups according to an embodiment of the present application;
fig. 4 is a block diagram of an apparatus for creating consistency groups according to another embodiment of the present application.
Detailed Description
The following description of the technical solutions in the embodiments of the present application will be made clearly and completely with reference to the drawings in the embodiments of the present application, and it is apparent that the described embodiments are only some embodiments of the present application, but not all embodiments. All other embodiments obtained by those skilled in the art based on the embodiments herein without making any inventive effort are intended to fall within the scope of the present application.
At the heart of this application is a method, apparatus, and computer readable storage medium for creating a consistency group.
In order to provide a better understanding of the present application, those skilled in the art will now make further details of the present application with reference to the drawings and detailed description.
Fig. 1 is a flowchart of a method for creating a consistency group according to an embodiment of the present application, where the present application is mainly applied to a scenario where a k8s cluster is deployed based on a domestic server to monitor a progress of synchronization disaster recovery and storage remote copy relationship establishment, and as shown in fig. 1, the method for creating a consistency group includes:
s10: monitoring instructions of a user for establishing a consistency group.
S11: and generating a resource object of the consistency group according to the instruction.
S12: interfaces of the pre-created consistency group are invoked to create a consistency group, wherein the number of interfaces is a plurality.
S13: and writing information which is returned by the interface and is used for representing the running condition of the consistency group into a state field of a resource object of the consistency group.
It can be understood that in the container technology era, a great number of business application scenarios are clouded by a k8S container arrangement technology, k8S metadata and PV user data in the clouding scenario are important in data assets, the PV user data are business data generated when a user operates k8S cluster resources, the data finally fall on a disk, protection of the PV user data in a disaster recovery scenario is generally dependent on a stored remote copy technology, the key of the technology is the establishment of a consistency group, the establishment of the consistency group is extremely important, and an instruction for establishing the consistency group for a monitoring user mentioned in the step S10 is automatically generated when the user needs to protect the PV user data in the disaster recovery scenario.
For step S11, a resource object of the consistency group is generated according to the instruction, wherein a resource definition module is programmed, and when service data is generated when user operation k8S cluster resources are detected, that is, when the instruction of the consistency group is established, the module defines the resource object of the consistency group and defines an interface of the consistency group so as to facilitate subsequent establishment of the consistency group. The language of the organization structure corresponding to the resource object defining the consistency group is not limited, and the organization structure can be another markup language (YAML) or JavaScript object notation (JSON), which is a lightweight data exchange format. It stores and presents data in a text format that is completely independent of the programming language, based on a subset of a programming language (JavaScript) specification formulated by the european computer institute. The compact and clear hierarchical structure makes JSON an ideal data exchange language. Is easy to read and write by people, is easy to analyze and generate by machines, and effectively improves the network transmission efficiency. YAML is a highly readable format for representing data serialization, which uses blank symbol indentation and a large appearance-dependent feature, and is particularly suitable for representing or editing data structures, various configuration files, and file schemas. In this embodiment, the resource object organization structure of the consistency group is defined by using YAML, which has the advantages of being more visual and clearer than JSON, and it is noted that this embodiment is merely a preferred embodiment, and may be selected according to specific implementation situations.
In addition, the interface of the consistency group created in advance is mentioned in step S12 to create the consistency group, and it is noted that the interface of creating the consistency group is provided by a volume storage resource pool, and the creation of the consistency group is created according to the volume storage resource pool, which is a definition of temporarily saving the storage volume information of the workload mount to the memory. In addition, the number of the interfaces is multiple, it can be understood that a plurality of consistency groups can be created at the same time, so that a high concurrency effect is achieved, on the basis, information for representing the running condition of the consistency groups returned by the interfaces is written into the status field of the resource object of the consistency groups, and when the interfaces complete the establishment of the consistency groups, current information is returned, wherein the information comprises the establishment condition of the consistency groups and the current existing problems. It should be noted that the position where the status field appears is not limited, and may be in a hidden state, when the user inputs an instruction, the status field may be called out, or the user may not need to input an instruction, and the user may watch the status field when the information is returned.
Therefore, according to the method for creating the consistency group provided by the embodiment, when the instruction of establishing the consistency group by the user is received, the resource object of the consistency group is defined, the interface for creating the consistency group is called, and the information returned by the interface is written into the state field of the resource object of the consistency group. Therefore, the method can enable the user to observe and locate the problem by simultaneously calling a plurality of interfaces to simultaneously create a plurality of consistency groups and writing information returned by the interfaces into the status field of the resource object of the consistency group, thereby realizing high concurrency of the creation of the consistency groups, simultaneously avoiding the situation that the creation of the consistency groups can only be sequentially carried out and the information returned by the interfaces is waited for in turn, improving the observable and easy-to-interact characteristics of the creation of the consistency groups and improving the experience of the user.
On the basis of the above embodiment, the above embodiment refers to a plurality of interfaces, and in this embodiment, how to determine the number of interfaces is defined, and the steps of determining the number of interfaces are as follows:
acquiring a workload list of resource objects of a consistency group;
obtaining volume list data under a work load, and placing the volume list data into a resource pool;
and setting the number of the interfaces according to the size of the resource pool.
It will be appreciated that the number of interfaces is set according to the size of the resource pool, and the number of interfaces is determined by the number of the resource pools that store volume list data under the workload of the consistency group resource object, i.e. the workload of looking up the current consistency group resource. It should be noted that, the resource pool mentioned in this embodiment is different from the volume storage resource pool mentioned in the above embodiment, the resource pool mentioned in this embodiment is to store volume list data under a workload, the number of interfaces is set according to the size of the resource pool, and the resource pool mentioned in this embodiment may be written according to a program.
In addition, under the k8s cluster, stateless load (demoyment), stateful load (StatefulSet), task, and timed task resources are collectively referred to as workload. In addition, the number of interfaces is determined according to the volume list data under the current workload and the size of the resource pool, so that the specific number of the consistency groups can be determined, the number of the interfaces does not exceed the number of Central Processing Units (CPUs), and the principle that one CPU processes one consistency group is adopted.
Therefore, the workload list of the resource object of the consistency group is obtained, then the volume list data under the workload is obtained and put into the resource pool, and then the number of interfaces is set according to the size of the resource pool, and is smaller than the number of the CPUs. According to the method, the number of the consistency groups which are required to be created at present can be accurately positioned, the consistency groups are created, and secondly, the number of interfaces for creating the consistency groups is smaller than the number of the CPUs, so that the working pressure of the CPUs can be effectively reduced, and the experience of users can be effectively improved.
In a specific embodiment, although the manner of establishing the consistency group is in a high concurrency form, it cannot be guaranteed that the consistency group is established simultaneously, and in consideration of this situation, a step is added after calling the interface of the consistency group created in advance to create the consistency group, as shown in fig. 2, fig. 2 is a flowchart of another method for creating the consistency group provided in the embodiment of the present application, and in addition to steps S10, S11, S12 and S13, the method further includes:
s14: and judging whether the consistency group is established according to the information which is returned by the interface and is used for representing the completion condition of establishing the consistency group, if so, entering step S15.
S15: the successful number of the consistency group currently established in the status field is increased by 1.
It will be appreciated that there is a consistency group creation success that adds 1 to the successful number of consistency groups in the status field. In addition, if all consistency groups are created, the number of the consistency group creation functions corresponds to the number of interfaces, and when all consistency groups are created but problems exist, the number of successful creation functions does not correspond to the number of interfaces.
Therefore, the method for displaying the number of successful creation effectively enables the current user to know the creation condition of the current consistency group, effectively improves the working efficiency of equipment, improves the interactivity between the equipment and the user, and improves the experience of the user.
Based on the above embodiment, if the status field is on the current page, the situation that the user may misoperate the status field may occur, and considering this situation, the location of the status field is limited, the status field is hidden in the background, and when the user can input an instruction for checking the current information, the status field is popped up. The display mode of the status field is not limited, and may be a picture display or a text box display. In addition, the specific content of the instruction is not limited, and the instruction can be a section of code or text input.
It should be noted that, this embodiment hides the location of the status field in the background, and the manner in which the instruction needs to pop up is merely a preferred embodiment, and the location of the status field may be selected according to the specific implementation.
Therefore, the method for displaying the status field provided by the embodiment can prevent misoperation of the status field by the user, improve interactivity between the user and the device and improve experience of the user.
In a specific embodiment, the information returned by the current interface is a creation condition of the consistency group, and the consistency group has a problem, if the current consistency group has a problem, the current consistency group has a great influence on a subsequent remote copy technology, so a step is added after the information returned by the interface is written into a status field of a resource object of the consistency group, as shown in fig. 2, fig. 2 is a flowchart of another method for creating the consistency group provided in the embodiment of the present application, and steps S14 and S15 further include:
s16: and modifying or setting the state information of the resource object according to the information in the state field.
It may be appreciated that, in the case where the information returned by the interface indicates that there is a problem in the current consistency group, the state information of the resource object may be changed or set according to the information in the state field, and it is worth noting that the problem in the consistency group may be a problem occurring when the parameters of the interface are set, or may be a problem occurring during the process of creating the consistency group, so that analysis needs to be performed on the information returned by the interface, and the state information of the resource object is set or modified after the conclusion is reached.
Therefore, the method and the device can enable the user to intuitively see the problems of the current consistency group by modifying or setting the state information of the resource object according to the information returned by the interface, improve the interactivity between the user and the device, and realize the characteristics of easy interaction and observability of the step of establishing the consistency group.
In the above embodiments, the method for creating the consistency group is described in detail, and the application also provides a corresponding embodiment of the apparatus for creating the consistency group. It should be noted that the present application describes an embodiment of the device portion from two angles, one based on the angle of the functional module and the other based on the angle of the hardware.
Since the embodiments of the apparatus portion and the embodiments of the method portion correspond to each other, the embodiments of the apparatus portion are referred to the description of the embodiments of the method portion, and are not repeated herein.
Various embodiments corresponding to the method for creating the consistency group are described in detail above, and on the basis of the embodiments, the application also discloses a device for creating the consistency group, which corresponds to the method. Fig. 3 is a block diagram of an apparatus for creating a consistency group according to an embodiment of the present application. As shown in fig. 3, the apparatus for creating a consistency group includes:
and the monitoring module 16 is used for monitoring the instruction of the user for establishing the consistency group.
A generating module 17, configured to generate a resource object of the consistency group according to the instruction.
A calling module 18, configured to call the interfaces of the consistency group created in advance to create the consistency group, where the number of interfaces is a plurality.
A writing module 19, configured to write information returned by the interface and used for characterizing the running condition of the consistency group into a status field of a resource object of the consistency group.
As a preferred embodiment, the means for creating a consistency group further comprises:
and the modification module is used for modifying or setting the state information of the resource object according to the information in the state field.
And the pop-up module is used for popping up the status field when receiving the instruction of checking the current information input by the user.
And the judging module is used for judging whether the establishment of the consistency group is completed or not according to the information which is returned by the interface and is used for representing the completion condition of establishing the consistency group, and if yes, the adding module is triggered.
And the adding module is used for adding 1 to the successful number of the consistency group currently established in the state field.
The device for creating the consistency group provided by the embodiment comprises a monitoring module, a generating module, an ink adjusting module and a writing module, and is used for realizing the steps of the method for creating the consistency group. Therefore, the method can enable the user to observe and locate the problem by simultaneously calling a plurality of interfaces to simultaneously create a plurality of consistency groups and writing information returned by the interfaces into the status field of the resource object of the consistency group, thereby realizing high concurrency of the creation of the consistency groups, simultaneously avoiding the situation that the creation of the consistency groups can only be sequentially carried out and the information returned by the interfaces is waited for in turn, improving the observable and easy-to-interact characteristics of the creation of the consistency groups and improving the experience of the user.
FIG. 4 is a block diagram of an apparatus for creating a consistency group according to another embodiment of the present application, where, as shown in FIG. 4, the apparatus for creating a consistency group includes:
a memory 20 for storing a computer program;
a processor 21 for implementing the steps of the method of creating a consistency group as mentioned in the above embodiments when executing a computer program.
The device for creating the consistency group provided in this embodiment may include, but is not limited to, a smart phone, a tablet computer, a notebook computer, a desktop computer, or the like.
Processor 21 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 21 may be implemented in at least one hardware form of DSP (Digital Signal Processing ), FPGA (Field-Programmable Gate Array, field programmable gate array), PLA (Programmable Logic Array ). The processor 21 may also comprise a main processor, which is a processor for processing data in an awake state, also called CPU (Central Processing Unit ); a coprocessor is a low-power processor for processing data in a standby state. In some embodiments, the processor 21 may integrate a GPU (Graphics Processing Unit, image processor) for rendering and drawing of content required to be displayed by the display screen. In some embodiments, the processor 21 may also include an AI (Artificial Intelligence ) processor for processing computing operations related to machine learning.
Memory 20 may include one or more computer-readable storage media, which may be non-transitory. Memory 20 may also include high-speed random access memory, as well as non-volatile memory, such as one or more magnetic disk storage devices, flash memory storage devices. In this embodiment, the memory 20 is at least used to store a computer program 201 that, when loaded and executed by the processor 21, is capable of implementing the relevant steps of the method of creating a consistency group disclosed in any of the previous embodiments. In addition, the resources stored in the memory 20 may further include an operating system 202, data 203, and the like, where the storage manner may be transient storage or permanent storage. The operating system 202 may include Windows, unix, linux, among others. The data 203 may include, but is not limited to, data of a method of creating a consistency group, and the like.
In some embodiments, the means for creating a consistency group may further comprise a display 22, an input-output interface 23, a communication interface 24, a power supply 25, and a communication bus 26.
Those skilled in the art will appreciate that the structure shown in FIG. 4 is not limiting of the means for creating a consistency group and may include more or fewer components than shown.
The device for creating the consistency group provided by the embodiment comprises a memory and a processor, wherein the memory is used for storing a computer program, and the processor is used for realizing the steps of the method for creating the consistency group when executing the computer program. Therefore, the method can enable the user to observe and locate the problem by simultaneously calling a plurality of interfaces to simultaneously create a plurality of consistency groups and writing information returned by the interfaces into the status field of the resource object of the consistency group, thereby realizing high concurrency of the creation of the consistency groups, simultaneously avoiding the situation that the creation of the consistency groups can only be sequentially carried out and the information returned by the interfaces is waited for in turn, improving the observable and easy-to-interact characteristics of the creation of the consistency groups and improving the experience of the user.
Finally, the present application also provides a corresponding embodiment of the computer readable storage medium. The computer-readable storage medium has stored thereon a computer program which, when executed by a processor, performs the steps as described in the method embodiments above.
It will be appreciated that the methods of the above embodiments, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored on a computer readable storage medium. With such understanding, the technical solution of the present application, or a part contributing to the prior art or all or part of the technical solution, may be embodied in the form of a software product stored in a storage medium, performing all or part of the steps of the method described in the various embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
It can be seen that, when the computer program is executed by the processor to perform a method for creating a consistency group, when receiving an instruction of establishing a consistency group from a user, the computer readable storage medium provided in this embodiment defines a resource object of the consistency group, invokes an interface for creating the consistency group, and writes information returned by the interface into a status field of the resource object of the consistency group. Therefore, the method can enable the user to observe and locate the problem by simultaneously calling a plurality of interfaces to simultaneously create a plurality of consistency groups and writing information returned by the interfaces into the status field of the resource object of the consistency group, thereby realizing high concurrency of the creation of the consistency groups, simultaneously avoiding the situation that the creation of the consistency groups can only be sequentially carried out and the information returned by the interfaces is waited for in turn, improving the observable and easy-to-interact characteristics of the creation of the consistency groups and improving the experience of the user.
The method of creating consistency groups provided by the present application is described in detail above. In the description, each embodiment is described in a progressive manner, and each embodiment is mainly described by the differences from other embodiments, so that the same similar parts among the embodiments are mutually referred. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant points refer to the description of the method section. It should be noted that it would be obvious to those skilled in the art that various improvements and modifications can be made to the present application without departing from the principles of the present application, and such improvements and modifications fall within the scope of the claims of the present application.
It should also be noted that in this specification, relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Claims (7)
1. A method of creating a consistency group, comprising:
monitoring an instruction of a user for establishing a consistency group;
generating a resource object of the consistency group according to the instruction;
invoking a pre-created interface of the consistency group to create the consistency group, wherein the number of the interfaces is a plurality of interfaces;
writing information which is returned by the interface and used for representing the running condition of the consistency group into a state field of a resource object of the consistency group;
wherein the step of determining the number of interfaces is as follows:
acquiring a workload list of the resource objects of the consistency group;
obtaining volume list data under the workload, and placing the volume list data into a resource pool;
setting the number of interfaces according to the size of the resource pool;
the number of interfaces does not exceed the number of CPUs.
2. The method of creating a consistency group of claim 1, further comprising, after said writing information returned by said interface to a status field of a resource object of said consistency group:
and modifying or setting the state information of the resource object according to the information in the state field.
3. The method of creating a consistency group of claim 2, wherein the status field is a hidden status, the method further comprising:
and when receiving the instruction of checking the current information input by the user, popping up the state field.
4. The method of creating a consistency group according to claim 2, further comprising, after said invoking the interface of the consistency group created in advance to create the consistency group:
judging whether the establishment of the consistency group is completed or not according to the information which is returned by the interface and is used for representing the completion condition of establishing the consistency group;
if yes, adding 1 to the successful number of the consistency group currently established in the status field.
5. An apparatus for creating a consistency group, comprising:
the monitoring module is used for monitoring the instruction of the user for establishing the consistency group;
the generation module is used for generating the resource object of the consistency group according to the instruction;
the calling module is used for calling the interfaces of the consistency group which are created in advance to create the consistency group, wherein the number of the interfaces is a plurality of interfaces;
the writing module is used for writing the information which is returned by the interface and used for representing the running condition of the consistency group into the state field of the resource object of the consistency group;
wherein the means for creating a consistency group is further configured to:
acquiring a workload list of the resource objects of the consistency group;
obtaining volume list data under the workload, and placing the volume list data into a resource pool;
setting the number of interfaces according to the size of the resource pool;
the number of interfaces does not exceed the number of CPUs.
6. An apparatus for creating a consistency group, comprising:
a memory for storing a computer program;
a processor for implementing the step of creating a consistency group according to any of claims 1 to 4 when executing said computer program.
7. A computer readable storage medium, having stored thereon a computer program which when executed by a processor implements the steps of creating a consistency group according to any of claims 1 to 4.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111112614.5A CN113835835B (en) | 2021-09-18 | 2021-09-18 | Method, device and computer readable storage medium for creating consistency group |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111112614.5A CN113835835B (en) | 2021-09-18 | 2021-09-18 | Method, device and computer readable storage medium for creating consistency group |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113835835A CN113835835A (en) | 2021-12-24 |
CN113835835B true CN113835835B (en) | 2024-02-13 |
Family
ID=78969355
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111112614.5A Active CN113835835B (en) | 2021-09-18 | 2021-09-18 | Method, device and computer readable storage medium for creating consistency group |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113835835B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114756322B (en) * | 2022-05-09 | 2024-02-20 | 北京航云物联信息技术有限公司 | Picture processing method and device, computer equipment and storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109582496A (en) * | 2018-10-25 | 2019-04-05 | 平安科技(深圳)有限公司 | Creation method, device and the computer readable storage medium of consistency snapshot group |
CN111078368A (en) * | 2019-12-26 | 2020-04-28 | 浪潮电子信息产业股份有限公司 | Memory snapshot method and device of cloud computing platform virtual machine and readable storage medium |
CN112468539A (en) * | 2020-11-06 | 2021-03-09 | 苏州浪潮智能科技有限公司 | Method, device and equipment for calling K8S cluster user resources and readable medium |
US11055017B1 (en) * | 2020-01-27 | 2021-07-06 | International Business Machines Corporation | Throttling a point-in-time snapshot copy operation within a data consistency application |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20040193703A1 (en) * | 2003-01-10 | 2004-09-30 | Guy Loewy | System and method for conformance and governance in a service oriented architecture |
-
2021
- 2021-09-18 CN CN202111112614.5A patent/CN113835835B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109582496A (en) * | 2018-10-25 | 2019-04-05 | 平安科技(深圳)有限公司 | Creation method, device and the computer readable storage medium of consistency snapshot group |
CN111078368A (en) * | 2019-12-26 | 2020-04-28 | 浪潮电子信息产业股份有限公司 | Memory snapshot method and device of cloud computing platform virtual machine and readable storage medium |
US11055017B1 (en) * | 2020-01-27 | 2021-07-06 | International Business Machines Corporation | Throttling a point-in-time snapshot copy operation within a data consistency application |
CN112468539A (en) * | 2020-11-06 | 2021-03-09 | 苏州浪潮智能科技有限公司 | Method, device and equipment for calling K8S cluster user resources and readable medium |
Non-Patent Citations (1)
Title |
---|
基于性能优化设计的三层交换机关键技术研究;裴振兵;胡晓迪;;电脑知识与技术(17);全文 * |
Also Published As
Publication number | Publication date |
---|---|
CN113835835A (en) | 2021-12-24 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110058922B (en) | Method and device for extracting metadata of machine learning task | |
CN108279964B (en) | Method and device for realizing covering layer rendering, intelligent equipment and storage medium | |
US10223076B1 (en) | Generating code based on user interactions with a user interface element in a code editor | |
US10013263B2 (en) | Systems and methods method for providing an interactive help file for host software user interfaces | |
CN112068936A (en) | Workflow management platform and workflow management system | |
WO2015094825A1 (en) | Section based reorganization of document components | |
WO2018001068A1 (en) | Web page link access method and device, and mobile terminal | |
US10951486B2 (en) | Terminal device, UI expansion method, and UI expansion program | |
CN114115681B (en) | Page generation method and device, electronic equipment and medium | |
CN111625312A (en) | APP skin changing method and device, electronic equipment and storage medium | |
CN111444158A (en) | Long-short term user portrait generation method, device, equipment and readable storage medium | |
US9646362B2 (en) | Algorithm for improved zooming in data visualization components | |
CN113835835B (en) | Method, device and computer readable storage medium for creating consistency group | |
US20200089512A1 (en) | Method and Apparatus for Invoking Input Method, Server, and Terminal | |
US20170185966A1 (en) | Providing calendar utility to capture calendar event | |
US20140250251A1 (en) | Automatically and transparently preserving testing state across sessions | |
CN116432624A (en) | Micro-service API document generation method, device, equipment and storage medium | |
US11537413B2 (en) | Context framework | |
US20160364249A1 (en) | Integrated visualization | |
CN113190158A (en) | Repeated screenshot method and device | |
CN112131539A (en) | Watermark information adding method and device | |
CN113010128A (en) | Multi-screen interaction method and system based on BIM (building information modeling) | |
CN104461636B (en) | A kind of skin resource loading method and electronic equipment | |
CN116339733B (en) | Application page generation method, system, electronic device and medium | |
US20240104808A1 (en) | Method and system for creating stickers from user-generated content |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |