CN106484452B - unified configuration management method and device for software platform - Google Patents

unified configuration management method and device for software platform Download PDF

Info

Publication number
CN106484452B
CN106484452B CN201510549371.XA CN201510549371A CN106484452B CN 106484452 B CN106484452 B CN 106484452B CN 201510549371 A CN201510549371 A CN 201510549371A CN 106484452 B CN106484452 B CN 106484452B
Authority
CN
China
Prior art keywords
application
configuration
configuration file
platform
deployment
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
CN201510549371.XA
Other languages
Chinese (zh)
Other versions
CN106484452A (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.)
Datang Mobile Communications Equipment Co Ltd
Original Assignee
Datang Mobile Communications Equipment 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 Datang Mobile Communications Equipment Co Ltd filed Critical Datang Mobile Communications Equipment Co Ltd
Priority to CN201510549371.XA priority Critical patent/CN106484452B/en
Publication of CN106484452A publication Critical patent/CN106484452A/en
Application granted granted Critical
Publication of CN106484452B publication Critical patent/CN106484452B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Stored Programmes (AREA)

Abstract

The invention discloses a unified configuration management method and a unified configuration management device for a software platform, which are used for solving the problem of strong dependence of a configuration flow on a configuration tool caused by the fact that platform configuration and application deployment of the software platform cannot be isolated. Firstly, receiving a configuration management command; after determining that the configuration management command is valid, reading a pre-stored platform configuration file, and determining the execution type of the configuration management command; based on the execution type of the configuration management command and the pre-stored application registry, the application configuration process related in the configuration management command is executed according to the read platform configuration file, so that the platform configuration and the application deployment of the software platform can be isolated from each other, and the software platform or the specific application and the specific position can be supported by the configuration management without depending on any installation and deployment tool.

Description

