Environment parameter configuration method and device, equipment and storage medium
By querying and updating the environment parameters of the application system, the automatic configuration of the application system environment parameters is realized, solving the problems of inefficient configuration and error-prone in the existing technology, and improving configuration accuracy and efficiency.
Patent Information
- Application Number
- CN202411724932.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-28
- Publication Date
- 2025-03-21
- Estimated Expiration
- 2044-11-28
AI Technical Summary
During the development or operation and maintenance of application systems, the configuration of environmental parameters is inefficient and is easily affected by subjectivity, resulting in configuration errors and affecting the normal operation of the application system.
Automatic configuration of application system environment parameters by querying the configuration parameters of the target application system from the parameter configuration application list, and updating and synchronizing configuration parameters according to the preset environment parameter configuration mapping relationship table can be achieved.
It improves the efficiency and accuracy of environmental parameter configuration, reduces manual participation, and reduces human resource requirements.
Smart Images

Figure CN119668716A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of artificial intelligence technology, and in particular to an environmental parameter configuration method, device, equipment and storage medium. Background Art
[0002] During the development or operation of an application system, the environment parameter variables that the application system depends on in different environments are usually recorded in text documents. During the application system testing or development in the corresponding environment, the environment administrator needs to configure the environment parameters in the corresponding configuration center or configuration platform based on the text document content.
[0003] However, due to different environment versions, multiple versions of environment parameter variables need to be maintained in text documents. During the configuration process, the environment administrator needs to perform manual configuration. This configuration method is inefficient and affected by human subjectivity. Environment parameter configuration errors are prone to occur during the configuration process, which can affect the normal operation of the application system program. Summary of the invention
[0004] The present invention provides an environmental parameter configuration method, device, equipment and storage medium to improve the environmental parameter configuration efficiency and configuration accuracy.
[0005] According to one aspect of the present invention, there is provided a method for configuring environmental parameters, the method comprising:
[0006] In response to a target application system's request for configuring an environment parameter of a to-be-configured environment, querying from a parameter configuration application list whether there is an environment configuration parameter of the to-be-configured environment of the target application system; the parameter configuration application list contains an environment configuration parameter of at least one application system under at least one configuration environment; the environment configuration parameter includes at least one parameter configuration item and its corresponding parameter variable value;
[0007] If it exists, then according to the preset environment parameter configuration mapping relationship table, update the configuration item of the parameter to be configured in the environment configuration parameter to be configured and its corresponding variable value of the parameter to be configured, and obtain the target parameter configuration item of the environment configuration parameter to be configured and its corresponding variable value of the target parameter;
[0008] The target parameter configuration items of the environment configuration parameters to be configured and their corresponding target parameter variable values are synchronized to the environment parameter configuration center, so that the environment parameter configuration center can configure the environment parameters of the target application system to be configured based on the target parameter configuration items and their corresponding target parameter variable values.
[0009] According to another aspect of the present invention, there is provided an environmental parameter configuration device, the device comprising:
[0010] A configuration parameter query module, configured to query from a parameter configuration application list whether there is a configuration parameter of the environment to be configured of the target application system in response to an environment parameter configuration request of the environment to be configured; the parameter configuration application list contains environment configuration parameters of at least one application system under at least one configuration environment; the environment configuration parameters include at least one parameter configuration item and its corresponding parameter variable value;
[0011] A configuration parameter updating module is used to update the configuration items of the to-be-configured parameters and their corresponding variable values of the to-be-configured parameters in the configuration parameters of the to-be-configured environment of the target application system according to a preset environment parameter configuration mapping relationship table if the to-be-configured environment configuration parameters of the to-be-configured environment exist in the digital configuration application list, so as to obtain the target parameter configuration items of the to-be-configured environment configuration parameters and their corresponding target parameter variable values;
[0012] The parameter variable value synchronization module is used to synchronize the target parameter configuration items of the environment configuration parameters to be configured and their corresponding target parameter variable values to the environment parameter configuration center, so that the environment parameter configuration center can configure the environment parameters of the target application system to be configured based on the target parameter configuration items and their corresponding target parameter variable values.
[0013] According to another aspect of the present invention, an electronic device is provided, the electronic device comprising:
[0014] at least one processor; and
[0015] a memory communicatively connected to the at least one processor; 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 so that the at least one processor can execute the environmental parameter configuration method described in any embodiment of the present invention.
[0017] According to another aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the environmental parameter configuration method described in any embodiment of the present invention when executed.
[0018] The technical solution of the present invention queries whether there are environment configuration parameters to be configured of the target application system's environment to be configured from the parameter configuration application list, and when it is found that they exist, the updated target parameter configuration items of the environment configuration parameters to be configured and their corresponding target parameter variable values are synchronized to the environment parameter configuration center according to the environment configuration parameter mapping relationship in the environment parameter configuration mapping relationship table, thereby realizing automatic configuration of the environment parameters of the application system. No manual configuration is required during the configuration process, which reduces human resources while improving the configuration efficiency and configuration accuracy of the application system's environment parameters.
[0019] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0021] Figure 1 is a flow chart of an environmental parameter configuration method provided according to Embodiment 1 of the present invention;
[0022] Figure 2 is a flow chart of an environmental parameter configuration method provided according to Embodiment 2 of the present invention;
[0023] Figure 3 is a structural schematic diagram of an environmental parameter configuration device provided according to Embodiment 3 of the present invention;
[0024] Figure 4 It is a structural schematic diagram of an electronic device for implementing the environmental parameter configuration method of an embodiment of the present invention. DETAILED DESCRIPTION
[0025] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0026] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0027] Embodiment 1
[0028] Figure 1 This is a flow chart of an environment parameter configuration method provided in the first embodiment of the present invention. This embodiment can be applied to the automatic configuration of environment parameter variables in different version environments involved in the development or operation of an application system. The method can be executed by an environment parameter configuration device, which can be implemented in the form of hardware and / or software, and can be configured in an electronic device. Figure 1 As shown, the method includes:
[0029] S110. In response to the target application system's request for configuring environmental parameters of the environment to be configured, query from the parameter configuration application list whether there are configuration parameters of the environment to be configured of the target application system; the parameter configuration application list contains environmental configuration parameters of at least one application system under at least one configuration environment; the environmental configuration parameters include at least one parameter configuration item and its corresponding parameter variable value.
[0030] S120: If it exists, then update the configuration items of the parameters to be configured and their corresponding variable values of the parameters to be configured in the environment configuration parameters to be configured according to the preset environment parameter configuration mapping relationship table, and obtain the target parameter configuration items of the environment configuration parameters to be configured and their corresponding target parameter variable values.
[0031] S130, synchronizing the target parameter configuration items of the environment configuration parameters to be configured and their corresponding target parameter variable values to the environment parameter configuration center, so that the environment parameter configuration center can configure the environment parameters of the environment to be configured of the target application system based on the target parameter configuration items and their corresponding target parameter variable values.
[0032] The target application system may be an application system that needs to perform environment parameter configuration in the current time period. The environment to be configured may be an environment version that needs to perform environment parameter configuration in the target application system in the current time period. For example, the environment versions maintained by the target application system include development environment, test environment, and production environment. The environment parameter configuration request may be a request to configure the environment parameters of the environment to be configured for the target application system. The initiator may be any party that has requirements and permissions for environment parameter configuration, such as an environment administrator.
[0033] The parameter configuration application list may be pre-constructed by relevant technical personnel to store environment configuration parameters under at least one configuration environment of at least one application system. Environment configuration parameters of different application systems under different configuration environments may be stored in the parameter configuration application list by pre-processing and generating. The parameter configuration application list may be updated regularly or irregularly based on a preset list update cycle, and environment configuration parameters of the corresponding configuration environment of the corresponding application system may 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 may be stored in an identification manner. Specifically, for the environment configuration parameters of application system A in the test environment, a unique identification of application system A is determined, such as the name of the application system, etc., an association relationship between the unique identification of application system A and the environment configuration parameters in the test environment is established, and the association relationship is stored in the parameter configuration application list.
[0035] The environment configuration parameters may include at least one parameter configuration item and its corresponding parameter variable value. For example, if the parameter configuration item is the Redis connection address, the corresponding parameter variable value may be, for example, 196.168.1.XXX; if the parameter configuration item is the database host name, the corresponding parameter variable may be the database domain name (such as db.example.XXX); if the parameter configuration item is the port number, the corresponding parameter variable may be the specific number value of the port number (such as 90XX).
[0036] Exemplarily, in response to an environment parameter configuration request for 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; through the unique identifier of the target application system, each application system in the parameter application list is traversed to check whether the target application system exists; if so, the environment configuration parameters under the target application system are traversed to check whether there are environment configuration parameters to be configured of the environment to be configured of the target application system, and if so, 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 configuration item of the parameter to be configured and its corresponding variable value of the parameter to be configured.
[0037] It should be noted that in actual scenarios, when the configuration center or configuration platform configures the environment parameters of the application system, the names of the parameter configuration items of the environment configuration parameters vary in length. Usually, the environment configuration parameters of the application system are stored in the configuration document in text form. Since the configuration document needs to store environment configuration parameters of different environment versions, its storage system is large and occupies a large content space. When it is temporarily stored in the parameter configuration application list later, the traversal process is time-consuming and inefficient. Therefore, an environment parameter configuration mapping relationship table can be pre-constructed to store the parameter configuration items in the environment configuration parameters required by the configuration center or configuration platform in practice, and virtual parameter configuration items can be stored in the parameter configuration application list, thereby saving the space occupied by the parameter configuration application list, and increasing the traversal speed and efficiency during the environment parameter query process.
[0038] In an optional embodiment, the environment parameter configuration mapping relationship table stores a mapping relationship between virtual parameter configuration items and actual parameter configuration items; accordingly, according to the preset environment parameter configuration mapping relationship table, the configuration items of the parameters to be configured in the environment configuration parameters to be configured and their corresponding variable values of the parameters to be configured are updated to obtain the target parameter configuration items of the environment configuration parameters to be configured and their corresponding target parameter variable values, including:
[0039] Step a1: Obtain a virtual parameter configuration item that is the same as the parameter configuration item to be configured from the environment parameter configuration mapping relationship table.
[0040] The actual parameter configuration items are the real parameter configuration items required for the environment parameter configuration in the actual configuration scenario; the virtual parameter configuration items are the parameter configuration items whose names are simplified in order to reduce the space occupied. For example, the construction form of the environment parameter configuration mapping relationship table can be shown in Table 1.
[0041] Table 1
[0042]
[0043] Step a2: using an actual parameter configuration item having a mapping relationship with the same virtual parameter configuration item as the parameter configuration item to be configured, updating the parameter configuration item to be configured, and obtaining a target parameter configuration item of the environment configuration parameter to be configured.
[0044] Specifically, obtain the virtual parameter configuration item that is the same as the parameter configuration item to be configured from the environment parameter configuration mapping relationship table. Continuing with the example in Table 1 above, if the virtual parameter configuration item that is the same as the parameter configuration item to be configured is "MS / IP", the actual parameter configuration item "MySQL (My Structured Query Language) database connection address" corresponding to MS / IP is used to update the parameter configuration item to be configured, and the "MySQL database connection address" is used as the target parameter configuration item of the environment configuration parameter to be configured.
[0045] Step a3: Use the to-be-configured parameter variable value of the corresponding to-be-configured parameter configuration item as the target parameter variable value of the target parameter configuration item.
[0046] The variable value of the parameter to be configured of the parameter configuration item to be configured is used as the target parameter variable value of the target parameter configuration item.
[0047] The above technical solution stores the mapping relationship between virtual parameter configuration items and actual parameter configuration items by presetting the environment parameter configuration relationship table, so that the environment configuration parameters to be configured temporarily stored in the parameter configuration application list occupy less memory, saving data table space while improving the efficiency of subsequent traversal of the environment configuration parameters in the table. In addition, since the environment parameter configurations of different application systems are recorded in the configuration file in text form, the space occupied by the long-term stored configuration file is further reduced, the efficiency of subsequent file parsing of the configuration file is improved, and the efficiency of the environment parameter configuration of the application system is further improved.
[0048] The target parameter configuration items of the environment configuration parameters to be configured and their corresponding target parameter variable values 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 items and their corresponding target parameter variable values, the environment parameter configuration center can automatically configure the environment parameters of the target application system to be configured, without the need for relevant management personnel to perform manual configuration in the environment parameter configuration center.
[0049] The technical solution of the present invention queries whether there are environment configuration parameters to be configured of the target application system's environment to be configured from the parameter configuration application list, and when it is found that they exist, the updated target parameter configuration items of the environment configuration parameters to be configured and their corresponding target parameter variable values are synchronized to the environment parameter configuration center according to the environment configuration parameter mapping relationship in the environment parameter configuration mapping relationship table, thereby realizing automatic configuration of the environment parameters of the application system. No manual configuration is required during the configuration process, which reduces human resources while improving the configuration efficiency and configuration accuracy of the application system's environment parameters.
[0050] Embodiment 2
[0051] Figure 2 This is a flow chart of an environmental parameter configuration method provided in Embodiment 2 of the present invention. This embodiment is optimized and improved on the basis of the above-mentioned technical solutions.
[0052] Furthermore, after the step of "in response to the target application system's request for configuring the environment parameters of the environment to be configured, querying from the parameter configuration application list whether there are the environment configuration parameters of the environment to be configured of the target application system to be configured", add the step of "if the environment configuration parameters of the environment to be configured of the target application system to be configured do not exist in the parameter configuration application list, obtaining the environment parameter configuration document of the target application system; parsing the environment parameter configuration document to obtain the environment configuration parameters of the environment to be configured of the target application system to be configured, and adding the environment configuration parameters to be configured to the parameter configuration application list." to improve the environment parameter configuration method for the target application system.
[0053] It should be noted that for the parts not described in detail in the embodiments of the present invention, reference can be made to the descriptions of other embodiments. Figure 2 As shown, the method comprises the following specific steps:
[0054] S210, in response to the target application system's request for configuring the environment parameters of the environment to be configured, query from the parameter configuration application list whether there is an environment configuration parameter of the environment to be configured of the target application system; the parameter configuration application list contains at least one environment configuration parameter of the application system under at least one configuration environment; the environment configuration parameter includes at least one parameter configuration item and its corresponding parameter variable value. If it exists, execute S211a-S211b; if it does not exist, execute S212a-S212b.
[0055] S211a, according to the preset environment parameter configuration mapping relationship table, update the configuration items of the parameters to be configured in the environment configuration parameters to be configured and their corresponding variable values of the parameters to be configured, and obtain the target parameter configuration items of the environment configuration parameters to be configured and their corresponding target parameter variable values.
[0056] S211b, synchronizing the target parameter configuration items of the environment configuration parameters to be configured and their corresponding target parameter variable values to the environment parameter configuration center, so that the environment parameter configuration center can configure the environment parameters of the environment to be configured of the target application system based on the target parameter configuration items and their corresponding target parameter variable values.
[0057] S212a. Obtain the 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 under different environment versions. Different application systems correspond to different environment parameter configuration documents.
[0059] S212b, parsing the environment parameter configuration document to obtain the configuration parameters of the environment to be configured of the target application system, and adding the configuration parameters of the environment to be configured to the parameter configuration application list.
[0060] Exemplarily, the environment parameter configuration document can be parsed using an existing document parsing method, and the parsed result can include the environment configuration parameters of the target application system under each environment version. The environment configuration parameters to be configured under the environment version of the environment to be configured can be added to the parameter configuration application list, or the environment configuration parameters under each environment version of the target application system obtained by parsing can be added to the parameter configuration application list for subsequent invocation when there is a configuration requirement.
[0061] The technical solution of this embodiment parses the acquired environment parameter configuration document when it is determined that the environment configuration parameters to be configured of the target application system do not exist in the parameter configuration application list, thereby obtaining the environment configuration parameters to be configured of the target application system and adding the value parameter configuration application list, thereby realizing the automatic generation of the environment configuration parameters to be configured of the target application system. During the whole process, there is no need for the environment management personnel to manually check and determine the environment configuration parameters to be configured through the environment parameter configuration document, thereby improving the generation efficiency and accuracy of the environment configuration parameters to be configured of the target application system.
[0062] It should be noted that in order to further improve the accuracy of parsing the environment parameter configuration document of the target application system, a semantic big model may be used to parse the document.
[0063] In an optional embodiment, the environment parameter configuration document is parsed to obtain the configuration parameters of the environment to be configured of the target application system, including:
[0064] Step b1: determine the content prompt words of the environment parameter configuration document, and use the semantic understanding model to perform content analysis on the environment parameter configuration document based on the content prompt words to obtain a content analysis result.
[0065] Among them, the content prompt words can be pre-set by relevant technical personnel according to actual needs; the semantic understanding model can be a natural language large model that provides user interaction services and is used to understand the user input content prompt words and output corresponding results. For example, the content prompt words 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 JSON (JavaScript Object Notation) file)".
[0066] The content prompt words and the environment parameter configuration document are input into the semantic understanding model, and the semantic understanding model extracts the relevant environment parameters from the environment parameter configuration document according to the content prompt words to obtain the content parsing result, which is the environment configuration parameter predicted by the model.
[0067] In order to further improve the generation efficiency and accuracy of content prompt words, this embodiment also provides a method for automatically generating content prompt words for an environment configuration parameter document.
[0068] Optionally, determining the content prompt words of the environment parameter configuration document includes: inputting the environment parameter configuration document into a pre-trained prompt word generation model to obtain content prompt words output by the model; wherein the prompt word generation model uses historical environment parameter configuration documents of different configuration environments in a historical time period and their corresponding historical content prompt words to pre-train a pre-built semantic recognition model.
[0069] Exemplarily, historical environment parameter configuration documents of different configuration environments under historical event cycles 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 relevant technical personnel according to actual needs to ensure the accuracy of the historical content prompt words.
[0070] Input the historical environment parameter configuration document and its corresponding historical content prompt words into the pre-built semantic recognition model to obtain the predicted content prompt words output by the model; determine the loss value based on the historical content prompt words and the predicted content prompt words of the historical environment parameter configuration document based on the preset loss function; based on the loss value, perform model training on the semantic recognition model until the model training end condition is met to obtain the prompt word generation model. Among them, the pre-built semantic recognition model can be, for example, a pre-trained language model based on a bidirectional Transformer structure. The loss function can be a Masked Language Model (MLM) loss function or a Next Sentence Prediction (NSP) loss function, which is not limited in this embodiment. The model training end condition can be pre-set by relevant technical personnel, for example, the loss value reaches a set threshold or the loss value no longer changes.
[0071] The environment parameter configuration document is input into the pre-trained prompt word generation model to obtain the content prompt words output by the model.
[0072] The above technical solution solves the problem of automatic adjustment of prompt word content when the environmental parameter configuration document is updated by using a pre-trained prompt word generation model to automatically generate content prompt words, thereby solving the problem of inaccurate input caused by not modifying the manually set content prompt words after the environmental parameter configuration document is updated, and realizes the automatic and accurate generation of content prompt words.
[0073] Step b2: Determine the configuration parameters of the environment to be configured of the target application system according to the content analysis result.
[0074] Exemplarily, the content analysis result can be determined as the configuration parameters of the environment to be configured of the target application system. In order to further improve the accuracy of determining the parameters of the environment to be configured, in addition to combining with other document analysis methods to further determine the configuration parameters of the environment to be configured, the accuracy of determining the environment parameters is improved.
[0075] In an optional embodiment, determining the configuration parameters of the environment to be configured of the target application system according to the content analysis result includes:
[0076] Step b21: Use the pre-trained document content parsing model to perform content parsing on the environment parameter configuration document to obtain a reference parsing result.
[0077] The document content parsing model is used to parse the content in the environment parameter configuration document, and can be pre-trained by relevant technical personnel.
[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 annotated 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 the predicted configuration environment parameters of the model output; the text processing model is trained according to the standard configuration environment parameters and the predicted configuration environment parameters until the model training end conditions are met to obtain a document content parsing model.
[0079] The environment parameter configuration document of the target application system is input into the trained document content parsing model to obtain the reference parsing result output by the model.
[0080] Step b22: Determine the configuration parameters of the environment to be configured of the target application system according to the content analysis result and the reference analysis result.
[0081] Exemplarily, the content parsing result and the reference parsing result may be combined, and the combined result may be used as the configuration parameter of the environment to be configured of the target application system.
[0082] The above technical solution introduces a document content parsing model and uses the parsing results of the document content parsing model to adaptively adjust the content parsing results. In the process of determining the configuration parameters of the environment to be configured of the target application system, the parsing results generated by different document parsing methods are comprehensively considered, thereby improving the accuracy and reliability of the generation of the configuration parameters of the environment to be configured.
[0083] It should be noted that due to the accuracy and reliability of the semantic understanding model itself, the accuracy of the content parsing results obtained by its output is relatively high. However, due to the iterative update of the environment parameter configuration documents of different environment versions of the application system, its content is constantly changing. In addition, since the output results of the semantic understanding model are closely related to the generated content prompt words, its output accuracy is closely related to the accuracy of the content prompt word generation. Taking the above issues into consideration, in order to ensure the accuracy of the output results of the semantic understanding model, the reference parsing results output by the self-trained document content parsing model can be used to adjust the content parsing results.
[0084] Optionally, determining configuration parameters of the environment to be configured of the target application system's environment to be configured based on the content analysis result and the reference analysis result, including: determining the similarity of the analysis results between the content analysis result and the reference analysis result; if the similarity of the analysis results is higher than a preset similarity threshold, determining the content analysis result as the configuration parameters of the environment to be configured of the target application system's environment to be configured; if the similarity of the analysis results is not higher than the preset similarity threshold, merging the content analysis result and the reference analysis result to obtain a merged analysis result, and determining the merged analysis result as the configuration parameters of the environment to be configured of the target application system's environment to be configured.
[0085] The similarity of the parsing results can be calculated based on an existing similarity determination algorithm. For example, the similarity determination algorithm may include vocabulary-based similarity calculation, such as a word vector model, etc. The similarity threshold can be pre-set by relevant technicians based on actual needs or experience, for example, it can be set to 95%.
[0086] The above technical solution improves the accuracy of determining the configuration parameters of the environment to be configured by determining the similarity between the content parsing results and the reference parsing results, and determining whether to use the reference parsing results to adjust the content parsing results based on the similarity, thereby avoiding the occurrence of inaccurate unilateral prediction results of the semantic understanding model.
[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 when traversing the parameter configuration application list later, the corresponding environment configuration parameters can be queried by different identifying parameter names, thereby improving query efficiency.
[0088] The technical solution of this embodiment determines the content prompt words of the environment parameter configuration document, and adopts a semantic understanding model to parse the content of the environment parameter configuration document based on the content prompt words to obtain a content parsing result, and determines the configuration parameters of the environment to be configured of the target application system based on the content parsing result, thereby improving the parsing efficiency and accuracy of the environment parameters to be configured.
[0089] Embodiment 3
[0090] Figure 3 The present invention provides a schematic diagram of the structure of an environment parameter configuration device provided in the third embodiment of the present invention. The environment parameter configuration device provided in the embodiment of the present invention can be applied to the automatic configuration of environment parameter variables in different version environments involved in the development or operation and maintenance of an application system. The environment parameter configuration device can be implemented in the form of hardware and / or software, such as Figure 3As shown, the device specifically includes: a configuration parameter query module 301, a configuration parameter update module 302 and a parameter variable value synchronization module 303. Among them,
[0091] The configuration parameter query module 301 is used to query whether there is a configuration parameter of the environment to be configured of the target application system in the parameter configuration application list in response to the environment parameter configuration request of the environment to be configured; the parameter configuration application list contains environment configuration parameters of at least one application system under at least one configuration environment; the environment configuration parameters include at least one parameter configuration item and its corresponding parameter variable value;
[0092] The configuration parameter updating module 302 is used to update the configuration items of the to-be-configured parameters and their corresponding variable values of the to-be-configured parameters in the configuration parameters of the to-be-configured environment according to the preset environment parameter configuration mapping relationship table if the to-be-configured environment configuration parameters of the to-be-configured environment of the target application system exist in the digital configuration application list, so as to obtain the target parameter configuration items of the to-be-configured environment configuration parameters and their corresponding variable values of the target parameter;
[0093] The parameter variable value synchronization module 303 is used to synchronize the target parameter configuration items of the environment configuration parameters to be configured and their corresponding target parameter variable values to the environment parameter configuration center, so that the environment parameter configuration center can perform environment parameter configuration for the environment to be configured of the target application system based on the target parameter configuration items and their corresponding target parameter variable values.
[0094] The technical solution of the present invention queries whether there are environment configuration parameters to be configured of the target application system's environment to be configured from the parameter configuration application list, and when it is found that they exist, the updated target parameter configuration items of the environment configuration parameters to be configured and their corresponding target parameter variable values are synchronized to the environment parameter configuration center according to the environment configuration parameter mapping relationship in the environment parameter configuration mapping relationship table, thereby realizing automatic configuration of the environment parameters of the application system. No manual configuration is required during the configuration process, which reduces human resources while improving the configuration efficiency and configuration accuracy of the application system's environment parameters.
[0095] Optionally, the device further comprises:
[0096] a configuration document acquisition module, configured to, after querying whether there is a configuration parameter of the environment to be configured of the target application system from the parameter configuration application list in response to the environment parameter configuration request of the target application system for the environment to be configured, acquire the environment parameter configuration document of the target application system if the configuration parameter of the environment to be configured of the target application system does not exist in the parameter configuration application list;
[0097] The document parsing module is used to parse the environment parameter configuration document to obtain the configuration parameters of the environment to be configured of the target application system, and add the configuration parameters of the environment to be configured to the parameter configuration application list.
[0098] Optional, document parsing module, including:
[0099] A content analysis unit, used to determine the content prompt words of the environment parameter configuration document, and use a semantic understanding model to perform content analysis on the environment parameter configuration document based on the content prompt words to obtain a content analysis result;
[0100] The configuration parameter determination unit is used to determine the configuration parameters of the environment to be configured of the target application system according to the content analysis result.
[0101] Optional content parsing unit, specifically used for:
[0102] Inputting the environmental parameter configuration document into a pre-trained prompt word generation model to obtain a content prompt word output by the model;
[0103] The prompt word generation model is obtained by pre-training a pre-built semantic recognition model using historical environment parameter configuration documents of different configuration environments under historical time periods and their corresponding historical content prompt words.
[0104] Optionally, a configuration parameter determination unit includes:
[0105] A content analysis subunit, configured to use a pre-trained document content analysis model to perform content analysis on the environment parameter configuration document to obtain a reference analysis result;
[0106] The configuration parameter determination subunit is used to determine the configuration parameters of the environment to be configured of the target application system according to the content parsing result and the reference parsing result.
[0107] Optionally, configuration parameters determine the subunit, specifically for:
[0108] Determining a parsing result similarity between the content parsing result and the reference parsing result;
[0109] If the similarity of the analysis result is higher than a preset similarity threshold, the content analysis result is determined as a configuration parameter of the environment to be configured of the target application system; and
[0110] If the similarity of the analysis result is not higher than a preset similarity threshold, the content analysis result and the reference analysis result are merged to obtain a merged analysis result, and the merged analysis result is determined as the configuration parameters of the environment to be configured of the target application system.
[0111] Optionally, the environment parameter configuration mapping relationship table stores a mapping relationship between virtual parameter configuration items and actual parameter configuration items; accordingly, the configuration parameter updating module 302 is specifically used to:
[0112] Acquire a virtual parameter configuration item that is the same as the parameter configuration item to be configured from the environment parameter configuration mapping relationship table;
[0113] Using an actual parameter configuration item having a mapping relationship with the same virtual parameter configuration item as the parameter configuration item to be configured, updating the parameter configuration item to be configured, and obtaining a target parameter configuration item of the environment configuration parameter to be configured;
[0114] The variable value of the parameter to be configured of the corresponding configuration item of the parameter to be configured is used as the target variable value of the target parameter configuration item.
[0115] The environmental parameter configuration device provided in the embodiment of the present invention can execute the environmental parameter configuration method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.
[0116] Embodiment 4
[0117] Figure 4 A schematic diagram of the structure of an electronic device 40 that can be used to implement an embodiment of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.
[0118] like Figure 4As shown, the electronic device 40 includes at least one processor 41, and a memory connected to the at least one processor 41, such as a read-only memory (ROM) 42, a random access memory (RAM) 43, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 41 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 42 or the computer program loaded from the storage unit 48 to 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] A number of 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, speakers, etc.; a storage unit 48, such as a 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 may be a variety of general and / or special processing components with 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 dedicated artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The processor 41 executes the various methods and processes described above, such as the environmental parameter configuration method.
[0121] In some embodiments, the environmental parameter configuration method may be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 48. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 40 via the ROM 42 and / or the communication unit 49. When the computer program is loaded into the RAM 43 and executed by the processor 41, one or more steps of the environmental parameter configuration method described above may be performed. Alternatively, in other embodiments, the processor 41 may be configured to execute the environmental parameter configuration method in any other appropriate manner (e.g., by means of firmware).
[0122] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0123] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0124] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in combination with an instruction execution system, device or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0125] To provide interaction with a user, the systems and techniques described herein may 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 trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).
[0126] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may 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] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may 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 difficult management and weak business scalability in traditional physical hosts and VPS services.
[0128] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.
[0129] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. A method for configuring environmental parameters, characterized in that: include: In response to a target application system's request for configuring an environment parameter of a to-be-configured environment, querying from a parameter configuration application list whether there is an environment configuration parameter of the to-be-configured environment of the target application system; the parameter configuration application list contains an environment configuration parameter of at least one application system under at least one configuration environment; the environment configuration parameter includes 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 item of the parameter to be configured in the environment configuration parameter to be configured and its corresponding variable value of the parameter to be configured, and obtain the target parameter configuration item of the environment configuration parameter to be configured and its corresponding variable value of the target parameter; The target parameter configuration items of the environment configuration parameters to be configured and their corresponding target parameter variable values are synchronized to the environment parameter configuration center, so that the environment parameter configuration center can configure the environment parameters of the target application system to be configured based on the target parameter configuration items and their corresponding target parameter variable values.
2. The method according to claim 1, characterized in that After the step of responding to the target application system's request for configuring the environment parameters of the environment to be configured, querying from the parameter configuration application list whether there is the environment configuration parameters to be configured of the environment to be configured of the target application system, the step further includes: If the environment configuration parameters to be configured of the target application system's environment to be configured do not exist in the parameter configuration application list, obtaining the environment parameter configuration document of the target application system; The environment parameter configuration document is parsed to obtain the environment configuration parameters to be configured of the environment to be configured of the target application system, and the environment configuration parameters 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 environment to be configured of the target application system includes: Determine the content prompt words of the environment parameter configuration document, and use a semantic understanding model to perform content analysis on the environment parameter configuration document based on the content prompt words to obtain a content analysis result; According to the content analysis result, configuration parameters of the environment to be configured of the target application system are determined.
4. The method according to claim 3, characterized in that: The step of determining the content prompt words of the environmental parameter configuration document includes: Inputting the environmental parameter configuration document into a pre-trained prompt word generation model to obtain a content prompt word output by the model; The prompt word generation model is obtained by pre-training a pre-built semantic recognition model using historical environment parameter configuration documents of different configuration environments under historical time periods and their corresponding historical content prompt words.
5. The method according to claim 3, characterized in that: Determining the configuration parameters of the environment to be configured of the target application system according to the content analysis result includes: Using a pre-trained document content parsing model, the environment parameter configuration document is parsed to obtain a reference parsing result; According to the content parsing result and the reference parsing result, configuration parameters of the environment to be configured of 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 environment to be configured of the target application system according to the content analysis result and the reference analysis result includes: Determining a parsing result similarity between the content parsing result and the reference parsing result; If the similarity of the analysis result is higher than a preset similarity threshold, the content analysis result is determined as a configuration parameter of the environment to be configured of the target application system; and If the similarity of the analysis result is not higher than a preset similarity threshold, the content analysis result and the reference analysis result are merged to obtain a merged analysis result, and the merged analysis result is determined as the configuration parameters of the environment to be configured of the target application system.
7. The method according to claim 1, characterized in that The environment parameter configuration mapping relationship table stores a mapping relationship between virtual parameter configuration items and actual parameter configuration items; Correspondingly, the configuration items of the parameters to be configured and their corresponding variable values of the parameters to be configured in the environment configuration parameters to be configured are updated according to the preset environment parameter configuration mapping relationship table, and the target parameter configuration items of the environment configuration parameters to be configured and their corresponding variable values of the parameters to be configured are obtained, including: Acquire a virtual parameter configuration item that is the same as the parameter configuration item to be configured from the environment parameter configuration mapping relationship table; Using an actual parameter configuration item having a mapping relationship with the same virtual parameter configuration item as the parameter configuration item to be configured, updating the parameter configuration item to be configured, and obtaining a target parameter configuration item of the environment configuration parameter to be configured; The variable value of the parameter to be configured of the corresponding configuration item of the parameter to be configured is used as the target variable value of the target parameter configuration item.
8. An environmental parameter configuration device, characterized in that: include: A configuration parameter query module, configured to query from a parameter configuration application list whether there is a configuration parameter of the environment to be configured of the target application system in response to an environment parameter configuration request of the environment to be configured; the parameter configuration application list contains environment configuration parameters of at least one application system under at least one configuration environment; the environment configuration parameters include at least one parameter configuration item and its corresponding parameter variable value; A configuration parameter updating module is used to update the configuration items of the to-be-configured parameters and their corresponding variable values of the to-be-configured parameters in the configuration parameters of the to-be-configured environment of the target application system according to a preset environment parameter configuration mapping relationship table if the to-be-configured environment configuration parameters of the to-be-configured environment exist in the digital configuration application list, so as to obtain the target parameter configuration items of the to-be-configured environment configuration parameters and their corresponding target parameter variable values; The parameter variable value synchronization module is used to synchronize the target parameter configuration items of the environment configuration parameters to be configured and their corresponding target parameter variable values to the environment parameter configuration center, so that the environment parameter configuration center can configure the environment parameters of the target application system to be configured based on the target parameter configuration items and their corresponding target parameter variable values.
9. An electronic device, characterized in that: The electronic device comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, 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 so that the at least one processor can execute the environmental parameter configuration method according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the environmental parameter configuration method according to any one of claims 1 to 7 when executed.
Citation Information
Patent Citations
Method for dynamically configuring instrument parameter interface in automatic testing system software
CN108334365A
Multi-service multi-environment management method and system
CN112506579A
Project environment configuration method and device, computer equipment and storage medium
CN115756662A
Configuration information modification method and device, computer equipment and storage medium
CN117234884A
Setting support device, and setting support method
US20150161509A1
