CN111064619B - Configuration information management method and device, electronic equipment and storage medium - Google Patents

Configuration information management method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN111064619B
CN111064619B CN201911329407.8A CN201911329407A CN111064619B CN 111064619 B CN111064619 B CN 111064619B CN 201911329407 A CN201911329407 A CN 201911329407A CN 111064619 B CN111064619 B CN 111064619B
Authority
CN
China
Prior art keywords
configuration information
cloud
target
target cloud
platform
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
Application number
CN201911329407.8A
Other languages
Chinese (zh)
Other versions
CN111064619A (en
Inventor
屈轩
唐斌
邱剑
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Yunlian Yiyun Technology Co ltd
Original Assignee
Beijing Yunlian Yiyun Technology Co ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Beijing Yunlian Yiyun Technology Co ltd filed Critical Beijing Yunlian Yiyun Technology Co ltd
Priority to CN201911329407.8A priority Critical patent/CN111064619B/en
Publication of CN111064619A publication Critical patent/CN111064619A/en
Application granted granted Critical
Publication of CN111064619B publication Critical patent/CN111064619B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5027Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5061Partitioning or combining of resources
    • G06F9/5072Grid computing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5083Techniques for rebalancing the load in a distributed system
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/084Configuration by using pre-existing information, e.g. using templates or copying from other elements
    • H04L41/0846Configuration by using pre-existing information, e.g. using templates or copying from other elements based on copy from other elements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0889Techniques to speed-up the configuration process

Abstract

The embodiment of the invention discloses a configuration information management method, a configuration information management device, electronic equipment and a storage medium, wherein the method comprises the following steps: responding to a configuration request of a user for target configuration information of the target cloud resource, and determining a target cloud platform and a target cloud area where the target cloud resource is located according to identification information of the target cloud resource; acquiring target configuration information from the local configuration information, and converting the target configuration information into target cloud configuration information applicable to a target cloud platform and a region based on a preset first-class conversion function; and caching the configuration information on the target cloud to the target cloud platform and the area where the configuration information is located, so that the target cloud resources complete the configuration operation of the target configuration information. According to the embodiment of the invention, only one set of local configuration information needs to be managed, the number of the configuration information managed by the multi-cloud management platform is reduced, and when a user requests any local configuration information, the local configuration information is automatically converted into the on-cloud configuration information suitable for the target cloud platform and is cached to the target cloud platform, so that the management efficiency of the configuration information is improved.

Description

Configuration information management method and device, electronic equipment and storage medium
Technical Field
The embodiment of the invention relates to the technical field of cloud computing, in particular to a configuration information management method and device, electronic equipment and a storage medium.
Background
With the development of cloud computing, cloud computing technology has entered the mature stage, and cloud platforms have gradually become a major component of enterprise IT infrastructure. Here, the cloud platform includes not only a private cloud deployed inside an enterprise, but also public cloud services and resources purchased by the enterprise from a public cloud service provider, where functions of the public cloud are generally divided according to regions, for example, the arilocos have regions of north china 1 (Qingdao), north china 2 (Beijing), and the like. IT infrastructures of many enterprises are beginning to adopt hybrid clouds (private cloud + public cloud) or multi-cloud architectures (multiple public clouds). However, due to the isolation of information between clouds, the use of a hybrid cloud or a multi-cloud architecture will result in a significant increase in the complexity of IT management for an enterprise, and thus the enterprise needs to deploy and use a multi-cloud management software system and platform to facilitate management of the hybrid cloud and multi-cloud IT environment.
One difficulty with cloud management is the management of configuration information. Due to the isolation of information in the enterprise private cloud platform and the area of each public cloud platform, configuration information must be stored in the cloud platform and area to be used. Therefore, in the existing multi-cloud management platform, the same configuration information in each cloud platform is generally managed, and one configuration information needs to be stored in each cloud platform and area. For example, the security group defines firewall rules of cloud resources, and the names, terms, and rule definitions of the security groups of different cloud platforms of the same firewall rules are different due to different underlying implementation technologies adopted by the respective cloud platforms. Therefore, for the same firewall rule, if a user has M cloud platforms and zones, the number of security groups to be managed and maintained in the multi-cloud management platform may be M. The configuration information maintenance mode greatly increases the amount of configuration data needing to be managed and maintained, and improves the complexity and workload of managing and maintaining the configuration information. For example, if the same firewall rules are to be updated, the corresponding security group configuration information in each cloud platform is to be updated or modified. In this way, the management configuration information can be updated and modified only by one person, which reduces the management efficiency. Meanwhile, in the manner of separately managing the configuration information, when the configuration information is used, the configuration information can only be applied to the cloud platform and the area storing the configuration information. If the configuration information is to be applied to another cloud platform and area, the corresponding configuration information needs to be searched for in the cloud platform and area. Resulting in inefficiency and inconvenience in using the configuration information.
Disclosure of Invention
The embodiment of the invention provides a method and a device for managing configuration information, electronic equipment and a storage medium, which are used for achieving the purposes of improving the efficiency of configuration information management and reducing the complexity of configuration information use.
In a first aspect, an embodiment of the present invention provides a method for managing configuration information, where the method includes:
responding to a configuration request of a user for target configuration information of a target cloud resource, and determining a target cloud platform and a region where the target cloud resource is located according to identification information of the target cloud resource;
acquiring the target configuration information from local configuration information, and converting the target configuration information into target cloud configuration information applicable to the target cloud platform and the region based on a preset first-class conversion function, wherein the local configuration information is configuration information pre-stored in a multi-cloud management platform;
and caching the configuration information on the target cloud to the target cloud platform and the area where the configuration information is located, so that the target cloud resources complete the configuration operation of the target configuration information.
In a second aspect, an embodiment of the present invention further provides a device for managing configuration information, where the device includes:
the response determining module is used for responding to a configuration request of a user for target configuration information of the target cloud resource, and determining a target cloud platform and an area where the target cloud resource is located according to identification information of the target cloud resource;
the conversion module is used for acquiring the target configuration information from local configuration information and converting the target configuration information into target cloud configuration information applicable to the target cloud platform and the area based on a preset first-class conversion function, wherein the local configuration information is configuration information pre-stored in a multi-cloud management platform;
and the cache module is used for caching the configuration information on the target cloud to the target cloud platform and the area where the configuration information is located, so that the target cloud resources complete the configuration operation of the target configuration information.
In a third aspect, an embodiment of the present invention further provides an electronic device, including:
one or more processors;
a storage device to store one or more programs,
when the one or more programs are executed by the one or more processors, the one or more processors are caused to implement the configuration information management method according to any embodiment of the present invention.
In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the configuration information management method according to any embodiment of the present invention.
According to the embodiment of the invention, a set of local configuration information is managed in the multi-cloud management platform, so that the quantity of the configuration information needing to be managed by the multi-cloud management platform is reduced, and when a user requests to configure any local configuration information for a certain cloud resource, the local configuration information is automatically converted into the on-cloud configuration information applicable to a target cloud platform where the cloud resource is located and cached to the target cloud platform to complete configuration operation of the configuration information.
Drawings
Fig. 1 is a flowchart illustrating a configuration information management method according to a first embodiment of the present invention;
fig. 2 is a flowchart illustrating a configuration information management method according to a second embodiment of the present invention;
fig. 3 is a flowchart illustrating a configuration information management method according to a third embodiment of the present invention;
fig. 4 is a flowchart illustrating a configuration information management method according to a fourth embodiment of the present invention;
fig. 5 is a flowchart illustrating a configuration information management method according to a fifth embodiment of the present invention;
fig. 6 is a flowchart illustrating a configuration information management method according to a sixth embodiment of the present invention;
fig. 7 is a flowchart illustrating a configuration information management method according to a seventh embodiment of the present invention;
fig. 8 is a schematic structural diagram of a configuration information management apparatus in an eighth embodiment of the present invention;
fig. 9 is a schematic structural diagram of an electronic device in a ninth embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not to be construed as limiting the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Example one
Fig. 1 is a flowchart of a configuration information management method according to an embodiment of the present invention, where the present embodiment is applicable to a situation where configuration information is managed based on a multi-cloud management platform, and the method may be executed by a configuration information management apparatus, where the apparatus may be implemented in a software and/or hardware manner, and may be integrated on an electronic device, such as a server or a computer device.
As shown in fig. 1, the method for managing configuration information specifically includes:
s101, responding to a configuration request of a user for target configuration information of target cloud resources, and determining a target cloud platform and a target cloud area where the target cloud resources are located according to identification information of the target cloud resources.
In the embodiment of the present invention, the cloud resource includes a cloud host, a load balancing, an RDS (Relational Database Service), and the like, which is not specifically limited herein. To configure various configuration information for cloud resources, the multi-cloud management platform first determines a cloud platform and an area where the cloud resources are located, and then caches configuration information requested by a user to the corresponding cloud platform and area, so that configuration operation on the cloud resources can be completed. Therefore, after the multi-cloud management platform receives a configuration request of a user for target configuration information of the target cloud resource, the target cloud platform and the area where the target cloud resource is located are determined according to the identification information of the target cloud resource included in the configuration request. Illustratively, the target cloud resource is a cloud host, the identification information of the cloud host is a cloud host ID, and a target cloud platform and a region where the cloud host is located are searched from a database according to the cloud host ID, wherein the region refers to a region where clouds are publicly owned, for example, the north China area 1 of the Ariyun.
S102, obtaining the target configuration information from local configuration information, and converting the target configuration information into target cloud configuration information applicable to the target cloud platform and the area based on a preset first-class conversion function.
The local configuration information is a set of configuration information pre-stored in the multi-cloud management platform. It should be noted that, in the embodiment of the present invention, the local configuration information is managed in a unified management manner, and compared with separate management, the data amount of the configuration information that needs to be managed and maintained by the multi-cloud management platform is reduced. Illustratively, the local configuration information includes at least one of: various resource configurations, security groups, SSH key pairs, automatic snapshot strategies, load balancing ACLs, and load balancing certificates. Wherein, the allocation of various resources is as follows: configuration information of cloud resources (including a cloud host, RDS, elastic cache and the like) is defined, for example, the cloud host configuration defines the number of virtual CPU cores and the size of a memory, and the type of service applicable to the host, such as a computing type, a storage optimization type, a memory optimization type and the like. A cloud host of a specific configuration is created in a cloud platform, and a corresponding host configuration is required. And (4) safety group: a network access policy of the cloud host is defined, such as whether the cloud host allows ingress or egress traffic of a certain port of a certain protocol (tcp/udp/icmp). Setting a network access policy of a cloud host in an area of a cloud platform requires a corresponding security group definition. SSH key pair: public key information of the cloud host ssh key is defined. If a cloud host needs to log in by using the SSH private key password SSH, the cloud host needs to bind a corresponding SSH key pair, where the SSH key pair includes a corresponding SSH public key. An automatic snapshot strategy: a policy for automatic snapshot of the virtual disk on a regular basis is defined, such as 3-night snapshots every monday, how long snapshots are to be kept, etc. Load balancing ACL: load-balancing network access policies are defined, resembling security groups of cloud hosts. Load balancing certificate: ssl certificates are defined for https load balancing. When defining an https liability balance listener, a load balancing certificate needs to be bound.
In the embodiment of the present invention, each piece of local configuration information at least includes the following 3 fields: the local configuration information ID, the local configuration information content, and the local configuration information state, where the local configuration information state may be: available, updated, synchronized, deleted, or deleted.
In the embodiment of the invention, only one set of local configuration information is managed and maintained by the multi-cloud management platform, but due to different bottom layer implementation technologies adopted by the cloud platforms, names, terms and the like of security groups on the cloud platforms are different, so that after a configuration request of a user for target configuration information of target cloud resources is received, the target configuration information needs to be converted into configuration information on a target cloud platform and a target cloud applicable to a region where the target cloud resources are located. As an optional implementation manner, the target configuration information is converted into target on-cloud configuration information applicable to a target cloud platform and a target area based on a first type of conversion function, where the first type of conversion function includes at least one conversion function, and each conversion function corresponds to one cloud platform and one cloud area, and is used to convert any local configuration information into on-cloud configuration information applicable to the corresponding cloud platform and area. Illustratively, the cloud platform managed by the multi-cloud management platform comprises an arrhizus north-China area 1 and an AWS cloud north-west area, the arrhizus north-China area 1 and the AWS cloud north-west area respectively correspond to a conversion function A and a conversion function B, and if the target cloud platform and the target cloud platform are the arrhizus north-China area 1, a piece of local configuration information requested by a user is converted into cloud configuration information applicable to the arrhizus north-China area 1 by using the conversion function A.
S103, caching the configuration information on the target cloud to the target cloud platform and the area where the configuration information is located, so that the target cloud resources complete configuration operation of the target configuration information.
After the multi-cloud management platform converts the local configuration information requested by the user into the target cloud on-target configuration information applicable to the target cloud platform and the target cloud area, the target cloud on-target configuration information can be directly cached in the target cloud platform and the target cloud area, and then the target cloud resources can complete the configuration operation of the target configuration information.
In the embodiment of the invention, a set of local configuration information is managed in the multi-cloud management platform, so that the quantity of configuration information required to be managed by the multi-cloud management platform is reduced, and when a user requests to configure any local configuration information for a certain cloud resource, the local configuration information is automatically converted into the configuration information applicable to the target cloud platform where the cloud resource is located, and the configuration information is cached in the target cloud platform to complete configuration operation of the configuration information.
Example two
Fig. 2 is a schematic flow chart of a configuration information management method according to a second embodiment of the present invention, and the implementation of the present invention is optimized based on the second embodiment, referring to fig. 2, where the method includes:
s201, responding to a configuration request of a user for target configuration information of target cloud resources, and determining a target cloud platform and a target cloud area where the target cloud resources are located according to identification information of the target cloud resources.
S202, inquiring whether the target configuration information exists on the target cloud platform and the target cloud area or not in a mapping table.
In the embodiment of the present invention, in order to further improve the management efficiency of the configuration information, a mapping table is also stored in advance in the multi-cloud management platform, where the mapping table records a mapping relationship and a synchronization state between each piece of local configuration information and the configuration information on the cloud of a specific cloud platform and region, and specifically, one record in the mapping table at least includes the following 5 fields: the local configuration information ID, the cloud platform area, the on-cloud configuration information ID, and the cache state (i.e., the synchronization state), where the cache state may be: in the cache, the cache is cached and the cache fails. It should be noted that the mapping table is a one-to-many mapping table, that is, one piece of local configuration information corresponds to configuration information on clouds on a plurality of cloud platforms and areas. Therefore, each piece of local configuration information can be cached to the cloud platform, the area and the cache state quickly through the mapping table.
And executing S203 if the target configuration information is determined to be recorded in the target cloud platform and the configuration information on the regional cloud after the query in the mapping table, otherwise executing S204.
S203, detecting whether the target cloud platform and the area have cached the configuration information on the cloud.
If the mapping relation from the target configuration information to the on-cloud configuration information of the target cloud platform and the area is recorded in the mapping table, whether the on-cloud configuration information is cached in the actual target cloud platform and the actual area is further detected, if yes, the steps S205 and S206 are executed to finish the operation of caching the on-cloud configuration information of the target cloud to the target cloud platform and the area; if not, executing the steps S205 and S207 to finish the operation of caching the configuration information on the target cloud to the target cloud platform and the area where the configuration information is located.
And S204, constructing a new record of the mapping relation from the target configuration information to the configuration information on the target cloud platform and the target cloud of the region in the mapping table.
And if the mapping relation from the target configuration information to the cloud configuration information of the target cloud platform and the region is not recorded in the mapping table, determining that the cloud configuration information is not cached in the target cloud platform and the region necessarily. For convenience of management, a new record of the mapping relationship from the target configuration information to the configuration information on the target cloud platform and the target cloud in the region needs to be built in the mapping table, the cache state is marked as in the cache, and then the two steps S205 and S207 are executed to complete the operation of caching the configuration information on the target cloud to the target cloud platform and the region where the configuration information is located.
S205, obtaining the target configuration information from the local configuration information, and converting the target configuration information into target cloud configuration information applicable to the target cloud platform and the area based on a preset first type conversion function.
It should be noted that, in addition to executing the steps according to the above-mentioned flow, the step of S205 may also be executed before S202, and the implementation of the whole method is not affected.
S206, under the condition that the on-cloud configuration information cached in the target cloud platform and the target cloud area is detected, judging whether the on-cloud configuration information cached in the target cloud platform and the target cloud area is the same as the on-cloud configuration information cached in the target cloud platform and the target cloud area, and if not, replacing the on-cloud configuration information cached in the target cloud platform and the target cloud area with the on-cloud configuration information.
If the configuration information on the target cloud is judged to be the same as the cached configuration information on the cloud in the target cloud platform and the area, the cache state of the record in the mapping table is marked as cached; if the configuration information on the target cloud is different from the cached configuration information on the cloud in the target cloud platform and the area, the cached configuration information on the cloud in the target cloud platform and the area needs to be updated, optionally, the cached configuration information on the target cloud platform and the area is replaced by the configuration information on the target cloud, whether the updating is successful or not is detected, if not, the cache state of the record in the mapping table is marked as cached, and if not, the cache state of the record in the mapping table is marked as cache failure.
S207, under the condition that the configuration information on the cloud is not cached in the target cloud platform and the area or under the condition that the new record is established, creating new configuration information on the target cloud platform, and enabling the new configuration information to be the same as the configuration information on the target cloud.
Under the condition that the configuration information on the cloud is not cached in the target cloud platform and the target cloud area or under the condition that the new record is established, newly establishing the configuration information on the cloud which is the same as the configuration information on the target cloud in the target cloud platform and the target cloud area. And meanwhile, detecting whether the creation is successful or not, if so, modifying the cache state of the new record into the cached state, and if not, deleting the new record from the mapping table.
In the embodiment of the invention, by introducing the mapping table into the multi-cloud management platform, the association relationship between each piece of local configuration information and the configuration information on the cloud of the designated cloud platform and the designated area can be quickly determined based on the mapping table, and the cache state of each record in the mapping table is continuously updated in the caching process, so that the management and maintenance efficiency of the local configuration information can be improved based on the mapping table.
EXAMPLE III
Fig. 3 is a schematic flow chart of a configuration information management method provided in a third embodiment of the present invention, where the third embodiment of the present invention is optimized based on the above-described embodiments, and an operation of updating updated local configuration information to each cloud platform and each cloud area synchronously when it is detected that any piece of local configuration information is updated is added, as shown in fig. 3, the method includes:
s301, when detecting that any piece of local configuration information is modified and updated, determining at least one target cloud platform and at least one target cloud area where the piece of local configuration information is cached before updating according to the mapping table.
In the embodiment of the invention, in order to ensure that the local configuration information is the same as the configuration of the configuration information on the cloud on each cloud platform, when any piece of local configuration information is detected to be updated, the updated local configuration information is synchronously updated to each cloud platform and each area. Specifically, when it is detected that any piece of local configuration information is modified and updated, the piece of local configuration information is marked as being updated, and at least one target cloud platform and at least one target cloud area to which the piece of local configuration information is cached before updating are determined according to the mapping table. Illustratively, the local security group is modified, and the region 1 and the region 2 of the cloud platform a, the region 1 of the cloud platform B, and the region 2 of the cloud platform C, to which the local security group has been cached, are determined according to the mapping table.
S302, aiming at any one target cloud platform and any one target cloud area, the updated local configuration information is converted into new on-cloud configuration information corresponding to the target cloud platform and the target cloud area according to a first-type conversion function, and the new on-cloud configuration information is cached to the target cloud platform and the target cloud area so as to replace the original on-cloud configuration information.
For any target cloud platform and any target cloud area, firstly determining a conversion function corresponding to the target cloud platform in a first-class conversion function, further converting the updated local configuration information into new on-cloud configuration information corresponding to the target cloud platform and the target cloud area according to the conversion function, and caching the new on-cloud configuration information into the target cloud platform and the target cloud area so as to replace the original on-cloud configuration information. And finally, detecting whether the new configuration information on the cloud is successfully cached on the target cloud platform, if so, marking the state of the record, which records the mapping relation from the local configuration information to the target cloud platform and the region, in the mapping table as cached, and if not, marking the state of the record in the mapping table as cache failure.
Further, after the updated local configuration information is completely updated according to the above operation, it is determined whether all the synchronization states from the updated local configuration information to each cloud platform in the mapping table are cache failures, if yes, the updated local configuration information in the mapping table is recovered, the synchronization state is modified into a cached state, and meanwhile, the state of the updated local configuration information is marked as available.
And if the synchronization state of the updated local configuration information to each cloud platform in the mapping table is not cached or is cached, marking the state of the updated local configuration information as available. And meanwhile, a piece of local configuration information (with a new local configuration information ID) is newly established, so that the newly established local configuration is the same as the local configuration before updating. If the new on-cloud configuration information is not successfully cached in a target cloud platform and a target cloud area, the original on-cloud configuration information in the target cloud platform and the target cloud area is associated with the local configuration information before updating, namely the new on-cloud configuration information is associated with the newly-established local configuration information, namely the local configuration information ID in the record marked as cache failure in the mapping table is replaced by the new local configuration information ID, and the cache failure mark is modified into the cached state.
In the embodiment of the invention, when any piece of local configuration information is updated, the updated local configuration information is synchronously updated to each cloud platform and each area, so that the local configuration information is ensured to be consistent with the on-cloud configuration information in each cloud platform and each area.
Example four
Fig. 4 is a schematic flowchart of a configuration information management method according to a fourth embodiment of the present invention, where the embodiment of the present invention is optimized based on the foregoing embodiment, and an operation of synchronously deleting configuration information on a cloud in a corresponding cloud platform and a corresponding area when any piece of local configuration information is deleted is added, and referring to fig. 4, the method includes:
s401, when detecting that any piece of local configuration information is deleted, determining at least one piece of on-cloud configuration information associated with the piece of local configuration information according to the mapping table.
In the embodiment of the invention, in order to ensure that the local configuration information is the same as the configuration of the configuration information on the cloud on each cloud platform, when any piece of local configuration information is detected to be deleted, the configuration information on the cloud on the corresponding cloud platform and the cloud on the corresponding area are synchronously deleted. Specifically, when detecting that any piece of local configuration information is deleted, marking the piece of local configuration information as deletion, and determining at least one piece of on-cloud configuration information associated with the piece of local configuration information according to a mapping table, for example, determining according to an index relationship between a local configuration information ID and an on-cloud configuration information ID, that is, determining a record associated with the local configuration information ID in the mapping table.
S402, determining the cloud platform and the area where the configuration information on the at least one cloud is located, and deleting the configuration information on the cloud on each cloud platform in sequence.
According to the records related to the local configuration information ID in the determined mapping table, and the state mark of each record is deleted, the cloud platform and the area where the configuration information on the at least one cloud is located are determined, and the configuration information on the cloud on each cloud platform is sequentially deleted. After the operation of deleting the configuration information on the cloud on one cloud platform is executed, whether the deletion is successful or not is detected, if yes, the record of the configuration information on the cloud in the mapping table is deleted, and if not, the state of the record of the configuration information on the cloud in the mapping table is marked as deletion failure.
Further, if the mapping table does not have a record corresponding to the local configuration information ID, that is, it indicates that the local configuration information on the cloud on each cloud platform has been completely deleted, the local configuration information is marked as deleted. If a record corresponding to the local configuration information ID exists in the mapping table (the state is marked as deletion failure), the local essential information state is marked as available, and the record marked as deletion failure in the mapping table is marked as synchronized.
In the embodiment of the invention, when one piece of local configuration information is deleted, the cloud configuration information in the corresponding cloud platform and the corresponding area is synchronously deleted, so that the local configuration information is consistent with the cloud configuration information.
EXAMPLE five
Fig. 5 is a schematic flow chart of a configuration information management method provided in the fifth embodiment of the present invention, and the fifth embodiment of the present invention performs optimization based on the foregoing embodiment, referring to fig. 5, where the method includes:
s501, in response to a synchronization instruction aiming at certain local configuration information, determining at least one piece of on-cloud configuration information associated with the certain local configuration information according to a mapping table.
In order to ensure consistency of the content of the local configuration information and all corresponding on-cloud configuration information, a synchronization operation may be performed periodically. The multi-cloud management platform responds to a synchronization instruction aiming at a piece of local configuration information, the state of the piece of local configuration information is marked as in synchronization, and at least one piece of on-cloud configuration information associated with the piece of local configuration information is determined according to a mapping table.
S502, determining the cloud platform and the area where the configuration information on the at least one cloud is located, converting the local configuration information into the configuration information on the target cloud according to the first-class conversion function, and comparing the configuration information on the target cloud with the configuration information on the cloud platforms in sequence.
Optionally, the cloud platform and the area where the configuration information on the at least one cloud is located are determined according to the record associated with the local configuration information ID in the mapping table, and the transfer function corresponding to each cloud platform is determined in the first type of transfer function. And for any record associated with the local configuration information ID, marking the state of the record as a cache, converting the local essential information into the configuration information on the target cloud according to a corresponding conversion function, and comparing the configuration information on the target cloud with the configuration information on the cloud platform. If the two records are the same, the state of the record is marked as cached; if not, S503 is executed.
And S503, if the on-cloud configuration information cached in a certain cloud platform and area is different from the on-target cloud configuration information, replacing the on-cloud configuration information cached in the cloud platform and area with the on-target cloud configuration information.
After the configuration information on the cloud cached in the cloud platform and the area is replaced by the configuration information on the target cloud, whether the replacement is successful or not is detected, and if not, the state of the corresponding record in the mapping table is marked as cache failure.
Further, the state of a corresponding record in the mapping table is marked as cache failure (i.e., synchronization operation failure), which indicates that the local configuration information is inconsistent with the configuration information on the cloud on the area of a certain cloud platform. Optionally, at this time, the processing may be performed by canceling the cache. Specifically, according to a record marked as cache failure in the mapping table, a target cloud platform and a region are determined, the state of the record is marked as deletion, and the configuration information on the cloud in the target cloud platform is deleted. Further, whether the cloud configuration information in the target cloud platform is deleted successfully is detected, if yes, the record in the mapping table is deleted, and if not, the state of the record in the mapping table is marked as cached.
In the implementation of the invention, the consistency between the local configuration information and the cloud configuration information is ensured through synchronous operation, and when certain local configuration information is inconsistent with the cloud configuration information on the area of a certain cloud platform, the cache operation is cancelled to delete the cloud configuration information on the cloud platform, so that the local configuration information can be effectively managed.
EXAMPLE six
Fig. 6 is a schematic flow chart of a configuration information management method according to a sixth embodiment of the present invention, where the embodiment of the present invention is optimized based on the foregoing embodiment, and referring to fig. 6, the method includes:
s601, after the first installation of the multi-cloud management platform, sequentially traversing existing cloud configuration information on each cloud platform, and executing the following operations S602 to S603 when traversing to a cloud configuration information.
When the multi-cloud management platform is used for initial installation, the existing on-cloud configuration information on each cloud platform is sequentially traversed, and if the user defines the on-cloud configuration information on each cloud platform, the importing process of the local configuration information such as S602-S603 can be applied at the moment, so that the user can conveniently reuse the on-cloud configuration information.
S602, judging whether the mapping table records local configuration information associated with the configuration information on the cloud.
And S603, if not, converting the on-cloud configuration information into corresponding local configuration information based on a preset second-class conversion function, and creating a record of the association relationship between the on-cloud configuration information and the local configuration information in the mapping table.
The second type of conversion function comprises at least one conversion function, and each conversion function corresponds to a cloud platform and an area respectively and is used for converting the on-cloud configuration information of the cloud platform and the area into corresponding local configuration information.
In the embodiment of the invention, when the multi-cloud management platform is used for initial installation, the existing cloud configuration information of the user on the cloud platform can be converted into the local configuration information, so that the user can conveniently reuse the cloud configuration information.
EXAMPLE seven
Fig. 7 is a schematic flowchart of a configuration information management method according to a seventh embodiment of the present invention, where the embodiment of the present invention is optimized based on the foregoing embodiment, and referring to fig. 7, the method includes:
s701, when the configuration contents of two same local configuration information are determined to exist, the two configuration information are merged, the state of one local configuration information is marked to be deleted, and the state of the other local configuration information is marked to be in synchronization.
When the configuration contents of two same local configuration information are determined to exist, the local configuration information needing to be managed and maintained is reduced through merging operation, and the workload of managing and maintaining the local configuration information is reduced. Specifically, after the two pieces of configuration information are combined, the state of any one piece of local configuration information is marked as being deleted, and the state of the other piece of local configuration information is marked as being synchronized.
S702, determining at least one piece of on-cloud configuration information associated with the local configuration information marked as deleted according to the mapping table.
Since the mapping table records the index relationship between the local configuration information ID of the local configuration information whose state is marked as deletion and the on-cloud configuration information ID, at least one piece of on-cloud configuration information associated with the mapping table can be determined according to the mapping table, that is, each record of the local configuration information marked as deletion in the mapping table is determined.
S703, reestablishing the association between the configuration information on the at least one cloud and the local configuration information marked as synchronization, and storing the association in the mapping table.
Optionally, because the configuration of the local configuration information whose state flag is deleted is the same as the configuration of the local configuration information whose state flag is synchronized, when the configuration information on the at least one cloud and the local configuration information whose state flag is synchronized are re-associated, only the local configuration information ID in each record of the local configuration information whose state flag is deleted is modified in the mapping table, so that the modified local configuration information ID in each record is the same as the local configuration information ID of the local configuration information whose state flag is synchronized, and the modified mapping table is stored. Further, the state of the local configuration information marked as deleted is modified to be deleted, and the deleting operation is executed to modify the state of the local configuration information marked as deleted to be available.
In the embodiment of the invention, the local configuration information with the same configuration is merged through merging operation, so that the local configuration information required to be maintained is reduced, the workload of managing and maintaining the local configuration information is reduced, and the management efficiency of the configuration information is improved.
Example eight
Fig. 8 is a schematic structural diagram of a configuration information management apparatus according to an eighth embodiment of the present invention, and as shown in fig. 8, the apparatus includes:
a response determining module 801, configured to, in response to a configuration request of a user for target configuration information of a target cloud resource, determine, according to identification information of the target cloud resource, a target cloud platform and an area where the target cloud resource is located;
a conversion module 802, configured to obtain the target configuration information from local configuration information, and convert the target configuration information into target cloud configuration information applicable to the target cloud platform and the area based on a preset first-type conversion function, where the local configuration information is configuration information pre-stored in a multi-cloud management platform;
the caching module 803 is configured to cache the configuration information on the target cloud to the target cloud platform and the area where the target cloud platform is located, so that the target cloud resource completes configuration operation of the target configuration information.
In the embodiment of the invention, a set of local configuration information is managed in the multi-cloud management platform, so that the quantity of configuration information required to be managed by the multi-cloud management platform is reduced, and when a user requests to configure any local configuration information for a certain cloud resource, the local configuration information is automatically converted into the configuration information applicable to the target cloud platform where the cloud resource is located, and the configuration information is cached in the target cloud platform to complete configuration operation of the configuration information.
Optionally, the first type of conversion function includes at least one conversion function, where each conversion function corresponds to a cloud platform and a region, and is configured to convert any local configuration information into cloud configuration information applicable to the cloud platform and the region corresponding to the local configuration information.
Optionally, a mapping table is further stored in the multi-cloud management platform in advance, where the mapping table records a mapping relationship and a synchronization state from each piece of local configuration information to the configuration information on the cloud of the designated cloud platform and the designated area, and the synchronization state includes in-cache, cached, and cache failure.
Optionally, the apparatus further comprises: before caching the configuration information on the target cloud to the target cloud platform and the area, the method further comprises the following steps:
the query module is used for querying whether the target configuration information exists on the target cloud platform and the target cloud area or not in the mapping table;
the detection module is used for detecting whether the target cloud platform and the region cache the on-cloud configuration information if the on-cloud configuration information from the target configuration information to the target cloud platform and the region exists in the mapping table;
and the construction module is used for constructing a new record of the mapping relation from the target configuration information to the configuration information on the target cloud platform and the target cloud of the area in the mapping table if the configuration information on the cloud from the target configuration information to the target cloud platform and the cloud of the area does not exist in the mapping table.
Optionally, the cache module includes:
the first cache unit is used for judging whether the configuration information on the target cloud is the same as the configuration information on the cloud cached in the target cloud platform and the target cloud area or not under the condition of detecting that the configuration information on the cloud is cached in the target cloud platform and the target cloud area, and if not, replacing the configuration information on the cloud cached in the target cloud platform and the target cloud area with the configuration information on the target cloud; or
And the second cache unit is used for creating new configuration information on the target cloud platform and making the new configuration information be the same as the configuration information on the target cloud under the condition that the configuration information on the cloud is not cached in the target cloud platform and the area or the new record is established.
Optionally, the apparatus further comprises:
and the updating module is used for synchronously updating the updated local configuration information to each cloud platform and each area when any piece of local configuration information is detected to be updated.
Optionally, the update module includes:
the determining unit is used for determining at least one target cloud platform and at least one target cloud area where any piece of local configuration information is cached before updating according to the mapping table when any piece of local configuration information is detected to be modified and updated;
and the updating unit is used for converting the updated local configuration information into new on-cloud configuration information corresponding to any one target cloud platform and any one target cloud area according to a first-type conversion function, and caching the new on-cloud configuration information into the target cloud platform and the target cloud area so as to replace the original on-cloud configuration information.
Optionally, the apparatus further comprises:
and the restoring module is used for establishing association between the original on-cloud configuration information in the target cloud platform and the local configuration information before updating if a new on-cloud configuration information is not successfully cached in a target cloud platform and a target cloud area.
Optionally, the apparatus further comprises:
the first determining module is used for determining at least one piece of on-cloud configuration information associated with any piece of local configuration information according to the mapping table when the fact that the local configuration information is deleted is detected;
and the deleting module is used for determining the cloud platform and the area where the configuration information on the at least one cloud is located respectively, and deleting the configuration information on the cloud on each cloud platform in sequence.
Optionally, the apparatus further comprises:
a second determining module, configured to, in response to a synchronization instruction for a piece of local configuration information, determine, according to a mapping table, at least one piece of on-cloud configuration information associated with the piece of local configuration information;
the comparison module is used for determining the cloud platform and the area where the configuration information on the at least one cloud is respectively located, converting the local configuration information into the configuration information on the target cloud according to a first-type conversion function, and then sequentially comparing the configuration information on the target cloud with the configuration information on the cloud platforms;
and the synchronization module is used for replacing the cloud configuration information cached in the cloud platform and the region with the target cloud configuration information if the cloud configuration information cached in the cloud platform and the region is different from the target cloud configuration information.
Optionally, the apparatus further comprises:
the traversal module is used for sequentially traversing the existing cloud configuration information on each cloud platform after the multi-cloud management platform is installed for the first time, and executing the following operations when the cloud configuration information is traversed to each cloud platform:
the judging module is used for judging whether local configuration information associated with the configuration information on the cloud is recorded in the mapping table;
the merging module is used for converting the cloud configuration information into corresponding local configuration information based on a preset second type conversion function and creating a record of the association relationship between the cloud configuration information and the local configuration information in the mapping table when the judgment result of the judgment module is negative;
the second type of conversion function comprises at least one conversion function, and each conversion function corresponds to a cloud platform and an area respectively and is used for converting the on-cloud configuration information of the cloud platform and the area into corresponding local configuration information.
Optionally, the apparatus further comprises:
the marking module is used for merging the two pieces of configuration information when the configuration contents of the two pieces of same local configuration information exist, marking the state of one piece of local configuration information as deleted and marking the state of the other piece of local configuration information as synchronous;
a third determining module, configured to determine, according to the mapping table, at least one on-cloud configuration information associated with the local configuration information marked for deletion;
and the merging module is used for reestablishing the association between the configuration information on the at least one cloud and the local configuration information marked as synchronization and storing the association in the mapping table.
The configuration information management device provided by the embodiment of the invention can execute the configuration information management method provided by any embodiment of the invention, and has corresponding functional modules and beneficial effects of the execution method.
Example nine
Fig. 9 is a schematic structural diagram of an apparatus according to a ninth embodiment of the present invention. FIG. 9 illustrates a block diagram of an exemplary electronic device 12 suitable for use in implementing embodiments of the present invention. The electronic device 12 shown in fig. 9 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiment of the present invention.
As shown in fig. 9, electronic device 12 is embodied in the form of a general purpose computing device. The components of electronic device 12 may include, but are not limited to: one or more processors or processing units 16, a system memory 28, and a bus 18 that couples various system components including the system memory 28 and the processing unit 16.
Bus 18 represents one or more of any of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, and a processor or local bus using any of a variety of bus architectures. By way of example, such architectures include, but are not limited to, Industry Standard Architecture (ISA) bus, micro-channel architecture (MAC) bus, enhanced ISA bus, Video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.
Electronic device 12 typically includes a variety of computer system readable media. Such media may be any available media that is accessible by electronic device 12 and includes both volatile and nonvolatile media, removable and non-removable media.
The system memory 28 may include computer system readable media in the form of volatile memory, such as Random Access Memory (RAM)30 and/or cache memory 32. The electronic device 12 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 34 may be used to read from and write to non-removable, nonvolatile magnetic media (not shown in FIG. 9, and commonly referred to as a "hard drive"). Although not shown in FIG. 9, a magnetic disk drive for reading from and writing to a removable, nonvolatile magnetic disk (e.g., a "floppy disk") and an optical disk drive for reading from or writing to a removable, nonvolatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to bus 18 by one or more data media interfaces. Memory 28 may include at least one program product having a set (e.g., at least one) of program modules that are configured to carry out the functions of embodiments of the invention.
A program/utility 40 having a set (at least one) of program modules 42 may be stored, for example, in memory 28, such program modules 42 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which examples or some combination thereof may comprise an implementation of a network environment. Program modules 42 generally carry out the functions and/or methodologies of the described embodiments of the invention.
Electronic device 12 may also communicate with one or more external devices 14 (e.g., keyboard, pointing device, display 24, etc.), with one or more devices that enable a user to interact with electronic device 12, and/or with any devices (e.g., network card, modem, etc.) that enable electronic device 12 to communicate with one or more other computing devices. Such communication may be through an input/output (I/O) interface 22. Also, the electronic device 12 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network, such as the Internet) via the network adapter 20. As shown, the network adapter 20 communicates with other modules of the electronic device 12 via the bus 18. It should be understood that although not shown in the figures, other hardware and/or software modules may be used in conjunction with electronic device 12, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
The processing unit 16 executes various functional applications and data processing by executing programs stored in the system memory 28, for example, to implement the configuration information management method provided by the embodiment of the present invention, the method including:
responding to a configuration request of a user for target configuration information of a target cloud resource, and determining a target cloud platform and a region where the target cloud resource is located according to identification information of the target cloud resource;
acquiring the target configuration information from local configuration information, and converting the target configuration information into target cloud configuration information applicable to the target cloud platform and the area based on a preset first-class conversion function, wherein the local configuration information is configuration information pre-stored in a multi-cloud management platform;
and caching the configuration information on the target cloud to the target cloud platform and the area where the configuration information is located, so that the target cloud resources complete the configuration operation of the target configuration information.
Example ten
An embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements a method for managing configuration information, where the method includes:
responding to a configuration request of a user for target configuration information of target cloud resources, and determining a target cloud platform and a target cloud area where the target cloud resources are located according to identification information of the target cloud resources;
acquiring the target configuration information from local configuration information, and converting the target configuration information into target cloud configuration information applicable to the target cloud platform and the area based on a preset first-class conversion function, wherein the local configuration information is configuration information pre-stored in a multi-cloud management platform;
and caching the configuration information on the target cloud to the target cloud platform and the area where the configuration information is located, so that the target cloud resources complete the configuration operation of the target configuration information.
Computer storage media for embodiments of the present invention may take the form of any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the latter scenario, the remote computer may 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 the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in some detail by the above embodiments, the invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the invention, and the scope of the invention is determined by the scope of the appended claims.