Unified configuration management method and device for software platform
Technical Field
the invention relates to the field of computer software application, in particular to a unified configuration management method and device for a software platform.
background
currently, for most enterprise software platforms, most software providers adopt a software platform upgrading mode to conform to changes of enterprise business functions. For larger upgrading measures, a redeployment mode is mostly adopted for solving the problem. According to the rule of the software life cycle, a software platform is upgraded in a redeployment mode basically before the software platform tends to be stable. Because the software platform is huge and complex in system, and some software platforms comprise a plurality of application series, the parameter configuration content of the software platform is various and complex, the manual participation and deployment interaction reliability is poor, the workload is large, and the upgrading failure is easily caused. However, in frequent upgrade work, most parameter configuration contents are relatively stable, and in order to change the situation, many software providers rely on an installation tool on the basis of the advanced unified planning of software platform parameters, and adopt a one-time configuration during deployment or replace a mode of manually implementing automatic interaction to deploy a software platform.
when the software platform parameters are planned, in order to avoid the error of interactive input parameters of software platform upgrading personnel on installation in the deployment process, the parameters are uniformly configured in a uniform planning mode, and the operation and maintenance upgrading personnel of the software platform plan the common parameters and the specific parameters of each application in advance. The platform configuration file comprises two parts of platform public parameters and specific application parameters, wherein the platform public parameters configure a public parameter set of each application in the software platform, such as database information, FTP information and the like; the specific application parameter part configures specific parameter sets in each application, such as a network monitoring port required by each application, a started memory size and other parameter sets.
the existing deployment modes of the software platform comprise a one-time configuration installation package mode and an automatic interaction mode. The one-time configuration installation package mode can be seen in fig. 1, and is mainly based on the arrangement convention, the installation tool integrated software platform application system is taken as an integral deployment package, the configuration interaction of parameters is not provided in the installation process, and the installation package engine automatically completes the configuration of each application in the whole software platform according to the platform configuration file. The main features of this configuration are embodied in the following aspects: 1) the deployment package of the software platform is manufactured by an installation deployment tool and is in a bin or exe mode; 2) when the deployment package is manufactured, configuration parameters in each application are configured through customizing a deployment engine script; 3) different deployment packages (e.g., which applications, several applications, to include) require customization of different deployment engine scripts; 4) in the deployment process, a deployment package engine automatically configures parameters in configuration files in all applications through configuration contents in a platform configuration file; 5) and after the installation is finished, finishing the configuration of each application in the software platform.
In this way, the installation and deployment tool is used to automatically interact in the installation process, so as to implement one-time configuration of each application in the whole software platform. The main features of this configuration are embodied in the following aspects: 1) the deployment package of the software platform is manufactured by an installation deployment tool and is in a bin or exe mode; 2) customizing different automatic interactive process engines by using a deployment tool strictly according to the deployment configuration steps of each application, and then distributing corresponding deployment engine tools; 3) in the deployment process of each application, a deployment tool runs an automatic interaction engine to perform automatic interaction, and according to the configuration file of the software platform, the configuration of parameters in each application is completed according to the configuration steps of the application 4) after the installation is completed, the configuration of each application in the software platform is completed.
Therefore, the existing installation tools and deployment tools are very limited in expansion, do not support custom expansion, and are easily limited in special applications; the method has high requirements on deployment package producers, and when the deployment packages are produced, the installation engine script of each deployment package needs to be customized, which parameters of which application should be configured are determined, the maintenance workload is large, and the deployment tools need to be trained and learned; irreplaceable dependence is easily formed on edition making human resources, the deployment package is prevented from being released due to personnel movement or job leaving, and the work transfer effect is unreliable; the dependency on the deployment tool is too strong, if the configuration step in the deployment changes (for example, a new configuration parameter is added in the middle of the configuration process) or the configuration parameter changes (for example, the name changes, etc.), the deployment script of the installation tool must be changed, the deployment package must be regenerated, or the automatic interaction engine must be customized again, and the deployment engine tool must be reissued; the format of the software platform deployment package is limited, and the software platform deployment package can only be used in formats supported by a deployment tool, such as exe, bin and the like; most importantly, configuration updating cannot be supported, in the execution process, if configuration parameters in a platform configuration file are found to be wrong or need to be modified, the whole deployment process is completely invalidated, the mistakes are not easy to be eliminated, the deployment site is limited more, redeployment is required, platform configuration and application deployment isolation of a software platform is not achieved for a commercial software platform, and a one-key transparent deployment mode is not really achieved essentially.
disclosure of Invention
The invention aims to provide a unified configuration management method and a unified configuration management device for a software platform, which are used for solving the problem that the dependence of a configuration flow on a configuration tool is strong because the platform configuration and the application deployment of the software platform cannot be isolated.
the purpose of the invention is realized by the following technical scheme:
A unified configuration management method for a software platform comprises the following steps:
Receiving a configuration management command;
after the configuration management command is determined to be valid, reading a pre-stored platform configuration file, and determining the execution type of the configuration management command;
And executing the application configuration flow involved in the configuration management command according to the read platform configuration file based on the execution type of the configuration management command and a pre-stored application registry, wherein the application registry is used for configuring various types of application information in the software platform, and the application information comprises an application name and an application deployment position.
Therefore, the platform configuration and the application deployment of the software platform can be isolated from each other, the software platform is independent of any installation and deployment tool, the configuration management of the software platform or specific applications and specific positions is supported, the configuration management is realized independent of the deployment and interaction steps of the software platform, in addition, the unified configuration operation of the software platform is simple and efficient, the maintenance cost is low, the learning cost is low, and the irreplaceable project resource risk can be further weakened.
Optionally, the platform configuration file includes platform common parameters and specific application parameters, and the platform configuration file is used for configuring the common parameters and the application parameters of the software platform.
Optionally, based on the execution type of the configuration management command and a pre-stored application registry, executing the application configuration flow related to the configuration management command according to the read platform configuration file, specifically including:
when the execution type of the configuration management command is a configuration-specified application type, indexing a specified application name corresponding to the configuration management command in the application registry to obtain a specified application deployment position, and generating a corresponding application configuration file at the specified application deployment position according to the read platform configuration file and a corresponding application configuration file template to complete a configuration process;
and when the execution type of the configuration management command is a configuration software platform type, indexing all application names in the application registry to obtain all application deployment positions, and generating corresponding application configuration files in parallel at all the application deployment positions according to the read platform configuration files and the application configuration file templates of all the applications to complete a configuration process.
optionally, generating a corresponding application configuration file at the specified application deployment location according to the read platform configuration file and the corresponding application configuration file template to complete the configuration process, specifically including:
And indexing and reading application configuration file templates of all paths at the appointed application deployment position, and generating a corresponding application configuration file at the position of the application configuration file template in the appointed application deployment according to the read platform configuration file to complete the configuration process.
Optionally, the parallel generation of the respective corresponding application configuration files at all the application deployment positions according to the read platform configuration files and the application configuration file templates of the applications to complete the configuration process specifically includes:
And indexing and reading the application configuration file templates of all paths at all the application deployment positions, and generating corresponding application configuration files at the application configuration file template positions in all the application deployments in parallel according to the read platform configuration files to complete the configuration process.
Optionally, generating a corresponding application configuration file at the application deployment location according to the read platform configuration file and the application configuration file template to complete the configuration process, specifically including:
And acquiring corresponding parameters and original parameter values at the application deployment position according to the read configuration file template, indexing the corresponding original parameter values in the read platform configuration file to acquire new parameter values, and replacing the original parameter values of the corresponding parameters with the new parameter values to generate corresponding application configuration files so as to complete the configuration process.
A unified configuration management apparatus for a software platform, comprising:
a receiving unit for receiving a configuration management command;
The reading unit is used for reading a pre-stored platform configuration file after the configuration management command is determined to be valid, and determining the execution type of the configuration management command;
and the configuration unit is used for executing the application configuration flow related in the configuration management command according to the read platform configuration file based on the execution type of the configuration management command and a pre-stored application registry, wherein the application registry is used for configuring various types of application information in a software platform, and the application information comprises an application name and an application deployment position.
therefore, the platform configuration and the application deployment of the software platform can be isolated from each other, the software platform is independent of any installation and deployment tool, the configuration management of the software platform or specific applications and specific positions is supported, the configuration management is realized independent of the deployment and interaction steps of the software platform, in addition, the unified configuration operation of the software platform is simple and efficient, the maintenance cost is low, the learning cost is low, and the irreplaceable project resource risk can be further weakened.
Optionally, the platform configuration file includes platform common parameters and specific application parameters, and the platform configuration file is used for configuring the common parameters and the application parameters of the software platform.
Optionally, when the application configuration flow related to the configuration management command is executed according to the read platform configuration file based on the execution type of the configuration management command and a pre-stored application registry, the configuration unit is specifically configured to:
When the execution type of the configuration management command is a configuration-specified application type, indexing a specified application name corresponding to the configuration management command in the application registry to obtain a specified application deployment position, and generating a corresponding application configuration file at the specified application deployment position according to the read platform configuration file and a corresponding application configuration file template to complete a configuration process;
and when the execution type of the configuration management command is a configuration software platform type, indexing all application names in the application registry to obtain all application deployment positions, and generating corresponding application configuration files in parallel at all the application deployment positions according to the read platform configuration files and the application configuration file templates of all the applications to complete a configuration process.
optionally, when the specified application deployment location generates a corresponding application configuration file according to the read platform configuration file and the corresponding application configuration file template to complete the configuration process, the configuration unit is specifically configured to:
And indexing and reading application configuration file templates of all paths at the appointed application deployment position, and generating a corresponding application configuration file at the position of the application configuration file template in the appointed application deployment according to the read platform configuration file to complete the configuration process.
optionally, when all the application deployment locations generate respective corresponding application configuration files in parallel according to the read platform configuration file and the application configuration file template of each application to complete the configuration flow, the configuration unit is specifically configured to:
And indexing and reading the application configuration file templates of all paths at all the application deployment positions, and generating corresponding application configuration files at the application configuration file template positions in all the application deployments in parallel according to the read platform configuration files to complete the configuration process.
Optionally, when the application deployment location generates a corresponding application configuration file according to the read platform configuration file and the application configuration file template to complete the configuration process, the configuration unit is specifically configured to:
And acquiring corresponding parameters and original parameter values at the application deployment position according to the read configuration file template, indexing the corresponding original parameter values in the read platform configuration file to acquire new parameter values, and replacing the original parameter values of the corresponding parameters with the new parameter values to generate corresponding application configuration files so as to complete the configuration process.
Drawings
FIG. 1 is a diagram illustrating a conventional one-time configuration installation package implementation process;
FIG. 2 is a schematic diagram of an implementation process of a conventional automatic interaction method;
FIG. 3 is a schematic structural diagram of a Framework in an embodiment of the present invention;
FIG. 4 is a schematic diagram of a platform configuration file according to an embodiment of the present invention;
FIG. 5 is a diagram illustrating an application registration intent in an embodiment of the present invention;
fig. 6A and fig. 6B are schematic diagrams illustrating a process of generating a corresponding application configuration file at a location of a configuration file template according to an embodiment of the present invention;
FIG. 7A is a functional module diagram of a Framework in an embodiment of the present invention;
FIG. 7B is a diagram illustrating an exemplary process for configuring command distribution function according to an embodiment of the present invention;
FIG. 7C is a diagram illustrating an exemplary process for executing a specific application configuration function according to an embodiment of the present invention;
FIG. 7D is a diagram illustrating an exemplary process for executing a configuration function of a software platform according to an embodiment of the present invention;
FIG. 7E is a diagram illustrating a configuration execution function execution process according to an embodiment of the present invention;
fig. 8A and 8B are schematic deployment diagrams of two types of frames in an embodiment of the present invention;
FIG. 9 is a flowchart illustrating a unified configuration management method for a software platform according to an embodiment of the present invention;
fig. 10 is a schematic structural diagram of a unified configuration management apparatus for a software platform 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.
in the embodiment of the invention, Framework (Framework) application is defined, cross-platform Java language development is used, a reliable, efficient and simple-operation unified configuration management method is provided for a software platform, so that the working efficiency of operation and maintenance personnel is improved, the working difficulty is reduced, and the main structure of the Framework is shown in FIG. 3:
as shown in fig. 3, the Framework is composed of four parts, namely a platform configuration file, an application registry, a configuration management execution module, and a configuration file template specification, wherein the functions of each part are as follows:
In the embodiment of the present invention, as shown in fig. 4, the platform configuration file is consistent with the platform configuration file in the currently used technology, is used to configure the common parameters and the application parameters of the software platform, and also supports the unified planning of the parameters of the software platform, and is one of the core files of the Framework.
In the embodiment of the present invention, as shown in fig. 5, the application registry also needs to be uniformly planned before the software platform is deployed, so as to configure each piece of application information in the software platform, which mainly includes an application name and a corresponding deployment location, and is one of the core files of the Framework. In the actual operation configuration of the Framework, the configuration of the application registry is flexible, the configuration of the application at a specified position can be updated, the application can also be a part of the position of the application, and the application name at the moment is an alias of a specific position, so that the Framework can be suitable for software platforms in any deployment forms.
In the embodiment of the invention, the specification of the configuration file template belongs to a specification convention followed by a software platform, if Framework needs to be configured and managed for the software platform, all application configuration files in the platform should exist in a configuration file template format in a deployment package, so that the Framework can generate the application configuration files of the software platform according to the platform configuration files and the configuration file template. The specific specifications specify the following:
1) the profile template name must be named with the "application profile name" + "frame.
2) In the configuration file template, the application parameter values that need Framework configuration must be represented by "$" + "parameter name in platform configuration file".
3) a corresponding application profile can be generated at the location of the profile template.
the following describes how to generate a corresponding application profile at the location of the profile template, with a specific example.
Referring to fig. 6A, it can be seen that: platform configuration files are platform, wherein a parameter of the platform configuration files is county, China; properties, and if the value of the parameter countyname is required to be the value China of the countryName in the platform configuration file, according to the convention of the specification, the template name of the configuration file should be: property, frame, template, and the value of parameter countyname should be $ countryName, then after the application is deployed, the Framework is run, and a corresponding application configuration file can be generated at the position of the configuration file template. In the actual operation process, the Framework searches for the marked parameter value in the application configuration file template, then searches for the parameter name corresponding to the parameter value in the platform configuration file to obtain the parameter value of the parameter name, then updates the content of the configuration file template, and generates the corresponding application configuration file, and the specific process is shown in fig. 6B.
the configuration management execution module is a core module of a Framework, and the main functions of the configuration management execution module are shown in fig. 7A: the functional module mainly comprises four functions of configuration command distribution, specific application configuration, software platform configuration and configuration execution function. The configuration command distribution function is mainly to distribute according to an execution command of the Framework, and determine whether to execute software platform configuration or specific application configuration, where if the specific application is specified when executing the command, the specific application is configured, and if the execution command is the software platform configuration, the software platform is configured, which may be specifically shown in fig. 7B. The specific application configuration function will perform configuration update on the specified application, and the Framework will first index to the location of the application in the application registry, and then perform the configuration flow on the location, which is specifically shown in fig. 7C. The software platform configuration function performs overall configuration on each application in the software platform, and in the actual execution process, if the software platform has an overall position, the software platform can be registered as a special application in the application registry, and the overall position of the software platform is configured integrally. If the relevant application positions of the software platform are not uniform, all applications in the application registry may be configured, and at this time, the Framework will generate an independent configuration execution function flow for each application in the application registry, and concurrently configure multiple applications, which may be specifically shown in fig. 7D. The configuration execution function is a core function of the configuration management execution module, and is to automatically match all the configuration file templates in all the paths at the specified location and generate corresponding application configuration files, which is specifically shown in fig. 7E.
in summary, the use of the Framework can show that:
1) When the Framework is used, only a platform configuration file needs to be planned, and a configuration file template required in a software platform is manufactured in a software platform deployment package according to the Framework specification; the item can be used as a development specification of a software platform, and the application configuration files needing planning and configuration are specified to exist in the software platform in the form of configuration file templates.
2) The Framework mainly supports configuration management of the single operation environment, and if the software platform supports network installation, the Framework can be used as the single environment to complete software platform configuration relatively for any operation environment in the network installation.
3) the Framework can be used as a single application deployment and operation environment for parameter planning and configuration updating of a software platform, as shown in fig. 8A.
4) The Framework may be used as a part of a software platform, and is triggered and executed at the end of deployment to complete configuration of the software platform, as shown in fig. 8B.
5) the Framework can be used in cooperation with a deployment tool, but the format of a final software platform deployment package is not limited at all, and even can be a currently popular compressed format such as gzip to be released, a specific software platform deployment package is manufactured by the deployment tool, and unified configuration management of the software platform is completed by the Framework during deployment.
6) When the configuration of the software platform needs to be updated, the parameters of the platform configuration file are updated, and then the relevant application configuration file of the whole software platform can be updated.
Based on the Framework structure, referring to fig. 9, an embodiment of the present invention provides a unified configuration management method for a software platform, where a specific flow is as follows:
step 900: a configuration management command is received.
Step 901: and after the configuration management command is determined to be valid, reading a pre-stored platform configuration file, and determining the execution type of the configuration management command.
specifically, according to the Framework structure, the platform configuration file includes a platform common parameter and a specific application parameter, and the platform configuration file is used for configuring the common parameter and the application parameter of the software platform.
Step 902: and executing an application configuration flow related to the configuration management command according to the read platform configuration file based on the execution type of the configuration management command and a pre-stored application registry, wherein the application registry is used for configuring various types of application information in the software platform, and the application information comprises an application name and an application deployment position.
Specifically, based on the execution type of the configuration management command and a pre-stored application registry, the application configuration process related to the configuration management command is executed according to the read platform configuration file, which specifically includes the following two situations:
the first case is: if the execution type of the configuration management command is the application type specified by the configuration, the specified application name corresponding to the configuration management command is indexed in the application registry to obtain the specified application deployment position, and the corresponding application configuration file is generated at the specified application deployment position according to the read platform configuration file and the application configuration file template to complete the configuration process.
specifically, a corresponding application configuration file is generated at a specified application deployment position according to the read platform configuration file and the corresponding application configuration file template to complete the configuration process, which is specifically referred to as: and indexing and reading application configuration file templates of all paths at the appointed application deployment position, and generating a corresponding application configuration file at the position of the application configuration file template in the appointed application deployment according to the read platform configuration file so as to complete the configuration process.
the second case is: and if the execution type of the configuration management command is the configuration software platform type, indexing all application names in the application registry to obtain all application deployment positions, and parallelly generating corresponding application configuration files at all the application deployment positions according to the read platform configuration files and the application configuration file templates of all the applications to finish the configuration process.
Specifically, at all the application deployment locations, respective corresponding application configuration files are generated in parallel according to the read platform configuration files and the application configuration file templates of the applications to complete the configuration process, which is specifically referred to as: and indexing and reading the application configuration file templates of all paths at all the application deployment positions, and generating corresponding application configuration files at the application configuration file template positions in all the application deployments in parallel according to the read platform configuration files to complete the configuration process.
Specifically, a corresponding application configuration file is generated at the application deployment position according to the read platform configuration file and the application configuration file template to complete the configuration process, which is specifically referred to as: and acquiring corresponding parameters and original parameter values at the application deployment position according to the read configuration file template, indexing the corresponding original parameter values in the read platform configuration file to acquire new parameter values, and replacing the original parameter values of the corresponding parameters with the new parameter values to generate corresponding application configuration files so as to complete the configuration process.
Based on the foregoing embodiments, referring to fig. 10, an embodiment of the present invention provides a unified configuration management apparatus for a software platform, including a receiving unit 10, a reading unit 11, and a configuration unit 12, where:
a receiving unit 10 for receiving a configuration management command;
A reading unit 11, configured to read a pre-stored platform configuration file after determining that the configuration management command is valid, and determine an execution type of the configuration management command;
The configuration unit 12 is configured to execute an application configuration flow related to the configuration management command according to the read platform configuration file based on the execution type of the configuration management command and a pre-stored application registry, where the application registry is used to configure various types of application information in the software platform, and the application information includes an application name and an application deployment location.
Optionally, the platform configuration file includes platform common parameters and specific application parameters, and the platform configuration file is used for configuring the common parameters and the application parameters of the software platform.
Optionally, when the application configuration flow related to the configuration management command is executed according to the read platform configuration file based on the execution type of the configuration management command and a pre-stored application registry, the configuration unit 12 is specifically configured to:
When the execution type of the configuration management command is a configuration-specified application type, indexing a specified application name corresponding to the configuration management command in the application registry to obtain a specified application deployment position, and generating a corresponding application configuration file at the specified application deployment position according to the read platform configuration file and a corresponding application configuration file template to complete a configuration process;
and when the execution type of the configuration management command is a configuration software platform type, indexing all application names in the application registry to obtain all application deployment positions, and generating corresponding application configuration files in parallel at all the application deployment positions according to the read platform configuration files and the application configuration file templates of all the applications to complete a configuration process.
Optionally, when the specified application deployment location generates a corresponding application configuration file according to the read platform configuration file and the corresponding application configuration file template to complete the configuration process, the configuration unit 12 is specifically configured to:
and indexing and reading application configuration file templates of all paths at the appointed application deployment position, and generating a corresponding application configuration file at the position of the application configuration file template in the appointed application deployment according to the read platform configuration file to complete the configuration process.
Optionally, when all the application deployment locations generate respective corresponding application configuration files in parallel according to the read platform configuration file and the application configuration file template of each application to complete the configuration flow, the configuration unit 12 is specifically configured to:
and indexing and reading the application configuration file templates of all paths at all the application deployment positions, and generating corresponding application configuration files at the application configuration file template positions in all the application deployments in parallel according to the read platform configuration files to complete the configuration process.
optionally, when the application deployment location generates a corresponding application configuration file according to the read platform configuration file and the application configuration file template to complete the configuration process, the configuration unit 12 is specifically configured to:
And acquiring corresponding parameters and original parameter values at the application deployment position according to the read configuration file template, indexing the corresponding original parameter values in the read platform configuration file to acquire new parameter values, and replacing the original parameter values of the corresponding parameters with the new parameter values to generate corresponding application configuration files so as to complete the configuration process.
to sum up, the embodiment of the present invention receives a configuration management command; after determining that the configuration management command is valid, reading a pre-stored platform configuration file, and determining the execution type of the configuration management command; based on the execution type of the configuration management command and a prestored application registry, the application configuration process related to the configuration management command is executed according to the read platform configuration file, so that the platform configuration and the application deployment of the software platform can be isolated from each other, the software platform is independent of any installation and deployment tool, the configuration management of the software platform or specific application and specific position is supported, and the implementation of the configuration management is independent of the deployment interaction step of the software platform.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the invention.
It will be apparent to those skilled in the art that various modifications and variations can be made in the embodiments of the present invention without departing from the spirit or scope of the embodiments of the invention. Thus, if such modifications and variations of the embodiments of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to encompass such modifications and variations.

