Environment parameter configuration method and device, equipment and storage medium

By using an automated method for configuring environmental parameters, and by utilizing a parameter configuration application list and mapping table, the problems of low efficiency and high error rate in environmental parameter configuration are solved, achieving an efficient and accurate configuration process and reducing manual intervention.

CN119668716BActive Publication Date: 2025-11-18INDUSTRIAL AND COMMERCIAL BANK OF CHINA
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411724932.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-11-28
Publication Date
2025-11-18
Estimated Expiration
2044-11-28

AI Technical Summary

Technical Problem

In the process of application system development or operation and maintenance, the configuration of environment parameters is inefficient and prone to errors, and is affected by human subjectivity, which can affect the normal operation of the application system.

Method used

By querying the target application system's environment parameters to be configured from the parameter configuration application list, and using the environment parameter configuration mapping table to update and synchronize parameter configuration items and their variable values ​​to the environment parameter configuration center, automated configuration is achieved, reducing manual intervention.

Benefits of technology

It improves the efficiency and accuracy of environmental parameter configuration, reduces the demand for human resources, and ensures the normal operation of the application system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119668716B_ABST
    Figure CN119668716B_ABST
Patent Text Reader

Abstract

The application discloses an environment parameter configuration method and device, equipment and a storage medium, applied to the artificial intelligence technical field, the method comprises the following steps: in response to the environment parameter configuration request of the target application system to the environment to be configured, whether the environment configuration parameter of the environment to be configured of the target application system exists is inquired from a parameter configuration application list; if yes, according to the preset environment parameter configuration mapping relationship table, the to-be-configured parameter configuration item in the environment configuration parameter to be configured and the corresponding to-be-configured parameter variable value are updated, the target parameter configuration item of the environment configuration parameter to be configured and the corresponding target parameter variable value are obtained; the target parameter configuration item of the environment configuration parameter to be configured and the corresponding target parameter variable value are synchronized to an environment parameter configuration center to carry out environment parameter configuration.The technical scheme improves the environment parameter configuration efficiency and configuration accuracy.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of artificial intelligence, and in particular to an environment parameter configuration method and device, an environment parameter configuration apparatus, and a storage medium. BACKGROUND

[0002] In the development or operation process of an application system, environment parameter variables relied on by the application system in different environments are usually recorded in a text document. During the testing or development process of the application system in the corresponding environment, an environment administrator needs to configure environment parameters in a corresponding configuration center or platform based on the content of the text document.

[0003] However, due to different environment versions, multiple versions of environment parameter variables need to be maintained in the text document, and the environment administrator needs to manually configure them during the configuration process. This configuration method is inefficient and is affected by human subjectivity, and errors in environment parameter configuration are likely to occur during the configuration process, thereby affecting the normal operation of the application system program. SUMMARY

[0004] The present application provides an environment parameter configuration method, device, apparatus, and storage medium to improve the efficiency and accuracy of environment parameter configuration.

[0005] According to an aspect of the present application, an environment parameter configuration method is provided, which comprises:

[0006] In response to an environment parameter configuration request of a target application system for a to-be-configured environment, it is determined whether there is a to-be-configured environment configuration parameter of the to-be-configured environment of the target application system in a parameter configuration application list. The parameter configuration application list contains environment configuration parameters of at least one application system in at least one configuration environment. The environment configuration parameters include at least one parameter configuration item and its corresponding parameter variable value.

[0007] If there is, the to-be-configured parameter configuration item and its corresponding to-be-configured parameter variable value in the to-be-configured environment configuration parameter are updated according to a preset environment parameter configuration mapping relationship table to obtain a target parameter configuration item of the to-be-configured environment configuration parameter and its corresponding target parameter variable value.

[0008] The target parameter configuration item of the to-be-configured environment configuration parameter and its corresponding target parameter variable value are synchronized to an environment parameter configuration center, so that the environment parameter configuration center configures the to-be-configured environment of the target application system based on the target parameter configuration item and its corresponding target parameter variable value.

[0009] According to another aspect of the present application, an environment parameter configuration apparatus is provided, which comprises:

[0010] The configuration parameter query module is configured to query, in response to an environment parameter configuration request of a target application system for a to-be-configured environment, whether there is a to-be-configured environment configuration parameter of the to-be-configured environment of the target application system in a parameter configuration application list; the parameter configuration application list contains at least one environment configuration parameter of at least one application system in at least one configuration environment; the environment configuration parameter includes at least one parameter configuration item and a corresponding parameter variable value thereof;

[0011] The configuration parameter update module is configured to, if the to-be-configured environment configuration parameter of the to-be-configured environment of the target application system exists in the parameter configuration application list, update a to-be-configured parameter configuration item and a corresponding to-be-configured parameter variable value thereof in the to-be-configured environment configuration parameter according to a preset environment parameter configuration mapping relationship table, to obtain a target parameter configuration item and a corresponding target parameter variable value thereof of the to-be-configured environment configuration parameter.

[0012] The parameter variable value synchronization module is configured to synchronize the target parameter configuration item and the corresponding target parameter variable value thereof of the to-be-configured environment configuration parameter to an environment parameter configuration center, so that the environment parameter configuration center performs environment parameter configuration on the to-be-configured environment of the target application system based on the target parameter configuration item and the corresponding target parameter variable value thereof.

[0013] According to another aspect of the present application, an electronic device is provided, which comprises:

[0014] at least one processor; and

[0015] a memory connected to the at least one processor in communication; wherein,

[0016] The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor to enable the at least one processor to perform the environment parameter configuration method according to any one of the embodiments of the present application.