Claims (14)

1. A method for managing configuration information, the method comprising:
responding to a configuration request of a user for target configuration information of target cloud resources, and determining a target cloud platform and a target cloud area where the target cloud resources are located according to identification information of the target cloud resources;
acquiring the target configuration information from local configuration information, and converting the target configuration information into target cloud configuration information applicable to the target cloud platform and the area based on a preset first-class conversion function, wherein the local configuration information is configuration information pre-stored in a multi-cloud management platform;
caching the configuration information on the target cloud to the target cloud platform and the area where the configuration information is located, so that the target cloud resources complete configuration operation of the configuration information on the target cloud;
the multi-cloud management platform is characterized in that a mapping table is stored in advance, wherein the mapping table records the mapping relation from each piece of local configuration information to the configuration information on the cloud of the designated cloud platform and the designated area and the synchronization state, and the synchronization state comprises in-cache, cached and cache failure.
2. The method according to claim 1, wherein the first type of transfer function comprises at least one transfer function, and each transfer function corresponds to a cloud platform and a region, and is configured to convert any local configuration information into the on-cloud configuration information applicable to the cloud platform and the region corresponding to the local configuration information.
3. The method of claim 1, wherein before caching the configuration information on the target cloud to the target cloud platform and the area, the method further comprises:
inquiring whether the target configuration information exists on the target cloud platform and the target cloud area or not in the mapping table;
if yes, detecting whether the target cloud platform and the region have cached the configuration information on the cloud;
and if the mapping table does not exist, constructing a new record of the mapping relation from the target configuration information to the configuration information on the target cloud platform and the target cloud of the region in the mapping table.
4. The method of claim 3, wherein caching the configuration information on the target cloud to the target cloud platform and the area where the configuration information is located comprises:
under the condition that the on-cloud configuration information cached in the target cloud platform and the region is detected, judging whether the on-cloud configuration information cached in the target cloud platform and the region is the same as the on-cloud configuration information cached in the target cloud platform and the region, and if not, replacing the on-cloud configuration information cached in the target cloud platform and the region with the on-cloud configuration information; or
And under the condition that the configuration information on the cloud is not cached in the target cloud platform and the area or the new record is established, creating new configuration information on the target cloud platform, and enabling the new configuration information to be the same as the configuration information on the target cloud.
5. The method of claim 1, further comprising:
and when any piece of local configuration information is detected to be updated, the updated local configuration information is synchronously updated to each cloud platform and each area.
6. The method of claim 5, wherein when detecting that any piece of local configuration information is updated, the step of synchronously updating the updated local configuration information to each cloud platform and each cloud area comprises:
when any piece of local configuration information is detected to be modified and updated, determining at least one target cloud platform and at least one target cloud area to which the local configuration information is cached before updating according to the mapping table;
and aiming at any one target cloud platform and any one target cloud area, converting the updated local configuration information into new on-cloud configuration information corresponding to the target cloud platform and the target cloud area according to a first type of conversion function, and caching the new on-cloud configuration information into the target cloud platform and the target cloud area so as to replace the original on-cloud configuration information.
7. The method of claim 6, further comprising:
and if the new on-cloud configuration information is not successfully cached in a target cloud platform and a target cloud area, establishing association between the original on-cloud configuration information in the target cloud platform and the target cloud area and the local configuration information before updating.
8. The method of claim 1, further comprising:
when any piece of local configuration information is detected to be deleted, determining at least one piece of on-cloud configuration information associated with the piece of local configuration information according to the mapping table;
and determining the cloud platform and the area where the configuration information on the at least one cloud is respectively located, and deleting the configuration information on the cloud on each cloud platform in sequence.
9. The method of claim 1, further comprising:
in response to a synchronization instruction for certain local configuration information, determining at least one piece of on-cloud configuration information associated with the certain piece of local configuration information according to a mapping table;
determining the cloud platform and the area where the configuration information on the at least one cloud is respectively located, converting the local configuration information into the configuration information on the target cloud according to a first-type conversion function, and sequentially comparing the configuration information on the target cloud with the configuration information on the cloud on each cloud platform;
and if the on-cloud configuration information cached in a certain cloud platform and area is different from the on-target cloud configuration information, replacing the on-cloud configuration information cached in the cloud platform and area with the on-target cloud configuration information.
10. The method of claim 1, further comprising:
after the multi-cloud management platform is installed for the first time, sequentially traversing the existing on-cloud configuration information on each cloud platform, and executing the following operations when the configuration information on one cloud is traversed:
judging whether local configuration information associated with the configuration information on the cloud is recorded in the mapping table;
if not, converting the on-cloud configuration information into corresponding local configuration information based on a preset second-class conversion function, and creating a record of the association relationship between the on-cloud configuration information and the local configuration information in the mapping table;
the second type of conversion function comprises at least one conversion function, and each conversion function corresponds to a cloud platform and an area respectively and is used for converting the on-cloud configuration information of the cloud platform and the area into corresponding local configuration information.
11. The method of claim 1, further comprising:
when determining that two same local configuration information configuration contents exist, merging the two configuration information, marking the state of one local configuration information as deleted and the state of the other local configuration information as in synchronization;
determining at least one on-cloud configuration information associated with the local configuration information marked for deletion according to the mapping table;
and re-establishing association between the at least one piece of on-cloud configuration information and the local configuration information marked as in synchronization, and storing the association in the mapping table.
12. A configuration information management apparatus, characterized in that the apparatus comprises:
the response determining module is used for responding to a configuration request of a user for target configuration information of the target cloud resources, and determining a target cloud platform and an area where the target cloud resources are located according to identification information of the target cloud resources;
the conversion module is used for acquiring the target configuration information from local configuration information and converting the target configuration information into target cloud configuration information applicable to the target cloud platform and the area based on a preset first-class conversion function, wherein the local configuration information is configuration information pre-stored in a multi-cloud management platform;
the cache module is used for caching the configuration information on the target cloud to the target cloud platform and the area where the configuration information is located, so that the target cloud resources complete the configuration operation of the configuration information on the target cloud;
the multi-cloud management platform is characterized in that a mapping table is stored in advance, wherein the mapping table records the mapping relation from each piece of local configuration information to the configuration information on the cloud of the designated cloud platform and the designated area and the synchronization state, and the synchronization state comprises in-cache, cached and cache failure.
13. An electronic device, comprising:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement the configuration information management method of any of claims 1-11.
14. A computer-readable storage medium on which a computer program is stored, the program, when being executed by a processor, implementing the configuration information management method according to any one of claims 1 to 11.
CN201911329407.8A 2019-12-20 2019-12-20 Configuration information management method and device, electronic equipment and storage medium Active CN111064619B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911329407.8A CN111064619B (en) 2019-12-20 2019-12-20 Configuration information management method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911329407.8A CN111064619B (en) 2019-12-20 2019-12-20 Configuration information management method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN111064619A CN111064619A (en) 2020-04-24
CN111064619B true CN111064619B (en) 2022-08-23