Claims (10)

1. A unified configuration management method for a software platform is characterized by comprising the following steps:
receiving a configuration management command;
After the configuration management command is determined to be valid, reading a pre-stored platform configuration file, and determining the execution type of the configuration management command;
when the execution type of the configuration management command is a configuration-specified application type, indexing a specified application name corresponding to the configuration management command in an application registry to obtain a specified application deployment position, and generating a corresponding application configuration file at the specified application deployment position according to the read platform configuration file and a corresponding application configuration file template to complete a configuration process; when the execution type of the configuration management command is a configuration software platform type, indexing all application names in the application registry to obtain all application deployment positions, and generating corresponding application configuration files in parallel at all the application deployment positions according to the read platform configuration files and application configuration file templates of all the applications to complete a configuration process, wherein the application registry is used for configuring various types of application information in a software platform, and the application information comprises the application names and the application deployment positions.
2. the method of claim 1, wherein the platform configuration file includes platform common parameters and application-specific parameters, the platform configuration file being used to configure common parameters and application parameters of the software platform.
3. The method according to claim 1, wherein generating a corresponding application configuration file at the specified application deployment location according to the read platform configuration file and the corresponding application configuration file template to complete the configuration process specifically comprises:
And indexing and reading application configuration file templates of all paths at the appointed application deployment position, and generating a corresponding application configuration file at the position of the application configuration file template in the appointed application deployment according to the read platform configuration file to complete the configuration process.
4. The method according to claim 1, wherein parallel generating respective corresponding application configuration files at all application deployment locations according to the read platform configuration files and the application configuration file templates of the applications to complete the configuration process specifically comprises:
And indexing and reading the application configuration file templates of all paths at all the application deployment positions, and generating corresponding application configuration files at the application configuration file template positions in all the application deployments in parallel according to the read platform configuration files to complete the configuration process.
5. the method according to claim 3 or 4, wherein generating a corresponding application configuration file at the application deployment location according to the read platform configuration file and the application configuration file template to complete the configuration process specifically includes:
And acquiring corresponding parameters and original parameter values at the application deployment position according to the read configuration file template, indexing the corresponding original parameter values in the read platform configuration file to acquire new parameter values, and replacing the original parameter values of the corresponding parameters with the new parameter values to generate corresponding application configuration files so as to complete the configuration process.
6. a unified configuration management apparatus for a software platform, comprising:
A receiving unit for receiving a configuration management command;
the reading unit is used for reading a pre-stored platform configuration file after the configuration management command is determined to be valid, and determining the execution type of the configuration management command;
A configuration unit, configured to index, when the execution type of the configuration management command is a configuration-specified application type, a specified application name corresponding to the configuration management command in an application registry to obtain a specified application deployment location, and generate, at the specified application deployment location, a corresponding application configuration file according to the read platform configuration file and a corresponding application configuration file template to complete a configuration flow; when the execution type of the configuration management command is a configuration software platform type, indexing all application names in the application registry to obtain all application deployment positions, and generating corresponding application configuration files in parallel at all the application deployment positions according to the read platform configuration files and application configuration file templates of all the applications to complete a configuration process, wherein the application registry is used for configuring various types of application information in a software platform, and the application information comprises the application names and the application deployment positions.
7. The apparatus of claim 6, wherein the platform configuration file comprises platform common parameters and application-specific parameters, the platform configuration file to configure common parameters and application parameters of a software platform.
8. The apparatus according to claim 6, wherein when the specified application deployment location generates a corresponding application configuration file according to the read platform configuration file and the corresponding application configuration file template to complete the configuration process, the configuration unit is specifically configured to:
And indexing and reading application configuration file templates of all paths at the appointed application deployment position, and generating a corresponding application configuration file at the position of the application configuration file template in the appointed application deployment according to the read platform configuration file to complete the configuration process.
9. The apparatus according to claim 6, wherein when all the application deployment locations generate respective corresponding application configuration files in parallel according to the read platform configuration file and the application configuration file template of each application to complete the configuration flow, the configuration unit is specifically configured to:
And indexing and reading the application configuration file templates of all paths at all the application deployment positions, and generating corresponding application configuration files at the application configuration file template positions in all the application deployments in parallel according to the read platform configuration files to complete the configuration process.
10. the apparatus according to claim 8 or 9, wherein when the application deployment location generates a corresponding application configuration file according to the read platform configuration file and the application configuration file template to complete the configuration process, the configuration unit is specifically configured to:
And acquiring corresponding parameters and original parameter values at the application deployment position according to the read configuration file template, indexing the corresponding original parameter values in the read platform configuration file to acquire new parameter values, and replacing the original parameter values of the corresponding parameters with the new parameter values to generate corresponding application configuration files so as to complete the configuration process.
CN201510549371.XA 2015-08-31 2015-08-31 unified configuration management method and device for software platform Active CN106484452B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510549371.XA CN106484452B (en) 2015-08-31 2015-08-31 unified configuration management method and device for software platform

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510549371.XA CN106484452B (en) 2015-08-31 2015-08-31 unified configuration management method and device for software platform