[0017] According to another aspect of the present application, a computer readable storage medium is provided, which stores computer instructions for enabling a processor to perform the environment parameter configuration method according to any one of the embodiments of the present application when executed.

[0018] The technical scheme of the present application queries whether the to-be-configured environment configuration parameter of the target application system exists in the parameter configuration application list, and when the to-be-configured environment configuration parameter exists, the target parameter configuration item of the to-be-configured environment configuration parameter and the corresponding target parameter variable value are synchronized to the environment parameter configuration center according to the environment configuration parameter mapping relationship of the environment parameter configuration mapping relationship table, so that the environment parameter automatic configuration of the application system is realized, manual configuration is not required in the configuration process, the human resources are reduced, and the application system environment parameter configuration efficiency and configuration accuracy are improved.

[0019] It should be understood that the content described in this part is not intended to identify the key or important features of the embodiments of the present application, nor is it used to limit the scope of the present application. Other features of the present application will become apparent from the following description. BRIEF DESCRIPTION OF DRAWINGS

[0020] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following will briefly introduce the drawings needed to be used in the embodiment description. Obviously, the drawings in the following description are only some embodiments of the present application, and other drawings can be obtained by those skilled in the art without creative labor.

[0021] Figure 1 is a flow chart of an environment parameter configuration method according to the first embodiment of the present application;

[0022] Figure 2 is a flow chart of an environment parameter configuration method according to the second embodiment of the present application;

[0023] Figure 3 is a structural schematic diagram of an environment parameter configuration device according to the third embodiment of the present application;

[0024] Figure 4 is a structural schematic diagram of an electronic device for implementing the environment parameter configuration method of the present application. DETAILED DESCRIPTION

[0025] In order to make the person skilled in the art better understand the present application, the technical solutions in the embodiments of the present application will be described clearly and completely in the following with reference to the drawings of the embodiments of the present application. Obviously, the described embodiments are only some embodiments of the present application, not all. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative labor should be within the scope of protection of the present application.

[0026] It should be noted that the terms "first", "second", and the like in the description and in the claims of the present application and above-described accompanying drawings are used to distinguish similar objects, and do not necessarily have to be used to describe a specific order or sequence. It should be understood that the data thus used can be interchanged under appropriate circumstances, so that the embodiments of the application described herein can be implemented in an order other than that illustrated or described herein. In addition, the terms "include" and "have" and any variations thereof are intended to cover non-exclusive inclusion, for example, a process, method, system, product or device that includes a series of steps or units does not have to be limited to only those steps or units clearly listed, but can include other steps or units not clearly listed or inherent to these processes, methods, products or devices.

[0027] Embodiment one

[0028] Figure 1 A flowchart of an environment parameter configuration method provided for the first embodiment of the present application. This embodiment can be applied to the case of automatically configuring environment parameter variables in different version environments involved in the development or operation and maintenance process of an application system. The method can be executed by an environment parameter configuration device, which can be realized in the form of hardware and / or software, and can be configured in an electronic device. As shown in the figure, the method comprises: Figure 1

[0029] S110, in response to an environment parameter configuration request of a target application system to a to-be-configured environment, querying from a parameter configuration application list whether there is a to-be-configured environment configuration parameter of the to-be-configured environment of the target application system. There is at least one environment configuration parameter of at least one application system in at least one configuration environment in the parameter configuration application list. The environment configuration parameter includes at least one parameter configuration item and its corresponding parameter variable value.

[0030] S120, if there is, updating the to-be-configured parameter configuration item and its corresponding to-be-configured parameter variable value in the to-be-configured environment configuration parameter according to a preset environment parameter configuration mapping relationship table, to obtain a target parameter configuration item of the to-be-configured environment configuration parameter and its corresponding target parameter variable value.

[0031] S130, synchronizing the target parameter configuration item of the to-be-configured environment configuration parameter and its corresponding target parameter variable value to an environment parameter configuration center, so as to configure the to-be-configured environment of the target application system based on the target parameter configuration item and its corresponding target parameter variable value.

[0032] ​The target application system can be an application system that needs to be configured with environment parameters in a current time period. The environment to be configured can be an environment version of the target application system that needs to be configured with environment parameters in the current time period, for example, an environment version maintained by the target application system, including a development environment, a test environment, and a production environment, etc. The environment parameter configuration request can be a request to configure the target application system with environment parameters of the environment to be configured, and the initiator can be any party that has a demand and permission for environment parameter configuration, such as an environment administrator, etc.

[0033] The parameter configuration application list can be pre-constructed by relevant technical personnel and used to store environment configuration parameters of at least one configuration environment of at least one application system. The environment configuration parameters of different application systems in different configuration environments can be stored in the parameter configuration application list through pre-processing and generation. The parameter configuration application list can be updated periodically or aperiodically based on a preset list update period, and the environment configuration parameters of the corresponding configuration environment of the corresponding application system can be deleted or added.

[0034] The storage of the environment configuration parameters of each configuration environment of each application system in the parameter configuration application list can be in an identification manner. Specifically, for the environment configuration parameters of the application system A in the test environment, the unique identifier of the application system A is determined, for example, the name of the application system, etc., the association between the unique identifier of the application system A and the environment configuration parameters in the test environment is established, and the association is stored in the parameter configuration application list.

[0035] The environment configuration parameters can include at least one parameter configuration item and a corresponding parameter variable value. For example, the parameter configuration item is a Redis connection address, and the corresponding parameter variable value can be 196.168.1.XXX, for example; the parameter configuration item is a database host name, and the corresponding parameter variable can be a database domain name (such as db.example.XXX); the parameter configuration item is a port number, and the corresponding parameter variable is a specific number value of the port number (such as 90XX).

