Node parameter management method and device, computer equipment, storage medium and product
By selecting target nodes in the distributed system of financial institutions and sending parameter validation tasks for parameter processing and management, it solves the problem of low parameter management efficiency of financial institutions in multi-node systems and achieves efficient parameter management of distributed systems. .
Patent Information
- Application Number
- CN202410808496.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-21
- Publication Date
- 2024-09-13
AI Technical Summary
When financial institutions maintain multi-node application systems, parameter management efficiency is low, and new nodes need to simultaneously adjust maintenance scripts, resulting in inefficient parameter management of distributed nodes.
Provide a node parameter management method, by selecting the target node from the candidate nodes of the distributed system, sending parameter validation tasks to it, and performing parameter processing and management, including parameter consistency comparison, repair processing and inspection, to achieve the target Automatic repair and isolation repair of parameters.
It improves the efficiency of node parameter management, realizes unified management, real-time monitoring and management of the parameters of each node in the distributed system, and reduces the need for separate configuration of each node.
Smart Images

Figure CN118646649A
Abstract
Description
Technical Field
[0001] The present application relates to the field of data processing technology, and in particular to a node parameter management method, apparatus, computer equipment, storage medium and product, which can be applied to the field of financial technology and other technical fields. Background Art
[0002] With the rapid development of the financial industry, the business of financial institutions has also transformed from traditional application systems to distributed structures. However, an application system may have dozens or hundreds of server nodes, and each node will store a complete set of business parameters and technical parameters. How to effectively manage node parameters has become an urgent problem for financial institutions.
[0003] At present, when financial institutions' application systems maintain the parameters of multiple nodes, they often use parameter maintenance scripts to update the parameters in each node's configuration file. When new nodes are added, the maintenance scripts need to be adjusted synchronously, and there is uncertainty about whether the maintenance of each node is successful, resulting in low efficiency in parameter management of distributed nodes. Summary of the invention
[0004] Based on this, it is necessary to provide a node parameter management method, device, computer equipment, computer-readable storage medium and product that can improve the efficiency of node parameter management in response to the above technical problems.
[0005] In a first aspect, the present application provides a node parameter management method, comprising:
[0006] In response to a parameter processing request for a target parameter, a target node is selected from candidate nodes of the distributed system, and parameter processing information corresponding to the target node is determined; wherein the parameter processing information at least includes a parameter processing time and a target parameter value;
[0007] Sending a parameter validation task for the target parameter to the target node; wherein the parameter validation task is used to instruct the target node to process the target parameter according to the parameter processing information carried in the parameter validation task, so that the target parameter becomes effective;
[0008] Parameter management is performed on the target node according to the parameter processing information corresponding to the target node and the parameter processing result fed back by the target node based on the parameter validation task.
[0009] In one embodiment, selecting a target node from candidate nodes of a distributed system includes:
[0010] Processing the request according to the parameters, selecting a candidate node from among the nodes of the distributed system;
[0011] Displaying a node selection interface to the initiator of the parameter processing request; wherein the node selection interface includes node description information of the candidate nodes;
[0012] According to the initiator's selection operation on the candidate nodes in the node selection interface, a target node is selected from the candidate nodes.
[0013] In one embodiment, the processing the request according to the parameter and selecting a candidate node from each node of the distributed system includes:
[0014] If the parameter processing request is a parameter adding request, each node of the distributed system is used as a candidate node;
[0015] If the parameter processing request is a parameter change request, the nodes in the distributed system that are associated with the target parameter are used as candidate nodes.
[0016] In one of the embodiments, the parameter processing result includes an actual parameter value;
[0017] Accordingly, performing parameter management on the target node according to the parameter processing information corresponding to the target node and the parameter processing result fed back by the target node based on the parameter validation task includes:
[0018] Performing consistency comparison between the actual parameter value and the target parameter value of the target node for the target parameter;
[0019] If the consistency comparison result is inconsistent, parameter repair processing is performed on the target node according to the parameter processing information corresponding to the target node.
[0020] In one of the embodiments, performing parameter repair processing on the target node according to the parameter processing information corresponding to the target node includes:
[0021] According to the parameter processing information corresponding to the target node, resending the parameter validation task for the target parameter to the target node, so that the target node automatically repairs the target parameter;
[0022] If the parameter repair result received from the target node is repair failure, the target node is isolated and repaired.
[0023] In one embodiment, the method further comprises:
[0024] Storing parameter processing information corresponding to the target node in a persistent storage area;
[0025] The parameter processing result fed back by the target node based on the parameter validation task is stored in a cache storage area.
[0026] In one embodiment, the method further comprises:
[0027] When receiving a parameter inspection request for the target parameter, obtaining current parameter information of the target node for the target parameter;
[0028] The current parameter information of the target node is checked for correctness according to the parameter processing information of the target parameter stored in the persistent storage area.
[0029] In a second aspect, the present application also provides a node parameter management device, including:
[0030] An information acquisition module, configured to select a target node from candidate nodes of a distributed system in response to a parameter processing request for a target parameter, and determine parameter processing information corresponding to the target node; wherein the parameter processing information at least includes a parameter processing time and a target parameter value;
[0031] A parameter processing module, used for sending a parameter validation task for the target parameter to the target node; wherein the parameter validation task is used to instruct the target node to process the target parameter according to the parameter processing information carried in the parameter validation task, so as to make the target parameter effective;
[0032] The parameter management module is used to perform parameter management on the target node according to the parameter processing information corresponding to the target node and the parameter processing result fed back by the target node based on the parameter validation task.
[0033] In a third aspect, the present application further provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:
[0034] In response to a parameter processing request for a target parameter, a target node is selected from candidate nodes of the distributed system, and parameter processing information corresponding to the target node is determined; wherein the parameter processing information at least includes a parameter processing time and a target parameter value;
[0035] Sending a parameter validation task for the target parameter to the target node; wherein the parameter validation task is used to instruct the target node to process the target parameter according to the parameter processing information carried in the parameter validation task, so that the target parameter becomes effective;
[0036] Parameter management is performed on the target node according to the parameter processing information corresponding to the target node and the parameter processing result fed back by the target node based on the parameter validation task.
[0037] In a fourth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the following steps are implemented:
[0038] In response to a parameter processing request for a target parameter, a target node is selected from candidate nodes of the distributed system, and parameter processing information corresponding to the target node is determined; wherein the parameter processing information at least includes a parameter processing time and a target parameter value;
[0039] Sending a parameter validation task for the target parameter to the target node; wherein the parameter validation task is used to instruct the target node to process the target parameter according to the parameter processing information carried in the parameter validation task, so that the target parameter becomes effective;
[0040] Parameter management is performed on the target node according to the parameter processing information corresponding to the target node and the parameter processing result fed back by the target node based on the parameter validation task.
[0041] In a fifth aspect, the present application further provides a computer program product, including a computer program, which implements the following steps when executed by a processor:
[0042] In response to a parameter processing request for a target parameter, a target node is selected from candidate nodes of the distributed system, and parameter processing information corresponding to the target node is determined; wherein the parameter processing information at least includes a parameter processing time and a target parameter value;
[0043] Sending a parameter validation task for the target parameter to the target node; wherein the parameter validation task is used to instruct the target node to process the target parameter according to the parameter processing information carried in the parameter validation task, so that the target parameter becomes effective;
[0044] Parameter management is performed on the target node according to the parameter processing information corresponding to the target node and the parameter processing result fed back by the target node based on the parameter validation task.
[0045] The above-mentioned node parameter management method, device, computer equipment, storage medium and product, through unified management of nodes in a distributed system, respond to a parameter processing request for a target parameter, select a target node from candidate nodes in the distributed system, and determine the parameter processing information corresponding to the target node, and send a parameter validation task for the target parameter to the target node to instruct the target node to process the target parameter according to the parameter processing information carried in the parameter validation task so that the target parameter becomes effective. There is no need to configure each target node separately, thereby improving the efficiency of each node in processing the target parameter; further, according to the parameter processing information corresponding to the target node and the parameter processing result of the target node based on the parameter validation task feedback, the target node is parameter managed, the result of the target node parameter processing on the target parameter can be monitored in real time, and the target node can be parameter managed according to the parameter processing result, thereby improving the parameter management efficiency of each node in the distributed system. BRIEF DESCRIPTION OF THE DRAWINGS
[0046] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the related technologies, the drawings required for use in the embodiments or the related technical descriptions are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0047] Figure 1 An application environment diagram of a node parameter management method in an embodiment;
[0048] Figure 2 A schematic diagram of a process flow of a node parameter management method in an embodiment;
[0049] Figure 3 A schematic diagram of a process of selecting a target node in an embodiment;
[0050] Figure 4 A schematic diagram of a process of performing parameter management on a target node in one embodiment;
[0051] Figure 5 A schematic diagram of a process of performing parameter repair processing on a target node in one embodiment;
[0052] Figure 6 A schematic diagram of a process of inspecting target parameters in one embodiment;
[0053] Figure 7 is a flowchart of a node parameter management method in another embodiment;
[0054] Figure 8 is a structural block diagram of a node parameter management device in an embodiment;
[0055] Fig. 9 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION
[0056] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0057] The node parameter management method provided in the embodiment of the present application can be applied to Figure 1 In the application environment shown. In order to manage each node (i.e., business server) of the distributed system of a financial institution, a distributed multi-node parameter management platform can be built, and each node can be managed through a unified console. Among them, the console server 101 communicates with the target node 102 in the distributed system through the network. The data storage system can store the data that the console server 101 needs to process. The data storage system can be integrated on the console server 101, or it can be placed on the cloud or other network servers. Optionally, the console server 101 responds to a parameter processing request for a target parameter, selects a target node from the candidate nodes of the distributed system, determines the parameter processing information corresponding to the target node 102, and sends a parameter validation task for the target parameter to the target node 102; according to the parameter processing information corresponding to the target node and the parameter processing result of the target node based on the parameter validation task feedback, the target node is managed.
[0058] In one embodiment, Figure 2 As shown, a node parameter management method is provided, which is applied to Figure 1 The console server 101 is used as an example for description, and the following steps are included:
[0059] S201 , in response to a parameter processing request for a target parameter, selecting a target node from candidate nodes of a distributed system, and determining parameter processing information corresponding to the target node.
[0060] Among them, the parameters are parameters of the business system under the financial structure, for example, they can be technical parameters or business parameters. The target parameters are parameters that are added, changed or deleted. The distributed system is the business system of a financial institution (such as a bank). The node is a separate individual in the distributed system; in the embodiment of the present application, the node is a server of the distributed system, and a node is a server; the candidate node is a node that can be selected; the target node is a selected node that needs to process the target parameter. The parameter processing information includes at least the parameter processing time and the target parameter value.
[0061] In an embodiment of the present application, in order to manage each node of a distributed system of a financial institution, a distributed multi-node parameter management platform can be built, and each node can be managed through a unified console.
[0062] Optionally, when the operation and maintenance personnel of a financial institution need to add or modify parameters, they can initiate a parameter processing request for the target parameter in the console and fill in the parameter processing strategy in the parameter processing page provided by the console. For example, they can fill in the parameter name of the target parameter to be processed, the name of the node involved, the parameter processing time, and the target parameter value.
[0063] Furthermore, the server obtains the information filled in by the operation and maintenance personnel on the parameter processing page, selects the node involving the node name as the target node from the candidate nodes in the distributed system, and uses the parameter processing time and the target parameter value as the parameter processing information corresponding to the target node.
[0064] In order to ensure the rationality and security of parameter processing information, the information filled in by the operation and maintenance personnel on the parameter processing page is encrypted information. After obtaining the information filled in by the operation and maintenance personnel on the parameter processing page, the information needs to be verified for data legitimacy; and if the verification passes, the information is parsed using the preset parsing rules to obtain the parsing results. At this point, the target node can be selected based on the parsing results, and the parameter processing information corresponding to the target node can be determined.
[0065] S202: Send a parameter validation task for a target parameter to a target node.
[0066] The parameter validation task is used to instruct the target node to process the target parameter according to the parameter processing information carried in the parameter validation task so as to make the target parameter effective.
[0067] Optionally, a parameter validation task for the target node for the target parameter can be generated based on the parameter processing information corresponding to the target node and the target points. Furthermore, the parameter validation task can be sent to the target ground point through a message queue, so that the target node processes the target parameter according to the parameter processing information carried in the parameter validation task. Even if the target node loads the target parameter, the target parameter can take effect after the loading is successful.
[0068] S203: Perform parameter management on the target node according to the parameter processing information corresponding to the target node and the parameter processing result fed back by the target node based on the parameter validation task.
[0069] The parameter processing result is the processing result after the target node processes the target parameter. Parameter management includes parameter repair processing and parameter inspection processing.
[0070] Optionally, after the target node completes processing of the target parameters, it will feed back the parameter processing results to the console; at this time, the console's server can determine whether the target node's processing of the target parameters meets expectations based on the parameter processing information and parameter processing results corresponding to the target node; if not, the target parameters of the target node will be repaired and maintained; if yes, the target parameters of the target node can be regularly inspected.
[0071] In the above-mentioned node parameter management method, by uniformly managing the nodes in the distributed system, in response to the parameter processing request for the target parameter, the target node is selected from the candidate nodes of the distributed system, and the parameter processing information corresponding to the target node is determined, and a parameter validation task for the target parameter is sent to the target node to instruct the target node to process the target parameter according to the parameter processing information carried in the parameter validation task so that the target parameter becomes effective. There is no need to configure each target node separately, thereby improving the efficiency of each node in processing the target parameter; further, according to the parameter processing information corresponding to the target node and the parameter processing result of the target node based on the parameter validation task feedback, the target node is parameter managed, the result of the target node parameter processing on the target parameter can be monitored in real time, and the target node can be parameter managed according to the parameter processing result, thereby improving the parameter management efficiency of each node in the distributed system.
[0072] Optionally, in order to ensure the accuracy and comprehensiveness of the selected target node, in one embodiment, Figure 3 As shown, a method for selecting a target node is provided, which specifically includes the following steps:
[0073] S301, selecting a candidate node from each node of the distributed system according to a parameter processing request.
[0074] Optionally, since there are hundreds of nodes in a distributed system, it is a heavy workload to select a target node from all the nodes. Therefore, according to the parameter processing request, a node associated with the target parameter in the parameter processing request can be used as a candidate node.
[0075] Optionally, since parameter processing requests have different types, the selection of candidate nodes is different for different types. If the parameter processing request is a parameter addition request, each node in the distributed system is used as a candidate node; if the parameter processing request is a parameter change request, the nodes associated with the target parameter in the distributed system are used as candidate nodes. Optionally, if the parameter processing request is a parameter addition request, it means that there are no nodes related to the target parameter in the distributed system at present, so all nodes in the distributed system can be used as candidate nodes. Correspondingly, if the parameter processing request is a parameter change request, it means that there are already nodes associated with the target parameter in the distributed system at present, so the nodes associated with the target parameter in the distributed system can be used as candidate nodes. It can be understood that by selecting different candidate nodes according to different parameter request types, the target node selection process is streamlined to a certain extent.
[0076] S302: Display a node selection interface to the initiator of the parameter processing request.
[0077] Among them, the node selection interface is an interface for the user to select a target node. In an embodiment of the present application, the node selection interface includes node description information of the candidate nodes.
[0078] Optionally, after the candidate nodes are selected, a node selection interface may be generated based on the node information of each candidate node. For example, based on the node information of each candidate node, key content describing the candidate node, such as identification information and parameter information of the candidate node, may be extracted as node description information. In the node selection interface, each candidate node may be presented in the form of a list for selection by the initiator.
[0079] S303: Select a target node from the candidate nodes according to the initiator's selection operation on the candidate nodes in the node selection interface.
[0080] Optionally, after the node selection interface is displayed to the initiator, the initiator can click on the candidate node in the node selection interface to perform a selection operation. Further, the console server can use the candidate node selected by the initiator as the target node.
[0081] In this embodiment, by selecting candidate nodes according to parameter processing requests, the number of candidate nodes is simplified; at the same time, by introducing a node selection interface, a method that is convenient for the initiator to operate is provided, thereby improving the efficiency of the target node determination process.
[0082] Optionally, in one embodiment, Figure 4 As shown, a method for parameter management of a target node is provided, which specifically includes the following steps:
[0083] S401, performing consistency comparison between the actual parameter value and the target parameter value of the target node for the target parameter.
[0084] Optionally, in order to verify whether the target node has completed the processing of the target parameter, the actual parameter value of the target parameter of the target node may be compared with the target parameter value for consistency to verify whether the target parameter value and the actual parameter value are consistent.
[0085] S402: If the consistency comparison result is inconsistent, parameter repair processing is performed on the target node according to the parameter processing information corresponding to the target node.
[0086] Optionally, if the consistency comparison result is inconsistent, it means that the target node's processing result for the target parameter is a processing failure. For example, the target node incorrectly updates the target parameter. At this time, in order to enable the target node to successfully and correctly load the target parameter, the target node may be subjected to parameter repair processing. Specifically, the parameter value of the target parameter of the target node may be updated to the target parameter value.
[0087] In this embodiment, by performing parameter repair processing on the target node whose consistency comparison result is inconsistent, the monitoring process of the target node is realized, and the accuracy of the target node's processing of the target parameter is guaranteed at the same time.
[0088] Optionally, in order to ensure the efficiency and accuracy of the parameter repair process, in one embodiment, Figure 5 As shown, a method for performing parameter repair processing on a target node is provided, which specifically includes the following steps:
[0089] S501, according to the parameter processing information corresponding to the target node, resend the parameter validation task for the target parameter to the target node, so that the target node automatically repairs the target parameter.
[0090] Optionally, the parameter validation task can be regenerated according to the parameter processing information corresponding to the target node, and the parameter validation task for the target parameter can be sent to the target node, so that the target node reloads the target parameter according to the parameter validation task to complete the automatic repair process of the target parameter.
[0091] S502: If the parameter repair result received from the target node is a repair failure, the target node is isolated and repaired.
[0092] Optionally, after the target node automatically repairs the target parameter, the target node will again feedback the parameter repair result of the target parameter. Furthermore, if the received parameter repair result is a repair failure, it means that the automatic repair process cannot repair the node. At this time, the target node needs to be isolated and repaired. Specifically, the target node can be isolated from the distributed system, and a fault report can be generated based on the parameter repair result of the target node for the target parameter, and sent to the console for display, so that the operation and maintenance personnel can isolate and repair the target node.
[0093] In this embodiment, by introducing automatic repair and isolated repair, when automatic repair cannot be successfully performed, the target node is isolated and repaired, thereby ensuring the efficiency of repair processing on the target node and improving the flexibility of the repair processing process.
[0094] Optionally, in order to improve the high availability of target parameter storage, the parameter processing information corresponding to the target node can be stored in the persistent storage area, and the parameter processing results of the target node based on the parameter validation task feedback can be stored in the cache storage area. It should be noted that the parameter processing information stored in the persistent storage area has the characteristics of high accuracy. The parameter processing information and parameter processing results corresponding to the target node are stored in partitions to prevent data loss and ensure the accuracy and efficiency of subsequent inspection tasks.
[0095] Optionally, in order to ensure the normal operation of each target node in the distributed system, it is necessary to perform inspection tasks regularly. Figure 6 As shown, a method for inspecting target parameters is provided, which specifically includes the following steps:
[0096] S601, when receiving a parameter inspection request for a target parameter, obtaining current parameter information of a target node for the target parameter.
[0097] The parameter inspection request is used to request the console server to perform a correctness check on each target parameter in each target node. The current parameter information is the value of the target parameter of the target node at the current moment.
[0098] Optionally, the parameter inspection task for the target parameter can be started regularly according to actual needs. For example, the parameter inspection task can be scheduled in the dispatch center provided by the console, that is, a parameter inspection request for the target parameter is initiated. Furthermore, each target node will send the current parameter information for the target parameter to the console.
[0099] S602: Check the correctness of the current parameter information of the target node according to the parameter processing information of the target parameter stored in the persistent storage area.
[0100] Optionally, based on the parameter processing information of the target parameters stored in the persistent storage area, the target parameter value in the parameter processing information is extracted, and the target parameter value is compared with the current parameter information of the target node for consistency. If the consistency comparison result is consistent, the correctness check result of the current parameter information of the target node is correct; if the consistency comparison result is inconsistent, the correctness check result of the current parameter information of the target node is incorrect.
[0101] Furthermore, if the correctness check result is incorrect, parameter repair processing will be performed on the target node according to the parameter processing information.
[0102] In this embodiment, by regularly performing parameter inspections on target parameters and completing the correctness verification process of the target nodes, target nodes that fail the correct new verification can be discovered and automatically repaired in a timely manner, ensuring efficient and accurate operation of the distributed system.
[0103] Figure 7 FIG. 2 is a flow chart of a node parameter management method in another embodiment. Based on the above embodiment, this embodiment provides an optional example of a node parameter management method. Figure 7 The specific implementation process is as follows:
[0104] S701 , in response to a parameter processing request for a target parameter, select a target node from candidate nodes of a distributed system, and determine parameter processing information corresponding to the target node.
[0105] The parameter processing information at least includes parameter processing time and target parameter value.
[0106] Optionally, in response to a parameter processing request for a target parameter, a candidate node is selected from each node of the distributed system according to the parameter processing request; a node selection interface is displayed to the initiator of the parameter processing request; wherein the node selection interface includes node description information of the candidate nodes; and a target node is selected from the candidate nodes according to the initiator's selection operation on the candidate nodes in the node selection interface.
[0107] Optionally, if the parameter processing request is a parameter adding request, each node in the distributed system is used as a candidate node; if the parameter processing request is a parameter changing request, the nodes associated with the target parameter in the distributed system are used as candidate nodes.
[0108] S702, sending a parameter validation task for parameter processing information carried by the target parameter to the target node.
[0109] The parameter validation task is used to instruct the target node to process the target parameter according to the parameter processing information carried in the parameter validation task so as to make the target parameter effective.
[0110] S703: Perform consistency comparison between the target parameter value in the parameter processing information and the actual parameter value in the parameter processing result fed back by the target node based on the parameter validation task.
[0111] S704: If the consistency comparison result is inconsistent, a parameter validation task for the target parameter is resent to the target node according to the parameter processing information corresponding to the target node, so that the target node automatically repairs the target parameter.
[0112] S705: If the parameter repair result fed back by the target node is a repair failure, the target node is isolated and repaired.
[0113] S706: Store the parameter processing information corresponding to the target node into a persistent storage area.
[0114] S707: When a parameter inspection request for a target parameter is received, current parameter information of the target node for the target parameter is obtained.
[0115] S708, performing a correctness check on the current parameter information of the target node according to the parameter processing information of the target parameter stored in the persistent storage area.
[0116] The specific process of the above S701-S708 can be found in the description of the above method embodiment. The implementation principle and technical effect are similar and will not be repeated here.
[0117] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.
[0118] Based on the same inventive concept, the embodiment of the present application also provides a node parameter management device for implementing the node parameter management method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in one or more node parameter management device embodiments provided below can refer to the limitations of the node parameter management method above, and will not be repeated here.
[0119] In one embodiment, Figure 8 As shown, a node parameter management device 80 is provided, comprising: an information acquisition module 10, a parameter processing module 20 and a parameter management module 30, wherein:
[0120] The information acquisition module 10 is used to select a target node from candidate nodes of the distributed system in response to a parameter processing request for a target parameter, and determine parameter processing information corresponding to the target node; wherein the parameter processing information at least includes parameter processing time and target parameter value.
[0121] The parameter processing module 20 is used to send a parameter validation task for a target parameter to a target node; wherein the parameter validation task is used to instruct the target node to process the target parameter according to the parameter processing information carried in the parameter validation task so as to make the target parameter effective.
[0122] The parameter management module 30 is used to perform parameter management on the target node according to the parameter processing information corresponding to the target node and the parameter processing result fed back by the target node based on the parameter validation task.
[0123] The above-mentioned node parameter management device manages the nodes in the distributed system in a unified manner, responds to the parameter processing request for the target parameter, selects the target node from the candidate nodes of the distributed system, and determines the parameter processing information corresponding to the target node, and sends a parameter validation task for the target parameter to the target node to instruct the target node to process the target parameter according to the parameter processing information carried in the parameter validation task to make the target parameter effective. There is no need to configure each target node separately, which improves the efficiency of each node in processing the target parameter; further, according to the parameter processing information corresponding to the target node and the parameter processing result of the target node based on the parameter validation task feedback, the target node is managed, the result of the target node parameter processing on the target parameter can be monitored in real time, and the target node can be managed according to the parameter processing result, which improves the parameter management efficiency of each node in the distributed system.
[0124] In one embodiment, the information acquisition module 10 includes:
[0125] The node determination unit is used to select a candidate node from each node of the distributed system according to the parameter processing request.
[0126] The information determination unit is used to display a node selection interface to the initiator of the parameter processing request; wherein the node selection interface includes node description information of the candidate nodes.
[0127] The node selection unit is used to select a target node from the candidate nodes according to the selection operation of the initiator on the candidate nodes in the node selection interface.
[0128] In one embodiment, the node determination unit is specifically used to:
[0129] If the parameter processing request is a parameter adding request, all nodes in the distributed system are used as candidate nodes; if the parameter processing request is a parameter changing request, nodes associated with the target parameter in the distributed system are used as candidate nodes.
[0130] In one embodiment, the parameter processing result includes the actual parameter value; the parameter management module 30 includes:
[0131] The comparison unit is used to compare the actual parameter value of the target node with the target parameter value for consistency.
[0132] The parameter repair unit is used to perform parameter repair processing on the target node according to the parameter processing information corresponding to the target node if the consistency comparison result is inconsistent.
[0133] In one embodiment, the parameter repair unit is specifically used for:
[0134] According to the parameter processing information corresponding to the target node, the parameter validation task for the target parameter is resent to the target node so that the target node can automatically repair the target parameter; if the parameter repair result received from the target node is a repair failure, the target node is isolated and repaired.
[0135] In one embodiment, the node parameter management device 80 further includes:
[0136] The first storage module is used to store parameter processing information corresponding to the target node in a persistent storage area.
[0137] The second storage module is used to store the parameter processing result of the target node based on the parameter validation task feedback into the cache storage area.
[0138] In one embodiment, the node parameter management device 80 is further used for:
[0139] When a parameter inspection request for a target parameter is received, current parameter information of the target node for the target parameter is obtained; and correctness of the current parameter information of the target node is checked according to parameter processing information of the target parameter stored in the persistent storage area.
[0140] Each module in the above-mentioned node parameter management device can be implemented in whole or in part by software, hardware and a combination thereof. Each of the above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory in the computer device in the form of software, so that the processor can call and execute the operations corresponding to each of the above modules.
[0141] In an exemplary embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as shown in FIG. Fig. 9 As shown. The computer device includes a processor, a memory, an input / output interface (Input / Output, referred to as I / O) and a communication interface. Among them, the processor, the memory and the input / output interface are connected through a system bus, and the communication interface is connected to the system bus through the input / output interface. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a node parameter management method is implemented.
[0142] Those skilled in the art will understand that Fig. 9 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0143] In one embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the following steps are implemented:
[0144] In response to a parameter processing request for a target parameter, a target node is selected from candidate nodes of the distributed system, and parameter processing information corresponding to the target node is determined; wherein the parameter processing information includes at least a parameter processing time and a target parameter value;
[0145] Sending a parameter validation task for a target parameter to a target node; wherein the parameter validation task is used to instruct the target node to process the target parameter according to the parameter processing information carried in the parameter validation task, so that the target parameter becomes effective;
[0146] Parameter management is performed on the target node according to the parameter processing information corresponding to the target node and the parameter processing result of the target node based on the parameter validation task feedback.
[0147] In one embodiment, when the processor executes the computer program to select a target node from candidate nodes of the distributed system, the processor further implements the following steps:
[0148] According to the parameter processing request, a candidate node is selected from each node of the distributed system; a node selection interface is displayed to the initiator of the parameter processing request; wherein the node selection interface includes node description information of the candidate node; according to the initiator's selection operation on the candidate node in the node selection interface, a target node is selected from the candidate nodes.
[0149] In one embodiment, when the processor executes the computer program to process the request according to the parameters and selects the candidate node from the nodes of the distributed system, the processor further implements the following steps:
[0150] If the parameter processing request is a parameter adding request, all nodes in the distributed system are used as candidate nodes; if the parameter processing request is a parameter changing request, nodes associated with the target parameter in the distributed system are used as candidate nodes.
[0151] In one embodiment, the parameter processing result includes an actual parameter value; when the processor executes the computer program to perform parameter management on the target node according to the parameter processing information corresponding to the target node and the parameter processing result of the target node based on the parameter validation task feedback, the following steps are also implemented:
[0152] The actual parameter value of the target node for the target parameter is compared with the target parameter value for consistency; if the consistency comparison result is inconsistent, the parameter repair processing is performed on the target node according to the parameter processing information corresponding to the target node.
[0153] In one embodiment, when the processor executes the computer program to perform parameter repair processing on the target node according to the parameter processing information corresponding to the target node, the processor further implements the following steps:
[0154] According to the parameter processing information corresponding to the target node, the parameter validation task for the target parameter is resent to the target node so that the target node can automatically repair the target parameter; if the parameter repair result received from the target node is a repair failure, the target node is isolated and repaired.
[0155] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0156] The parameter processing information corresponding to the target node is stored in the persistent storage area; the parameter processing result of the target node based on the parameter validation task feedback is stored in the cache storage area.
[0157] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0158] When a parameter inspection request for a target parameter is received, current parameter information of the target node for the target parameter is obtained; and correctness of the current parameter information of the target node is checked according to parameter processing information of the target parameter stored in the persistent storage area.
[0159] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:
[0160] In response to a parameter processing request for a target parameter, a target node is selected from candidate nodes of the distributed system, and parameter processing information corresponding to the target node is determined; wherein the parameter processing information includes at least a parameter processing time and a target parameter value;
[0161] Sending a parameter validation task for a target parameter to a target node; wherein the parameter validation task is used to instruct the target node to process the target parameter according to the parameter processing information carried in the parameter validation task, so that the target parameter becomes effective;
[0162] Parameter management is performed on the target node according to the parameter processing information corresponding to the target node and the parameter processing result of the target node based on the parameter validation task feedback.
[0163] In one embodiment, when the processor executes the computer program to select a target node from candidate nodes of the distributed system, the processor further implements the following steps:
[0164] According to the parameter processing request, a candidate node is selected from each node of the distributed system; a node selection interface is displayed to the initiator of the parameter processing request; wherein the node selection interface includes node description information of the candidate node; according to the initiator's selection operation on the candidate node in the node selection interface, a target node is selected from the candidate nodes.
[0165] In one embodiment, when the processor executes the computer program to process the request according to the parameters and selects the candidate node from the nodes of the distributed system, the processor further implements the following steps:
[0166] If the parameter processing request is a parameter adding request, all nodes in the distributed system are used as candidate nodes; if the parameter processing request is a parameter changing request, nodes associated with the target parameter in the distributed system are used as candidate nodes.
[0167] In one embodiment, the parameter processing result includes an actual parameter value; when the processor executes the computer program to perform parameter management on the target node according to the parameter processing information corresponding to the target node and the parameter processing result of the target node based on the parameter validation task feedback, the following steps are also implemented:
[0168] The actual parameter value of the target node for the target parameter is compared with the target parameter value for consistency; if the consistency comparison result is inconsistent, the parameter repair processing is performed on the target node according to the parameter processing information corresponding to the target node.
[0169] In one embodiment, when the processor executes the computer program to perform parameter repair processing on the target node according to the parameter processing information corresponding to the target node, the processor further implements the following steps:
[0170] According to the parameter processing information corresponding to the target node, the parameter validation task for the target parameter is resent to the target node so that the target node can automatically repair the target parameter; if the parameter repair result received from the target node is a repair failure, the target node is isolated and repaired.
[0171] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0172] The parameter processing information corresponding to the target node is stored in the persistent storage area; the parameter processing result of the target node based on the parameter validation task feedback is stored in the cache storage area.
[0173] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0174] When a parameter inspection request for a target parameter is received, current parameter information of the target node for the target parameter is obtained; and correctness of the current parameter information of the target node is checked according to parameter processing information of the target parameter stored in the persistent storage area.
[0175] In one embodiment, a computer program product is provided, comprising a computer program, which, when executed by a processor, implements the following steps:
[0176] In response to a parameter processing request for a target parameter, a target node is selected from candidate nodes of the distributed system, and parameter processing information corresponding to the target node is determined; wherein the parameter processing information includes at least a parameter processing time and a target parameter value;
[0177] Sending a parameter validation task for a target parameter to a target node; wherein the parameter validation task is used to instruct the target node to process the target parameter according to the parameter processing information carried in the parameter validation task, so that the target parameter becomes effective;
[0178] Parameter management is performed on the target node according to the parameter processing information corresponding to the target node and the parameter processing result of the target node based on the parameter validation task feedback.
[0179] In one embodiment, when the processor executes the computer program to select a target node from candidate nodes of the distributed system, the processor further implements the following steps:
[0180] According to the parameter processing request, a candidate node is selected from each node of the distributed system; a node selection interface is displayed to the initiator of the parameter processing request; wherein the node selection interface includes node description information of the candidate node; according to the initiator's selection operation on the candidate node in the node selection interface, a target node is selected from the candidate nodes.
[0181] In one embodiment, when the processor executes the computer program to process the request according to the parameters and selects the candidate node from the nodes of the distributed system, the processor further implements the following steps:
[0182] If the parameter processing request is a parameter adding request, all nodes in the distributed system are used as candidate nodes; if the parameter processing request is a parameter changing request, nodes associated with the target parameter in the distributed system are used as candidate nodes.
[0183] In one embodiment, the parameter processing result includes an actual parameter value; when the processor executes the computer program to perform parameter management on the target node according to the parameter processing information corresponding to the target node and the parameter processing result of the target node based on the parameter validation task feedback, the following steps are also implemented:
[0184] The actual parameter value of the target node for the target parameter is compared with the target parameter value for consistency; if the consistency comparison result is inconsistent, the parameter repair processing is performed on the target node according to the parameter processing information corresponding to the target node.
[0185] In one embodiment, when the processor executes the computer program to perform parameter repair processing on the target node according to the parameter processing information corresponding to the target node, the processor further implements the following steps:
[0186] According to the parameter processing information corresponding to the target node, the parameter validation task for the target parameter is resent to the target node so that the target node can automatically repair the target parameter; if the parameter repair result received from the target node is a repair failure, the target node is isolated and repaired.
[0187] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0188] The parameter processing information corresponding to the target node is stored in the persistent storage area; the parameter processing result of the target node based on the parameter validation task feedback is stored in the cache storage area.
[0189] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0190] When a parameter inspection request for a target parameter is received, current parameter information of the target node for the target parameter is obtained; and correctness of the current parameter information of the target node is checked according to parameter processing information of the target parameter stored in the persistent storage area.
[0191] It should be noted that the data involved in this application (including but not limited to data used for analysis, storage, display, etc.) are all information and data fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant regulations.
[0192] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.
[0193] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0194] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. A node parameter management method, characterized in that: The method comprises: In response to a parameter processing request for a target parameter, a target node is selected from candidate nodes of the distributed system, and parameter processing information corresponding to the target node is determined; wherein the parameter processing information at least includes a parameter processing time and a target parameter value; Sending a parameter validation task for the target parameter to the target node; wherein the parameter validation task is used to instruct the target node to process the target parameter according to the parameter processing information carried in the parameter validation task, so that the target parameter becomes effective; Parameter management is performed on the target node according to the parameter processing information corresponding to the target node and the parameter processing result fed back by the target node based on the parameter validation task.
2. The method according to claim 1, characterized in that The selecting a target node from candidate nodes of the distributed system includes: Processing the request according to the parameters, selecting a candidate node from among the nodes of the distributed system; Displaying a node selection interface to the initiator of the parameter processing request; wherein the node selection interface includes node description information of the candidate nodes; According to the initiator's selection operation on the candidate nodes in the node selection interface, a target node is selected from the candidate nodes.
3. The method according to claim 2, characterized in that The processing of the request according to the parameter and selecting a candidate node from each node of the distributed system includes: If the parameter processing request is a parameter adding request, each node of the distributed system is used as a candidate node; If the parameter processing request is a parameter change request, the nodes in the distributed system that are associated with the target parameter are used as candidate nodes.
4. The method according to claim 1, characterized in that: The parameter processing result includes the actual parameter value; Correspondingly, performing parameter management on the target node according to the parameter processing information corresponding to the target node and the parameter processing result fed back by the target node based on the parameter validation task includes: Performing consistency comparison between the actual parameter value and the target parameter value of the target node for the target parameter; If the consistency comparison result is inconsistent, parameter repair processing is performed on the target node according to the parameter processing information corresponding to the target node.
5. The method according to claim 4, characterized in that The performing parameter repair processing on the target node according to the parameter processing information corresponding to the target node includes: According to the parameter processing information corresponding to the target node, resending the parameter validation task for the target parameter to the target node, so that the target node automatically repairs the target parameter; If the parameter repair result fed back by the target node is repair failure, the target node is isolated and repaired.
6. The method according to claim 1, characterized in that The method further comprises: Storing parameter processing information corresponding to the target node in a persistent storage area; The parameter processing result fed back by the target node based on the parameter validation task is stored in a cache storage area.
7. The method according to claim 6, characterized in that The method further comprises: When receiving a parameter inspection request for the target parameter, obtaining current parameter information of the target node for the target parameter; The current parameter information of the target node is checked for correctness according to the parameter processing information of the target parameter stored in the persistent storage area.
8. A node parameter management device, characterized in that: The device comprises: An information acquisition module, configured to select a target node from candidate nodes of a distributed system in response to a parameter processing request for a target parameter, and determine parameter processing information corresponding to the target node; wherein the parameter processing information at least includes a parameter processing time and a target parameter value; A parameter processing module, used for sending a parameter validation task for the target parameter to the target node; wherein the parameter validation task is used to instruct the target node to process the target parameter according to the parameter processing information carried in the parameter validation task, so as to make the target parameter effective; The parameter management module is used to perform parameter management on the target node according to the parameter processing information corresponding to the target node and the parameter processing result fed back by the target node based on the parameter validation task.
9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.