Publications (2)

Publication Number Publication Date
CN106484452A CN106484452A (en) 2017-03-08
CN106484452B true CN106484452B (en) 2019-12-06

Family

ID=58235603

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510549371.XA Active CN106484452B (en) 2015-08-31 2015-08-31 unified configuration management method and device for software platform

Country Status (1)

Country Link
CN (1) CN106484452B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107402784B (en) * 2017-07-07 2021-06-04 北京小米移动软件有限公司 Application management method and application management device
CN110377367B (en) * 2019-07-24 2022-05-03 广州虎牙科技有限公司 Component configuration method and device, electronic terminal and computer readable storage medium
CN112148349B (en) * 2020-07-03 2024-03-15 上海金融期货信息技术有限公司 Cross-platform instruction and system for configuring unified interface
CN114924806B (en) * 2022-04-07 2024-03-26 南京慧尔视软件科技有限公司 Dynamic synchronization method, device, equipment and medium for configuration information

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101901267A (en) * 2010-08-02 2010-12-01 中兴通讯股份有限公司 Method and device for managing configuration files
CN102073488A (en) * 2009-11-20 2011-05-25 中兴通讯股份有限公司 Methods and devices for integrating and installing software
CN102455915A (en) * 2010-10-18 2012-05-16 卓望数码技术(深圳)有限公司 Method for automatically configuring distributed system, and server

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102073488A (en) * 2009-11-20 2011-05-25 中兴通讯股份有限公司 Methods and devices for integrating and installing software
CN101901267A (en) * 2010-08-02 2010-12-01 中兴通讯股份有限公司 Method and device for managing configuration files
CN102455915A (en) * 2010-10-18 2012-05-16 卓望数码技术(深圳)有限公司 Method for automatically configuring distributed system, and server

