Parameter configuration method and device, processor and storage medium
By determining parameter templates and weight configurations, the problem of complex and ununiversal parameter configuration methods in existing methods is solved, the efficiency and applicability of parameter configurations are improved, and different business needs are met.
Patent Information
- Application Number
- CN202410779584.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-17
- Publication Date
- 2024-10-15
AI Technical Summary
The existing parameter configuration method is complex, has low configuration efficiency and is not universal, making it difficult to adapt to the needs of different business scenarios.
By determining the parameter template of the current business, obtaining the parameter table and making parameter recommendations, the values of the recommended parameters are configured according to the weights of different parameter combinations to improve the efficiency and universality of parameter configuration.
The efficiency and universality of parameter configuration are improved, which can better meet current business needs, reduce the impact of human subjective factors, and improve system usability and user experience.
Smart Images

Figure CN118778998A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a parameter configuration method, device, processor and storage medium. Background Art
[0002] With the improvement of the domestic information level, the software industry is booming, and the background stores a huge amount of data. Among them, various parameters are emerging in an endless stream. On the one hand, parameters constrain the growth of data and ensure the correctness of data. On the other hand, parameters will also expand with the growth of data. The problem that follows is that parameter configuration is becoming an increasingly difficult task in parameter maintenance. The existing parameter configuration method is complex to configure, and it is necessary to understand the association and constraint relationship between parameters. When the number of parameters is large, it takes time to configure, and the existing configuration information generation method is only applicable to a certain type of business or a certain type of scenario, and is not universal.
[0003] It can be seen that the existing parameter configuration methods have technical problems of low configuration efficiency and non-universality. Summary of the invention
[0004] The purpose of the embodiments of the present application is to provide a parameter configuration method, device, processor and storage medium.
[0005] In order to achieve the above object, the present application provides a parameter configuration method in a first aspect, comprising:
[0006] Determine the corresponding parameter template according to the current business;
[0007] Get a parameter table, where the parameter table includes a parameter table name, a parameter field name, and a parameter weight;
[0008] Recommend parameters based on the parameter table and parameter template to obtain recommended parameters;
[0009] Determine the weights of different parameter combinations according to the parameter table;
[0010] Configure the values of the recommended parameters according to the weights of different parameter combinations.
[0011] In the embodiment of the present application, the corresponding parameter template is determined according to the current business, including:
[0012] Determine business data based on current business;
[0013] Input the business data into the trained parameter template classification model to obtain the corresponding parameter template type;
[0014] Determine the parameter template based on the parameter template type.
[0015] In the embodiment of the present application, the weights of different parameter combinations are determined according to the parameter table, including:
[0016] Determine the number of parameter values that need to be involved in weight determination;
[0017] Establish a parameter combination weight table according to the number and parameter table, wherein the parameter combination weight table includes the parameter table name, the parameter combination name, the parameter combination value and the parameter combination weight;
[0018] The weights of different parameter combinations are determined according to the parameter combination weight table.
[0019] In the embodiment of the present application, a parameter combination weight table is established according to the number and parameter table, including:
[0020] Establish a parameter information table according to the number and the parameter table, wherein the parameter information table includes the parameter table name and number;
[0021] A parameter combination weight table is established based on the parameter information table and the parameter table.
[0022] In the embodiment of the present application, the values of the recommended parameters are configured according to the weights of different parameter combinations, including:
[0023] Sort the weights of different parameter combinations;
[0024] Determine parameter configuration values according to the sorting results;
[0025] Configure the recommended parameter values according to the parameter configuration values.
[0026] In an embodiment of the present application, the parameter configuration method further includes:
[0027] Back up the parameter table to obtain a backup table;
[0028] Update the backup table according to the values of the recommended parameters configured.
[0029] A second aspect of the present application provides a parameter configuration device, including:
[0030] A parameter template determination module is used to determine the corresponding parameter template according to the current business;
[0031] A parameter table acquisition module is used to acquire a parameter table, wherein the parameter table includes a parameter table name, a parameter field name and a parameter weight;
[0032] The parameter recommendation module is used to make parameter recommendations based on the parameter table and parameter template to obtain recommended parameters;
[0033] A parameter combination weight determination module is used to determine the weights of different parameter combinations according to the parameter table;
[0034] The recommended parameter configuration module is used to configure the values of the recommended parameters according to the weights of different parameter combinations.
[0035] A third aspect of the present application provides a processor configured to execute the above-mentioned parameter configuration method.
[0036] A fourth aspect of the present application provides a machine-readable storage medium, on which instructions are stored. When the instructions are executed by a processor, the processor is configured to execute the above-mentioned parameter configuration method.
[0037] A fifth aspect of the present application provides a computer program product, including a computer program, which implements the above-mentioned parameter configuration method when executed by a processor.
[0038] Through the above technical solution, parameter recommendations are made according to the preset parameter template, so that the parameters that need to be maintained can be quickly recommended, and the values of the recommended parameters are configured according to the weights of different parameter combinations, so that the values of the parameter configuration are more objective and reasonable, thereby effectively improving the configuration efficiency and universality of the parameter configuration, and better meeting current business needs.
[0039] Other features and advantages of the embodiments of the present application will be described in detail in the subsequent specific implementation section. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] The accompanying drawings are used to provide a further understanding of the embodiments of the present application and constitute a part of the specification. Together with the following specific implementations, they are used to explain the embodiments of the present application, but do not constitute a limitation on the embodiments of the present application. In the accompanying drawings:
[0041] Figure 1 The following is a schematic diagram showing a flow chart of a parameter configuration method according to an embodiment of the present application;
[0042] Figure 2 The structure block diagram of the parameter configuration device according to the embodiment of the present application is schematically shown;
[0043] Figure 3 The internal structure diagram of a computer device according to an embodiment of the present application is schematically shown. DETAILED DESCRIPTION
[0044] In order to make the purpose, technical scheme and advantages of the embodiments of the present application clearer, the technical scheme in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. It should be understood that the specific implementation methods described herein are only used to illustrate and explain the embodiments of the present application, and are not used to limit the embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.
[0045] It should be noted that if the embodiments of the present application involve directional indications (such as up, down, left, right, front, back...), the directional indications are only used to explain the relative position relationship, movement status, etc. between the components under a certain specific posture (as shown in the accompanying drawings). If the specific posture changes, the directional indication will also change accordingly.
[0046] In addition, if there are descriptions involving "first", "second", etc. in the embodiments of the present application, the descriptions of "first", "second", etc. are only used for descriptive purposes and cannot be understood as indicating or suggesting their relative importance or implicitly indicating the number of technical features indicated. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In addition, the technical solutions between the various embodiments can be combined with each other, but they must be based on the ability of ordinary technicians in the field to implement them. When the combination of technical solutions is contradictory or cannot be implemented, it should be deemed that such combination of technical solutions does not exist and is not within the scope of protection required by this application.
[0047] In addition, the acquisition, transmission, storage, use, and processing of data in the technical solution of this application comply with the relevant provisions of national laws and regulations.
[0048] Figure 1 The following is a schematic diagram showing a flow chart of a parameter configuration method according to an embodiment of the present application. Figure 1 As shown, in one embodiment of the present application, a parameter configuration method is provided, comprising the following steps:
[0049] Step 110, determining a corresponding parameter template according to the current business;
[0050] It can be understood that the parameter configuration method provided in the embodiment of the present application can be used to perform parameter maintenance on the parameters in the system under test, thereby ensuring that the system under test maintains a stable, efficient and safe operating state under the ever-changing configuration environment and requirements, thereby improving the system's availability and user experience.
[0051] Before configuring parameters, you first need to determine the current business, including the business type, characteristics, and required functions and performance of the current business. Based on a deep understanding of the current business, you can determine the parameter configuration requirements applicable to the business. In order to configure parameters more efficiently, you can prepare a series of parameter templates in advance. These parameter templates are pre-configured according to different businesses and are applicable to a variety of businesses. They include parameter settings for different businesses. By entering the parameter table that needs to be maintained into the parameter template corresponding to the current business, you can quickly recommend the parameters that need to be maintained, thereby effectively improving the configuration efficiency and universality of parameter configuration and better meeting current business needs.
[0052] In the embodiment of the present application, step 110 includes:
[0053] Determine business data based on current business;
[0054] Input the business data into the trained parameter template classification model to obtain the corresponding parameter template type;
[0055] Determine the parameter template based on the parameter template type.
[0056] Specifically, the business data is determined according to the current business, and the business data may include the business type, characteristics, and required functions and performance of the current business; in order to ensure the integrity and accuracy of the business data, the business data is preprocessed, such as data cleaning, normalization, etc., and the preprocessed data is input into the trained parameter template classification model to obtain the parameter template type corresponding to the current business, wherein the parameter template classification model is trained based on the relationship data between historical business data and parameter templates, and the parameter template classification model can be a decision tree, a k-nearest neighbor algorithm, a support vector machine, etc. The specific type of the parameter template classification model can be set according to the actual situation, and the embodiment of the present application does not limit this; according to the parameter template type output by the parameter template classification model, the parameter template corresponding to the current business is determined. By inputting the business data into the trained parameter template classification model, the parameter template that best suits the current business can be selected quickly and accurately, thereby ensuring the rationality of the initial state of the parameter configuration and improving the efficiency and accuracy of the parameter configuration.
[0057] Step 120, obtaining a parameter table, wherein the parameter table includes a parameter table name, a parameter field name, and a parameter weight;
[0058] It is understandable that when making parameter recommendations, the parameter table that needs to be maintained is first obtained, wherein the parameter table includes information such as parameter table name, parameter field name, parameter weight, parameter value, etc., which is used to indicate the parameter table names of multiple sub-parameter tables that need to be maintained, the parameter field names contained in each sub-parameter table, the weight of each parameter field, and the parameter value of each parameter field. Specifically, the parameter table is obtained by, but is not limited to, obtaining it through a metadata management system, a data dictionary, a business system interface, and a database query. Among them, the metadata management system is used to manage various data and objects in the system, and the parameter table is usually managed as one of the metadata objects. The parameter table can be obtained and managed through the metadata management system; the data dictionary is the description and definition of all data objects and data elements in the system under test, which also includes the definition of the parameter table. The relevant information of the parameter table can be obtained by consulting the data dictionary; in some cases, the system under test will provide an interface or service for obtaining metadata information in the system, including the definition of the parameter table. By calling these interfaces, the parameter table information defined in the system can be obtained; the parameter table can also be usually stored in a database, for example, the definition and content of the parameter table can be obtained through the database query language SQL (Structured Query Language). The specific parameter table acquisition method can be selected according to actual needs, and the embodiments of the present application are not limited to this.
[0059] Table 1 schematically shows a parameter table according to an embodiment of the present application. It should be noted that the specific parameter table name and the specific parameter field name in Table 1, as well as the number of parameter table names and parameter field names can be set according to actual needs, and the embodiment of the present application does not limit this. The information of the parameter table includes but is not limited to the parameter table name, parameter field name and parameter weight. Table 1 only schematically shows these three types of information. By obtaining the parameter table that needs to be maintained, a data basis is provided for subsequent parameter recommendation based on the parameter table.
[0060] Table 1 Parameters
[0061] Parameter table name Parameter field name Parameter weight t t1 w1 t t2 w2 t t3 w3 ... ... ... s s1 w4 s s2 w5 s s3 w6 ... ... ...
[0062] Step 130, performing parameter recommendation according to the parameter table and the parameter template to obtain recommended parameters;
[0063] Specifically, the obtained parameter table is input into the parameter template determined according to the current business, and the parameter template is used to recommend parameters for the parameter fields in the parameter table that need parameter maintenance to obtain recommended parameters. It should be noted that the recommended parameters can be one or more. Taking Table 1 as an example, the recommended parameters can be t1, t2, s3, etc. And the recommended parameters only provide a reference for operation and maintenance personnel. Operation and maintenance personnel can make further evaluations and decisions based on actual conditions. It is not necessary to maintain the recommended parameters. When determining which specific parameter fields need to be maintained, it is necessary to comprehensively consider the current business needs and the operation status of the system under test.
[0064] Using parameter templates for parameter recommendation can standardize and normalize the parameter recommendation process, guide operation and maintenance personnel to configure parameters more accurately, reduce the impact of human subjective factors on parameter configuration, and help improve the configuration efficiency and universality of parameter configuration. In addition, parameter templates can also be used to recommend multiple recommended parameters, thereby providing operation and maintenance personnel with a reasonable parameter configuration reference range, helping operation and maintenance personnel to adjust and optimize parameters more effectively, thereby improving the performance and stability of the system under test.
[0065] Step 140, determining weights of different parameter combinations according to the parameter table;
[0066] It can be understood that the parameter combination is composed of different parameter fields. Taking Table 1 as an example, the parameter combination can be t1t2 or t1t2t3. Since the parameter table includes the parameter field name and the parameter weight corresponding to each parameter field, different parameter combinations can be determined according to different parameter fields, thereby calculating the weights of different parameter combinations. Parameter configuration is performed according to the weights of different parameter combinations, which can make the parameter configuration results more objective.
[0067] In the embodiment of the present application, step 140 includes:
[0068] Determine the number of parameter values that need to be involved in weight determination;
[0069] Establish a parameter combination weight table according to the number and parameter table, wherein the parameter combination weight table includes the parameter table name, the parameter combination name, the parameter combination value and the parameter combination weight;
[0070] The weights of different parameter combinations are determined according to the parameter combination weight table.
[0071] Specifically, since the parameter table can provide information such as the parameter table name, parameter field name, parameter weight and parameter value, different parameter combinations can be formed according to the various parameter fields, and the value of the parameter combination can be determined according to the parameter value of each parameter field contained in the parameter combination, and the parameter combination weight can be determined according to the parameter weight of each parameter field, and a parameter combination weight table can be constructed by the parameter table name, the parameter combination name, the parameter combination value and the parameter combination weight, and the parameter combination weight table can be used to represent the weights of different parameter combinations. Determining the weights of different parameter combinations according to the parameter combination weight table can more intuitively and quickly obtain the names of different parameter combinations, the values of parameter combinations and the parameter combination weights, so that the determination of the weights of the parameter combinations is more objective and reliable, and the efficiency of determining the weights of the parameter combinations is improved.
[0072] It is understandable that each parameter field in the parameter table may contain multiple different parameter values, and the number of these parameter values may be quite large. When calculating the weight, if all parameter values are considered to be put into the weight calculation, the calculation amount will be too large, thereby reducing the calculation efficiency, and the parameter values with the highest number of occurrences mean that these parameter values are more representative and stable, and have better application effects in the system under test, and are more likely to meet system performance and business requirements. Therefore, when calculating the weight, it is first necessary to determine the number of parameter values n that participate in the weight determination, indicating that the parameter values with the highest number of occurrences of each parameter field in the parameter table need to participate in the weight calculation, and the number of occurrences of each parameter value in the parameter field can be obtained through data sources such as historical backup tables. Specifically, the number of occurrences of each parameter value in the parameter field can be obtained by using data sources such as historical backup tables, and sorting them from high to low according to the number of occurrences, and then selecting the top n parameter values as candidate values for participating in the weight calculation, which can effectively reduce the calculation complexity, improve the efficiency of parameter weight calculation, and thus improve the efficiency of parameter configuration.
[0073] After determining the number n of parameter values that need to be involved in weight determination, select the top n parameter values of each parameter field in the parameter table according to the number n, and use these parameter values to form different parameter combinations, and thereby determine the names of different parameter combinations, parameter combination values and parameter combination weights, and establish a parameter combination weight table based on the parameter table name, parameter combination name, parameter combination value and parameter combination weight, so that the parameter combination weight determination is more objective and reliable, and the efficiency of parameter combination weight determination is improved.
[0074] In the embodiment of the present application, a parameter combination weight table is established according to the number and parameter table, including:
[0075] Establishing a parameter information table according to the number and the parameter table, wherein the parameter information table includes the parameter table name and number;
[0076] A parameter combination weight table is established based on the parameter information table and the parameter table.
[0077] Specifically, a parameter information table is established according to the number of parameter values that need to participate in the weight determination and the parameter table. The parameter information table can intuitively display the number of parameter values that participate in the weight determination in each sub-parameter table. Taking sub-parameter table t in Table 1 as an example, the parameter information table can be represented by Table 2. Table 2 schematically shows a parameter information table according to an embodiment of the present application, in which the TOP value represents the number of parameter values that need to participate in the weight determination. It should be noted that the specific parameter table name and TOP value in Table 2 can be set according to actual needs, and the embodiment of the present application is not limited to this.
[0078] Table 2 Parameter information table
[0079] Parameter table name TOP value t 2
[0080] After determining the parameter information table, the weight of each parameter value that needs to participate in the weight calculation of each parameter field can be determined according to the parameter table and the TOP value in the parameter information table. Taking the TOP value as 2 as an example, for each parameter field t1, t2 and t3 in the sub-parameter table t, determine the parameter values t1v1 and t1v2 with the top 2 occurrences of t1, the parameter values t2v1 and t2v2 with the top 2 occurrences of t2, and the parameter values t3v1 and t3v2 with the top 2 occurrences of t3, and multiply the number of occurrences of each parameter value by the weight of the corresponding parameter field to obtain the parameter value weight of each parameter value. For example, the number of occurrences of parameter value t1v1 is t1n1, and its parameter value weight is t1n1*w1, the number of occurrences of parameter value t2v1 is t2n1, and its parameter value weight is t2n1*w2. The calculation method of other parameter value weights is the same. A temporary table is established according to the parameter table name, parameter field name, parameter value and parameter value weight to represent the parameter value weight of each parameter value. Table 3 schematically shows a temporary table according to an embodiment of the present application. It should be noted that the specific parameter table name, parameter field name, parameter value and parameter value weight in Table 3 can be set according to actual needs, and the embodiment of the present application does not limit this.
[0081] Table 3 Temporary table
[0082] Parameter table name Parameter field name Parameter Value Parameter value weight t t1 t1v1 t1n1*w1 t t1 t1v2 t1n2*w1 t t2 t2v1 t2n1*w2 t t2 t2v2 t2n2*w2 t t3 t3v1 t3n1*w3 t t3 t3v2 t3n2*w3 ... ... ... ...
[0083] Different parameter combinations can be formed according to different parameter fields in the temporary table. The values of each parameter combination can be determined according to the parameter values of the parameter fields included in each parameter combination. The parameter combination weights of each parameter combination can be determined according to the parameter value weights of the parameter values of the parameter fields included in each parameter combination. Taking the parameter fields t1 and t2 in Table 2 as an example, a parameter combination t1t2 can be formed. Since the parameter fields t1 and t2 contained in the parameter combination t1t2 each select 2 parameter values, the parameter combination t1t2 will have 4 values, namely t1v1_t2v1, t1v1_t2v2, t1v2_t2v1, and t1v2_t2v2. The parameter value weights of each parameter value corresponding to each value of the parameter combination are added, and then divided by the number of parameter values included in the parameter combination to obtain the weight of each parameter combination. Taking the value t1v1_t2v1 of the parameter combination t1t2 as an example, the weight of the parameter combination is (t1n1*w1+t2n1*w2) / 2. By analogy, a single parameter, two parameters, three parameters, etc. parameter combinations and corresponding parameter combination weight values can be obtained by calculation. The number of parameter fields constituting the parameter combination can be one, two or more, which is set according to actual needs, and the embodiments of the present application are not limited to this.
[0084] A parameter combination weight table is established according to the parameter table name, parameter combination name, parameter combination value and parameter combination weight, which is used to represent the component parameters and parameter combination weight of each parameter combination. Table 4 schematically shows a parameter combination weight table according to an embodiment of the present application. It should be noted that the specific parameter table name, parameter combination name, parameter combination value and parameter combination weight in Table 4 can be set according to actual needs, and the embodiment of the present application does not limit this.
[0085] Table 4 Parameter combination weight table
[0086]
[0087]
[0088] By establishing a parameter information table according to the number of parameter values that need to be involved in weight determination and the parameter table, and establishing a parameter combination weight table according to the parameter information table and the parameter table, a data basis and reference basis are provided for subsequent parameter configuration.
[0089] It should be noted that in actual applications, parameter values may be modified, added or deleted, and the frequency of parameter use will also change with changes in business needs, which will cause parameter values, parameter combinations and parameter combination weights to change accordingly. Therefore, in order to ensure the accuracy and practicality of the data, the field values in the parameter table, parameter information table, temporary table and parameter combination weight table need to be dynamically adjusted and updated according to the actual situation to reflect the latest data in the current business environment. By updating the field values in these tables in real time, it can be ensured that the system under test can provide accurate and reliable data support at different time points to meet the actual needs of parameter configuration. However, when the number of parameters is relatively large, it is not suitable for real-time update. You can set a scheduled task to perform background calculations on the weights of hotspot parameters. Each time you configure the parameters, you can directly call the background parameter combination weight table to improve the efficiency of parameter configuration.
[0090] Step 150, configuring the values of the recommended parameters according to the weights of different parameter combinations.
[0091] It can be understood that after the weights of different parameter combinations are determined according to the parameter combination weight table, the values of the recommended parameters can be configured according to the weights of different parameter combinations. The weights of the parameter combinations reflect the importance of different parameter combinations in the original parameter table. The configuration values of the recommended parameters can be recommended according to the weights of the parameter combinations, thereby realizing parameter configuration, standardizing and normalizing the parameter recommendation process, and guiding operation and maintenance personnel to configure parameters more accurately, reducing the impact of human subjective factors on parameter configuration, and helping to improve the configuration efficiency and universality of parameter configuration.
[0092] In the embodiment of the present application, step 150 includes:
[0093] Sort the weights of different parameter combinations;
[0094] Determine parameter configuration values according to the sorting results;
[0095] Configure the recommended parameter values according to the parameter configuration values.
[0096] It is understandable that the parameter combination weight table shows the weights of different parameter combinations. The larger the weight value, the more representative and stable the value of the parameter combination is, the better the applicability is to hotspot parameters and enumerable parameter values, and the more likely it is to meet system performance and business requirements. Specifically, the weights of different parameter combinations are sorted from high to low, and the top x parameter combinations are selected as reference parameter combinations based on the sorting results. The parameter configuration values are determined based on the values of the x reference parameter combinations, and the values of the recommended parameters are configured based on the parameter configuration values. It should be noted that the values of the x reference parameter combinations recommended by the parameter combination weight table only provide a reference for operation and maintenance personnel. Operation and maintenance personnel can make further evaluations and decisions based on actual conditions. It is not necessary to directly assign the values of the recommended parameter combinations to the parameter configuration values. The current business requirements and the operation of the system under test can be comprehensively considered, and the values of the recommended parameter combinations can be adjusted before being assigned to the recommended parameters.
[0097] For example, for the sub-parameter table t in Table 1, after inputting Table 1 into the parameter template corresponding to the current business, the recommended parameters t1 and t3 are obtained. After considering the recommended parameters t1 and t3 in combination with the current business requirements and the operation of the system under test, the parameter field t1 is selected for maintenance; the parameter combination weight table, i.e., Table 4, is calculated according to Table 1, and the parameter combinations t1t2, t1t3, and t1t2t3 with the highest weight rankings including t1 can be recommended. After considering the actual situation, the value t1v1_t3v1 of the parameter combination t1t3 is slightly adjusted and assigned to the parameter field t1, thereby completing the parameter configuration. If the parameter values recommended according to the weights of different parameter combinations are significantly different from the actual application requirements, the TOP value can be appropriately increased to increase the selectable parameter combinations, thereby improving the accuracy and universality of the parameter configuration.
[0098] In an embodiment of the present application, the parameter configuration method further includes:
[0099] Back up the parameter table to obtain a backup table;
[0100] Update the backup table according to the values of the recommended parameters configured.
[0101] It is understandable that since the weight calculation depends on historical data, parameter backup is essential. Taking the example of saving the parameter table in the database, each time a new parameter table is created, a corresponding backup table must be created at the same time, where: backup table field set = parameter table field set + auto-increment ID + update time, backup table primary key set = parameter table primary key set + auto-increment ID. Every time a parameter is added or reduced or a configuration parameter is configured, that is, when the parameter table is updated, the backup table must also be updated synchronously, that is, according to the value of the increased or decreased parameter or the recommended parameter configured, a corresponding record is added to the backup table as a backup. Since the backup table has an auto-increment ID that increases in chronological order, for any record in the parameter table, the record set found in the backup table by the primary key of the parameter table, the one with the largest auto-increment ID is the latest data, which can correspond to the record in the current latest parameter table, and the remaining records are historical backup data.
[0102] When problems occur after parameter configuration, you can quickly list historical backup records and their update time by querying the backup table, and then select the appropriate backup record to roll back the parameters. Parameter rollback refers to the operation of restoring the system's parameter settings to the previous backup state or version when problems or errors occur in the system. These backup states are saved when the system is running normally or before the parameters are changed. In software development and system maintenance, when new parameter settings cause system failures or instability, parameter rollback can be used to quickly restore the system to a stable state to avoid affecting the normal operation of users or businesses. By performing parameter backup and parameter rollback, problems caused by parameter configuration errors in the system under test can be quickly and effectively resolved, so that the system under test can be quickly restored to a normal operating state, avoiding long-term service interruptions, thereby ensuring the stability, reliability and security of the parameter settings of the system under test.
[0103] The parameter configuration method provided in the embodiment of the present application can quickly recommend parameters that require parameter maintenance by making parameter recommendations based on a preset parameter template, and configure the values of the recommended parameters according to the weights of different parameter combinations, so that the values of the parameter configuration are more objective and reasonable, thereby effectively improving the configuration efficiency and universality of the parameter configuration and better meeting current business needs.
[0104] Figure 1 FIG. 1 is a flow chart of a parameter configuration method in one embodiment. It should be understood that although Figure 1 The steps in the flowchart are shown in sequence as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. Moreover, Figure 1At least part of the steps may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be executed in turn or alternately with other steps or at least part of the sub-steps or stages of other steps.
[0105] In one embodiment, Figure 2 As shown, a parameter configuration device 200 is provided, including a parameter template determination module, a parameter table acquisition module, a parameter recommendation module, a parameter combination weight determination module and a recommended parameter configuration module, wherein:
[0106] The parameter template determination module 210 is used to determine the corresponding parameter template according to the current service.
[0107] The parameter table acquisition module 220 is used to acquire a parameter table, wherein the parameter table includes a parameter table name, a parameter field name, and a parameter weight.
[0108] The parameter recommendation module 230 is used to make parameter recommendations according to the parameter table and the parameter template to obtain recommended parameters.
[0109] The parameter combination weight determination module 240 is used to determine the weights of different parameter combinations according to the parameter table.
[0110] The recommended parameter configuration module 250 is used to configure the values of the recommended parameters according to the weights of different parameter combinations.
[0111] The parameter configuration device 200 includes a processor and a memory. The parameter template determination module, parameter table acquisition module, parameter recommendation module, parameter combination weight determination module and recommended parameter configuration module are all stored in the memory as program units, and the processor executes the above program modules stored in the memory to implement corresponding functions.
[0112] The processor includes a kernel, which calls the corresponding program unit from the memory. The kernel can be set to one or more, and the parameter configuration method is implemented by adjusting the kernel parameters.
[0113] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM, and the memory includes at least one memory chip.
[0114] An embodiment of the present application provides a storage medium on which a program is stored. When the program is executed by a processor, the above-mentioned parameter configuration method is implemented.
[0115] An embodiment of the present application provides a processor, which is used to run a program, wherein the above-mentioned parameter configuration method is executed when the program is running.
[0116] In one embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as follows: Figure 3 As shown. The computer device includes a processor A01, a network interface A02, a display screen A04, an input device A05 and a memory (not shown in the figure) connected through a system bus. Among them, the processor A01 of the computer device is used to provide computing and control capabilities. The memory of the computer device includes an internal memory A03 and a non-volatile storage medium A06. The non-volatile storage medium A06 stores an operating system B01 and a computer program B02. The internal memory A03 provides an environment for the operation of the operating system B01 and the computer program B02 in the non-volatile storage medium A06. The network interface A02 of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor A01, a parameter configuration method is implemented. The display screen A04 of the computer device can be a liquid crystal display or an electronic ink display, and the input device A05 of the computer device can be a touch layer covered on the display screen, or a button, trackball or touchpad set on the computer device housing, or an external keyboard, touchpad or mouse, etc.
[0117] Those skilled in the art will understand that Figure 3 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0118] In one embodiment, the parameter configuration device provided by the present application can be implemented in the form of a computer program. The computer program can be Figure 3 The memory of the computer device may store various program modules constituting the parameter configuration device, for example, Figure 2 The parameter template determination module, parameter table acquisition module, parameter recommendation module, parameter combination weight determination module and recommended parameter configuration module shown in the figure. The computer program composed of each program module enables the processor to execute the steps of the parameter configuration method of each embodiment of the present application described in this specification.
[0119] An embodiment of the present application provides a device, which includes a processor, a memory, and a program stored in the memory and executable on the processor.
[0120] The present application also provides a computer program product, which, when executed on a data processing device, is suitable for executing a program for initializing the following method steps:
[0121] Determine the corresponding parameter template according to the current business;
[0122] Get a parameter table, where the parameter table includes a parameter table name, a parameter field name, and a parameter weight;
[0123] Recommend parameters based on the parameter table and parameter template to obtain recommended parameters;
[0124] Determine the weights of different parameter combinations according to the parameter table;
[0125] Configure the values of the recommended parameters according to the weights of different parameter combinations.
[0126] In the embodiments of the present application, certain software, components, models and other existing solutions in the industry may be mentioned, which should be regarded as exemplary. Their purpose is only to illustrate the feasibility of implementing the technical solution of the present application, but it does not mean that the applicant has or will necessarily use the solution.
[0127] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.
[0128] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0129] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0130] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0131] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0132] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
[0133] Computer readable media include permanent and non-permanent, removable and non-removable media, and can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
[0134] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0135] The above are only embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included within the scope of the claims of the present application.
Claims
1. A parameter configuration method, characterized in that: The parameter configuration method comprises: Determine the corresponding parameter template according to the current business; Obtain a parameter table, wherein the parameter table includes a parameter table name, a parameter field name, and a parameter weight; Recommend parameters according to the parameter table and the parameter template to obtain recommended parameters; Determining weights of different parameter combinations according to the parameter table; The values of the recommended parameters are configured according to the weights of the different parameter combinations.
2. The parameter configuration method according to claim 1, characterized in that: Determining the corresponding parameter template according to the current business includes: Determine business data according to the current business; Input the business data into the trained parameter template classification model to obtain the corresponding parameter template type; A parameter template is determined according to the parameter template type.
3. The parameter configuration method according to claim 1, characterized in that: Determining the weights of different parameter combinations according to the parameter table includes: Determine the number of parameter values that need to be involved in weight determination; Establishing a parameter combination weight table according to the number and the parameter table, wherein the parameter combination weight table includes the parameter table name, the parameter combination name, the parameter combination value and the parameter combination weight; The weights of different parameter combinations are determined according to the parameter combination weight table.
4. The parameter configuration method according to claim 3, characterized in that: The step of establishing the parameter combination weight table according to the number and the parameter table includes: Establishing a parameter information table according to the number and the parameter table, wherein the parameter information table includes the parameter table name and the number; The parameter combination weight table is established according to the parameter information table and the parameter table.
5. The parameter configuration method according to claim 1, characterized in that: The configuring the value of the recommended parameter according to the weights of the different parameter combinations includes: Sorting the weights of the different parameter combinations; Determine parameter configuration values according to the sorting results; The numerical value of the recommended parameter is configured according to the parameter configuration value.
6. The parameter configuration method according to claim 1, characterized in that: The method further comprises: Backing up the parameter table to obtain a backup table; The backup table is updated according to the configured values of the recommended parameters.
7. A parameter configuration device, characterized in that: The parameter configuration device comprises: A parameter template determination module is used to determine the corresponding parameter template according to the current business; A parameter table acquisition module is used to acquire a parameter table, wherein the parameter table includes a parameter table name, a parameter field name and a parameter weight; A parameter recommendation module, used to make parameter recommendations based on the parameter table and the parameter template to obtain recommended parameters; A parameter combination weight determination module, used to determine the weights of different parameter combinations according to the parameter table; The recommended parameter configuration module is used to configure the values of the recommended parameters according to the weights of the different parameter combinations.
8. A processor, characterized in that: The method is configured to execute the parameter configuration method according to any one of claims 1 to 6.
9. A machine-readable storage medium having instructions stored thereon, characterized in that: When the instruction is executed by a processor, the processor is configured to perform the parameter configuration method according to any one of claims 1 to 6.
10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the computer program implements the parameter configuration method according to any one of claims 1 to 6.
