CN112445542A - System environment configuration comparison method, device, equipment and storage medium - Google Patents

System environment configuration comparison method, device, equipment and storage medium Download PDF

Info

Publication number
CN112445542A
CN112445542A CN202011343862.6A CN202011343862A CN112445542A CN 112445542 A CN112445542 A CN 112445542A CN 202011343862 A CN202011343862 A CN 202011343862A CN 112445542 A CN112445542 A CN 112445542A
Authority
CN
China
Prior art keywords
configuration list
configuration
environment
service system
detail data
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
CN202011343862.6A
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.)
Ping An Puhui Enterprise Management Co Ltd
Original Assignee
Ping An Puhui Enterprise Management 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 Ping An Puhui Enterprise Management Co Ltd filed Critical Ping An Puhui Enterprise Management Co Ltd
Priority to CN202011343862.6A priority Critical patent/CN112445542A/en
Publication of CN112445542A publication Critical patent/CN112445542A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • G06F9/4451User profiles; Roaming

Abstract

The application is applicable to the technical field of computer software, and provides a method, a device, equipment and a storage medium for comparing system environment configuration, wherein the method comprises the following steps: acquiring a first configuration list to be compared in a first service system, wherein the first configuration list to be compared is a configuration list of a system environment appointed by the service system during version updating; loading a second configuration list corresponding to the acquired reference environment from the first service system and/or a second service system associated with the first service system service through a preset open type calling interface; and comparing the first configuration list with the second configuration list to obtain difference detail data between the first configuration list and the second configuration list, and generating a difference report according to the difference detail data. The system environments of a series of service systems which are mutually associated are rapidly configured and compared, the configuration difference among the system environments is automatically found, the efficiency is high, and the situation that the environments are unavailable due to mismatching, missing configuration and the like is avoided.

Description

