CN114327291A - Configuration system, management method and system thereof, and related components - Google Patents
Configuration system, management method and system thereof, and related components Download PDFInfo
- Publication number
- CN114327291A CN114327291A CN202111666547.1A CN202111666547A CN114327291A CN 114327291 A CN114327291 A CN 114327291A CN 202111666547 A CN202111666547 A CN 202111666547A CN 114327291 A CN114327291 A CN 114327291A
- Authority
- CN
- China
- Prior art keywords
- configuration
- sub
- configuration file
- file
- path
- 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.)
- Pending
Links
Images
Landscapes
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The application discloses a configuration system and a management method, a system and related components thereof, wherein the configuration system comprises: the shared storage volume is used for storing all configuration files; one or more containers, each of which is configured to obtain the configuration file corresponding to a corresponding sub-path by mounting the sub-path and run the configuration file; and the file manager is used for managing storage information of all the configuration files in the shared storage volume, wherein the storage information comprises configuration file information and corresponding sub-paths. According to the method and the device, all the configuration files are stored in the shared storage volume, the corresponding sub-paths are mounted by the container to obtain the configuration files, data of different sub-paths are isolated from each other, the management complexity of the whole configuration system is low, the shared storage volume, the container and the file manager are irrelevant to development languages, intercommunication limitation is avoided, only storage resources are occupied, a CPU and a memory are hardly consumed, and the configuration system is simple and stable.
Description
Technical Field
The present invention relates to the field of configuration center setting, and in particular, to a configuration system, a management method thereof, a system thereof, and related components.
Background
Currently, in an actual production environment, each user usually has a common configuration center, main configurations of all applications used by the user are stored in the configuration center, and when the user needs to run the applications, the user can obtain corresponding configuration information from the configuration center.
The currently mainstream configuration centers are realized by spring-group-config, Apollo, etc., but these configuration centers cannot be used universally, and each configuration center is a development framework of a specific language, for example, spring-group-config is a development framework of Javaweb, and Apollo also has better adaptability to Java, and thus has poorer adaptability to other languages. In addition, when the configuration center works, configuration data is transmitted to the client in a delivery mode through the server, and there are not a few overheads of a Central Processing Unit (CPU) and a memory.
Therefore, how to provide a solution to the above technical problems is a problem to be solved by those skilled in the art.
Disclosure of Invention
In view of the above, the present invention provides a configuration system, a management method, a system and related components thereof, which are universal and adaptable to various programming languages. The specific scheme is as follows:
a configuration system, comprising:
the shared storage volume is used for storing all configuration files;
one or more containers, each of which is configured to obtain the configuration file corresponding to a corresponding sub-path by mounting the sub-path and run the configuration file;
and the file manager is used for managing storage information of all the configuration files in the shared storage volume, wherein the storage information comprises configuration file information and corresponding sub-paths.
Preferably, the file manager is specifically configured to:
and managing the storage information of all the configuration files in the shared storage volume through a storage directory.
Preferably, each of said containers is specifically adapted to:
and acquiring the configuration file corresponding to the sub-path by mounting the corresponding sub-path, and mounting the configuration file to the local in a mirror image mode and then running.
Correspondingly, the application also discloses a management method of the configuration system, which is applied to the file manager of the configuration system as described in any one of the above, and comprises the following steps:
acquiring configuration file information of all configuration files in a shared storage volume;
setting a sub-path corresponding to each configuration file according to the configuration file information;
and determining a storage directory according to the configuration file information and the sub-paths corresponding to all the configuration files.
Preferably, the process of setting a sub-path corresponding to each of the configuration files according to the configuration file information includes:
and setting one or more sub paths corresponding to each configuration file according to the configuration file information.
Preferably, the management method further includes:
and when a mounting request of a container is received, issuing the corresponding configuration file to the container according to the sub-path in the mounting request.
Preferably, the process of issuing the corresponding configuration file to the container according to the sub-path in the mount request when the mount request of the container is received includes:
and when a mounting request of the container is received, issuing a corresponding mirror image file of the configuration file to the container according to the sub-path in the mounting request.
Correspondingly, the application also discloses a management system of the configuration system, which is applied to the file manager of the configuration system, and comprises:
the acquisition module is used for acquiring the configuration file information of all the configuration files in the shared storage volume;
the path module is used for setting a sub-path corresponding to each configuration file according to the configuration file information;
and the directory module is used for determining a storage directory according to the configuration file information and the sub-paths corresponding to all the configuration files.
Correspondingly, the application also discloses a management device of the configuration system, which is applied to the file manager of the configuration system as described in any one of the above, and comprises:
a memory for storing a computer program;
a processor for implementing the steps of the management method of the configuration system as described in any one of the above when executing the computer program.
Accordingly, the present application also discloses a readable storage medium having stored thereon a computer program which, when being executed by a processor, realizes the steps of the management method of the configuration system according to any one of the above.
The application discloses a configuration system, includes: the shared storage volume is used for storing all configuration files; one or more containers, each of which is configured to obtain the configuration file corresponding to a corresponding sub-path by mounting the sub-path and run the configuration file; and the file manager is used for managing storage information of all the configuration files in the shared storage volume, wherein the storage information comprises configuration file information and corresponding sub-paths. According to the configuration system, all the configuration files are stored in the shared storage volume, when the configuration files are needed by application, the configuration files are obtained through the corresponding sub paths of the container mounting, data of different sub paths are isolated from each other, the management complexity of the whole configuration system is low, the shared storage volume, the container and the file manager are used independently of development languages, intercommunication limitation is avoided, only storage resources are occupied, a CPU and a memory are hardly consumed, and the configuration system is simple and stable.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
FIG. 1 is a schematic diagram of a configuration system according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating steps of a method for managing a configuration system according to an embodiment of the present invention;
fig. 3 is a configuration diagram of a management system of a configuration system according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Currently mainstream configuration centers are not universal and each configuration center is developed with a specific language framework, so that the adaptability to other languages is poor. In addition, when the configuration center works, configuration data is transmitted to the client side in a issuing mode through the server side, and the expenses of a CPU and a memory are not few.
According to the configuration system, all the configuration files are stored in the shared storage volume, when the configuration files are needed by application, the configuration files are obtained through the corresponding sub paths of the container mounting, data of different sub paths are isolated from each other, the management complexity of the whole configuration system is low, the shared storage volume, the container and the file manager are used independently of development languages, intercommunication limitation is avoided, only storage resources are occupied, a CPU and a memory are hardly consumed, and the configuration system is simple and stable.
The embodiment of the invention discloses a configuration system, which is shown in figure 1 and comprises the following components:
the shared storage volume 1 is used for storing all configuration files;
one or more containers 2, where each container 2 is configured to obtain the configuration file corresponding to a corresponding sub-path by mounting the sub-path, and run the configuration file;
and the file manager 3 is configured to manage storage information of all the configuration files in the shared storage volume 1, where the storage information includes configuration file information and corresponding sub-paths.
It will be appreciated that the file manager 3 is specifically configured to:
and managing the storage information of all the configuration files in the shared storage volume through a storage directory.
Further, each of said containers 2 is specifically adapted to:
and acquiring the configuration file corresponding to the sub-path by mounting the corresponding sub-path, and mounting the configuration file to the local in a mirror image mode and then running.
It can be understood that in this embodiment, the file manager 3 serves as a configuration center of the entire configuration system, a fixed storage directory volume corresponds to configuration files in all the shared storage volumes 1, including folders for storing different hierarchies of the configuration files, and different subpaths are created as bases for mounting the container 2, and when any application uses a configuration file in the configuration system, it is necessary to obtain the corresponding configuration file through the container mounting subpath, refer the configuration file to the container in a mirror image manner, and then mount the configuration file to a local operation.
It should be noted that, for different subpaths, the corresponding data are isolated from each other, and the container 2 of the configuration file in the shared storage volume 1 is obtained through the subpath a, only the content of the subdirectory corresponding to the subpath can be seen, other content in the storage directory cannot be seen, and the configuration file corresponding to other subpaths cannot be obtained.
The application discloses a configuration system, includes: the shared storage volume is used for storing all configuration files; one or more containers, each of which is configured to obtain the configuration file corresponding to a corresponding sub-path by mounting the sub-path and run the configuration file; and the file manager is used for managing storage information of all the configuration files in the shared storage volume, wherein the storage information comprises configuration file information and corresponding sub-paths. According to the configuration system, all the configuration files are stored in the shared storage volume, when the configuration files are needed by application, the configuration files are obtained through the corresponding sub paths of the container mounting, data of different sub paths are isolated from each other, the management complexity of the whole configuration system is low, the shared storage volume, the container and the file manager are used independently of development languages, intercommunication limitation is avoided, only storage resources are occupied, a CPU and a memory are hardly consumed, and the configuration system is simple and stable.
Correspondingly, the present application also discloses a management method of a configuration system, which is applied to a file manager of the configuration system as described in any one of the above, and as shown in fig. 2, the management method includes:
s1: acquiring configuration file information of all configuration files in a shared storage volume;
s2: setting a sub-path corresponding to each configuration file according to the configuration file information;
s3: and determining a storage directory according to the configuration file information and the sub-paths corresponding to all the configuration files.
Further, the step S2 is a process of setting a sub-path corresponding to each profile according to the profile information, including: and setting one or more sub paths corresponding to each configuration file according to the configuration file information. Each configuration file may correspond to one or more different sub-paths, and for part of the requirements of practical applications, when different containers acquire configuration files, the ranges and paths of the required configuration files are different, so that even if the same configuration file is used, a plurality of different sub-paths may exist to be provided for different containers for use.
Further, the management method further comprises:
s4: and when a mounting request of the container is received, sending a corresponding configuration file to the container according to the sub-path in the mounting request.
Further, when the mount request of the container is received in step S4, the process of issuing the corresponding configuration file to the container according to the sub-path in the mount request includes:
and when a mounting request of the container is received, sending the mirror image file of the corresponding configuration file to the container according to the sub-path in the mounting request.
According to the management method of the configuration system, all the configuration files are stored in the shared storage volume, when the configuration files are needed, the configuration files are obtained by mounting the corresponding sub paths through the container, data of different sub paths are isolated from each other, the management complexity of the whole configuration system is low, the shared storage volume, the container and the file manager are used independently of development languages, intercommunication limitation is avoided, only storage resources are occupied, a CPU and a memory are hardly consumed, and the configuration system is simple and stable.
Correspondingly, the present application also discloses a management system of the configuration system, which is applied to the file manager of the configuration system as described in any one of the above, and as shown in fig. 3, the management system includes:
the acquisition module 01 is used for acquiring configuration file information of all configuration files in the shared storage volume;
a path module 02, configured to set a sub-path corresponding to each configuration file according to the configuration file information;
the directory module 03 is configured to determine a storage directory according to the configuration file information and the sub-paths corresponding to all the configuration files.
According to the management system of the configuration system, all the configuration files are stored in the shared storage volume, when the configuration files are needed, the configuration files are obtained through the corresponding sub paths of the container mounting, data of different sub paths are isolated from each other, the management complexity of the whole configuration system is low, the shared storage volume, the container and the file manager are used independently of development languages, intercommunication limitation is avoided, only storage resources are occupied, a CPU and a memory are hardly consumed, and the configuration system is simple and stable.
In some specific embodiments, the path module 02 is specifically configured to:
and setting one or more sub paths corresponding to each configuration file according to the configuration file information.
In some specific embodiments, the management system further comprises:
and the issuing module 04 is configured to issue the corresponding configuration file to the container according to the sub-path in the mount request when the mount request of the container is received.
In some specific embodiments, the issuing module 04 is specifically configured to:
and when a mounting request of the container is received, issuing a corresponding mirror image file of the configuration file to the container according to the sub-path in the mounting request.
Correspondingly, the embodiment of the present application further discloses a management device of a configuration system, which is applied to the file manager of the configuration system according to any one of the above descriptions, and includes:
a memory for storing a computer program;
a processor for implementing the steps of the management method of the configuration system as described in any one of the above when executing the computer program.
Correspondingly, the embodiment of the application also discloses a readable storage medium, wherein a computer program is stored on the readable storage medium, and when being executed by a processor, the computer program realizes the steps of the management method of the configuration system according to any one of the above items.
For details of the management method for configuring the system, reference may be made to the related description in the foregoing embodiments, and details are not described here again.
The management apparatus and the readable storage medium of the configuration system in this embodiment have the same technical effects as the management method of the configuration system in the above embodiment, and are not described herein again.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be 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. Also, 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 an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The configuration system, the management method thereof, the system and the related components provided by the present invention are described in detail above, and the principle and the implementation of the present invention are explained in this document by applying specific examples, and the description of the above examples is only used to help understanding the method and the core idea of the present invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.
Claims (10)
1. A configuration system, comprising:
the shared storage volume is used for storing all configuration files;
one or more containers, each of which is configured to obtain the configuration file corresponding to a corresponding sub-path by mounting the sub-path and run the configuration file;
and the file manager is used for managing storage information of all the configuration files in the shared storage volume, wherein the storage information comprises configuration file information and corresponding sub-paths.
2. The configuration system of claim 1, wherein the file manager is specifically configured to:
and managing the storage information of all the configuration files in the shared storage volume through a storage directory.
3. The configuration system according to claim 1, wherein each of said containers is specifically configured to:
and acquiring the configuration file corresponding to the sub-path by mounting the corresponding sub-path, and mounting the configuration file to the local in a mirror image mode and then running.
4. A method for managing a configuration system, which is applied to a file manager of the configuration system according to any one of claims 1 to 3, comprising:
acquiring configuration file information of all configuration files in a shared storage volume;
setting a sub-path corresponding to each configuration file according to the configuration file information;
and determining a storage directory according to the configuration file information and the sub-paths corresponding to all the configuration files.
5. The method according to claim 4, wherein the step of setting the sub-path corresponding to each of the profiles according to the profile information comprises:
and setting one or more sub paths corresponding to each configuration file according to the configuration file information.
6. The method of claim 4, further comprising:
and when a mounting request of a container is received, issuing the corresponding configuration file to the container according to the sub-path in the mounting request.
7. The method according to claim 6, wherein the process of issuing the corresponding configuration file to the container according to the sub-path in the mount request when receiving the mount request of the container comprises:
and when a mounting request of the container is received, issuing a corresponding mirror image file of the configuration file to the container according to the sub-path in the mounting request.
8. A management system for a configuration system, characterized in that a file manager applied to the configuration system according to any one of claims 1 to 3, comprises:
the acquisition module is used for acquiring the configuration file information of all the configuration files in the shared storage volume;
the path module is used for setting a sub-path corresponding to each configuration file according to the configuration file information;
and the directory module is used for determining a storage directory according to the configuration file information and the sub-paths corresponding to all the configuration files.
9. A management apparatus for a configuration system, which is applied to a file manager of the configuration system according to any one of claims 1 to 3, comprising:
a memory for storing a computer program;
a processor for implementing the steps of the method of managing a configuration system according to any one of claims 4 to 7 when executing said computer program.
10. A readable storage medium, characterized in that the readable storage medium has stored thereon a computer program which, when being executed by a processor, carries out the steps of the method for managing a configuration system according to any one of claims 4 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111666547.1A CN114327291A (en) | 2021-12-30 | 2021-12-30 | Configuration system, management method and system thereof, and related components |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111666547.1A CN114327291A (en) | 2021-12-30 | 2021-12-30 | Configuration system, management method and system thereof, and related components |
Publications (1)
Publication Number | Publication Date |
---|---|
CN114327291A true CN114327291A (en) | 2022-04-12 |
Family
ID=81021885
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111666547.1A Pending CN114327291A (en) | 2021-12-30 | 2021-12-30 | Configuration system, management method and system thereof, and related components |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114327291A (en) |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112799780A (en) * | 2021-01-15 | 2021-05-14 | 中国银联股份有限公司 | Container mirror image sharing method, device, server, equipment and medium |
CN113835625A (en) * | 2021-08-30 | 2021-12-24 | 广东浪潮智慧计算技术有限公司 | Data storage method, device, equipment and storage medium based on sub-path |
-
2021
- 2021-12-30 CN CN202111666547.1A patent/CN114327291A/en active Pending
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112799780A (en) * | 2021-01-15 | 2021-05-14 | 中国银联股份有限公司 | Container mirror image sharing method, device, server, equipment and medium |
CN113835625A (en) * | 2021-08-30 | 2021-12-24 | 广东浪潮智慧计算技术有限公司 | Data storage method, device, equipment and storage medium based on sub-path |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104866383B (en) | Interface calling method and device and terminal | |
US7877682B2 (en) | Modular distributed mobile data applications | |
US9483312B2 (en) | Locating service endpoints from a service registry | |
CA2831381C (en) | Recovery of tenant data across tenant moves | |
US11586506B2 (en) | System and method for indexing image backups | |
US8060586B2 (en) | Dynamic web service deployment and integration | |
US20020032775A1 (en) | System and method for transmitting and retrieving data via a distributed persistence framework | |
US20080114770A1 (en) | Attribute level federation from multiple data sources | |
US8856365B2 (en) | Computer-implemented method, computer system and computer readable medium | |
US9529933B2 (en) | Dynamic assignment of business logic based on schema mapping metadata | |
IE20070189A1 (en) | System and method for managing objects according to the common information model | |
CN103634144A (en) | Method, system and equipment for managing multi-IDC (internet data center) cluster configuration file | |
US10055393B2 (en) | Distributed version control of orchestration templates | |
US11068402B2 (en) | Externalized configurations and caching solution | |
US10223218B2 (en) | Disaster recovery of managed systems | |
CN116339756A (en) | Application program mounting method, device, equipment and storage medium | |
US8893108B1 (en) | Method and system for context-based software updates | |
CN115795211A (en) | Page display method, device, system, equipment and storage medium | |
CN113391875A (en) | Container deployment method and device | |
CN111506547A (en) | Folder loading method, device, equipment and medium | |
CN114371914A (en) | Container IP address configuration method and device, storage medium and electronic equipment | |
CN116940924A (en) | Application deployment in a computing environment | |
CN114327291A (en) | Configuration system, management method and system thereof, and related components | |
CN113835625B (en) | Data storage method, device, equipment and storage medium based on sub-path | |
CN110730197A (en) | Service discovery method 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 |