[0036] For example, in response to the environment parameter configuration request of the environment to be configured of the target application system, and according to the environment parameter configuration request, the unique identifier of the target application system is determined; by the unique identifier of the target application system, each application system in the parameter application list is traversed to query whether the target application system exists; if it exists, the environment configuration parameters under the target application system are traversed to query whether the environment configuration parameters to be configured of the environment to be configured of the target application system exist, if they exist, the environment configuration parameters to be configured are obtained from the parameter configuration application list. The environment configuration parameters to be configured include at least one environment configuration parameter to be configured and a corresponding environment configuration parameter variable value to be configured.

[0037] It should be noted that in actual scenarios, the names of the parameter configuration items of the environment configuration parameters are of different lengths when the configuration center or the configuration platform configures the environment parameters of the application system. The environment configuration parameters of the application system are usually stored in the configuration document in the form of text. Since the configuration document needs to store environment configuration parameters of different environment versions, its storage system is large, and it occupies a large content space. When temporarily stored in the parameter configuration application list, the traversal process is time-consuming and inefficient. Therefore, an environment parameter configuration mapping relationship table can be constructed in advance to store the parameter configuration items in the environment configuration parameters required by the configuration center or the configuration platform in practice, and virtual parameter configuration items can be stored in the parameter configuration application list, thereby saving the space occupation of the parameter configuration application list and improving the traversal speed and efficiency in the environment parameter query process.

[0038] In an optional embodiment, the environment parameter configuration mapping relationship table stores the mapping relationship between the virtual parameter configuration items and the actual parameter configuration items. Accordingly, according to the preset environment parameter configuration mapping relationship table, the to-be-configured parameter configuration item in the to-be-configured environment configuration parameter and the corresponding to-be-configured parameter variable value are updated to obtain the target parameter configuration item of the to-be-configured environment configuration parameter and the corresponding target parameter variable value, including:

[0039] Step a1, obtaining a virtual parameter configuration item identical to the to-be-configured parameter configuration item from the environment parameter configuration mapping relationship table.

[0040] The actual parameter configuration item is a real parameter configuration item required when the environment parameters are configured in the actual configuration scenario. The virtual parameter configuration item is a parameter configuration item obtained by simplifying the name of the actual parameter configuration item to reduce space occupation. For example, the construction form of the environment parameter configuration mapping relationship table can be as shown in Table 1.

[0041] Table 1

[0042]

[0043] Step a2, using the actual parameter configuration item having the mapping relationship with the virtual parameter configuration item identical to the to-be-configured parameter configuration item to update the to-be-configured parameter configuration item to obtain the target parameter configuration item of the to-be-configured environment configuration parameter.

[0044] Specifically, the same virtual parameter configuration item as the to-be-configured parameter configuration item is obtained from the environment parameter configuration mapping relationship table. Continuing the above Table 1 example, if the same virtual parameter configuration item as the to-be-configured parameter configuration item is "MS / IP", the to-be-configured parameter configuration item is updated using the actual parameter configuration item corresponding to MS / IP, "MySQL (My Structured Query Language) database connection address", and the "MySQL database connection address" is used as the target parameter configuration item of the to-be-configured environment configuration parameter.

[0045] Step a3, the to-be-configured parameter variable value of the corresponding to-be-configured parameter configuration item is used as the target parameter variable value of the target parameter configuration item.

[0046] The to-be-configured parameter variable value of the to-be-configured parameter configuration item is used as the target parameter variable value of the target parameter configuration item.

[0047] The above technical solution stores the mapping relationship between the virtual parameter configuration item and the actual parameter configuration item by pre-setting the environment parameter configuration relationship table, so that the occupation memory of the to-be-configured environment configuration parameter temporarily stored in the parameter configuration application list is small, the data table space is saved, and the traversal efficiency of the environment configuration parameter in the table is improved. In addition, since the environment parameter configurations of different application systems are recorded in the configuration file in text form, the occupation space of the long-term stored configuration file is further reduced, the file parsing efficiency of the configuration file is improved, and the environment parameter configuration efficiency of the application system is further improved.

[0048] The target parameter configuration item and the corresponding target parameter variable value of the to-be-configured environment configuration parameter are synchronized to the environment parameter configuration center; wherein the environment parameter configuration center is a tool or service for centralized management and dynamic configuration of system environment parameters. After obtaining the target parameter configuration item and the corresponding target parameter variable value, the environment parameter configuration center can automatically configure the to-be-configured environment of the target application system, without manual configuration by the relevant management personnel in the environment parameter configuration center.

[0049] The technical solution of the present application queries whether the to-be-configured environment configuration parameter of the to-be-configured environment of the target application system exists in the parameter configuration application list, and when it is found to exist, the target parameter configuration item and the corresponding target parameter variable value of the updated to-be-configured environment configuration parameter are synchronized to the environment parameter configuration center according to the environment configuration parameter mapping relationship of the environment parameter configuration mapping relationship table, so as to realize automatic configuration of the environment parameters of the application system, without manual configuration during the configuration process, thereby reducing the human resources and improving the efficiency and accuracy of the environment parameter configuration of the application system.

[0050] Embodiment two

[0051] Figure 2 A flowchart of an environment parameter configuration method provided for the second embodiment of the present application is shown in the figure. The embodiment is an optimized improvement based on the above technical solutions.

[0052] Further, after the step of "querying from the parameter configuration application list whether there is the to-be-configured environment configuration parameter of the to-be-configured environment of the target application system in response to the environment parameter configuration request of the target application system to the to-be-configured environment", a step of "if there is no to-be-configured environment configuration parameter of the to-be-configured environment of the target application system in the parameter configuration application list, obtaining an environment parameter configuration document of the target application system; performing document analysis on the environment parameter configuration document to obtain the to-be-configured environment configuration parameter of the to-be-configured environment of the target application system, and adding the to-be-configured environment configuration parameter to the parameter configuration application list" is added to perfect the environment parameter configuration mode of the target application system.