System environment configuration comparison method, device, equipment and storage medium
Technical Field
The present application relates to the field of computer software technologies, and in particular, to a method, an apparatus, a device, and a storage medium for comparing system environment configurations.
Background
With the development of computer technology, online services are more and more popular, and generally one service spans a plurality of business systems, so that an inseparable association relationship between the business systems is formed. During the process of deployment, upgrade, operation or maintenance, the system needs to perform the operation of environment synchronous configuration. Under the condition that a plurality of business systems have an association relationship, the environments of development, testing and the like of each business system are various and the involved configuration types are various, so that how to effectively manage various system environments and multi-type configurations in each business system and quickly analyze the configuration difference between the system environments in each business system is a troublesome problem faced by system operation and maintenance personnel at present. At present, the existing method for comparing the environmental difference of the system needs to compare service systems one by one, which is inefficient and difficult to avoid the mismatch and missing, which can cause the problem of unavailable system environment and affect the normal release of the system version.
Disclosure of Invention
In view of this, embodiments of the present application provide a method, an apparatus, a device, and a storage medium for comparing system environment configurations, which can implement rapid configuration comparison of system environments of a series of service systems associated with each other, improve efficiency of differentiated configuration comparison between the service systems, and effectively reduce an environment unavailability problem caused by environment configuration differences in the service systems.
A first aspect of the embodiments of the present application provides a method for comparing system environment configurations, including:
acquiring a first configuration list to be compared in a first service system, wherein the first configuration list to be compared is a configuration list of a system environment appointed by the service system during version updating;
loading and obtaining a second configuration list corresponding to the reference environment from the first service system and/or a second service system associated with the first service system service through a preset open type calling interface;
comparing the first configuration list with the second configuration list to obtain difference detail data between the first configuration list and the second configuration list, and generating a differentiation report according to the difference detail data.
With reference to the first aspect, in a first possible implementation manner of the first aspect, in the step of comparing the first configuration list with the second configuration list, obtaining difference detail data between the first configuration list and the second configuration list, and generating a difference report according to the difference detail data, the difference detail data includes:
an environment configuration item that is present in the first configuration list and not present in the second configuration list; and/or
Environmental configuration items that are not present in the first configuration list but present in the second configuration list; and/or
And the first configuration list and the second configuration list are both provided with environment configuration items with different corresponding parameter values.
With reference to the first aspect or the first possible implementation manner of the first aspect, in a second possible implementation manner of the first aspect, the step of comparing the first configuration list with the second configuration list to obtain difference detail data between the first configuration list and the second configuration list, and generating a differential report according to the difference detail data further includes:
judging whether the environment configuration items in the difference detail data influence the availability of the system environment according to a preset judgment rule;
and deleting environment configuration items which do not influence the availability of the system environment in the difference detail data from the difference detail data.
With reference to the first aspect, in a third possible implementation manner of the first aspect, after the step of comparing the first configuration list with the second configuration list to obtain difference detail data between the first configuration list and the second configuration list, and generating a differential report according to the difference detail data, the method further includes:
determining a user terminal responsible for receiving the differentiated report according to the reference environment corresponding to the second configuration list and acquiring a communication address of the user terminal;
and sending the differentiation report to the user side according to the communication address of the user side.
With reference to the first aspect, in a fourth possible implementation manner of the first aspect, the step of loading, through a preset open call interface, a second configuration list corresponding to a reference environment from the first service system and/or a second service system associated with the first service system service includes:
loading a plurality of second configuration lists corresponding to the reference environments by adopting multi-thread parallel processing based on the number of the preset open type calling interfaces, wherein one thread loads the second configuration list corresponding to one reference environment;
the step of comparing the first configuration list with the second configuration list to obtain difference detail data between the first configuration list and the second configuration list, and generating a differential report according to the difference detail data includes:
and comparing a second configuration list obtained by thread loading with the first configuration list in each thread based on the multi-thread parallel processing, so that each thread respectively acquires difference detail data between the first configuration list and the second configuration list obtained by thread loading.
With reference to the first aspect, in a fifth possible implementation manner of the first aspect, the step of loading, through a preset open call interface, a second configuration list corresponding to a reference environment from the first service system and/or a second service system associated with the first service system service to obtain the second configuration list includes:
monitoring whether the current time meets a preset timing time requirement or not in real time, and if so, automatically triggering a loading instruction;
and in response to the loading instruction, loading a second configuration list corresponding to the acquired reference environment from the first service system and/or a second service system associated with the first service system service through the preset open call interface.
With reference to the fifth possible implementation manner of the first aspect, in a sixth possible implementation manner of the first aspect, the configuration of the timing time is a time point or a time interval, and the step of monitoring whether the current time meets a preset timing time requirement in real time, and if so, automatically triggering the loading instruction includes:
when the timing time is configured to be a time point, comparing whether the current time is consistent with the time point configured to be the timing time, if so, judging that the current time meets the preset timing time requirement, otherwise, judging that the current time does not meet the preset timing time requirement;
when the timing time is configured as a first time interval, comparing whether the time interval between the current time and the time point at which the last loading instruction is triggered is consistent with the time interval configured by the timing time, if so, judging that the current time meets the preset timing time requirement, otherwise, judging that the current time does not meet the preset timing time requirement.
A second aspect of the embodiments of the present application provides a comparison device for system environment configurations, where the comparison device for system environment configurations includes:
the system comprises an acquisition module, a comparison module and a comparison module, wherein the acquisition module is used for acquiring a first configuration list to be compared in a first service system, and the first configuration list to be compared is a configuration list of a specified system environment when the version of the service system is updated;
the loading module is used for loading a second configuration list corresponding to the acquired reference environment from the first service system and/or a second service system associated with the first service system service through a preset open type calling interface;
and the comparison module is used for comparing the first configuration list with the second configuration list, acquiring difference detail data between the first configuration list and the second configuration list, and generating a difference report according to the difference detail data.
A third aspect of embodiments of the present application provides a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the computer device, where the processor implements the steps of the comparison method for system environment configuration provided in the first aspect when executing the computer program.
A fourth aspect of embodiments of the present application provides a computer-readable storage medium, where a computer program is stored, and when the computer program is executed by a processor, the computer program implements the steps of the comparison method for system environment configuration provided in the first aspect.
The comparison method, device, equipment and storage medium for system environment configuration provided by the embodiment of the application have the following beneficial effects:
according to the method and the device, after a first configuration list to be compared in a first service system is obtained, a second configuration list corresponding to a reference environment is obtained by loading from the first service system and/or a second service system associated with the first service system through a preset open type calling interface, then the first configuration list is compared with the second configuration list to obtain difference detail data between the first configuration list and the second configuration list, and a difference report is generated according to the difference detail data, so that the system environments of a series of service systems associated with each other can be rapidly configured and compared, the environment configuration difference between the service systems associated with each other is automatically found, the efficiency is high, the conditions of mismatching, missing and the like can be avoided, and the problem of unavailable environment caused by the environment configuration difference in each system is effectively reduced.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
Fig. 1 is a flowchart illustrating a basic method of a comparison method of system environment configurations according to a first embodiment of the present application;
fig. 2 is a schematic flowchart of a method for screening difference detail data in the comparison method for system environment configurations according to the first embodiment of the present application;
fig. 3 is a flowchart illustrating a method for outputting a differentiated report in the comparison method for system environment configurations according to the first embodiment of the present application;
fig. 4 is a schematic flowchart of a method for comparing system environment configurations according to a first embodiment of the present application, in which a multithread parallel processing is adopted for comparison;
fig. 5 is a schematic flowchart of a method for comparing configuration according to a timing task in the method for comparing system environment configuration according to the first embodiment of the present application;
fig. 6 is a block diagram of a comparison apparatus configured in a system environment according to a second embodiment of the present application;
fig. 7 is a block diagram of a computer device according to a third embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
Referring to fig. 1, fig. 1 is a flowchart illustrating a basic method for comparing system environment configurations according to a first embodiment of the present application. The details are as follows:
step S11: the method comprises the steps of obtaining a first configuration list to be compared in a first service system, wherein the first configuration list to be compared is a configuration list of a system environment appointed when the service system carries out version updating.
In this embodiment, the comparison method of the system environment configuration is implemented based on a configuration comparison system. Each version update of the service system needs to be executed in a specified system environment, part or all of the configuration of the system environment is modified first during each version update, and the configuration list of the system environment obtained after the modification is the configuration list of the system environment specified by the service system during the version update. It should be noted that, in this embodiment, configuration lists corresponding to different environments in each business system are generated through configuration, for example, information is entered, and each environment corresponds to one configuration list, where a configuration list may be manually entered and obtained on a system page by a person in charge of each business system when logging in the system for the first time, the configuration list may be maintained on the system page, and then if configuration information in the configuration list is modified (version iteration), the configuration list may be directly logged in the system page for modification, and the configuration list is implemented and becomes effective after modification. In the present embodiment, the system environment includes, but is not limited to, one of a development environment, a pre-development environment, a grayscale environment, and a production environment. In this embodiment, the configuration comparison system may obtain, through a background automatic monitoring version updating operation of the business system, a first configuration list to be compared by the business system, where the first configuration list includes, but is not limited to, one or more configuration information of application server configuration, database configuration, message queue configuration, and cache configuration.
Step S12: and loading and obtaining a second configuration list corresponding to the reference environment from the first service system and/or a second service system associated with the first service system service through a preset open call interface.
In this embodiment, an open call interface (OpenAPI interface) for calling the service system is preset in the configuration comparison system, and after the configuration comparison system obtains a first configuration list to be compared, a second configuration list corresponding to the obtained reference environment is loaded from the first service system and/or a second service system associated with the service of the first service system through the preset open call interface. In this embodiment, the reference environment is a system environment used by the first service system before version update or a system environment used by the second service system associated with the service of the first service system before version update of the first service system. The second configuration list may be a configuration list that is the same as the first configuration list service system but different from the system environment according to the reference environment. For example, the first configuration list is a configuration list corresponding to a service system development environment, and the second configuration list is a configuration list corresponding to a service system test environment. The second configuration list may also be a different configuration list than the first configuration list business system. For example, the first configuration list is a configuration list corresponding to one service system development environment, and the second configuration list is a configuration list corresponding to another associated service system development environment or a configuration list corresponding to another associated service system test environment.
Step S13: comparing the first configuration list with the second configuration list to obtain difference detail data between the first configuration list and the second configuration list, and generating a differentiation report according to the difference detail data.
In this embodiment, after the configuration comparison system obtains the first configuration list and the second configuration list, the configuration items in the two configuration lists are compared item by item according to configuration item information in the two configuration lists, the configuration item with the difference between the two configuration lists is identified, and the configuration item with the difference is recorded in a newly-built difference detail data table, so that difference detail data between the first configuration list and the second configuration list is obtained, and a differentiation report is generated according to the difference detail data. In this embodiment, the differentiation report can be directly characterized as the above-mentioned differentiation detail data table.
As can be seen from the above, in the comparison method for system environment configuration provided in this embodiment, after the first configuration list to be compared in the first service system is obtained, loading and obtaining a second configuration list corresponding to the reference environment from the first service system and/or a second service system associated with the first service system service through a preset open call interface, then comparing the first configuration list with the second configuration list to obtain the difference detail data between the first configuration list and the second configuration list, and then, a differentiation report is generated according to the differentiation detail data, so that the system environments of a series of correlated service systems can be rapidly configured and compared, the environment configuration difference among the correlated service systems can be automatically found, the efficiency is high, the conditions of mismatching, missing and the like can be avoided, and the problem of unavailable environment caused by the environment configuration difference in each system is effectively reduced.
In some embodiments of the present application, the first configuration list and the second configuration list are recorded with relevant environment configuration items of the environment system and parameter values corresponding to the environment configuration items. In the list, one environment configuration item corresponds to one parameter value. In the present embodiment, the difference detail data includes, but is not limited to, the following three cases: a first type of environment configuration item that exists in the first configuration list but does not exist in the second configuration list; a second type of environment configuration item that is not present in the first configuration list but is present in the second configuration list; and the third type is an environment configuration item which is present in the first configuration list and the second configuration list but has different corresponding parameter values. Therefore, by comparing the first environment configuration list with the second environment configuration list according to the three situations, the difference detail data between the first configuration list and the second configuration list can be obtained.
In some embodiments of the present application, please refer to fig. 2, and fig. 2 is a flowchart illustrating a method for screening difference detail data in the comparison method for system environment configuration according to the first embodiment of the present application. The details are as follows:
step S21: judging whether the environment configuration items in the difference detail data influence the availability of the system environment according to a preset judgment rule;
step S22: and deleting environment configuration items which do not influence the availability of the system environment in the difference detail data from the difference detail data.
In this embodiment, for configuration items that may be different in the service system and do not affect the environmental availability, the configuration comparison system may perform filtering according to a certain rule after obtaining the difference detail data, so as to filter and delete the environmental configuration items that are different but do not affect the environmental availability. In this embodiment, a determination rule for determining whether to affect the availability of the system environment is preset, and then each environment configuration item in the difference detail data is traversed according to the determination rule to determine whether each environment configuration item having a difference affects the availability of the system environment, if the environment configuration item having a difference does not affect the availability of the system environment, the environment configuration item having a difference is deleted from the difference detail data, and the environment configuration item affecting the environment availability is retained in the difference detail data. In this embodiment, the determination rule may be: therefore, the neglect operation of the environment configuration items which have differences but do not influence the environment availability can be realized, and the efficiency of performing system environment synchronization processing on the service system subsequently is improved.
In some embodiments of the present application, please refer to fig. 3, and fig. 3 is a flowchart illustrating a method for outputting a differentiated report in a comparison method of system environment configurations according to a first embodiment of the present application. The details are as follows:
step S31: determining a user terminal responsible for receiving the differentiated report according to the reference environment corresponding to the second configuration list and acquiring a communication address of the user terminal;
step S32: and sending the differentiation report to the user side according to the communication address of the user side.
In this embodiment, because the reference environments of comparison are different, the differential reports obtained by comparison of the configuration comparison system are also different, and in each business system, different operation and maintenance personnel may be responsible for management in different system environments. Therefore, in the embodiment, an address book is configured in the configuration comparison system and used for recording the communication addresses of the operation and maintenance personnel corresponding to the system environments in the service systems, after the configuration comparison system generates the differential configuration report, the address book is called, and the user side responsible for receiving the differential report is determined from the address book according to the reference environment corresponding to the second configuration list in the comparison and the communication address of the user side is obtained. And after the communication address is determined, the differentiation report is sent to the corresponding user side according to the communication address, so that the system environment synchronization processing of a subsequent service system is realized by timely and accurately informing a responsible person responsible for managing the system environment.
In some embodiments of the present application, please refer to fig. 4, and fig. 4 is a schematic flowchart of a method for comparing system environment configurations by using multi-thread parallel processing according to a first embodiment of the present application. The details are as follows:
step S41: loading a plurality of second configuration lists corresponding to the reference environments by adopting multi-thread parallel processing based on the number of the preset open type calling interfaces, wherein one thread loads the second configuration list corresponding to one reference environment;
step S42: and comparing a second configuration list obtained by thread loading with the first configuration list in each thread based on the multi-thread parallel processing, so that each thread respectively acquires difference detail data between the first configuration list and the second configuration list obtained by thread loading.
In this embodiment, the configuration comparison system performs the comparison operation of the system environment configuration by using multiple processes. In this embodiment, based on the number of the open call interfaces provided in the configuration comparison system, a plurality of threads may be started to perform comparison operation of system environment configuration, where the number of the started threads is less than or equal to the number of the open call interfaces. And loading a second configuration list corresponding to one reference environment by each thread respectively. And the threads are processed in parallel, and in each thread, a second configuration list obtained by loading the thread is compared with a first configuration list to be compared currently, so that each thread obtains corresponding difference detail data between the first configuration list and the second configuration list obtained by loading the thread respectively. For example, based on the system environment specified by the current version update of a certain business system, there are 3 system environments that need to be configured and compared, including the test environment of the business system, and the development environment and the test environment of another business system associated with the business system. At this time, under the condition that the number of open type calling interfaces which can be called by the configuration comparison system at present is sufficient, starting 3 threads to perform configuration comparison processing in parallel, wherein a first thread loads a configuration list corresponding to the service system test environment, and performs configuration comparison on the configuration list corresponding to the system environment specified by the current version update of the service system and the configuration list corresponding to the service system test environment loaded by the thread; the second thread loads a configuration list corresponding to the development environment of another service system associated with the service system, and performs configuration comparison on the configuration list corresponding to the system environment specified by the current version update of the service system and the configuration list corresponding to the development environment of the other service system loaded by the thread; and the third thread loads a configuration list corresponding to the test environment of the other service system associated with the service system, and performs configuration comparison on the configuration list corresponding to the system environment specified by the current version update of the service system and the configuration list corresponding to the test environment of the other service system loaded by the thread, so that the 3 threads process the configuration comparison operation of the 3 system environments in parallel, and the speed and the efficiency are high.
In some embodiments of the present application, please refer to fig. 5, and fig. 5 is a flowchart illustrating a method for comparing configuration according to a timing task in the method for comparing system environment configuration according to the first embodiment of the present application. The details are as follows:
step S51: monitoring whether the current time meets a preset timing time requirement or not in real time, and if so, automatically triggering a loading instruction;
step S52: and in response to the loading instruction, loading a second configuration list corresponding to the acquired reference environment from the first service system and/or a second service system associated with the first service system service through the preset open call interface.
In this embodiment, the configuration comparison system sets a timing task in the background to implement automatic configuration comparison operation. Specifically, a timing time may be preset in the background, and the timing time may be any one of a time point and a time interval. Then, the current time is monitored in real time, the monitored current time is compared with the preset timing time, whether the monitored current time meets the preset timing time requirement or not is judged, if yes, a loading instruction is triggered, so that a configuration comparison system responds to the loading instruction, a second configuration list corresponding to the reference environment is automatically loaded and obtained, and if not, a waiting state is kept, and the loading instruction is not triggered. Therefore, the analysis and the processing of the configuration difference in the configuration comparison system are carried out at intervals without calling the front-end interface, the influence of the configuration comparison operation on the execution performance of the front-end interface is avoided, and the interactive experience of the system is improved. In this embodiment, when comparing the monitored current time with the preset timing time based on that the timing time can be any one of a time point and a time interval, the following two ways can be included, but not limited to: firstly, when the timing time is configured as a time point, comparing whether the current time is consistent with the time point configured by the timing time, if so, judging that the current time meets the preset timing time requirement, otherwise, judging that the current time does not meet the preset timing time requirement. Secondly, when the timing time is configured as a first time interval, comparing whether the time interval between the current time and the time point at which the last loading instruction is triggered is consistent with the time interval configured by the timing time, if so, judging that the current time meets the preset timing time requirement, otherwise, judging that the current time does not meet the preset timing time requirement.
Referring to fig. 6, fig. 6 is a block diagram illustrating a comparison apparatus of a system environment configuration according to a second embodiment of the present application. The device in this embodiment includes modules for performing the steps in the above method embodiments. The following description refers to the embodiments of the method. For convenience of explanation, only the portions related to the present embodiment are shown. As shown in fig. 6, the comparison device configured in the system environment includes: an obtaining module 61, a loading module 62 and a comparing module 63. The obtaining module 61 obtains a first configuration list to be compared in the first service system, where the first configuration list to be compared is a configuration list of a system environment specified when the service system performs version update. The loading module 62 is configured to load a second configuration list corresponding to the obtained reference environment from the first service system and/or a second service system associated with the first service system service through a preset open call interface. The comparison module 63 is configured to compare the first configuration list with the second configuration list, obtain difference detail data between the first configuration list and the second configuration list, and generate a differentiation report according to the difference detail data.
It should be understood that the comparison device of the system environment configuration corresponds to the comparison method of the system environment configuration one to one, and the description thereof is omitted here.
Referring to fig. 7, fig. 7 is a block diagram of a computer device according to a third embodiment of the present application. As shown in fig. 7, the computer device 7 of this embodiment includes: a processor 71, a memory 72 and a computer program 73 stored in said memory 72 and operable on said processor 71, for example a program of an alignment method of a system environment configuration. The processor 71 executes the computer program 73 to implement the steps in the embodiments of the comparison method for the system environment configurations described above. Alternatively, the processor 71 executes the computer program 73 to implement the functions of the modules in the embodiment corresponding to the comparison apparatus configured in the system environment. Please refer to the description related to the embodiment, which is not repeated herein.
Illustratively, the computer program 73 may be divided into one or more modules (units) that are stored in the memory 72 and executed by the processor 71 to accomplish the present application. The one or more modules may be a series of computer program instruction segments capable of performing specific functions, which are used to describe the execution of the computer program 73 in the computer device 7. For example, the computer program 73 may be divided into an acquisition module, a processing module and an execution module, each module having the specific functions as described above.
The turntable device may include, but is not limited to, a processor 71, a memory 72. It will be appreciated by those skilled in the art that fig. 7 is merely an example of a computer device 7 and does not constitute a limitation of the computer device 7 and may include more or less components than those shown, or some components may be combined, or different components, e.g. the turntable device may also include input output devices, network access devices, buses, etc.
The Processor 71 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, discrete hardware component, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 72 may be an internal storage unit of the computer device 7, such as a hard disk or a memory of the computer device 7. The memory 72 may also be an external storage device of the computer device 7, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like, provided on the computer device 7. Further, the memory 72 may also include both an internal storage unit and an external storage device of the computer device 7. The memory 72 is used for storing the computer program and other programs and data required by the turntable device. The memory 72 may also be used to temporarily store data that has been output or is to be output.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present application and are intended to be included within the scope of the present application.

