Configuration modification method, device, computing device and storage medium
By automatically matching and verifying the error-prone types in the configuration information during the configuration modification process in the financial technology field, the problem of low manual inspection efficiency is solved, and efficient and accurate configuration information inspection is achieved.
Patent Information
- Application Number
- CN202010614070.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-06-30
- Publication Date
- 2025-02-18
- Estimated Expiration
- 2040-06-30
AI Technical Summary
In the field of financial technology, when modifying configurations, it is necessary to manually check whether the configuration information itself is wrong, which is relatively inefficient.
By matching the target content in the configuration information and the preset error-prone type set, the corresponding verification method is used to verify the target content, calculate the error rate of the configuration information, and automatically determine whether the configuration information is incorrect.
It improves the processing efficiency of checking whether the configuration information itself is incorrect, reduces the time and cost of manual inspection, and improves the accuracy and efficiency of configuration modification.
Smart Images

Figure CN111752642B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of data processing technology of financial technology (Fintech), and in particular to a configuration modification method, device, computing equipment and storage medium. Background Art
[0002] With the development of computer technology, more and more technologies (such as blockchain, cloud computing or big data) are being applied in the financial field. The traditional financial industry is gradually transforming into financial technology, and big data technology is no exception. However, due to the security and real-time requirements of the financial and payment industries, higher requirements are also placed on big data technology.
[0003] When the application is running, it needs to load a series of configurations to respond to user requests. In this way, the configuration will be modified to meet different user needs. After the modification, the configuration will be input into the test system to test the application environment to see if the configuration can meet user needs. If the test fails, the configuration will be modified.
[0004] However, the reasons for the test failure may include errors in the configuration itself, or the configuration itself is not wrong but the configuration cannot meet the user's needs. Therefore, the developer who needs to modify the configuration needs to manually check whether there is a problem with the configuration itself. This inspection method is relatively inefficient. Summary of the invention
[0005] The purpose of the present invention is to provide a configuration modification method, which provides an automatic error detection of configuration information itself and improves the processing efficiency of detecting whether the configuration information itself is wrong.
[0006] In a first aspect, an embodiment of the present invention provides a configuration modification method, including:
[0007] In response to a modification configuration instruction triggered by a user, determine the configuration information contained in the modification configuration instruction; wherein the configuration information is used to enable the corresponding application to respond to the user's request instruction;
[0008] Determining target content in the configuration information that matches a preset set of error-prone types;
[0009] Verifying the target content according to a preset verification method corresponding to the error-prone type of the target content to obtain a verification result of the target content;
[0010] Determining an error rate of the configuration information according to a verification result of the target content;
[0011] If the error rate is lower than a preset value, the configuration information of the configuration center is updated according to the configuration information included in the configuration modification instruction.
[0012] In the above method, when the user modifies the configuration information, the target content of the configuration information is matched from the preset error-prone type set, and the verification method corresponding to the target content is used for verification. The error rate of the configuration information is determined based on the verification result of the target content, and whether the configuration information itself is wrong is automatically determined based on the error rate. Compared with manual inspection, the processing efficiency of checking whether the configuration information itself is wrong is improved.
[0013] In a possible implementation manner, determining the error rate of the configuration information according to the verification result of the target content includes:
[0014] Grouping the error-prone types to which the target content belongs into a target error-prone type subset;
[0015] Determine the contribution rate set corresponding to the target error-prone type subset according to the correspondence between the preset error-prone type subset and the contribution rate set; wherein the contribution rate in the determined contribution rate set indicates the degree of influence of the error of the configuration information containing the target content when the target content is wrong; the error-prone type subset is formed by any combination of the error-prone types in the preset error-prone type set;
[0016] According to the determined contribution rate set, the contribution rates of the target contents whose verification results are failure to pass the verification are added together to obtain the error rate of the configuration information.
[0017] In the above method, since the content matching the error-prone type fails to pass the verification, it does not necessarily mean that the content is wrong. The failure of the content to pass the verification only means that the probability of error is relatively high. Therefore, if the configuration information includes multiple target contents, the values of the impact degree of the target contents whose verification results are failed to pass the verification are added together as the error rate of the configuration information, thereby improving the accuracy of calculating the error rate of the configuration information.
[0018] In a possible implementation manner, after determining the error rate of the configuration information according to the verification result of the target content, the method further includes:
[0019] If the error rate is higher than a preset value, an alarm box is generated and displayed to the user;
[0020] If the user confirms that there is no error in the configuration information, the configuration information of the configuration center is updated according to the configuration information included in the configuration modification instruction.
[0021] In the above method, when the error rate is relatively high, the configuration information can be manually confirmed again to see if it is wrong, thereby improving the accuracy of checking whether the configuration information itself is wrong.
[0022] In a possible implementation, the method further includes:
[0023] After the preset conditions are met, the contribution rates in the contribution rate set are adjusted by exhaustive method;
[0024] The adjusted contribution rate set is used to determine a first false alarm rate of the target configuration information, and the last updated contribution rate set is used to determine a second false alarm rate of the target configuration information; wherein the target configuration information is configuration information whose content is matched by the target error-prone type subset after the contribution rate set is last updated; the configuration information whose error rate is higher than a preset value but the user confirms that the configuration information is not wrong is regarded as a false alarm;
[0025] If the first false alarm rate is less than the second false alarm rate, updating the corresponding relationship with the adjusted contribution rate set;
[0026] The preset conditions are any or all of the following:
[0027] The total number of the target configuration information exceeds a threshold number;
[0028] The current time point belongs to the preset adjustment time point.
[0029] The above method, when the conditions are met, fine-tunes the contribution rate in the contribution rate set through an exhaustive method. After each adjustment, the adjusted contribution rate is used to determine the false alarm rate of the target configuration information, and the false alarm rate of the target configuration information is determined using the contribution rate of the last update. If the adjusted false alarm rate is lower than the false alarm rate of the last update, the adjustment target is achieved, and the error rate of subsequent user modification of the configuration information is calculated using the contribution rate set adjusted this time. The present invention adjusts the contribution rate set after the conditions are met so that the contribution rate set is more in line with the degree of impact of errors in the corresponding content matched with the error-prone type on the configuration information containing the content matched with the error-prone type.
[0030] In a possible implementation manner, after determining the configuration information included in the configuration modification instruction and before determining the error rate of the configuration information according to the verification result of the target content, the method further includes:
[0031] Performing initial verification on the configuration information, and determining that the configuration information passes the initial verification;
[0032] The initial verification includes some or all of the following:
[0033] Performing initial verification on the configuration information according to the type verification rule corresponding to the configuration information type contained in the configuration modification instruction;
[0034] Performing initial verification on the configuration information according to the application corresponding verification rule to which the configuration information contained in the configuration modification instruction belongs;
[0035] The configuration information is initially verified by using an erroneous configuration information set, wherein the erroneous configuration information set is a set of erroneous configuration information.
[0036] The above method can use other verification means to verify the configuration information as a whole before verifying the content in the configuration information. In this way, the present invention verifies the configuration information as a whole and verifies the part of the configuration information, that is, the content matching the error-prone type, thereby improving the accuracy of the verification result.
[0037] In a possible implementation, the method further includes:
[0038] If the configuration information is initially verified and the configuration information fails the initial verification, a warning box is generated and displayed to the user;
[0039] If the user confirms that there is no error in the configuration information, then the error rate of the configuration information is determined according to the verification result of the target content.
[0040] In the above method, when the configuration information fails the error verification, an alarm box is popped up to the user, and the configuration information is determined to be wrong through manual re-inspection. If the manual verification is correct, the content in the configuration information is further verified, thereby improving the accuracy of the judgment of whether the configuration information itself is wrong.
[0041] In a possible implementation manner, after updating the configuration information of the configuration center according to the configuration information included in the configuration modification instruction, the method further includes:
[0042] Test the updated configuration information through the test system;
[0043] If the test passes, determine whether the test environment in the test system is the same as the production environment in the production system;
[0044] If yes, importing the updated configuration information into a document, and sending the imported document from the test system to the production system;
[0045] The updated configuration information is published to the application through the production system.
[0046] The above method, after verifying that there is no error in the configuration information itself, is tested through the test system. If the test passes, it means that the configuration information meets the user's needs. When the test environment in the test system is the same as the production environment in the production system, the configuration in the test system is directly synchronized to the production system, thereby improving the efficiency of publishing configuration information.
[0047] In a possible implementation, before publishing the updated configuration information to the application through the production system, the method further includes:
[0048] Determine that the total encrypted value before being sent to the production system is equal to the total encrypted value when being sent to the production system; wherein the total encrypted value is obtained by encrypting the updated configuration information;
[0049] And / or in the production system, determining the configuration items in the updated configuration information is equal to the configuration items obtained by decrypting the encrypted string corresponding to each configuration item; wherein, when the updated configuration information is not sent to the production system, determining the encrypted string corresponding to each configuration item, and then sending the updated configuration information and the encrypted string corresponding to each configuration item together to the production system.
[0050] The above method determines whether the configuration items sent to the production system have been tampered with through one or both of the above two methods, thereby performing security verification on the configuration items sent to the production system and improving the security of configuration information transmission between different systems.
[0051] In a possible implementation, after publishing the updated configuration information to the application through the production system, the method further includes:
[0052] Sending a toolkit to the application, so that the application determines a sending time of a configuration request after the first configuration request according to the toolkit, and sends the configuration request to the configuration center according to the determined sending time;
[0053] Among them, the toolkit stipulates that the product of the number of intervals determined by the difference between the sending time of the first configuration request and the current time point and the preset interval time, plus the sending time of the first configuration request of the application, is used as the sending time of the current configuration request; or the product of the number of intervals determined by the difference between the preset time corresponding to the application and the current time point and the preset interval time, plus the preset time corresponding to the application, is used as the sending time of the current configuration request.
[0054] The above method, by stipulating the request time of the application to the configuration center for configuration request, disperses the time of the application configuration request, thereby reducing the pressure of the configuration center to process the request when the application requests configuration from the configuration center.
[0055] In a second aspect, an embodiment of the present invention further provides a configuration modification device, the device comprising:
[0056] A configuration information determination module, used to respond to a configuration modification instruction triggered by a user, and determine the configuration information contained in the configuration modification instruction; wherein the configuration information is used to enable the corresponding application to respond to the user's request instruction;
[0057] A content determination module, used to determine target content in the configuration information that matches a preset error-prone type set;
[0058] A verification module, used to verify the target content according to a preset verification method corresponding to the error-prone type of the target content, and obtain a verification result of the target content;
[0059] An error rate determination module, used to determine the error rate of the configuration information according to the verification result of the target content;
[0060] An updating module is used to update the configuration information of the configuration center according to the configuration information contained in the configuration modification instruction if the error rate is lower than a preset value.
[0061] In a possible implementation, the module for determining an error rate includes:
[0062] A contribution rate set determination unit is used to form a target error-prone type subset by grouping the error-prone types to which the target content belongs; a contribution rate set corresponding to the target error-prone type subset is determined according to a correspondence between a preset error-prone type subset and a contribution rate set; wherein the contribution rate in the determined contribution rate set indicates the degree of influence of an error in the configuration information containing the target content when the target content is erroneous; the error-prone type subset is formed by any combination of error-prone types in the preset error-prone type set;
[0063] The error rate calculation unit is used to add the contribution rates of the target contents whose verification results are failure to pass the verification to obtain the error rate of the configuration information according to the determined contribution rate set.
[0064] In a possible implementation manner, after the error rate determination module determines the error rate of the configuration information, the device further includes:
[0065] A first display module, used to generate an alarm box and display it to the user if the error rate is higher than a preset value;
[0066] The user confirmation module is used to update the configuration information of the configuration center according to the configuration information included in the configuration modification instruction if the user confirms that there is no error in the configuration information.
[0067] In a possible implementation manner, the device further includes:
[0068] An adjustment module, configured to adjust the contribution rates in the contribution rate set by an exhaustive method after a preset condition is met; wherein the preset condition is one or all of the following: the total number of the target configuration information exceeds a threshold number; the current time point belongs to a preset adjustment time point;
[0069] A false alarm rate calculation module is used to determine a first false alarm rate of the target configuration information by using the adjusted contribution rate set, and to determine a second false alarm rate of the target configuration information by using the contribution rate set updated last time; wherein the target configuration information is the configuration information of the content matched by the target error-prone type subset after the contribution rate set was last updated; the configuration information whose error rate is higher than a preset value but the user confirms that the configuration information is not wrong is regarded as a false alarm;
[0070] An updating module is configured to update the corresponding relationship using an adjusted contribution rate set if the first false alarm rate is less than the second false alarm rate.
[0071] In a possible implementation manner, after the configuration information determining module determines the configuration information included in the configuration modification instruction and before the error rate determining module determines the error rate of the configuration information, the device further includes:
[0072] An initial verification module, used to perform initial verification on the configuration information and determine whether the configuration information passes the initial verification;
[0073] The initial verification includes some or all of the following:
[0074] Performing initial verification on the configuration information according to the type verification rule corresponding to the configuration information type contained in the configuration modification instruction;
[0075] Performing initial verification on the configuration information according to the application corresponding verification rule to which the configuration information contained in the configuration modification instruction belongs;
[0076] The configuration information is initially verified by using an erroneous configuration information set, wherein the erroneous configuration information set is a set of erroneous configuration information.
[0077] In a possible implementation manner, the device further includes:
[0078] A second display module is used to generate an alarm box and display it to the user if the configuration information is initially verified and the configuration information fails the initial verification;
[0079] The error rate determination module is further configured to determine the error rate of the configuration information according to the verification result of the target content if the user confirms that there is no error in the configuration information.
[0080] In a possible implementation manner, after the updating module updates the configuration information of the configuration center, the device further includes:
[0081] A test module, used to test the updated configuration information through a test system; if the test passes, determine whether the test environment in the test system is the same as the production environment in the production system; if so, import the updated configuration information into a document, and send the imported document from the test system to the production system;
[0082] The publishing module is used to publish the updated configuration information to the application through the production system.
[0083] In a possible implementation manner, before the publishing module publishes the updated configuration information, the device further includes:
[0084] A security verification module, used to determine that the total encrypted value before being sent to the production system is equal to the total encrypted value when sent to the production system; wherein the total encrypted value is obtained by encrypting the updated configuration information;
[0085] And / or in the production system, determining the configuration items in the updated configuration information is equal to the configuration items obtained by decrypting the encrypted string corresponding to each configuration item; wherein, when the updated configuration information is not sent to the production system, determining the encrypted string corresponding to each configuration item, and then sending the updated configuration information and the encrypted string corresponding to each configuration item together to the production system.
[0086] In a possible implementation manner, after the publishing module publishes the updated configuration information, the device further includes:
[0087] A toolkit sending module, used to send a toolkit to the application, so that the application determines the sending time of the configuration request after the first configuration request according to the toolkit, and sends the configuration request to the configuration center according to the determined sending time;
[0088] Among them, the toolkit stipulates that the product of the number of intervals determined by the difference between the sending time of the first configuration request and the current time point and the preset interval time, plus the sending time of the first configuration request of the application, is used as the sending time of the current configuration request; or the product of the number of intervals determined by the difference between the preset time corresponding to the application and the current time point and the preset interval time, plus the preset time corresponding to the application, is used as the sending time of the current configuration request.
[0089] In a third aspect, an embodiment of the present invention provides a computing device, including:
[0090] A memory for storing program instructions;
[0091] The processor is used to call the program instructions stored in the memory and execute any method as described in the first aspect according to the obtained program.
[0092] In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions are used to enable a computer to execute any method as described in the first aspect.
[0093] In addition, the technical effects brought about by any implementation method in the second to third aspects can refer to the technical effects brought about by different implementation methods in the first aspect, and will not be repeated here.
[0094] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0095] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the embodiments of the present invention will be briefly introduced below. Obviously, the accompanying drawings introduced below are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative work.
[0096] Figure 1 A flowchart of a configuration modification method provided by an embodiment of the present invention;
[0097] Figure 2 A workflow diagram of a manual access configuration modification method provided by an embodiment of the present invention;
[0098] Figure 3 A schematic diagram of modifying configuration information provided by an embodiment of the present invention;
[0099] Figure 4 An information interaction diagram for verification by applying verification rules provided in an embodiment of the present invention;
[0100] Figure 5 A verification flow chart of configuration information provided by an embodiment of the present invention through initial verification and error rate verification;
[0101] Figure 6 A schematic diagram of a configuration modification and publishing operation provided in an embodiment of the present invention;
[0102] Figure 7 A structural diagram of a configuration modification device provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0103] To further illustrate the technical solution provided by the embodiment of the present invention, the following is a detailed description of this in conjunction with the accompanying drawings and specific implementation methods. Although the embodiment of the present invention provides the method operation steps shown in the following embodiments or drawings, more or fewer operation steps may be included in the method based on routine or no creative labor. In the steps where there is no necessary causal relationship logically, the execution order of these steps is not limited to the execution order provided by the embodiment of the present invention. In the actual processing process or when the control device is executed, the method can be executed in the order of the method shown in the embodiment or drawings or in parallel.
[0104] Obviously, the described embodiments are only some embodiments of the present invention, rather than all embodiments. Based on the embodiments in the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work belong to the scope of protection of the present invention. In the embodiments of the present invention, the term "multiple" refers to two or more, and other quantifiers are similar to it. It should be understood that the preferred embodiments described here are only used to illustrate and explain the present invention, and are not used to limit the present invention, and in the absence of conflict, the embodiments of the present invention and the features in the embodiments can be combined with each other.
[0105] At present, when there is a problem with the test system configuration, it may be due to the writing of the configuration information itself. However, the writing problem can only be manually checked, which makes the inspection efficiency low. In view of this, the present invention proposes a configuration modification method, device, computing device and storage medium to solve the above problem.
[0106] The error-prone types are types of content in the configuration information that are prone to errors, such as English words, IP addresses, and the like.
[0107] The configuration center is a device that stores configuration information. The configuration center includes a test system and a production system. The test system is a system that tests whether the configuration meets user requirements, and the production system is a system that communicates directly with the application side. For example, when publishing configuration information, the configuration information is published in the production system of the configuration center.
[0108] The inventive concept of the present invention is as follows: find out the content that matches the error-prone type in the configuration information, use the verification method corresponding to the error-prone type to verify the target content that matches it, determine the error rate of the configuration information based on the verification result of the target content, and automatically determine whether the configuration information itself is wrong. Compared with manual inspection, the processing efficiency of checking whether the configuration information itself is wrong is improved.
[0109] The configuration modification method in the embodiment of the present invention is described in detail below with reference to the accompanying drawings.
[0110] The embodiment of the present invention provides a configuration modification method, combining Figure 1 As shown, including:
[0111] S100: Responding to a configuration modification instruction triggered by a user, determining configuration information included in the configuration modification instruction.
[0112] The configuration information is used to enable the corresponding application to respond to the user's request instruction.
[0113] Responding to user-triggered configuration modification instructions is done on the visual configuration modification page.
[0114] Modifying configuration information includes changing the original configuration information and adding new configuration information.
[0115] S101: Determine target content in configuration information that matches a preset set of error-prone types.
[0116] When an error occurs in historical configuration information, the cause of the error is found, the type of the content of the cause of the error is determined as an error-prone type, and multiple error-prone types are combined into an error-prone type set.
[0117] For example, when an error occurs in historical configuration information, the cause of the error is found to be that the IP address cannot be connected, and it is determined that the IP address in the configuration information is wrong, so the IP address type is regarded as an error-prone type.
[0118] For example, the error-prone type set is IP addresses, English letters composed of "t", "u", "r", and "e";
[0119] In the matching, the IP address is first matched from the content in the configuration information. If a match is found, for example, ABCDE, ABCDE is extracted; then the English letters composed of "t", "u", "r" and "e" are matched from the content in the configuration information. If a match is found, for example, ture, ture is extracted, wherein the target content is ABCDE and ture.
[0120] S102: Verify the target content according to a preset verification method corresponding to the error-prone type of the target content to obtain a verification result of the target content.
[0121] Before performing the configuration modification method of the present invention, a verification method corresponding to an error-prone type in a preset error-prone type set is determined, wherein the verification method corresponding to each error-prone type is set by a developer based on his or her own experience. After determining the target content, the target content is directly verified using the preset verification method corresponding to the error-prone type to which the target content belongs to obtain a verification result.
[0122] If the error-prone type of the target content is an IP address, then determining whether the target content is connected, if so, the verification result is passed, otherwise, the verification result is failed;
[0123] If the error-prone type of the target content is English characters, it is determined whether the composition order of the English characters in the target content is a preset composition order. If so, the verification result is passed, otherwise, the verification result is failed.
[0124] Taking the target content ABCDE and ture as examples, the error-prone type of ABCDE is the IP address, and the preset verification method corresponding to the IP address is whether it is connected; the error-prone type of ture is the English letters composed of "t", "u", "r", and "e", and the preset verification method corresponding to the English letters composed of "t", "u", "r", and "e" is whether the order of the four letters is true; then determine whether ABCDE is connected, and use the judgment result as the verification result; for whether the order of ture is true, use the judgment result as the verification result.
[0125] S103: Determine the error rate of the configuration information according to the verification result of the target content.
[0126] S104: If the error rate is lower than a preset value, the configuration information of the configuration center is updated according to the configuration information included in the configuration modification instruction.
[0127] The preset value is set by the developer in advance based on his / her own experience, and the developer can modify the preset value after setting it.
[0128] Through the above process, a method for automatically detecting whether the configuration information is erroneous is provided. When the configuration information is modified, the content in the configuration information that matches the preset error-prone type can be verified, and the error rate of the configuration information can be determined based on the result of the verification of the content matching the error-prone type. Compared with the manual inspection in the prior art, the processing efficiency of checking whether the configuration information itself is erroneous is improved.
[0129] Since the number of target contents matched in each configuration information and the error-prone type subsets composed of the error-prone types to which the target contents belong are different, the error rate confirmation results of the subsequent configuration information will be different. Therefore, in the present invention, the corresponding relationship between the error-prone type subsets and the contribution rate sets needs to be preset in advance.
[0130] The error-prone type subset is formed by any combination of error-prone types in the preset error-prone type set.
[0131] For example, the error-prone types in the error-prone type set are error-prone type 1, error-prone type 2, error-prone type 3, error-prone type 4, and error-prone type 5 respectively, then the error-prone type subset can be: any one error-prone type in the error-prone type set, a set consisting of any two error-prone types in the error-prone type set, a set consisting of any three error-prone types in the error-prone type set, a set consisting of any four error-prone types in the error-prone type set, and a set consisting of 5 error-prone types in the error-prone type set.
[0132] Each error-prone type subset corresponds to a contribution rate set, wherein the contribution rate in the contribution rate set indicates the degree of influence of an error in the content matching the corresponding error-prone type on an error in the configuration information containing the content matching the corresponding error-prone type.
[0133] Based on this, the present invention provides a method for determining the error rate of configuration information, including:
[0134] Grouping the error-prone types to which the target content belongs into a target error-prone type subset;
[0135] Determine the contribution rate set corresponding to the target error-prone type subset according to the correspondence between the preset error-prone type subset and the contribution rate set; wherein the contribution rate in the determined contribution rate set indicates the degree of influence on the error of the configuration information containing the target content when the target content is wrong;
[0136] According to the determined contribution rate set, the contribution rates of the target contents whose verification results are failure to pass the verification are added together to obtain the error rate of the configuration information.
[0137] For example, the target contents in the configuration information are content 1, content 2, content 3, content 4, and content 5 respectively; content 1 belongs to error-prone type 1, content 2 belongs to error-prone type 2, content 3 belongs to error-prone type 3, content 4 belongs to error-prone type 4, and content 5 belongs to error-prone type 5; the error-prone type 1, error-prone type 2, error-prone type 3, error-prone type 4, and error-prone type 5 form an error-prone type subset, and the contribution rate set corresponding to the error-prone type subset is determined. The contribution rate set includes contribution rate 1 corresponding to error-prone type 1, contribution rate 2 corresponding to error-prone type 2, contribution rate 3 corresponding to error-prone type 3, contribution rate 4 corresponding to error-prone type 4, and contribution rate 5 corresponding to error-prone type 5.
[0138] That is, the contribution rate of content 1 whose verification result is failed to pass the verification is contribution rate 1, the contribution rate of content 2 whose verification result is failed to pass the verification is contribution rate 2, the contribution rate of content 3 whose verification result is failed to pass the verification is contribution rate 3, the contribution rate of content 4 whose verification result is failed to pass the verification is contribution rate 4, and the contribution rate of content 5 whose verification result is failed to pass the verification is contribution rate 5.
[0139] Among them, when the verification result is that the target contents that fail are content 1, content 2, and content 4, respectively, then the error rate of the configuration information = contribution rate 1 + contribution rate 2 + contribution rate 4.
[0140] Since the content that matches the error-prone type is error-prone content, failure of verification through the preset verification method does not mean that the content that matches the error-prone type is definitely wrong, but that the probability of error is relatively high. Therefore, through the above-mentioned method of determining the error rate of configuration information, the error rate of configuration information can be evaluated with the target content that failed verification, thereby improving the accuracy of calculating the error rate of configuration information.
[0141] In addition, if there is a failure to verify the target content in the configuration information, an alarm is issued to the developer. Although this processing method has a relatively low fault tolerance, the probability of raising errors is relatively high. In particular, when the number of modified configuration information is relatively large, the probability of raising errors is even greater, and it is more troublesome for the developer to handle. Therefore, the error rate of the configuration information obtained by adding the contribution rate of the target content that has not passed the verification provided by the present invention can reduce the work of the developer and the processing speed is relatively fast.
[0142] When the error rate is higher than the preset value, it means that Figure 1 The method shown has a high probability of obtaining configuration information errors. When the probability of configuration information errors is high, the present invention provides a manual method to further determine whether the configuration information is wrong, specifically:
[0143] If the error rate is higher than the preset value, an alarm box is generated and displayed to the user;
[0144] If the user confirms that there is no error in the configuration information, the configuration information of the configuration center is updated according to the configuration information contained in the configuration modification instruction.
[0145] Comprehensive manual determination methods, such as Figure 2 As shown, when modifying the configuration, you can work in the following ways:
[0146] S200: responding to a configuration modification instruction triggered by a user, and determining configuration information included in the configuration modification instruction;
[0147] S201: Determine the error rate of the configuration information; wherein the method for determining the error rate is as follows Figure 1 shown.
[0148] S202: Determine whether the error rate is greater than or equal to a preset value; if so, execute S203 and S204; otherwise, execute S205;
[0149] S203: Generate an alarm box and display it to the user;
[0150] S204: If the user confirms that the configuration information is correct, the configuration information of the configuration center is updated according to the configuration information included in the configuration modification instruction;
[0151] S205: Update the configuration information of the configuration center according to the configuration information included in the configuration modification instruction.
[0152] Combination Figure 3 As shown, the configuration modification page includes the name of the configuration item to be modified, a fill-in box for modifying the configuration item (the white box in the figure), and a button to confirm the modification. When the user wants to modify the configuration information, the user needs to start the visual configuration modification page.
[0153] Enter the content of the modified configuration item in the fill-in box of the modified configuration item on the visual modification configuration page, and click the "Confirm modification" button. The configuration center responds to the modification configuration instruction triggered by the user and extracts the content of the modified configuration item in the fill-in box of the modified configuration item on the visual modification configuration page as the configuration information for this startup modification. For the configuration information modified this time, use Figure 1 The error rate of configuration information is verified by using the method.
[0154] When the error rate is higher than the preset value, an alarm box pops up, indicating the target content that has not passed the verification, the reason why the target content has not passed the verification, the error rate of the configuration information, and asking the developer whether to proceed to the next step. For example, the IP address network is not accessible, the letter "ture" is misspelled, the error rate is 60%, and the "Next" button. When the user clicks the "Next" button, the user confirms that there is no error in the configuration information, and updates the configuration information of the configuration center according to the configuration information contained in the configuration modification instruction. Among them, when the error rate is lower than the preset value, the configuration information of the configuration center is directly updated according to the configuration information contained in the configuration modification instruction.
[0155] For the contribution rate set in the corresponding relationship, the initial contribution rate set is equally divided according to the number of target contents in the configuration information. For example, if the number of target contents in the configuration information is 5, then each contribution rate is 20%; if the number of target contents in the configuration information is 4, then each contribution rate is 25%; however, since the degree of influence of errors in each target content on errors in the configuration information is different, the contribution rates are also different.
[0156] It should be noted that the contribution rates in the initial contribution rate set may also be randomly generated, and the present invention does not impose any specific limitation on this.
[0157] Under the preset conditions, the contribution rate is adjusted through exhaustive method to make the contribution rate more consistent with its impact on the configuration information error. At the same time, in order to avoid unlimited adjustment, the adjustment target is determined by the false alarm rate. After reaching the adjustment target, the adjustment is stopped. Among them, the configuration information with an error rate higher than the preset value but confirmed by the user that there is no error in the configuration information is regarded as a false alarm.
[0158] The false alarm rate is the number of elements in the target cluster that meet the false alarm condition divided by the total number of elements in the target cluster. The target cluster refers to the configuration information that matches the error-prone type subset to which the target content belongs after the contribution rate set was last updated, and the error-prone type subset corresponds to the contribution rate set. That is, when adjusting the contribution rate in contribution rate set 1, when the configuration information is modified by the user, the content is matched through error-prone type subset 1, and the error rate of the configuration information is determined according to the matched content through contribution rate set 1 corresponding to error-prone type subset 1, and the configuration information is a member of the target cluster. The false alarm condition means that the error rate of the configuration information is higher than the preset value, and the user confirms that the configuration information is not wrong.
[0159] The adjustment scheme proposed in the embodiment of the present invention is specifically as follows:
[0160] After the preset conditions are met, the contribution rates in the contribution rate set are adjusted through exhaustive method;
[0161] Using the adjusted contribution rate set to determine a first false alarm rate of the target configuration information, and using the last updated contribution rate set to determine a second false alarm rate of the target configuration information;
[0162] If the first false alarm rate is less than the second false alarm rate, the corresponding relationship of the adjusted contribution rate set is updated.
[0163] For example, before the preset conditions are met, the contribution rate in the last updated contribution rate set is used for work, and the last updated contribution rate set includes a0%, b0%, and c0%. The number of times a0%, b0%, and c0% are used to determine the error rate of the target configuration information is higher than the preset value, but the user believes that the modified target configuration information has no errors, and the number of times a0%, b0%, and c0% are used to determine the error rate of the target configuration information modified by the user, and the two times are divided to obtain the false alarm rate.
[0164] The target configuration information is configuration information of the content matched by the target error-prone type subset after the contribution rate set was last updated.
[0165] For example, contribution rate set 1 is adjusted, and error-prone type subset 1 has a corresponding relationship with contribution rate set 1. When the user modifies the configuration information for verification after the contribution rate set 1 is last updated, the error-prone type to which the target content belongs is extracted from the configuration information modified by the user, and the error-prone type subset composed of the error-prone type is error-prone type subset 1, wherein the configuration information modified by the user is the target configuration information.
[0166] After the preset conditions are met, the contribution rate set after the first adjustment is obtained by exhaustive method as a1%, b1%, c1%; the number of times a1%, b1%, c1% are used to determine that the error rate of the target configuration information modified by the user is higher than the preset value, but the user believes that the modified target configuration information has no errors, and the number of times a1%, b1%, c1% are used to determine the error rate of the target configuration information modified by the user, and the two times are divided to obtain the false alarm rate.
[0167] Determine whether the false alarm rate obtained by a1%, b1%, and c1% is less than the false alarm rate obtained by a0%, b0%, and c0%. If so, stop adjusting and update the corresponding relationship of the contribution rate set after the first adjustment. Then, use the contribution rate set after the first adjustment to determine the error rate of the configuration information modified by the user until the preset conditions are met.
[0168] If it is determined that the false alarm rate obtained by a1%, b1%, c1% is not less than the false alarm rate obtained by a0%, b0%, c0%, the contribution rate in the contribution rate set is adjusted for the second time through the exhaustive method, and the adjusted contribution rate set is a2%, b2%, c2%.
[0169] The false alarm rate is obtained by dividing the number of times a2%, b2%, and c2% are used to determine the error rate of the target configuration information modified by the user, when the error rate is higher than the preset value, but the user believes that the modified target configuration information has no error, and the number of times a2%, b2%, and c2% are used to determine the error rate of the target configuration information modified by the user.
[0170] Determine whether the false alarm rate obtained by a2%, b2%, c2% is less than the false alarm rate obtained by a0%, b0%, c0%. If so, stop adjusting and use the contribution rate set after the second adjustment as a2%, b2%, c2% for subsequent work. By analogy, if the second adjustment still does not satisfy the false alarm rate less than the false alarm rate obtained by a0%, b0%, c0%, then make a third adjustment until the condition of less than the false alarm rate obtained by a0%, b0%, c0% is satisfied, and use the adjusted contribution rate set that satisfies the false alarm rate less than the false alarm rate obtained by a0%, b0%, c0% to update the corresponding relationship, so that when the error rate is determined later, it is determined according to the adjusted contribution rate set that satisfies the false alarm rate less than the false alarm rate obtained by a0%, b0%, c0%.
[0171] The pre-conditions introduced are:
[0172] Mode 1: The total number of target configuration information exceeds the threshold number;
[0173] When adopting method 1, the main consideration is that when the contribution rate needs to be adjusted, commonalities can be found through statistical characteristics and adjustments can be made. If the number is relatively small, it is the individuality rather than the commonality that is highlighted. That is, the statistical false alarm rate cannot reflect the impact of content errors matching the error-prone type on configuration information errors.
[0174] Therefore, when the total number of target configuration information exceeds the threshold value, adjusting the contribution rate set can improve the accuracy of the adjustment.
[0175] Method 2: The current time point belongs to the preset adjustment time point.
[0176] Since the configuration information in the present invention is used by the application, the configuration center will be busy when the application requests configuration, so the contribution rate set can be adjusted when the configuration center is relatively idle.
[0177] The preset adjustment time point can be 1 am, 2 am, or other late night times.
[0178] It should be noted that the preset conditions provided in the present invention can be used alone or in combination. For example, after the total number of target configuration information exceeds the threshold number, the contribution rate in the contribution rate set is adjusted by the exhaustive method; or after the current time point belongs to the preset adjustment time point, the contribution rate in the contribution rate set is adjusted by the exhaustive method; or after the total number of target configuration information exceeds the threshold number and the current time point belongs to the preset adjustment time point, the contribution rate in the contribution rate set is adjusted by the exhaustive method.
[0179] After determining the configuration information, the present invention performs initial verification on the configuration information and determines whether the configuration information passes the initial verification. Then, according to the verification result of the target content, the error rate of the configuration information is determined. When the error rate is lower than a preset value, the configuration information of the configuration center is updated.
[0180] The initial verification includes:
[0181] Method 1: Perform initial verification on the configuration information by modifying the type verification rule corresponding to the configuration information type contained in the configuration instruction.
[0182] When developers modify configuration information in the configuration center, they can select the type of configuration information to be modified through the "drop-down box" in the modification configuration page and click the "Confirm modification" button. The configuration center responds to the modification configuration instruction triggered by the user, extracts the content of the modified configuration item in the fill-in box of the modification configuration item in the visual modification configuration page as the configuration information for this startup modification, and also extracts the type of configuration information, and uses the type verification rules corresponding to the type to perform initial verification on the configuration information.
[0183] For example, the type of the modified configuration information may be a mobile phone number or an ID (Identity document) number. When the type is a mobile phone number, the modified configuration information may be verified according to the type verification rules corresponding to the mobile phone number, wherein the type verification rules corresponding to the mobile phone number are the arrangement rules for forming the mobile phone number, for example: the first three digits are a nationally unified number segment, for example: 139, 138, 137, the middle four digits generally represent the city, and the last four digits are random numbers.
[0184] Method 2: Perform initial verification on the configuration information by modifying the corresponding verification rules of the application to which the configuration information contained in the configuration instruction belongs;
[0185] The specific configuration information contained in the application may have validation rules for validating the specific configuration information. Therefore, when modifying the specific configuration information, the validation rules of the application to which it belongs may be used for validation.
[0186] In the actual implementation process, the configuration center reserves the interface, combined with Figure 4 As shown, when the developer modifies the configuration information in the configuration center 400, the configuration information is transmitted to the interface, and the modified configuration information is verified on the application side 401. The application side 401 feeds back the verification result to the configuration center 400, and the configuration center 400 continues the subsequent process according to the verification result.
[0187] Mode 3: Initially verify the configuration information through an error configuration information set; wherein the error configuration information set is a set of erroneous configuration information.
[0188] In actual applications, developer A misconfigures a configuration item, and developer A remembers that the configuration item is wrong. However, developer B of the same project configures the same configuration item some time later, but developer A resigns or is on vacation, so developer B may make the same mistake as developer A when modifying the configuration item. This method is to store previously determined erroneous configuration information in the configuration center, that is, to make the configuration center have a memory function. When modifying configuration information through the configuration center, it is determined whether the modified configuration information is in the set of erroneous configuration information. If so, it fails verification, otherwise, it passes verification.
[0189] When the erroneous configuration information in the error configuration information set has a regular pattern, that is, the error can be found through the verification method, the developer adds a new error-prone type to the preset error-prone type set, and configures the corresponding verification method. And delete the configuration information in the error configuration information set that is determined to be erroneous by the new error-prone type. That is, the erroneous configuration information in the error configuration information set can be configuration information including error content that cannot be verified by the verification method. The error content is the content in the configuration information, and the error content is the basis for judging that the configuration information is erroneous.
[0190] If the configuration information is initially verified and fails the initial verification, a warning box is generated and displayed to the user;
[0191] If the user confirms that the configuration information is correct, the error rate of the configuration information is determined based on the verification result of the target content. Figure 1 The method shown in determines the error rate of the configuration information and makes a judgment on the error rate.
[0192] It should be noted that the three initial verifications provided by the present invention can be used separately, for example, using method 1 for initial verification; or using method 2 for initial verification; or using method 3 for initial verification. The three initial verifications can be used in combination, for example, using method 1 and method 2 for initial verification; or using method 1 and method 3 for initial verification; or using method 2 and method 3 for initial verification; or using method 1, method 2 and method 3 for initial verification.
[0193] Generally, in order to improve the accuracy of verification, initial verification is performed through the above three methods, but there are also special cases, as follows:
[0194] For method 1, if the user does not select the type of configuration information to be modified, initial verification cannot be performed through method 1.
[0195] For method 2, if the application to which the configuration information modified by the user belongs does not have a corresponding verification method, initial verification cannot be performed through method 2.
[0196] For mode 3, if the configuration information does not store an erroneous configuration information set, initial verification cannot be performed through mode 3.
[0197] When initial verification is performed using two or more methods, take method 1 and method 2 as an example. The specific process is combined with Figure 5 As shown, including:
[0198] S500: responding to a configuration modification instruction triggered by a user, and determining configuration information included in the configuration modification instruction;
[0199] S501: Perform initial verification on the configuration information by modifying the type verification rule corresponding to the configuration information type contained in the configuration instruction to determine whether the configuration information passes the verification; if so, execute S502; otherwise, execute S503;
[0200] S502: Perform initial verification on the configuration information by modifying the verification rule corresponding to the application to which the configuration information contained in the configuration instruction belongs, and determine whether the configuration information passes the verification; if so, execute S504; if not, execute S505;
[0201] S503: Generate a first warning box and display it to the user. After the user confirms that there is no error in the configuration information, execute S502. The content displayed in the first warning box may be content that fails the type verification rule.
[0202] S504: Determine the error rate of the configuration information; the error rate can be Figure 1 The method shown in is obtained;
[0203] S505: Generate a second warning box and display it to the user. After the user confirms that there is no error in the configuration information, execute S504. The content displayed in the second warning box may be the verification rule that fails to pass the corresponding application.
[0204] S506: Determine whether the error rate is less than a preset value; if so, execute S507; otherwise, execute S508;
[0205] S507: Update the configuration information of the configuration center according to the configuration information included in the configuration modification instruction;
[0206] S508: Generate a third warning box and display it to the user. When the user confirms that there is no error in the configuration information, update the configuration information of the configuration center according to the configuration information included in the configuration modification instruction.
[0207] Take the example of adding a new requirement to the application. The workflow of adding the new requirement is combined with Figure 6 As shown, including:
[0208] S600: Responding to a configuration modification instruction triggered by a user, determining an error rate of the configuration information contained in the configuration modification instruction, and determining whether the error rate is less than a preset value; wherein the error rate of the configuration information is determined as follows: Figure 1 If yes, execute S601; otherwise, execute S602;
[0209] S601: Update the configuration information of the configuration center, and input the updated configuration information into the test system;
[0210] S602: Notify the developer so that the developer can modify the configuration information;
[0211] S603: Testing the updated configuration information through the test system to determine whether the test passes; if so, executing S604; otherwise, executing S605;
[0212] S604: Determine whether the test environment in the test system is the same as the production environment in the production system; if so, execute S606 and S608; otherwise, execute S607 and S608;
[0213] S605: Generate a prompt box to prompt the developer that the test failed;
[0214] S606: importing the updated configuration information into the document, and sending the imported document from the test system to the production system;
[0215] S607: Importing the modified configuration information into the production system manually;
[0216] S608: Publish the modified configuration information to the application through the production system.
[0217] It should be noted that when the modified configuration information is imported into the production system manually, errors are likely to occur due to manual operation. In order to ensure the correctness of the published configuration information, after importing it into the production system, Figure 1 The method shown determines whether the configuration information is wrong. If there is no error, the updated configuration information is released to the application through the production system. If there is an error, the developer is notified so that the developer can perform manual inspection.
[0218] The updated configuration information mentioned in S606 is imported into a document, where the document may be an Excel spreadsheet, WPS, etc.
[0219] Considering information security, before S608, the present invention provides three solutions to verify the security of the configuration information transmitted from the test system to the production system.
[0220] Scenario 1:
[0221] Determine that the total encrypted value before being sent to the production system is equal to the total encrypted value when being sent to the production system; wherein the total encrypted value is obtained by encrypting the updated configuration information.
[0222] Specifically, after the updated configuration information passes the test of the test system, the updated configuration information is encrypted, and the corresponding encrypted string is calculated, that is, the encrypted total value when it is not sent to the production system; the encrypted string and the updated configuration information are sent to the production system together. In the production system, the updated configuration information is encrypted using the same encryption method as that in the test system to obtain the encrypted total value when it is sent to the production system, and then it is determined whether the two encrypted total values are the same. If they are the same, it means that the synchronized configuration information has not been tampered with and can be published. Otherwise, it means that the synchronized configuration information has been tampered with and there is a risk of malicious attack.
[0223] Scenario 2:
[0224] In the production system, a configuration item in the updated configuration information is determined to be equal to the configuration item obtained by decrypting the encrypted string corresponding to each configuration item; wherein, when the updated configuration information is not sent to the production system, the encrypted string corresponding to each configuration item is determined, and then the updated configuration information and the encrypted string corresponding to each configuration item are sent to the production system together.
[0225] Specifically, after the updated configuration information passes the test of the test system, the configuration items in the updated configuration information are encrypted, the encrypted string corresponding to each configuration item is calculated, and the encrypted string corresponding to each configuration item and the updated configuration information are sent to the production system together. In the production system, the updated configuration information is decrypted using the decryption method corresponding to the encryption in the test system to obtain the configuration item, and then each configuration item is judged by comparing the received configuration item with the configuration item decrypted by the encrypted string. If they are the same, it means that the synchronized configuration information has not been tampered with and can be published. Otherwise, it means that the synchronized configuration information has been tampered with and there is a risk of malicious attack.
[0226] Solution 3:
[0227] Determine that the total encrypted value before being sent to the production system is equal to the total encrypted value when being sent to the production system; wherein the total encrypted value is obtained by encrypting the updated configuration information;
[0228] and in the production system, determining the configuration items in the updated configuration information, which are equal to the configuration items obtained by decrypting the encrypted string corresponding to each configuration item; wherein, when the updated configuration information is not sent to the production system, determining the encrypted string corresponding to each configuration item, and then sending the updated configuration information and the encrypted string corresponding to each configuration item together to the production system.
[0229] Specifically, after the updated configuration information passes the test of the test system, the corresponding encrypted string is calculated according to each configuration item in the updated configuration information, and the corresponding encrypted total value is calculated for the updated configuration information as a whole; the encrypted string, the encrypted total value and the updated configuration information are imported into a file together, and after synchronization to the production system, in the production system, the corresponding encrypted total value is calculated according to the updated configuration information as a whole, and it is determined whether the encrypted total value before being sent to the production system is equal to the encrypted total value when sent to the production system. If so, it means that the synchronized configuration information has not been tampered with. Otherwise, it means that the synchronized configuration information has been tampered with, and there is a risk of malicious attack.
[0230] At the same time, a decryption operation is used to decrypt the encrypted string corresponding to each configuration to check whether the decrypted configuration item is the same as the configuration item in the file. If they are the same, it means that the synchronized configuration information has not been tampered with. Otherwise, it means that the synchronized configuration information has been tampered with, and there is a risk of malicious attack.
[0231] After it is found that the synchronized configuration information is determined to be tampered with, the maintenance personnel of the test system and the production system are notified so that the maintenance personnel can maintain the information security of the test system and the production system.
[0232] Before the updated configuration information is published, manual approval is generally required, that is, manual approval is used to determine whether the updated configuration information needs to be published. Based on this, an embodiment of the present invention provides a workflow, including:
[0233] Step 1: The developer modifies the configuration information in the test system, verifies it through the method provided by the present invention, and then fully tests it in the test environment of the test system.
[0234] Step 2: After the developer logs in to the test environment and enters the corresponding application configuration page, he or she selects the configuration items to be synchronized and clicks Generate Configuration File Form. The configuration file form is an Excel sheet of configuration items, in which each configuration item has a specific encrypted string and the overall encrypted string of the configured content.
[0235] Step 3: The developer logs in to the bill of lading approval system, fills the imported Excel table into the template of the configuration synchronization form, obtains the approval form, and applies for approval of the approval form.
[0236] Step 4: After the approval form is agreed by all approvers, the bill of lading approval system will trigger a call to a pre-set synchronization interface to transmit the configuration items in the approval form and the corresponding encrypted string to the production system.
[0237] Step 5: After the production system receives the configuration items and corresponding encrypted strings of the approval form, it will decrypt each configuration. If it is found that the encrypted string does not match the configuration item content, or the overall configuration content does not match the encrypted string, the configuration item of this approval form will be rejected, and the maintenance personnel of the production system and the developer who initiated the synchronization will be prompted to check whether the network is under malicious attack and whether the developer will initiate the synchronization to the production system again.
[0238] Step 6: After verifying the content of the approval form, the operation and maintenance personnel log in to the production system, enter the corresponding application configuration page, and click the Synchronize Production Configuration button to successfully synchronize the configuration content of the test environment to the production environment. After synchronization, the operation and maintenance personnel perform the corresponding publishing operation. The publishing operation of the configuration information is to inform the application that it can request the configuration information from the configuration center.
[0239] The configuration center stores configuration information. When responding to user requests, applications need to make configuration requests to the configuration center. However, due to the large number of applications, the configuration center has limited processing capabilities for requests sent by applications. Therefore, when a large number of applications make requests at the same time, the configuration center may easily crash.
[0240] Based on this, after the updated configuration information is published to the application through the production system, the method of the present invention further includes:
[0241] Sending a toolkit to the application, so that the application determines the sending time of the configuration request after the first configuration request according to the toolkit, and sends the configuration request to the configuration center according to the determined sending time;
[0242] Among them, the toolkit stipulates that the product of the number of intervals determined by the difference between the sending time of the first configuration request and the current time point and the preset interval time, plus the sending time of the first configuration request of the application, is used as the sending time of the current configuration request; or the product of the number of intervals determined by the difference between the preset time corresponding to the application and the current time point and the preset interval time, plus the preset time corresponding to the application, is used as the sending time of the current configuration request.
[0243] After the same configuration information is published, due to publishing script / machine issues, for example, different routers, the terminals connected to different routers may receive the published configuration information at different times, that is, the time when the application receives the information may also be different, and the time when the first configuration request is initiated for the published configuration information may also be different.
[0244] Based on this, the configuration center of the present invention will send a toolkit to the application, so that when the application side receives the toolkit, it can send the configuration request according to the time specified in the toolkit.
[0245] For example: under the condition that the toolkit defaults to an application making a configuration request every 5 seconds, since the time of the first configuration request is inconsistent, the time of sending each round of configuration requests after the first one to the configuration center can be used to calculate the next execution time T1. The configuration center records the time when the application's first configuration request was sent, identifies the specific application's first configuration request sending time based on the application's system number, and then configures the first configuration request sending time into the toolkit and sends it to the application with the same system number as the first configuration request.
[0246] When the application side needs to make a second configuration request, the time for sending the second configuration request is obtained based on the sending time of the first configuration request + 1 times the preset interval time; if the current time exceeds the calculated time for sending the second configuration request, the interval time is increased once, and the time for initiating the second configuration request is the preset interval time * 2 + the sending time of the first configuration request; until the current time point does not exceed the calculated time for sending the second configuration request.
[0247] For example, when the sending time of the first configuration request is 1:20:03 p.m. on January 1, 2020, the reference sending time of the second configuration request is: 1:20:03 p.m. on January 1, 2020 + 5 seconds = 1:20:08 p.m. on January 1, 2020; if the current time point is 1:20:45 p.m. on January 1, 2020, it is longer than the calculated sending time of the second configuration request. The difference between the sending time of the first configuration request and the current time point is calculated. The difference between 1:20:03 p.m. on January 1, 2020 and 1:20:45 p.m. on January 1, 2020 is 42 seconds. Divide 42 seconds by the preset interval time of 5 seconds, and the interval number is 8 times, but 2 seconds more. Therefore, the interval number is determined to be 9 times 5 seconds, that is, 1:20:48 p.m. on January 1, 2020 is the sending time. The second configuration request needs to wait for 3 seconds and be sent at 48 seconds.
[0248] The method of calculating the sending time using the preset time corresponding to the application is similar to the above method, wherein the preset time corresponding to the application may be configured by the configuration center for the application.
[0249] Based on the same concept, an embodiment of the present invention also provides a configuration modification device. Figure 7 As shown, the device comprises:
[0250] The configuration information determination module 700 is used to respond to the configuration modification instruction triggered by the user and determine the configuration information contained in the configuration modification instruction; wherein the configuration information is used to enable the corresponding application to respond to the user's request instruction;
[0251] The content determination module 701 is used to determine the target content in the configuration information that matches the preset error-prone type set;
[0252] Verification module 702, used to verify the target content according to a preset verification method corresponding to the error-prone type of the target content, and obtain a verification result of the target content;
[0253] An error rate determination module 703 is used to determine the error rate of the configuration information according to the verification result of the target content;
[0254] The updating module 704 is configured to update the configuration information of the configuration center according to the configuration information included in the configuration modification instruction if the error rate is lower than a preset value.
[0255] Further, the error rate determination module 703 includes:
[0256] A contribution rate set determination unit is used to form a target error-prone type subset by grouping the error-prone types to which the target content belongs; a contribution rate set corresponding to the target error-prone type subset is determined according to a correspondence between a preset error-prone type subset and a contribution rate set; wherein the contribution rate in the determined contribution rate set indicates the degree of influence of an error in the configuration information containing the target content when the target content is erroneous; the error-prone type subset is formed by any combination of error-prone types in the preset error-prone type set;
[0257] The error rate calculation unit is used to obtain the error rate of the configuration information by adding the contribution rates of the target contents whose verification results are failure to pass the verification according to the contribution rate set corresponding to the target content set.
[0258] Further, after the error rate determination module 703 determines the error rate of the configuration information, the device further includes:
[0259] A first display module, used to generate an alarm box and display it to the user if the error rate is higher than a preset value;
[0260] The user confirmation module is used to update the configuration information of the configuration center according to the configuration information included in the configuration modification instruction if the user confirms that there is no error in the configuration information.
[0261] Furthermore, the device also includes:
[0262] An adjustment module, configured to adjust the contribution rates in the contribution rate set by an exhaustive method after a preset condition is met; wherein the preset condition is one or all of the following: the total number of the target configuration information exceeds a threshold number; the current time point belongs to a preset adjustment time point;
[0263] A false alarm rate calculation module is used to determine a first false alarm rate of the target configuration information by using the adjusted contribution rate set, and to determine a second false alarm rate of the target configuration information by using the contribution rate set updated last time; wherein the target configuration information is the configuration information of the content matched by the target error-prone type subset after the contribution rate set was last updated; and the configuration information whose error rate is higher than a preset value but the user confirms that the configuration information is not wrong is regarded as a false alarm;
[0264] An updating module is configured to update the corresponding relationship using an adjusted contribution rate set if the first false alarm rate is less than the second false alarm rate.
[0265] Further, after the configuration information determination module 700 determines the configuration information included in the configuration modification instruction, and before the error rate determination module 703 determines the error rate of the configuration information, the device further includes:
[0266] An initial verification module, used to perform initial verification on the configuration information and determine whether the configuration information passes the initial verification;
[0267] The initial verification includes some or all of the following:
[0268] Performing initial verification on the configuration information according to the type verification rule corresponding to the configuration information type contained in the configuration modification instruction;
[0269] Performing initial verification on the configuration information according to the application corresponding verification rule to which the configuration information contained in the configuration modification instruction belongs;
[0270] The configuration information is initially verified by using an erroneous configuration information set, wherein the erroneous configuration information set is a set of erroneous configuration information.
[0271] Furthermore, the device also includes:
[0272] A second display module is used to generate an alarm box and display it to the user if the configuration information is initially verified and the configuration information fails the initial verification;
[0273] The error rate determination module is further configured to determine the error rate of the configuration information according to the verification result of the target content if the user confirms that there is no error in the configuration information.
[0274] Further, after the updating module 704 updates the configuration information of the configuration center, the device further includes:
[0275] A test module, used to test the updated configuration information through a test system; if the test passes, determine whether the test environment in the test system is the same as the production environment in the production system; if so, import the modified configuration information into a document, and send the imported document from the test system to the production system;
[0276] The publishing module is used to publish the updated configuration information to the application through the production system.
[0277] Furthermore, before the publishing module publishes the updated configuration information, the device further includes:
[0278] A security verification module, used to determine that the total encrypted value before being sent to the production system is equal to the total encrypted value when sent to the production system; wherein the total encrypted value is obtained by encrypting the updated configuration information;
[0279] And / or in the production system, determining the configuration items in the updated configuration information is equal to the configuration items obtained by decrypting the encrypted string corresponding to each configuration item; wherein, when the updated configuration information is not sent to the production system, determining the encrypted string corresponding to each configuration item, and then sending the updated configuration information and the encrypted string corresponding to each configuration item together to the production system.
[0280] Further, after the publishing module publishes the updated configuration information, the device further includes:
[0281] A toolkit sending module, used to send a toolkit to the application, so that the application determines the sending time of the configuration request after the first configuration request according to the toolkit, and sends the configuration request to the configuration center according to the determined sending time;
[0282] Among them, the toolkit stipulates that the product of the number of intervals determined by the difference between the sending time of the first configuration request and the current time point and the preset interval time, plus the sending time of the first configuration request of the application, is used as the sending time of the current configuration request; or the product of the number of intervals determined by the difference between the preset time corresponding to the application and the current time point and the preset interval time, plus the preset time corresponding to the application, is used as the sending time of the current configuration request.
[0283] The embodiment of the present invention further provides a computing device, which may be a desktop computer, a portable computer, a smart phone, a tablet computer, a personal digital assistant (PDA), etc. The computing device may include a central processing unit (CPU), a memory, an input / output device, etc. The input device may include a keyboard, a mouse, a touch screen, etc. The output device may include a display device, such as a liquid crystal display (LCD), a cathode ray tube (CRT), etc.
[0284] The memory may include a read-only memory (ROM) and a random access memory (RAM), and provides the processor with program instructions and data stored in the memory. In an embodiment of the present invention, the memory may be used to store program instructions for configuring the modification method;
[0285] The processor is used to call the program instructions stored in the memory and execute the configuration modification method according to the obtained program.
[0286] An embodiment of the present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions are used to enable a computer to execute the configuration modification method.
[0287] It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as methods or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0288] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks 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 produce 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.
[0289] 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 including 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.
[0290] 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.
[0291] Although the preferred embodiments of the present invention have been described, those skilled in the art may make other changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the present invention.
[0292] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.
Claims
1. A configuration modification method, characterized in that: include: In response to a modification configuration instruction triggered by a user, determine the configuration information contained in the modification configuration instruction; wherein the configuration information is used to enable the corresponding application to respond to the user's request instruction; Determining target content in the configuration information that matches a preset set of error-prone types; Verifying the target content according to a preset verification method corresponding to the error-prone type of the target content to obtain a verification result of the target content; Determining an error rate of the configuration information according to a verification result of the target content; If the error rate is lower than a preset value, updating the configuration information of the configuration center according to the configuration information contained in the configuration modification instruction; Wherein, determining the error rate of the configuration information according to the verification result of the target content includes: The error-prone types to which the target content belongs are grouped into a target error-prone type subset; based on the correspondence between the preset error-prone type subset and the contribution rate set, the contribution rate set corresponding to the target error-prone type subset is determined; wherein the contribution rate in the determined contribution rate set represents the degree of influence of an error in the target content on an error in the configuration information containing the target content; the error-prone type subset is formed by any combination of the error-prone types in the preset error-prone type set; based on the determined contribution rate set, the contribution rates of the target contents whose verification results are failed to pass the verification are added to obtain the error rate of the configuration information.
2. The configuration modification method according to claim 1, characterized in that: The method further comprises: After the preset conditions are met, the contribution rates in the contribution rate set are adjusted by exhaustive method; The adjusted contribution rate set is used to determine a first false alarm rate of the target configuration information, and the last updated contribution rate set is used to determine a second false alarm rate of the target configuration information; wherein the target configuration information is configuration information whose content is matched by the target error-prone type subset after the contribution rate set is last updated; the configuration information whose error rate is higher than a preset value but the user confirms that the configuration information is not wrong is regarded as a false alarm; If the first false alarm rate is less than the second false alarm rate, updating the corresponding relationship with the adjusted contribution rate set; The preset conditions are any or all of the following: The total number of the target configuration information exceeds a threshold number; The current time point belongs to the preset adjustment time point.
3. The configuration modification method according to claim 1, characterized in that: After determining the configuration information included in the configuration modification instruction, and before determining the error rate of the configuration information according to the verification result of the target content, the method further includes: Performing initial verification on the configuration information, and determining that the configuration information passes the initial verification; The initial verification includes some or all of the following: Performing initial verification on the configuration information according to the type verification rule corresponding to the configuration information type contained in the configuration modification instruction; Performing initial verification on the configuration information according to the application corresponding verification rule to which the configuration information contained in the configuration modification instruction belongs; The configuration information is initially verified by using an erroneous configuration information set, wherein the erroneous configuration information set is a set of erroneous configuration information.
4. The configuration modification method according to any one of claims 1 to 3, characterized in that: After updating the configuration information of the configuration center according to the configuration information contained in the configuration modification instruction, the method further includes: Test the updated configuration information through the test system; If the test passes, determine whether the test environment in the test system is the same as the production environment in the production system; If yes, importing the updated configuration information into a document, and sending the imported document from the test system to the production system; The updated configuration information is published to the application through the production system.
5. The configuration modification method according to claim 4, characterized in that: Before publishing the updated configuration information to the application through the production system, the method further includes: Determine that the total encrypted value before being sent to the production system is equal to the total encrypted value when being sent to the production system; wherein the total encrypted value is obtained by encrypting the updated configuration information; And / or in the production system, determining the configuration items in the updated configuration information is equal to the configuration items obtained by decrypting the encrypted string corresponding to each configuration item; wherein, when the updated configuration information is not sent to the production system, determining the encrypted string corresponding to each configuration item, and then sending the updated configuration information and the encrypted string corresponding to each configuration item together to the production system.
6. The configuration modification method according to claim 4, characterized in that: After publishing the updated configuration information to the application through the production system, the method further includes: Sending a toolkit to the application, so that the application determines the sending time of the configuration request after the first configuration request according to the toolkit, and sends the configuration request to the configuration center according to the determined sending time; Among them, the toolkit stipulates that the product of the number of intervals determined by the difference between the sending time of the first configuration request and the current time point and the preset interval time, plus the sending time of the first configuration request of the application, is used as the sending time of the current configuration request; or the product of the number of intervals determined by the difference between the preset time corresponding to the application and the current time point and the preset interval time, plus the preset time corresponding to the application, is used as the sending time of the current configuration request.
7. A configuration modification device, characterized in that: The device comprises: A configuration information determination module, used to respond to a configuration modification instruction triggered by a user, and determine the configuration information contained in the configuration modification instruction; wherein the configuration information is used to enable the corresponding application to respond to the user's request instruction; A content determination module, used to determine target content in the configuration information that matches a preset error-prone type set; A verification module, used to verify the target content according to a preset verification method corresponding to the error-prone type of the target content, and obtain a verification result of the target content; An error rate determination module, used to determine the error rate of the configuration information according to the verification result of the target content; An updating module, configured to update the configuration information of the configuration center according to the configuration information contained in the configuration modification instruction if the error rate is lower than a preset value; The error rate determination module comprises: A contribution rate set determination unit is used to form a target error-prone type subset by grouping the error-prone types to which the target content belongs; a contribution rate set corresponding to the target error-prone type subset is determined according to a correspondence between a preset error-prone type subset and a contribution rate set; wherein the contribution rate in the determined contribution rate set indicates the degree of influence of an error in the configuration information containing the target content when the target content is erroneous; the error-prone type subset is formed by any combination of error-prone types in the preset error-prone type set; The error rate calculation unit is used to add the contribution rates of the target contents whose verification results are failure to pass the verification to obtain the error rate of the configuration information according to the determined contribution rate set.
8. A computing device, characterized in that include: A memory for storing program instructions; A processor is used to call the program instructions stored in the memory and execute the configuration modification method according to any one of claims 1 to 6 according to the obtained program.
9. A computer-readable storage medium, characterized in that: The storage medium stores computer-executable instructions, and the computer-executable instructions are used to enable a computer to execute the configuration modification method according to any one of claims 1 to 6.
Citation Information
Patent Citations
Project parameter configuration method and device, terminal device and storage medium
CN108830547A