[0053] It should be noted that the parts not described in detail in the embodiments of the present application can refer to the descriptions of other embodiments. For example, Figure 2 The method includes the following specific steps:

[0054] S210, in response to an environment parameter configuration request of a to-be-configured environment of a target application system, querying from a parameter configuration application list whether there is a to-be-configured environment configuration parameter of the to-be-configured environment of the target application system; there is at least one environment configuration parameter of at least one application system in at least one configuration environment in the parameter configuration application list; the environment configuration parameter includes at least one parameter configuration item and its corresponding parameter variable value. If there is, execute S211a-S211b; if there is not, execute S212a-S212b.

[0055] S211a, according to a preset environment parameter configuration mapping relationship table, updating the to-be-configured parameter configuration item in the to-be-configured environment configuration parameter and its corresponding to-be-configured parameter variable value to obtain a target parameter configuration item of the to-be-configured environment configuration parameter and its corresponding target parameter variable value.

[0056] S211b, synchronizing the target parameter configuration item of the to-be-configured environment configuration parameter and its corresponding target parameter variable value to an environment parameter configuration center, so that the environment parameter configuration center configures the to-be-configured environment of the target application system based on the target parameter configuration item and its corresponding target parameter variable value.

[0057] S212a, obtaining an environment parameter configuration document of the target application system.

[0058] The environment parameter configuration document stores the environment configuration parameters of the target application system in different environment versions. The environment parameter configuration documents corresponding to different application systems are different.

[0059] S212b, document parsing is performed on the environment parameter configuration document to obtain the to-be-configured environment configuration parameter of the to-be-configured environment of the target application system, and the to-be-configured environment configuration parameter is added to the parameter configuration application list.

[0060] For example, the existing document parsing method can be used to perform document parsing on the environment parameter configuration document. The result of the parsing can include the environment configuration parameters of the target application system under various environment versions. The to-be-configured environment configuration parameter of the to-be-configured environment under the environment version can be added to the parameter configuration application list, or the environment configuration parameters of the target application system under various environment versions obtained by the parsing can be added to the parameter configuration application list for subsequent calling when there is a configuration requirement.

[0061] The technical solution of the embodiment determines that the to-be-configured environment configuration parameter of the to-be-configured environment of the target application system does not exist in the parameter configuration application list, and then performs document parsing on the obtained environment parameter configuration document, thereby obtaining the to-be-configured environment configuration parameter of the to-be-configured environment of the target application system and adding the to-be-configured environment configuration parameter to the parameter configuration application list. The technical solution realizes automatic generation of the to-be-configured environment configuration parameter of the target application system, and does not require an environment manager to manually check and determine the to-be-configured environment configuration parameter through the environment parameter configuration document in the entire process, thereby improving the generation efficiency and generation accuracy of the to-be-configured environment configuration parameter of the target application system.

[0062] It should be noted that, to further improve the parsing accuracy of the environment parameter configuration document of the target application system, a semantic large model can also be used for document parsing.

[0063] In an optional embodiment, the document parsing is performed on the environment parameter configuration document to obtain the to-be-configured environment configuration parameter of the to-be-configured environment of the target application system, including:

[0064] Sb1, determine the content prompt word of the environment parameter configuration document, and perform content parsing on the environment parameter configuration document based on the content prompt word by using a semantic understanding model to obtain a content parsing result.

[0065] The content prompt word can be pre-set by a related technical person according to actual needs; the semantic understanding model can be a natural language large model for understanding a user input content prompt word and outputting a corresponding result, which provides a user interaction service. For example, the content prompt word can be "please output the parameter variable value of the XXX parameter configuration item based on the configuration document I input, and generate an XML (eXtensible Markup Language) file (or a JSON (JavaScript Object Notation) file)".

[0066] The content prompt word and the environment parameter configuration document are input into the semantic understanding model, the semantic understanding model extracts relevant environment parameters from the environment parameter configuration document according to the content prompt word, and obtains a content analysis result. The content analysis result is the environment configuration parameter predicted by the model.

[0067] To further improve the generation efficiency and accuracy of the content prompt word, the embodiment further provides a way of automatically generating a content prompt word of an environment configuration parameter document.

[0068] Optionally, determining the content prompt word of the environment parameter configuration document comprises: inputting the environment parameter configuration document into a pre-trained prompt word generation model to obtain a content prompt word output by the model; wherein the prompt word generation model is pre-trained on a pre-constructed semantic recognition model using historical environment parameter configuration documents of different configuration environments and corresponding historical content prompt words in a historical time period.

[0069] For example, historical environment parameter configuration documents of different configuration environments in a historical time period are obtained, and historical content prompt words of the historical environment parameter configuration documents are determined. The historical content prompt words of the historical environment parameter configuration documents can be adjusted by a related technical person according to actual needs to ensure the accuracy of the historical content prompt words.

[0070] The historical environment parameter configuration document and the corresponding historical content prompt word are input into a pre-constructed semantic recognition model to obtain a predicted content prompt word output by the model; a loss value is determined based on a preset loss function according to the historical content prompt word and the predicted content prompt word of the historical environment parameter configuration document; the semantic recognition model is trained based on the loss value until a model training end condition is met, and a prompt word generation model is obtained. The pre-constructed semantic recognition model may be, for example, a pre-trained language model based on a bidirectional Transformer structure. The loss function may be a Masked Language Model (MLM) loss function or a Next Sentence Prediction (NSP) loss function, which is not limited in the present embodiment. The model training end condition may be pre-set by a relevant technical person, for example, the loss value reaching a set threshold or the loss value no longer changing.

[0071] The environment parameter configuration document is input into the pre-trained prompt word generation model to obtain a content prompt word output by the model.

[0072] The above technical solution solves the problem of automatic adjustment of the content prompt word when the environment parameter configuration document is updated, thereby solving the problem of inaccurate input caused by not modifying the manually set content prompt word after the environment parameter configuration document is updated, and achieving automatic and accurate generation of the content prompt word.

[0073] Step b2, determining the to-be-configured environment configuration parameter of the to-be-configured environment of the target application system according to the content analysis result.

[0074] For example, the content analysis result can be determined as the to-be-configured environment configuration parameter of the to-be-configured environment of the target application system. To further improve the accuracy of determining the to-be-configured environment parameter, the to-be-configured environment configuration parameter can be further determined in combination with other document analysis methods, thereby improving the accuracy of determining the environment parameter.

[0075] In an optional embodiment, determining the to-be-configured environment configuration parameter of the to-be-configured environment of the target application system according to the content analysis result comprises:

[0076] Step b21, using a pre-trained document content analysis model to analyze the content of the environment parameter configuration document to obtain a reference analysis result.

[0077] The document content analysis model is used to analyze the content of the environment parameter configuration document, which can be pre-trained by a relevant technical person.

[0078] Specifically, historical configuration documents of the application system under different environment versions in a historical time period are obtained, and the historical configuration documents are marked with standard configuration environment parameters to obtain a model sample training set. The model sample training set is input into a preset text processing model to obtain predicted configuration environment parameters output by the model. The text processing model is trained according to the standard configuration environment parameters and the predicted configuration environment parameters until a model training end condition is met, and a document content analysis model is obtained.

[0079] The environment parameter configuration document of the target application system is input into the trained document content analysis model to obtain a reference analysis result output by the model.

[0080] In step b22, the to-be-configured environment configuration parameters of the to-be-configured environment of the target application system are determined according to the content analysis result and the reference analysis result.

[0081] For example, the content analysis result and the reference analysis result can be combined, and the combined result can be used as the to-be-configured environment configuration parameters of the to-be-configured environment of the target application system.

[0082] The above technical solution introduces a document content analysis model, and uses the analysis result of the document content analysis model to adaptively adjust the content analysis result. In the process of determining the to-be-configured environment configuration parameters of the to-be-configured environment of the target application system, the analysis results generated by different document analysis methods are considered comprehensively, and the generation accuracy and reliability of the to-be-configured environment configuration parameters are improved.

[0083] It should be noted that the semantic understanding model itself has high accuracy and reliability, and the content analysis result output by the semantic understanding model has high accuracy. However, due to the iterative update of the environment parameter configuration documents of different environment versions of the application system, the content changes continuously. In addition, the output result of the semantic understanding model is closely related to the generated content prompt words, so the output accuracy is closely related to the generation accuracy of the content prompt words. Considering the above problems, in order to ensure the accuracy of the output result of the semantic understanding model, the reference analysis result output by the self-trained document content analysis model can be used to adjust the content analysis result.

[0084] Optionally, according to the content analysis result and the reference analysis result, the to-be-configured environment configuration parameter of the to-be-configured environment of the target application system is determined, including: determining an analysis result similarity between the content analysis result and the reference analysis result; if the analysis result similarity is higher than a preset similarity threshold, the content analysis result is determined as the to-be-configured environment configuration parameter of the to-be-configured environment of the target application system; if the analysis result similarity is not higher than the preset similarity threshold, the content analysis result and the reference analysis result are combined to obtain a combined analysis result, and the combined analysis result is determined as the to-be-configured environment configuration parameter of the to-be-configured environment of the target application system.

[0085] The analysis result similarity can be calculated based on an existing similarity determination algorithm. For example, the similarity determination algorithm can include a word-based similarity calculation, such as a word vector model, etc. The similarity threshold can be preset by a relevant technical person according to actual needs or experience, for example, it can be set to 95%.

[0086] The above technical solution determines the analysis result similarity between the content analysis result and the reference analysis result, and determines whether to adjust the content analysis result based on the reference analysis result, thereby improving the determination accuracy of the to-be-configured environment configuration parameter of the to-be-configured environment, and avoiding the case that the semantic understanding model unilaterally predicts inaccurate results.

[0087] It should be noted that the environment configuration parameters of different environment versions in the environment parameter configuration document can be distinguished by identifying parameter names, so that the corresponding environment configuration parameters can be queried by different identifying parameter names during subsequent traversal of the parameter configuration application list, thereby improving the query efficiency.

[0088] The technical solution of the embodiment determines the content prompt word of the environment parameter configuration document, and uses the semantic understanding model to analyze the content of the environment parameter configuration document based on the content prompt word to obtain a content analysis result, and determines the to-be-configured environment configuration parameter of the to-be-configured environment of the target application system according to the content analysis result, thereby improving the analysis efficiency and accuracy of the to-be-configured environment parameter.

[0089] Embodiment Three

[0090] Figure 3 A structural schematic diagram of an environment parameter configuration device provided by Embodiment Three of the present application. The environment parameter configuration device provided by the embodiment of the present application can be applied to the case of automatically configuring environment parameter variables in different versions of environments involved in the development or operation and maintenance process of an application system. The environment parameter configuration device can be realized in the form of hardware and / or software, such as a computer. Figure 3As shown, the device specifically comprises: a configuration parameter query module 301, a configuration parameter update module 302 and a parameter variable value synchronization module 303.

[0091] The configuration parameter query module 301 is configured to query, in response to an environment parameter configuration request of a target application system to a to-be-configured environment, whether there is a to-be-configured environment configuration parameter of the to-be-configured environment of the target application system in a parameter configuration application list; there is at least one environment configuration parameter of at least one application system in at least one configuration environment in the parameter configuration application list; the environment configuration parameter comprises at least one parameter configuration item and a corresponding parameter variable value thereof;

[0092] The configuration parameter update module 302 is configured to, if there is the to-be-configured environment configuration parameter of the to-be-configured environment of the target application system in the parameter configuration application list, update a to-be-configured parameter configuration item and a corresponding to-be-configured parameter variable value thereof in the to-be-configured environment configuration parameter according to a preset environment parameter configuration mapping relationship table, to obtain a target parameter configuration item and a corresponding target parameter variable value thereof of the to-be-configured environment configuration parameter;

[0093] The parameter variable value synchronization module 303 is configured to synchronize the target parameter configuration item and the corresponding target parameter variable value thereof of the to-be-configured environment configuration parameter to an environment parameter configuration center, so that the environment parameter configuration center performs environment parameter configuration on the to-be-configured environment of the target application system based on the target parameter configuration item and the corresponding target parameter variable value thereof.

[0094] The technical scheme of the present application queries whether there is a to-be-configured environment configuration parameter of a to-be-configured environment of a target application system from a parameter configuration application list, and synchronizes a target parameter configuration item and a corresponding target parameter variable value thereof of the updated to-be-configured environment configuration parameter to an environment parameter configuration center according to an environment configuration parameter mapping relationship of an environment parameter configuration mapping relationship table when it is queried that there is the to-be-configured environment configuration parameter, so as to realize automatic configuration of environment parameters of an application system, without manual configuration during the configuration process, thereby reducing human resources and improving the efficiency and accuracy of environment parameter configuration of the application system.

[0095] Optionally, the device further comprises:

[0096] The configuration document acquisition module is configured to, after the query, whether there is a to-be-configured environment configuration parameter of a to-be-configured environment of a target application system in a parameter configuration application list in response to an environment parameter configuration request of the target application system to the to-be-configured environment, if there is no to-be-configured environment configuration parameter of the to-be-configured environment of the target application system in the parameter configuration application list, acquire an environment parameter configuration document of the target application system.

[0097] The document parsing module is configured to parse the environment parameter configuration document to obtain to-be-configured environment configuration parameters of a to-be-configured environment of the target application system, and add the to-be-configured environment configuration parameters to the parameter configuration application list.

[0098] Optionally, the document parsing module comprises:

[0099] The content parsing unit is configured to determine content prompt words of the environment parameter configuration document, and perform content parsing on the environment parameter configuration document based on the content prompt words by using a semantic understanding model to obtain a content parsing result.

[0100] The configuration parameter determining unit is configured to determine to-be-configured environment configuration parameters of a to-be-configured environment of the target application system according to the content parsing result.

[0101] Optionally, the content parsing unit is specifically configured to:

[0102] input the environment parameter configuration document into a pre-trained prompt word generation model to obtain content prompt words output by the model;

[0103] The prompt word generation model is pre-trained on a pre-constructed semantic recognition model by using historical environment parameter configuration documents of different configuration environments and corresponding historical content prompt words in a historical time period.

[0104] Optionally, the configuration parameter determining unit comprises:

[0105] The content parsing subunit is configured to perform content parsing on the environment parameter configuration document by using a pre-trained document content parsing model to obtain a reference parsing result.

[0106] The configuration parameter determining subunit is configured to determine to-be-configured environment configuration parameters of a to-be-configured environment of the target application system according to the content parsing result and the reference parsing result.

[0107] Optionally, the configuration parameter determining subunit is specifically configured to:

[0108] determine a parsing result similarity between the content parsing result and the reference parsing result;

[0109] if the parsing result similarity is higher than a preset similarity threshold, determine the content parsing result as the to-be-configured environment configuration parameters of the to-be-configured environment of the target application system; and

[0110] If the analysis result similarity is not higher than a preset similarity threshold, the content analysis result and the reference analysis result are combined to obtain a combined analysis result, and the combined analysis result is determined as the to-be-configured environment configuration parameter of the target application system.

[0111] Optionally, the environment parameter configuration mapping relationship table stores a mapping relationship between a virtual parameter configuration item and an actual parameter configuration item; and correspondingly, the configuration parameter updating module 302 is specifically configured to:

[0112] obtain a virtual parameter configuration item identical to the to-be-configured parameter configuration item from the environment parameter configuration mapping relationship table;

[0113] update the to-be-configured parameter configuration item by using an actual parameter configuration item having a mapping relationship with the virtual parameter configuration item identical to the to-be-configured parameter configuration item, to obtain a target parameter configuration item of the to-be-configured environment configuration parameter;

[0114] set a to-be-configured parameter variable value of the corresponding to-be-configured parameter configuration item as a target parameter variable value of the target parameter configuration item.

[0115] The environment parameter configuration apparatus provided in the embodiments can execute the environment parameter configuration method provided in any of the embodiments, and has the corresponding function modules and beneficial effects of the execution method.

[0116] Embodiment Four

[0117] Figure 4 A structural schematic diagram of an electronic device 40 that can be used to implement embodiments of the present application is shown. The electronic device is intended to represent various forms of digital computers, such as laptops, desktops, tablets, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device can also represent various forms of mobile devices, such as personal digital assistants, cellular telephones, smart phones, wearable devices (e.g., headsets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be examples only, and are not intended to limit the implementations of the present application described and / or claimed in this document.

[0118] As Figure 4As shown, the electronic device 40 includes at least one processor 41, and a memory, such as a read-only memory (ROM) 42, a random access memory (RAM) 43, etc., connected to the at least one processor 41 in communication. The memory stores computer programs executable by the at least one processor 41, and the processor 41 can perform various appropriate actions and processes according to the computer programs stored in the read-only memory (ROM) 42 or loaded from the storage unit 48 into the random access memory (RAM) 43. In the RAM 43, various programs and data required for the operation of the electronic device 40 can also be stored. The processor 41, the ROM 42, and the RAM 43 are connected to each other through a bus 44. An input / output (I / O) interface 45 is also connected to the bus 44.

[0119] Various components in the electronic device 40 are connected to the I / O interface 45, including an input unit 46, such as a keyboard, a mouse, etc., an output unit 47, such as various types of displays, a speaker, etc., a storage unit 48, such as a magnetic disk, an optical disk, etc., and a communication unit 49, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 49 allows the electronic device 40 to exchange information / data with other devices through a computer network, such as the Internet, and / or various telecommunication networks.

[0120] The processor 41 can be various general and / or special-purpose processing components having processing and computing capabilities. Some examples of the processor 41 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special-purpose artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 41 performs various methods and processes described above, such as the environmental parameter configuration method.

[0121] In some embodiments, the environmental parameter configuration method can be implemented as a computer program tangibly embodied in a computer readable storage medium, such as the storage unit 48. In some embodiments, part or all of the computer program can be loaded and / or installed onto the electronic device 40 via the ROM 42 and / or the communication unit 49. When the computer program is loaded onto the RAM 43 and executed by the processor 41, one or more steps of the environmental parameter configuration method described above can be performed. Alternatively, in other embodiments, the processor 41 can be configured to perform the environmental parameter configuration method by any other appropriate means, such as by means of firmware.

[0122] The various embodiments of the systems and techniques described above can be implemented in digital electronic circuitry, integrated circuitry, a field programmable gate array (FPGA), an application specific integrated circuit (ASIC), a system on a chip (SOC), a load programmable logic device (CPLD), computer hardware, firmware, software, and / or combinations thereof. These various embodiments can include implementation in one or more computer programs that are executable and / or interpretable on a programmable system including at least one programmable processor, which can be special or general purpose, coupled to receive data and instructions from, and to transmit data and instructions to, a storage system, at least one input device, and at least one output device.

[0123] Computer programs used to implement the processes of the application can be written in any combination of one or more programming languages. These computer programs can be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the computer program, when executed, can cause instructions defined in the flow charts and / or block diagrams to be implemented. The computer program can be executed entirely on a machine, partially on a machine, partially on a machine as a standalone software package and partially on a remote machine or entirely on a remote machine or server.

[0124] In the context of the present application, a computer-readable storage medium can be a tangible medium that can contain or store computer programs for use by or in connection with an instruction execution system, apparatus, or device. Computer-readable storage media can include, but are not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium can be a machine-readable signal medium. More specific examples of the machine-readable storage medium will include one or more lines of electrical connections, portable computer disks, hard disk drives, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or Flash memory), optical fibers, portable compact disc read-only memories (CD-ROMs), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.

[0125] To provide for interaction with a user, the systems and techniques described here can be implemented on an electronic device having a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user and a keyboard and a pointing device (e.g., a mouse or a trackball) by which the user can provide input to the electronic device. Other kinds of devices can be used to provide for interaction with a user as well; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form, including acoustic, speech, or tactile input.

[0126] The systems and techniques described here can be implemented in a computing system that includes a back end component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front end component (e.g., a user computer having a graphical user interface or a Web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such back end, middleware, or front end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.

[0127] The computing system can include clients and servers. A client and server are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. A server can be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system, to solve the defects of large management difficulty and weak business scalability in traditional physical host and VPS service.

[0128] It should be understood that the various forms of flow shown above can be re-ordered, added to, or deleted from without departing from the scope of the present disclosure. For example, the steps recited in the present disclosure can be executed in parallel, executed in sequence, or executed in a different order, as long as the desired results of the present disclosure are achieved, and the present disclosure is not limited herein.

[0129] The specific embodiments described above are not intended to be limiting, and persons skilled in the art will appreciate that various modifications, combinations, sub-combinations and alternatives can be made to the specific embodiments without departing from the spirit and principles of the disclosure. Accordingly, the disclosure is not limited to the specific embodiments described above, but only by the scope of the appended claims.

Claims

1. A method for configuring environmental parameters, characterized in that, include: In response to a request from a target application system to configure environment parameters for an environment to be configured, the system queries the parameter configuration application list to see if there are any environment configuration parameters for the target application system's environment to be configured. The parameter configuration application list contains environment configuration parameters for at least one application system in at least one configuration environment. The environment configuration parameters include at least one parameter configuration item and its corresponding parameter variable value. If it exists, then according to the preset environment parameter configuration mapping relationship table, update the configuration items of the configuration parameters to be configured and their corresponding variable values ​​in the configuration parameters to be configured, so as to obtain the target parameter configuration items of the configuration parameters to be configured and their corresponding target parameter variable values. The target parameter configuration items and their corresponding target parameter variable values ​​of the environment configuration parameters to be configured are synchronized to the environment parameter configuration center, so that the environment parameter configuration center can automatically configure the environment parameters of the target application system based on the target parameter configuration items and their corresponding target parameter variable values; the environment parameter configuration center is a tool or service for centralized management and dynamic configuration of system environment parameters. The environment parameter configuration mapping table stores the mapping relationship between virtual parameter configuration items and actual parameter configuration items; the actual parameter configuration items are the real parameter configuration items required when configuring environment parameters in actual configuration scenarios; the virtual parameter configuration items are parameter configuration items whose names have been simplified from the actual parameter configuration items. Accordingly, updating the configuration items to be configured and their corresponding variable values ​​in the configuration parameters to be configured in the environment configuration parameters to be configured, based on the preset environment parameter configuration mapping table, to obtain the target parameter configuration items and their corresponding target parameter variable values ​​of the environment configuration parameters to be configured, includes: Obtain the virtual parameter configuration item that is the same as the parameter configuration item to be configured from the environment parameter configuration mapping table; The actual parameter configuration item that has a mapping relationship with the virtual parameter configuration item that is the same as the parameter configuration item to be configured is used to update the parameter configuration item to be configured, so as to obtain the target parameter configuration item of the environment configuration parameter to be configured. The value of the parameter variable to be configured in the corresponding parameter configuration item is used as the target parameter variable value of the target parameter configuration item.

2. The method according to claim 1, characterized in that, After responding to the environment parameter configuration request from the target application system and querying the parameter configuration application list to see if the environment configuration parameters for the target application system's environment exist, the method further includes: If the configuration parameters for the environment to be configured for the target application system are not found in the parameter configuration application list, then the environment parameter configuration document for the target application system is obtained. The environment parameter configuration document is parsed to obtain the configuration parameters of the environment to be configured for the target application system, and the configuration parameters of the environment to be configured are added to the parameter configuration application list.

3. The method according to claim 2, characterized in that, The step of parsing the environment parameter configuration document to obtain the configuration parameters of the target application system's environment to be configured includes: The content prompts of the environment parameter configuration document are determined, and a semantic understanding model is used to parse the content of the environment parameter configuration document based on the content prompts to obtain the content parsing results; Based on the content parsing results, the configuration parameters of the environment to be configured for the target application system are determined.

4. The method according to claim 3, characterized in that, The step of determining the content prompts for the environment parameter configuration document includes: The environmental parameter configuration document is input into the pre-trained prompt word generation model to obtain the content prompt words output by the model; The prompt word generation model is obtained by pre-training a pre-built semantic recognition model with historical environment parameter configuration documents and their corresponding historical content prompt words under different configuration environments in historical time periods.

5. The method according to claim 3, characterized in that, The step of determining the configuration parameters of the target application system's environment to be configured based on the content parsing results includes: A pre-trained document content parsing model is used to parse the environmental parameter configuration document to obtain a reference parsing result. Based on the content parsing results and the reference parsing results, the configuration parameters of the environment to be configured for the target application system are determined.

6. The method according to claim 5, characterized in that, The step of determining the configuration parameters of the target application system's environment to be configured based on the content parsing result and the reference parsing result includes: Determine the similarity between the content parsing result and the reference parsing result; If the similarity of the parsing result is higher than a preset similarity threshold, then the content parsing result is determined as the configuration parameters of the environment to be configured for the target application system; and, If the similarity of the parsing results is not higher than the preset similarity threshold, the content parsing results and the reference parsing results are merged to obtain a merged parsing result, and the merged parsing result is determined as the configuration parameters of the environment to be configured for the target application system.

7. An environmental parameter configuration device, characterized in that, include: The configuration parameter query module is used to respond to the environment parameter configuration request of the target application system for the environment to be configured, and to query the parameter configuration application list to see if there are environment configuration parameters for the environment to be configured of the target application system; the parameter configuration application list contains environment configuration parameters for at least one application system in at least one configuration environment; the environment configuration parameters include at least one parameter configuration item and its corresponding parameter variable value; The configuration parameter update module is used to update the configuration items of the configuration parameters to be configured and their corresponding configuration variable values ​​in the configuration parameters of the environment to be configured according to the preset environment parameter configuration mapping table if the configuration application list contains configuration parameters of the environment to be configured of the target application system, so as to obtain the target parameter configuration items of the configuration parameters of the environment to be configured and their corresponding target parameter variable values. The parameter variable value synchronization module is used to synchronize the target parameter configuration items and their corresponding target parameter variable values ​​of the environment configuration parameters to be configured to the environment parameter configuration center, so that the environment parameter configuration center can automatically configure the environment parameters of the target application system based on the target parameter configuration items and their corresponding target parameter variable values. The environment parameter configuration mapping table stores the mapping relationship between virtual parameter configuration items and actual parameter configuration items; the configuration parameter update module is specifically used for: Obtain the virtual parameter configuration item that is the same as the parameter configuration item to be configured from the environment parameter configuration mapping table; The actual parameter configuration item that has a mapping relationship with the virtual parameter configuration item that is the same as the parameter configuration item to be configured is used to update the parameter configuration item to be configured, so as to obtain the target parameter configuration item of the environment configuration parameter to be configured. The actual parameter configuration items are the real parameter configuration items required when configuring environmental parameters in actual configuration scenarios; The virtual parameter configuration item is a parameter configuration item whose name is simplified after the actual parameter configuration item is named; The value of the parameter variable to be configured in the corresponding parameter configuration item is used as the target parameter variable value of the target parameter configuration item. The environment parameter configuration center is a tool or service for centralized management and dynamic configuration of system environment parameters.

8. An electronic device, characterized in that, The electronic device includes: At least one processor; and A memory communicatively connected to the at least one processor; wherein, The memory stores a computer program that can be executed by the at least one processor to enable the at least one processor to perform the environmental parameter configuration method according to any one of claims 1-6.

9. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer instructions that cause a processor to execute the environmental parameter configuration method according to any one of claims 1-6.

Citation Information

Patent Citations

  • Method for dynamically configuring instrument parameter interface in automatic testing system software

    CN108334365A

  • Project environment configuration method and device, computer equipment and storage medium

    CN115756662A