Claims (10)

1. A method for comparing system environment configurations, comprising:
acquiring a first configuration list to be compared in a first service system, wherein the first configuration list to be compared is a configuration list of a system environment appointed by the service system during version updating;
loading and obtaining a second configuration list corresponding to the reference environment from the first service system and/or a second service system associated with the first service system service through a preset open type calling interface;
comparing the first configuration list with the second configuration list to obtain difference detail data between the first configuration list and the second configuration list, and generating a differentiation report according to the difference detail data.
2. The method according to claim 1, wherein in the step of comparing the first configuration list with the second configuration list, obtaining difference detail data between the first configuration list and the second configuration list, and generating a difference report according to the difference detail data, the difference detail data includes:
an environment configuration item that is present in the first configuration list and not present in the second configuration list; and/or
Environmental configuration items that are not present in the first configuration list but present in the second configuration list; and/or
And the first configuration list and the second configuration list are both provided with environment configuration items with different corresponding parameter values.
3. The method according to claim 1 or 2, wherein the step of comparing the first configuration list with the second configuration list, obtaining difference detail data between the first configuration list and the second configuration list, and generating a differential report according to the difference detail data further comprises:
judging whether the environment configuration items in the difference detail data influence the availability of the system environment according to a preset judgment rule;
and deleting environment configuration items which do not influence the availability of the system environment in the difference detail data from the difference detail data.
4. The method of claim 1, wherein after the steps of comparing the first configuration list with the second configuration list, obtaining difference detail data between the first configuration list and the second configuration list, and generating a differential report according to the difference detail data, the method further comprises:
determining a user terminal responsible for receiving the differentiated report according to the reference environment corresponding to the second configuration list and acquiring a communication address of the user terminal;
and sending the differentiation report to the user side according to the communication address of the user side.
5. The method according to claim 1, wherein the step of loading a second configuration list corresponding to a reference environment from the first service system and/or a second service system associated with the first service system service through a preset open call interface includes:
loading a plurality of second configuration lists corresponding to the reference environments by adopting multi-thread parallel processing based on the number of the preset open type calling interfaces, wherein one thread loads the second configuration list corresponding to one reference environment;
the step of comparing the first configuration list with the second configuration list to obtain difference detail data between the first configuration list and the second configuration list, and generating a differential report according to the difference detail data includes:
and comparing a second configuration list obtained by thread loading with the first configuration list in each thread based on the multi-thread parallel processing, so that each thread respectively acquires difference detail data between the first configuration list and the second configuration list obtained by thread loading.
6. The method according to claim 1, wherein the step of obtaining a second configuration list corresponding to a reference environment by loading through a preset open call interface from the first service system and/or a second service system associated with the first service system service includes:
monitoring whether the current time meets a preset timing time requirement or not in real time, and if so, automatically triggering a loading instruction;
and in response to the loading instruction, loading a second configuration list corresponding to the acquired reference environment from the first service system and/or a second service system associated with the first service system service through the preset open call interface.
7. The method according to claim 6, wherein the configuration of the timing time is configured as a time point or a time interval, the step of monitoring whether the current time meets a preset timing time requirement in real time, and if so, automatically triggering the loading instruction comprises:
when the timing time is configured to be a time point, comparing whether the current time is consistent with the time point configured to be the timing time, if so, judging that the current time meets the preset timing time requirement, otherwise, judging that the current time does not meet the preset timing time requirement;
when the timing time is configured as a first time interval, comparing whether the time interval between the current time and the time point at which the last loading instruction is triggered is consistent with the time interval configured by the timing time, if so, judging that the current time meets the preset timing time requirement, otherwise, judging that the current time does not meet the preset timing time requirement.
8. An apparatus for comparing system environment configurations, comprising:
the system comprises an acquisition module, a comparison module and a comparison module, wherein the acquisition module is used for acquiring a first configuration list to be compared in a first service system, and the first configuration list to be compared is a configuration list of a specified system environment when the version of the service system is updated;
the loading module is used for loading a second configuration list corresponding to the acquired reference environment from the first service system and/or a second service system associated with the first service system service through a preset open type calling interface;
and the comparison module is used for comparing the first configuration list with the second configuration list, acquiring difference detail data between the first configuration list and the second configuration list, and generating a difference report according to the difference detail data.
9. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the processor implements the steps of the method according to any of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 7.
CN202011343862.6A 2020-11-25 2020-11-25 System environment configuration comparison method, device, equipment and storage medium Pending CN112445542A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011343862.6A CN112445542A (en) 2020-11-25 2020-11-25 System environment configuration comparison method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011343862.6A CN112445542A (en) 2020-11-25 2020-11-25 System environment configuration comparison method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN112445542A true CN112445542A (en) 2021-03-05

Family

ID=74737706

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011343862.6A Pending CN112445542A (en) 2020-11-25 2020-11-25 System environment configuration comparison method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112445542A (en)

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070156389A1 (en) * 2005-12-30 2007-07-05 Frank Kilian Dynamic adaptation of a configuration to a system environment
US20160112252A1 (en) * 2014-10-15 2016-04-21 Cisco Technology, Inc. Deployment and upgrade of network devices in a network environment
JP2018063623A (en) * 2016-10-14 2018-04-19 キヤノンマーケティングジャパン株式会社 Information analysis apparatus, control method thereof, and program
CN108710577A (en) * 2018-06-01 2018-10-26 平安普惠企业管理有限公司 Operation system test method, device, computer equipment and storage medium
CN108717360A (en) * 2018-08-24 2018-10-30 江苏神州信源系统工程有限公司 A kind of software version updating method and device
CN109815111A (en) * 2018-12-13 2019-05-28 深圳壹账通智能科技有限公司 Gray scale test method, device, computer equipment and storage medium
CN109976830A (en) * 2019-03-18 2019-07-05 平安普惠企业管理有限公司 Comparison method and device, computer storage medium, the electronic equipment of configuration file
CN110532016A (en) * 2019-08-16 2019-12-03 北京齐尔布莱特科技有限公司 Method for edition management, method for updating edition and edition management system
CN110851167A (en) * 2019-11-15 2020-02-28 腾讯科技(深圳)有限公司 Container environment updating method, device, equipment and storage medium
CN111694612A (en) * 2020-05-28 2020-09-22 平安普惠企业管理有限公司 Configuration checking method, device, computer system and storage medium
CN111782528A (en) * 2020-06-30 2020-10-16 中国平安人寿保险股份有限公司 Configuration information comparison method and device, computer equipment and storage medium

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070156389A1 (en) * 2005-12-30 2007-07-05 Frank Kilian Dynamic adaptation of a configuration to a system environment
US20160112252A1 (en) * 2014-10-15 2016-04-21 Cisco Technology, Inc. Deployment and upgrade of network devices in a network environment
JP2018063623A (en) * 2016-10-14 2018-04-19 キヤノンマーケティングジャパン株式会社 Information analysis apparatus, control method thereof, and program
CN108710577A (en) * 2018-06-01 2018-10-26 平安普惠企业管理有限公司 Operation system test method, device, computer equipment and storage medium
CN108717360A (en) * 2018-08-24 2018-10-30 江苏神州信源系统工程有限公司 A kind of software version updating method and device
CN109815111A (en) * 2018-12-13 2019-05-28 深圳壹账通智能科技有限公司 Gray scale test method, device, computer equipment and storage medium
CN109976830A (en) * 2019-03-18 2019-07-05 平安普惠企业管理有限公司 Comparison method and device, computer storage medium, the electronic equipment of configuration file
CN110532016A (en) * 2019-08-16 2019-12-03 北京齐尔布莱特科技有限公司 Method for edition management, method for updating edition and edition management system
CN110851167A (en) * 2019-11-15 2020-02-28 腾讯科技(深圳)有限公司 Container environment updating method, device, equipment and storage medium
CN111694612A (en) * 2020-05-28 2020-09-22 平安普惠企业管理有限公司 Configuration checking method, device, computer system and storage medium
CN111782528A (en) * 2020-06-30 2020-10-16 中国平安人寿保险股份有限公司 Configuration information comparison method and device, computer equipment and storage medium

Similar Documents

Publication Publication Date Title
CN108255620B (en) Service logic processing method, device, service server and system
CN110225078B (en) Application service updating method, system and terminal equipment
CN110956269A (en) Data model generation method, device, equipment and computer storage medium
US10824541B1 (en) System and method for test data fabrication
CN111651595A (en) Abnormal log processing method and device
CN112738060A (en) Method and device for processing micro-service data, micro-service processing platform and medium
CN114817050A (en) Task execution method and device, electronic equipment and computer readable storage medium
CN112445542A (en) System environment configuration comparison method, device, equipment and storage medium
CN114500348B (en) CDN gateway testing method and system
CN111240923A (en) Automatic test method and device for recurring problems of vehicle navigation system and storage medium
CN113010376B (en) Monitoring method and device for cloud storage system for storing training data
CN113238901B (en) Multi-device automatic testing method and device, storage medium and computer device
WO2019062087A1 (en) Attendance check data testing method, terminal and device, and computer readable storage medium
CN115237889A (en) Database switching method and device, storage medium and computer equipment
CN114064678A (en) Event data processing method and device and terminal equipment
CN110442370B (en) Test case query method and device
CN110113187B (en) Configuration updating method and device, configuration server and configuration system
CN112835759A (en) Test data processing method and device, electronic equipment and storage medium
CN107577546B (en) Information processing method and device and electronic equipment
CN111143583A (en) Method and device for monitoring data change of media database
CN112328481A (en) Automatic testing method, device and equipment for multi-task scene and storage medium
CN112394979A (en) Multi-environment synchronization method, device, equipment and storage medium of software system
CN117389841B (en) Method and device for monitoring accelerator resources, cluster equipment and storage medium
CN114741325B (en) Recording method and device of test script for application system test
CN114385484A (en) Block chain software compatibility testing method and device, electronic 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