Also Published As

Publication number Publication date
CN106484452A (en) 2017-03-08

Similar Documents

Publication Publication Date Title
US9996333B2 (en) Apparatus and method for automating the installation and configuration of infrastructure
CN105487892B (en) GIS service deployment system in a kind of cloud under Linux environment
CN104484169B (en) A kind of Android software user interface creating method, system and application system
CN107733985B (en) Method and device for deploying functional components of cloud computing system
EP3152650B1 (en) High-speed application for installation on mobile devices for permitting remote configuration of such mobile devices
CN106484452B (en) unified configuration management method and device for software platform
US11586426B2 (en) Service release tool
CN104090776A (en) Software development method and system
US20190026097A1 (en) Model based upgrade campaign generation
CN104246702A (en) Workflow compilation
CN104881311B (en) The judgment method and device of a kind of edition compatibility
CN105678118B (en) A kind of software version generation method and device containing digital certificate
CN105117329A (en) Application automatic online system and method
CN112269588B (en) Algorithm upgrading method, device, terminal and computer readable storage medium
CN113760462A (en) Method and device for constructing verification environment of dispatching automation system
CN107480050A (en) A kind of method of testing of automatic test renewal bag
US20230393825A1 (en) Automated software deployment techniques
CN105867892A (en) Centralized management method and system of multi-platform development
CN105867894A (en) Automatic creating method and system of development environment
WO2017088547A1 (en) Data upgrading method and apparatus
CN114185557A (en) Software product deployment method, device, medium and electronic equipment
CN114035786A (en) Dependency-based micro-front-end compatible migration method and system
CN113886008A (en) Virtual machine management method, system, device and medium
CN112181403A (en) Development, operation and maintenance integration realization method, device and equipment and readable storage medium
CN105068796A (en) Pushing method for patch program set and pushing system for patch program set

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant