CN117609077A - Method and device for rechecking configuration parameters, electronic equipment and storage medium - Google Patents

Method and device for rechecking configuration parameters, electronic equipment and storage medium Download PDF

Info

Publication number
CN117609077A
CN117609077A CN202311649527.2A CN202311649527A CN117609077A CN 117609077 A CN117609077 A CN 117609077A CN 202311649527 A CN202311649527 A CN 202311649527A CN 117609077 A CN117609077 A CN 117609077A
Authority
CN
China
Prior art keywords
text file
rechecking
file
production
feedback record
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
Application number
CN202311649527.2A
Other languages
Chinese (zh)
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.)
Agricultural Bank of China
Original Assignee
Agricultural Bank of China
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 Agricultural Bank of China filed Critical Agricultural Bank of China
Priority to CN202311649527.2A priority Critical patent/CN117609077A/en
Publication of CN117609077A publication Critical patent/CN117609077A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3604Software analysis for verifying properties of programs
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation
    • G06F8/63Image based installation; Cloning; Build to order
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Computer Security & Cryptography (AREA)
  • Stored Programmes (AREA)

Abstract

The application discloses a rechecking method and device for configuration parameters, electronic equipment and a storage medium, wherein the method and the device are applied to the electronic equipment, and are particularly used for constructing a deployment situation text file, an environment parameter text file and a feedback record text file; rechecking a production mirror image yaml file of an application system to be produced based on the deployment condition text file, and inputting a first rechecking result into a feedback record text file; rechecking the component application information of the production mirror image yaml file based on the deployment request text file, and inputting a second rechecking result into the feedback record text file; and checking the environmental parameters of the production mirror image yaml file based on the environmental parameter text file, and inputting a third checking result into the feedback record text file. By the scheme, the rechecking of the configuration parameters of the application system to be put into production can be realized based on the system, the problems that the manual mode is easy to produce errors and the working efficiency is low are avoided, and therefore the influence of normal development of online business is avoided.

Description

Method and device for rechecking configuration parameters, electronic equipment and storage medium
Technical Field
The present invention relates to the field of software technologies, and in particular, to a method, an apparatus, an electronic device, and a storage medium for checking configuration parameters.
Background
The production of application systems in related industries is a complex system engineering, and due to the particularity of production environments, a plurality of application images can use a component image resource at the same time, so that production personnel need to carefully review each configuration parameter of a production package before production. However, when the deployment operation is performed, the configuration parameters are often or even hundreds, a lot of time is consumed by only manually checking, and the key point is that the manual checking is easy to make mistakes, thereby affecting the normal development of the online service.
Disclosure of Invention
In view of this, the present application provides a method, an apparatus, an electronic device, and a storage medium for rechecking configuration parameters before software delivery, so as to improve the verification efficiency and avoid affecting the normal development of on-line services.
In order to achieve the above object, the following solutions have been proposed:
the method for rechecking the configuration parameters is applied to the electronic equipment and is used for rechecking a plurality of configuration parameters of an application system to be put into production before the application system to be put into production, and the method for checking the operation comprises the following steps:
constructing a deployment situation text file, an environment parameter text file and a feedback record text file;
rechecking a production mirror image yaml file of the application system to be produced based on the deployment condition text file, and inputting a first rechecking result into the feedback record text file;
rechecking the component application information of the production mirror image yaml file based on the deployment request text file, and inputting a second rechecking result into the feedback record text file;
and checking the environmental parameters of the production mirror image yaml file based on the environmental parameter text file, and inputting a third checking result into the feedback record text file.
Optionally, the deployment request text file stores part or all of an application system id, an environment id, an application system version, an application system production date, a version latest modification date, an associated component package 1id and an associated component package 2 id; the environment parameter text file stores part or all of an environment id, a component package 1id, a component package 2id, an environment parameter 1id and an environment parameter 2 id; the fields of the feedback record text record include a check phase, an error key, and an error value.
Optionally, the rechecking the commissioning mirror image yaml file to be commissioned and applied to the system based on the deployment situation text file, and inputting a first rechecking result into the feedback record text file, including the steps of:
performing character string scanning and format conversion on the production mirror image yaml file and the main application yaml file to obtain two files to be compared;
dividing the two files to be compared into key value pairs and storing the key value pairs into maps;
performing key value comparison based on the map to obtain the first rechecking result;
if error information exists in the first rechecking result, the error information is input into the feedback record text file.
Optionally, the rechecking the component application information of the production mirror image yaml file based on the deployment request text file, and inputting a second rechecking result into the feedback record text file, including the steps of:
scanning the production environment of the production mirror image yaml assembly to obtain assembly application information of the production environment;
acquiring application information of a component configured in the current production environment;
comparing the application information of the two components to obtain the second rechecking result;
if error information exists in the second rechecking result, the error information is input into the feedback record text file.
Optionally, the checking the environmental parameter of the production mirror image yaml file based on the environmental parameter text file, and inputting a third checking result into the feedback record text file, including the steps of:
acquiring environmental parameters of the production mirror image yaml assembly;
acquiring environmental parameters of the current production environment;
comparing the two environmental parameters to obtain the third rechecking result;
if error information exists in the third rechecking result, the error information is input into the feedback record text file.
Optionally, the method further comprises the steps of:
and if error information exists in the feedback record text file, correcting the configuration parameters based on the error information.
The utility model provides a configuration parameter's review device, is applied to electronic equipment for treat that application system of putting into production carries out review to its multiple configuration parameter before putting into production, put into production verifying attachment includes:
the file construction module is configured to construct a deployment situation text file, an environment parameter text file and a feedback record text file;
the first rechecking module is configured to recheck the production mirror image yaml file of the application system to be produced based on the deployment condition text file, and input a first rechecking result into the feedback record text file;
the second rechecking module is configured to recheck the component application information of the production mirror image yaml file based on the deployment request text file, and input a second rechecking result into the feedback record text file;
and the third rechecking module is configured to recheck the environmental parameters of the production mirror image yaml file based on the environmental parameter text file, and input a third rechecking result into the feedback record text file.
Optionally, the method further comprises:
and the error correction module is configured to correct the plurality of configuration parameters based on the error information if the error information exists in the feedback record text file.
An electronic device comprising at least one processor and a memory coupled to the processor, wherein:
the memory is used for storing a computer program or instructions;
the processor is configured to execute the computer program or instructions to cause the electronic device to implement a method of rechecking configuration parameters as described above.
A storage medium for application to an electronic device, the storage medium carrying one or more computer programs executable by the electronic device to cause the electronic device to implement a method of rechecking configuration parameters as described above.
From the above technical solution, the present application discloses a method, an apparatus, an electronic device, and a storage medium for checking configuration parameters, where the method and the apparatus are applied to the electronic device, specifically, construct a deployment scenario text file, an environment parameter text file, and a feedback record text file; rechecking a production mirror image yaml file of an application system to be produced based on the deployment condition text file, and inputting a first rechecking result into a feedback record text file; rechecking the component application information of the production mirror image yaml file based on the deployment request text file, and inputting a second rechecking result into the feedback record text file; and checking the environmental parameters of the production mirror image yaml file based on the environmental parameter text file, and inputting a third checking result into the feedback record text file. By the scheme, the rechecking of the configuration parameters of the application system to be put into production can be realized based on the system, the problems that the manual mode is easy to produce errors and the working efficiency is low are avoided, and therefore the influence of normal development of online business is avoided.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flowchart of a method for checking configuration parameters according to an embodiment of the present application;
FIG. 2 is a flow chart of another method for checking configuration parameters according to an embodiment of the present application;
FIG. 3 is a block diagram of a device for checking configuration parameters according to an embodiment of the present application;
FIG. 4 is a block diagram of another configuration parameter review device according to an embodiment of the present application;
fig. 5 is a block diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are only some, but not all, of the embodiments of the present application. All other embodiments, which can be made by one of ordinary skill in the art based on the embodiments herein without making any inventive effort, are intended to be within the scope of the present application.
Fig. 1 is a flowchart of a method for checking configuration parameters according to an embodiment of the present application.
As shown in fig. 1, the rechecking method provided in this embodiment is applied to an electronic device, and is used for rechecking configuration parameters of a corresponding application system to be commissioned, where the electronic device may be understood as a computer, a server or a cluster with data computing capability and information processing capability, and the rechecking method specifically includes the following steps:
s1, constructing a deployment situation text file, an environment parameter text file and a feedback record text file.
The storage field in the deployment scenario text file comprises an application system id, an environment id, an application system version, an application system production date, a version latest modification date, an association component package 1id, an association component package 2id. The environment id comprises a test environment, a pre-release environment and a production environment, the version of the application system represents the base line number of the DevOps package, the related component package id respectively represents the components and versions required by the system when releasing, the package deployment operation of a plurality of application systems is comprehensively scanned through scripts, and the results are stored in the file in columns.
The stored fields in the environment parameter text file are as follows: environment id, package 1id, package 2id.
The fields recorded in the feedback record text file include a verification stage, an error key, and an error value for storing the difference result in the subsequent verification process.
S2, rechecking the production mirror image yaml file based on the deployment request text file.
When the system generates a demand or the user inputs a corresponding recheck request: firstly, a production mirror image yaml file of an application system to be rechecked in a production product library is pulled, because most key information of the yaml file can be reflected by the yaml file, meanwhile, the probability of manual modification can be reduced to the greatest extent in a form of progressive promotion of packing deployment operation, and therefore, main application information verification is mainly conducted on the main application yaml file.
And then, carrying out character string scanning and format conversion on the pulled production mirror image yaml file and the main application yaml file to be promoted, storing the segmented key value pairs into a map, and comparing the map to obtain a first rechecking result. If there is an error, the error information is stored in the feedback record file by column.
S3, rechecking the application information of the component based on the deployment request text file.
And rechecking the component application information in the production mirror image yaml file based on the deployment request file, thereby obtaining a second rechecking result. Specifically, the environment package is scanned first, the package and the latest version required by the application configured in the production environment are obtained, and the deployment condition file is inquired according to the application system id and the environment id. In the application, the ES engine is called to perform quick search.
And then, acquiring package information of the current system configuration on the test environment, comparing corresponding field results, and if the information is inconsistent, failing to pass the application verification of the package, thereby obtaining the second rechecking result. Such as where there is an error message stored in an error log file.
S4, rechecking the environmental parameters based on the environmental parameter text file.
And rechecking the environmental parameters in the production mirror image ymal file based on the related information in the environmental parameter text file, thereby obtaining a third rechecking result. Firstly, scanning a production mirror image ymal file to obtain environmental parameters in the file; then, acquiring environmental parameters of the current production environment; then, comparing the two environmental parameters to obtain a third rechecking result; finally, if the third checking result has error information, the error information is stored in an error record file.
From the above technical solution, it can be seen that this embodiment provides a method for rechecking configuration parameters, where the method is applied to electronic devices, specifically, constructing a deployment scenario text file, an environment parameter text file, and a feedback record text file; rechecking a production mirror image yaml file of an application system to be produced based on the deployment condition text file, and inputting a first rechecking result into a feedback record text file; rechecking the component application information of the production mirror image yaml file based on the deployment request text file, and inputting a second rechecking result into the feedback record text file; and checking the environmental parameters of the production mirror image yaml file based on the environmental parameter text file, and inputting a third checking result into the feedback record text file. By the scheme, the rechecking of the configuration parameters of the application system to be put into production can be realized based on the system, the problems that the manual mode is easy to produce errors and the working efficiency is low are avoided, and therefore the influence of normal development of online business is avoided.
In another embodiment of the present application, the following steps are further included, as shown in fig. 2.
S5, correcting the configuration parameters based on the error information.
If the error information exists in the rechecking result, the corresponding configuration parameters are modified based on the corresponding error information, specifically, the production mirror yaml file, the package deployment operation configuration and the parameter configuration are modified according to the checked rechecking result. Through the operation, not only can the rechecking efficiency be improved, but also the modification efficiency is improved.
The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
Although operations are depicted in a particular order, this should not be understood as requiring that such operations be performed in the particular order shown or in sequential order. In certain circumstances, multitasking and parallel processing may be advantageous.
It should be understood that the various steps recited in the method embodiments of the present disclosure may be performed in a different order and/or performed in parallel. Furthermore, method embodiments may include additional steps and/or omit performing the illustrated steps. The scope of the present disclosure is not limited in this respect.
Computer program code for carrying out operations of the present disclosure may be written in one or more programming languages, including, but not limited to, an object oriented programming language such as Java, smalltalk, C ++ and conventional procedural programming languages, such as the C-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 case of remote computers, the remote computer may be connected to the user computer through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computer.
Fig. 3 is a block diagram of a checking device for configuration parameters according to an embodiment of the present application.
As shown in fig. 3, the review device provided in this embodiment is applied to an electronic device, and is used for review of configuration parameters of a corresponding application system to be commissioned, where the electronic device may be understood as a computer, a server or a cluster with data computing capability and information processing capability, and the review device specifically includes a file construction module 10, a first review module 20, a second review module 30 and a third review module 40.
The file construction module is used for constructing a deployment situation text file, an environment parameter text file and a feedback record text file.
The storage field in the deployment scenario text file comprises an application system id, an environment id, an application system version, an application system production date, a version latest modification date, an association component package 1id, an association component package 2id. The environment id comprises a test environment, a pre-release environment and a production environment, the version of the application system represents the base line number of the DevOps package, the related component package id respectively represents the components and versions required by the system when releasing, the package deployment operation of a plurality of application systems is comprehensively scanned through scripts, and the results are stored in the file in columns.
The stored fields in the environment parameter text file are as follows: environment id, package 1id, package 2id.
The fields recorded in the feedback record text file include a verification stage, an error key, and an error value for storing the difference result in the subsequent verification process.
The first rechecking file is used for rechecking the production mirror image yaml file based on the deployment request text file.
When the system generates a demand or the user inputs a corresponding recheck request: firstly, a production mirror image yaml file of an application system to be rechecked in a production product library is pulled, because most key information of the yaml file can be reflected by the yaml file, meanwhile, the probability of manual modification can be reduced to the greatest extent in a form of progressive promotion of packing deployment operation, and therefore, main application information verification is mainly conducted on the main application yaml file.
And then, carrying out character string scanning and format conversion on the pulled production mirror image yaml file and the main application yaml file to be promoted, storing the segmented key value pairs into a map, and comparing the map to obtain a first rechecking result. If there is an error, the error information is stored in the feedback record file by column.
The second review file is used for reviewing the component application information based on the deployment request text file.
And rechecking the component application information in the production mirror image yaml file based on the deployment request file, thereby obtaining a second rechecking result. Specifically, the environment package is scanned first, the package and the latest version required by the application configured in the production environment are obtained, and the deployment condition file is inquired according to the application system id and the environment id. In the application, the ES engine is called to perform quick search.
And then, acquiring package information of the current system configuration on the test environment, comparing corresponding field results, and if the information is inconsistent, failing to pass the application verification of the package, thereby obtaining the second rechecking result. Such as where there is an error message stored in an error log file.
And the third review file is used for conducting review on the environment parameters based on the environment parameter text file.
And rechecking the environmental parameters in the production mirror image ymal file based on the related information in the environmental parameter text file, thereby obtaining a third rechecking result. Firstly, scanning a production mirror image ymal file to obtain environmental parameters in the file; then, acquiring environmental parameters of the current production environment; then, comparing the two environmental parameters to obtain a third rechecking result; finally, if the third checking result has error information, the error information is stored in an error record file.
From the above technical solution, it can be seen that this embodiment provides a device for checking configuration parameters, where the device is applied to electronic equipment, specifically, to construct a deployment scenario text file, an environment parameter text file, and a feedback record text file; rechecking a production mirror image yaml file of an application system to be produced based on the deployment condition text file, and inputting a first rechecking result into a feedback record text file; rechecking the component application information of the production mirror image yaml file based on the deployment request text file, and inputting a second rechecking result into the feedback record text file; and checking the environmental parameters of the production mirror image yaml file based on the environmental parameter text file, and inputting a third checking result into the feedback record text file. By the scheme, the rechecking of the configuration parameters of the application system to be put into production can be realized based on the system, the problems that the manual mode is easy to produce errors and the working efficiency is low are avoided, and therefore the influence of normal development of online business is avoided.
In another embodiment of the present application, an error correction module 50 is also included, as shown in FIG. 4.
The error correction module is used for correcting the configuration parameters based on the error information.
If the error information exists in the rechecking result, the corresponding configuration parameters are modified based on the corresponding error information, specifically, the production mirror yaml file, the package deployment operation configuration and the parameter configuration are modified according to the checked rechecking result. Through the operation, not only can the rechecking efficiency be improved, but also the modification efficiency is improved.
The units involved in the embodiments of the present disclosure may be implemented by means of software, or may be implemented by means of hardware. The name of the unit does not in any way constitute a limitation of the unit itself, for example the first acquisition unit may also be described as "unit acquiring at least two internet protocol addresses".
The functions described above herein may be performed, at least in part, by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: a Field Programmable Gate Array (FPGA), an Application Specific Integrated Circuit (ASIC), an Application Specific Standard Product (ASSP), a system on a chip (SOC), a Complex Programmable Logic Device (CPLD), and the like.
Fig. 5 is a block diagram of an electronic device according to an embodiment of the present application.
Referring to fig. 5, a schematic diagram of a configuration of an electronic device suitable for use in implementing embodiments of the present disclosure is shown. The terminal devices in the embodiments of the present disclosure may include, but are not limited to, mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), in-vehicle terminals (e.g., in-vehicle navigation terminals), and the like, and stationary terminals such as digital TVs, desktop computers, and the like. The electronic device is merely an example and should not impose any limitations on the functionality and scope of use of embodiments of the present disclosure.
The electronic device may include a processing means (e.g., a central processor, a graphics processor, etc.) 501 that may perform various appropriate actions and processes in accordance with programs stored in a read-only memory ROM502 or loaded from an input means 506 into a random access memory RAM 503. In the RAM, various programs and data required for the operation of the electronic device are also stored. The processing device, ROM, and RAM are connected to each other by bus 504. An input/output (I/O) interface 505 is also connected to bus 504.
In general, the following devices may be connected to the I/O interface: input devices including, for example, touch screens, touch pads, keyboards, mice, cameras, microphones, accelerometers, gyroscopes, etc.; an output device 507 including, for example, a Liquid Crystal Display (LCD), a speaker, a vibrator, and the like; storage 508 including, for example, magnetic tape, hard disk, etc.; and communication means 509. The communication means 509 may allow the electronic device to communicate with other devices wirelessly or by wire to exchange data. While an electronic device having various means is shown in the figures, it is to be understood that not all of the illustrated means are required to be implemented or provided. More or fewer devices may be implemented or provided instead.
The present embodiment also provides a computer-readable storage medium embodiment.
The computer readable storage medium is applied to the electronic equipment and is loaded with one or more programs, and when the one or more programs are executed by the electronic equipment, the electronic equipment constructs a deployment situation text file, an environment parameter text file and a feedback record text file; rechecking a production mirror image yaml file of an application system to be produced based on the deployment condition text file, and inputting a first rechecking result into a feedback record text file; rechecking the component application information of the production mirror image yaml file based on the deployment request text file, and inputting a second rechecking result into the feedback record text file; and checking the environmental parameters of the production mirror image yaml file based on the environmental parameter text file, and inputting a third checking result into the feedback record text file. By the scheme, the rechecking of the configuration parameters of the application system to be put into production can be realized based on the system, the problems that the manual mode is easy to produce errors and the working efficiency is low are avoided, and therefore the influence of normal development of online business is avoided. It should be noted that the computer readable medium described in the present disclosure may be a computer readable signal medium or a computer readable storage medium, or any combination of the two. The computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples of the computer-readable storage medium may include, but are not limited to: 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 disclosure, 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. In the present disclosure, however, the computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, with the computer-readable program code embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. 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: electrical wires, fiber optic cables, RF (radio frequency), and the like, or any suitable combination of the foregoing.
In this specification, each embodiment is described in a progressive manner, and each embodiment is mainly described by differences from other embodiments, and identical and similar parts between the embodiments are all enough to be referred to each other.
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. It is therefore intended that the following claims be interpreted as including the preferred embodiment and all such alterations and modifications as fall within the scope of the embodiments of the invention.
Finally, it is further noted that relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or terminal 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 terminal. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article or terminal device comprising the element.
The foregoing has outlined rather broadly the more detailed description of the invention in order that the detailed description of the invention that follows may be better understood, and in order that the present principles and embodiments may be better understood; meanwhile, as those skilled in the art will have variations in the specific embodiments and application scope in accordance with the ideas of the present invention, the present description should not be construed as limiting the present invention in view of the above.

Claims (10)

1. The method for rechecking the configuration parameters is applied to the electronic equipment and is used for rechecking a plurality of configuration parameters of an application system to be put into production before the application system is put into production, and is characterized by comprising the following steps:
constructing a deployment situation text file, an environment parameter text file and a feedback record text file;
rechecking a production mirror image yaml file of the application system to be produced based on the deployment condition text file, and inputting a first rechecking result into the feedback record text file;
rechecking the component application information of the production mirror image yaml file based on the deployment request text file, and inputting a second rechecking result into the feedback record text file;
and checking the environmental parameters of the production mirror image yaml file based on the environmental parameter text file, and inputting a third checking result into the feedback record text file.
2. The rechecking method as claimed in claim 1, wherein the deployment request text file stores part or all of an application system id, an environment id, an application system version, an application system production date, a version latest modification date, an association component package 1id and an association component package 2 id; the environment parameter text file stores part or all of an environment id, a component package 1id, a component package 2id, an environment parameter 1id and an environment parameter 2 id; the fields of the feedback record text record include a check phase, an error key, and an error value.
3. The rechecking method according to claim 1, wherein the rechecking the commissioning mirror image yaml file to be commissioned and applied to the system based on the deployment situation text file, and inputting a first rechecking result into the feedback record text file, comprises the steps of:
performing character string scanning and format conversion on the production mirror image yaml file and the main application yaml file to obtain two files to be compared;
dividing the two files to be compared into key value pairs and storing the key value pairs into maps;
performing key value comparison based on the map to obtain the first rechecking result;
if error information exists in the first rechecking result, the error information is input into the feedback record text file.
4. The rechecking method as claimed in claim 1, wherein the rechecking the component application information of the production mirror yaml file based on the deployment request text file, and inputting a second rechecking result into the feedback record text file, comprises the steps of:
scanning the production environment of the production mirror image yaml assembly to obtain assembly application information of the production environment;
acquiring application information of a component configured in the current production environment;
comparing the application information of the two components to obtain the second rechecking result;
if error information exists in the second rechecking result, the error information is input into the feedback record text file.
5. The rechecking method as claimed in claim 1, wherein the rechecking the environmental parameters of the production mirror yaml file based on the environmental parameter text file, and inputting a third rechecking result into the feedback record text file, comprises the steps of:
acquiring environmental parameters of the production mirror image yaml assembly;
acquiring environmental parameters of the current production environment;
comparing the two environmental parameters to obtain the third rechecking result;
if error information exists in the third rechecking result, the error information is input into the feedback record text file.
6. The configuration parameter review method according to any one of claims 1 to 5, characterized by further comprising the steps of:
and if error information exists in the feedback record text file, correcting the configuration parameters based on the error information.
7. The utility model provides a configuration parameter's review device, is applied to electronic equipment for treating the application system of putting into production and go on checking its multiple configuration parameter before putting into production, its characterized in that, put into production verifying attachment includes:
the file construction module is configured to construct a deployment situation text file, an environment parameter text file and a feedback record text file;
the first rechecking module is configured to recheck the production mirror image yaml file of the application system to be produced based on the deployment condition text file, and input a first rechecking result into the feedback record text file;
the second rechecking module is configured to recheck the component application information of the production mirror image yaml file based on the deployment request text file, and input a second rechecking result into the feedback record text file;
and the third rechecking module is configured to recheck the environmental parameters of the production mirror image yaml file based on the environmental parameter text file, and input a third rechecking result into the feedback record text file.
8. The configuration parameter review device of claim 7, further comprising:
and the error correction module is configured to correct the plurality of configuration parameters based on the error information if the error information exists in the feedback record text file.
9. An electronic device comprising at least one processor and a memory coupled to the processor, wherein:
the memory is used for storing a computer program or instructions;
the processor is configured to execute the computer program or instructions to cause the electronic device to implement the method for rechecking configuration parameters according to any one of claims 1 to 6.
10. A storage medium for application to an electronic device, wherein the storage medium carries one or more computer programs executable by the electronic device to cause the electronic device to implement a method of rechecking configuration parameters as claimed in any one of claims 1 to 6.
CN202311649527.2A 2023-12-04 2023-12-04 Method and device for rechecking configuration parameters, electronic equipment and storage medium Pending CN117609077A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311649527.2A CN117609077A (en) 2023-12-04 2023-12-04 Method and device for rechecking configuration parameters, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311649527.2A CN117609077A (en) 2023-12-04 2023-12-04 Method and device for rechecking configuration parameters, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN117609077A true CN117609077A (en) 2024-02-27

Family

ID=89954524

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311649527.2A Pending CN117609077A (en) 2023-12-04 2023-12-04 Method and device for rechecking configuration parameters, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN117609077A (en)

Similar Documents

Publication Publication Date Title
CN112036824A (en) Business approval method, system, storage medium and electronic equipment
CN111555940B (en) Client test method and device, electronic equipment and computer readable storage medium
CN111679990B (en) Test data generation method and device, readable medium and electronic equipment
CN112684968A (en) Page display method and device, electronic equipment and computer readable medium
CN112965761B (en) Data processing method, system, electronic equipment and storage medium
CN110704833A (en) Data permission configuration method, device, electronic device and storage medium
CN111857720B (en) User interface state information generation method and device, electronic equipment and medium
CN111309304B (en) Method, device, medium and electronic equipment for generating IDL file
CN111258998A (en) Data verification method, device, medium and electronic equipment
CN110888773B (en) Method, device, medium and electronic equipment for acquiring thread identification
CN110515909B (en) File storage method and device, electronic equipment and computer storage medium
CN111198853B (en) Data processing method, device, electronic equipment and computer readable storage medium
CN111177260A (en) Database remote copying method and device and electronic equipment
CN111367791B (en) Method, device, medium and electronic equipment for generating test case
CN117609077A (en) Method and device for rechecking configuration parameters, electronic equipment and storage medium
CN111460020B (en) Method, device, electronic equipment and medium for resolving message
CN113656050B (en) Method and apparatus for generating version number
CN113704079A (en) Interface testing method and device based on Protobuf
CN111897827B (en) Data updating method and system for data warehouse and electronic equipment
CN111367555B (en) Assertion method, assertion device, electronic equipment and computer readable medium
CN116561015B (en) Map application testing method, electronic device and computer readable medium
CN111399902B (en) Client source file processing method and device, readable medium and electronic equipment
CN116775001A (en) Method, device, electronic equipment and storage medium for processing application program
CN115344301A (en) Configuration file checking method and device, electronic equipment and storage medium
CN116501597A (en) Code detection method, device, equipment and storage medium

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