Family

ID=70300802

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911329407.8A Active CN111064619B (en) 2019-12-20 2019-12-20 Configuration information management method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111064619B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111917919B (en) * 2020-07-31 2021-10-19 未来穿戴技术有限公司 Mode management method, device, mobile terminal and computer storage medium
CN115174158B (en) * 2022-06-14 2024-04-16 阿里云计算有限公司 Cloud product configuration checking method based on multi-cloud management platform

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105721306A (en) * 2016-02-04 2016-06-29 杭州数梦工场科技有限公司 Configuration information transmission method and device
CN106936857A (en) * 2015-12-29 2017-07-07 中国电信股份有限公司 A kind of connection management method of mixed cloud, SDN controllers and mixing cloud system
CN108449418A (en) * 2018-03-29 2018-08-24 新华三云计算技术有限公司 A kind of mixed cloud platform management system and method
CN109710380A (en) * 2018-12-25 2019-05-03 杭州数梦工场科技有限公司 Manage the method and device of virtual resource in Cloud Server

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018095416A1 (en) * 2016-11-24 2018-05-31 腾讯科技(深圳)有限公司 Information processing method, device and system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106936857A (en) * 2015-12-29 2017-07-07 中国电信股份有限公司 A kind of connection management method of mixed cloud, SDN controllers and mixing cloud system
CN105721306A (en) * 2016-02-04 2016-06-29 杭州数梦工场科技有限公司 Configuration information transmission method and device
CN108449418A (en) * 2018-03-29 2018-08-24 新华三云计算技术有限公司 A kind of mixed cloud platform management system and method
CN109710380A (en) * 2018-12-25 2019-05-03 杭州数梦工场科技有限公司 Manage the method and device of virtual resource in Cloud Server

Also Published As

Publication number Publication date
CN111064619A (en) 2020-04-24

Similar Documents

Publication Publication Date Title
US10083074B2 (en) Maximizing use of storage in a data replication environment
JP5902716B2 (en) Large-scale storage system
US9558194B1 (en) Scalable object store
US8359440B2 (en) Management server device for managing virtual storage device, and method for managing virtual storage device
CN103890738B (en) The system and method for the weight that disappears in storage object after retaining clone and separate operation
US20180300207A1 (en) Method and device for file backup and recovery
US9886388B2 (en) Dynamic block-level indexing for cache with overflow
US9430330B1 (en) System and method for managing environment metadata during data backups to a storage system
CN103890729A (en) Collaborative management of shared resources
CN109379347B (en) Safety protection method and equipment
US20120198190A1 (en) Making automated use of data volume copy service targets
CN111064619B (en) Configuration information management method and device, electronic equipment and storage medium
US8589441B1 (en) Information processing system and method for controlling the same
CN109656886B (en) Key value pair-based file system implementation method, device, equipment and storage medium
CN110647318A (en) Method, device, equipment and medium for creating instance of stateful application
US10558373B1 (en) Scalable index store
US10019182B2 (en) Management system and management method of computer system
US20240070123A1 (en) Using Machine Learning to Provide a Single User Interface for Streamlined Deployment and Management of Multiple Types of Databases
US20140181238A1 (en) Access and control of mainframe-based data in non-mainframe format
US11048417B2 (en) Method, device and computer program product for storage management
US20220382637A1 (en) Snapshotting hardware security modules and disk metadata stores
CN112395141B (en) Data page management method and device, electronic equipment and storage medium
US11483205B1 (en) Defragmentation of licensed resources in a provider network
CN111552956A (en) Role authority control method and device for background management
CN116760850B (en) Data processing method, device, equipment, medium and system

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
TA01 Transfer of patent application right

Effective date of registration: 20201224

Address after: F456, 1st floor, No. 1089, Huihe South Street, Banbidian village, Gaobeidian Township, Chaoyang District, Beijing 100023

Applicant after: Beijing Yunlian Yiyun Technology Co.,Ltd.

Address before: Room 727, 7 / F, 101, 1-7 / F, building 5, yard 14, Jiuxianqiao Road, Chaoyang District, Beijing

Applicant before: BEIJING YUNLIAN WANVI TECHNOLOGY Co.,Ltd.

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant