Application data verification method, device and equipment and computer storage medium

By receiving verification instructions to verify the application data in the distributed system, it solves the problem that the monitoring system is difficult to compare file size differences across nodes and data centers, and realizes universal verification and correct deployment of application data. Costs are reduced and efficiency is improved.

CN118760675APending Publication Date: 2024-10-11CHINA CONSTRUCTION BANK +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410826132.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-25
Publication Date
2024-10-11

AI Technical Summary

Technical Problem

In a distributed system, it is difficult for the monitoring system to compare the size differences of applications or component files across nodes and data centers, making it difficult to ensure the correct deployment and operation of applications in the distributed system.

Method used

By receiving verification instructions, the verification information of the standard source file is used to perform data verification on the target source file, determine the difference information between the files, and obtain the application data verification results without relying on the application's development language or technology stack. Universal verification for multiple applications.

Benefits of technology

It achieves effective verification of application data in distributed systems, ensures the correct deployment and operation of applications, reduces verification costs, and improves the universality and efficiency of the monitoring system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118760675A_ABST
    Figure CN118760675A_ABST
Patent Text Reader

Abstract

The invention provides an application data verification method, device and equipment and a computer storage medium, and the method relates to the technical field of data processing and is used for realizing verification of application data in a distributed system. The method comprises the steps that a first verification instruction is received, the first verification instruction is used for indicating data verification for a target application, and the first verification instruction comprises verification information used for indicating a standard source file corresponding to the target application and a storage address corresponding to the target application; and based on the verification information, performing data verification operation on a target source file corresponding to the target application on the storage address, determining distinguishing information of the target source file and the standard source file, and obtaining a corresponding application data verification result.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of data processing technology, and in particular to a verification method, device and equipment for application data and a computer storage medium. Background Art

[0002] Large-scale distributed systems usually involve a large number of server nodes and components on the servers, and even a distributed system spans multiple data centers. Therefore, in a distributed system, if a task needs to be completed together, the applications or components on each node in the distributed system need to be correctly deployed and run. In order to ensure the accuracy of the deployment on each node, a monitoring server is usually deployed in the data center to perform corresponding verification on the applications or components in each node to determine whether their deployment and operation are normal.

[0003] However, in general judgment methods, different applications or components use different languages ​​and different development specifications, which also leads to large differences in the file size of each application or component. The monitoring system also lacks verification methods for all versions of all applications. Therefore, it is difficult to achieve comparison across multiple machines and data centers, which easily leads to the running of cross-node tasks in distributed systems.

[0004] Therefore, a new verification method is urgently needed to realize the verification of application data in distributed systems. Summary of the invention

[0005] The embodiments of the present application provide a method, device, and equipment for verifying application data, and a computer storage medium, for implementing verification of application data in a distributed system.

[0006] On the one hand, the present application provides a method for verifying application data, the method comprising:

[0007] Receive a first verification instruction, where the first verification instruction is used to instruct to perform data verification on a target application, and the first verification instruction includes: verification information for indicating a standard source file corresponding to the target application, and a storage address corresponding to the target application;

[0008] Based on the verification information, a data verification operation is performed on the target source file corresponding to the target application at the storage address to determine the difference information between the target source file and the standard source file, and obtain a corresponding application data verification result.

[0009] On the one hand, an embodiment of the present application provides a verification device for application data, including:

[0010] A receiving module, configured to receive a first verification instruction, wherein the first verification instruction is used to instruct data verification to be performed on a target application, and the first verification instruction includes: verification information for indicating a standard source file corresponding to the target application, and a storage address corresponding to the target application;

[0011] The processing module is used to perform a data verification operation on the target source file corresponding to the target application at the storage address based on the verification information, determine the difference information between the target source file and the standard source file, and obtain a corresponding application data verification result.

[0012] In a possible implementation, a verification module is further included, wherein the verification module is used to: perform a verification operation on the standard source file corresponding to the target application based on a target verification algorithm, and use the obtained standard operation result as the verification information;

[0013] The processing module is used to perform a data verification operation on the target source file corresponding to the target application at the storage address based on the verification information, specifically for:

[0014] Based on the target verification algorithm, a verification operation is performed on the target source file corresponding to the target application at the storage address to obtain a corresponding target operation result;

[0015] Based on the standard operation result corresponding to the verification information, a data verification operation is performed on the target operation result.

[0016] In a possible implementation manner, before performing a verification operation on the standard source file corresponding to the target application based on the target verification algorithm, the verification module is further used to:

[0017] Based on at least two preset data verification algorithms, respectively perform corresponding verification operations on the standard source file to obtain resource call conditions corresponding to the verification operations of the at least two data verification algorithms;

[0018] The data verification algorithm whose resource calling condition meets the preset calling condition is used as the target verification algorithm.

[0019] In a possible implementation manner, when the verification module is used to perform a verification operation on the standard source file corresponding to the target application based on the target verification algorithm, it is specifically used to:

[0020] Based on the preset extraction rules, obtain the standard data corresponding to the extraction rules in the standard source file, and perform verification operation on the standard data based on the target verification algorithm;

[0021] Then, based on the target verification algorithm, a verification operation is performed on the target source file corresponding to the target application at the storage address, including:

[0022] Based on the extraction rule, the target data corresponding to the extraction rule in the target source file is obtained, and based on the target verification algorithm, a verification operation is performed on the target data.

[0023] In a possible implementation manner, when the processing module is used to perform a verification operation on the target source file corresponding to the target application at the storage address based on the target verification algorithm, it is specifically used to:

[0024] When the target verification algorithm is stored locally, a verification operation is performed on the target source file corresponding to the target application at the storage address based on the locally stored target verification algorithm;

[0025] When the target verification algorithm is not stored, the target verification algorithm is obtained from the server that sends the first verification instruction, and the obtained target verification algorithm is applied to perform a verification operation on the target source file corresponding to the target application at the storage address.

[0026] In a possible implementation manner, the first verification instruction further includes: a verification period, where the verification period is used to indicate a time interval for performing data verification on the target application.

[0027] In a possible implementation manner, the verification information is further used to indicate: version number information of the target application and / or memory usage information of the target application.

[0028] In a possible implementation manner, when the receiving module is used to receive the first verification instruction, it is specifically used to:

[0029] Receiving a first verification instruction from a first node in a distributed system, wherein the first verification instruction is used to instruct a second node that has received the first verification instruction to perform data verification on the target application; wherein the distributed system includes the first node and at least one second node, and the first node is used to monitor the at least one second node in the distributed system and perform data verification on each target application;

[0030] After obtaining the corresponding application data verification result, the processing module is further used to:

[0031] The obtained application data verification result is sent to the first node, so that the first node determines the application data verification result after the second node performs data verification on the target application, and saves the application data verification result.

[0032] On the one hand, an electronic device is provided, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the at least one processor executes the instructions stored in the memory, thereby enabling the at least one processor to execute the method described in the first aspect or any optional embodiment of the first aspect.

[0033] On the one hand, a computer-readable storage medium is provided, wherein the computer-readable storage medium is used to store instructions, and when the instructions are executed, the method in the first aspect or any optional embodiment of the first aspect is implemented.

[0034] On the one hand, a computer program product comprising instructions is provided. The computer program product stores instructions that, when executed on a computer, enable the computer to execute the method described in the first aspect or any optional implementation of the first aspect.

[0035] The beneficial effects of this application are as follows:

[0036] In this solution, after receiving the first verification instruction, the information of the standard source file corresponding to the target application stored in the first verification instruction can be obtained according to the verification information contained in the first verification instruction, and based on this, the target source file corresponding to the target application at the storage address can be verified. Without accessing the program or interface corresponding to the application, the application data verification result for the target application can be directly determined through the difference information between the files. In this way, there is no need to pay attention to the development language of the target application or the specific technology stack type it uses, so the same technical effect can be achieved for all types of applications, ensuring the universality of the application data verification solution and reducing the cost required for application data verification. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0038] Figure 1 A schematic diagram of possible application scenarios provided for embodiments of the present application;

[0039] Figure 2 A flowchart of a method for verifying application data provided in an embodiment of the present application;

[0040] Figure 3 A schematic diagram of verification information including a standard source file provided in an embodiment of the present application;

[0041] Figure 4 A schematic diagram of verification information including standard operation results provided in an embodiment of the present application;

[0042] Figure 5 A flowchart of a data verification method provided in an embodiment of the present application;

[0043] Figure 6 A schematic diagram of a method for obtaining distinguishing information provided in an embodiment of the present application;

[0044] Figure 7 A flowchart of a method for determining a target verification algorithm provided in an embodiment of the present application;

[0045] Figure 8 A logical schematic diagram of a method for obtaining a target verification algorithm provided in an embodiment of the present application;

[0046] Fig. 9 A logic diagram of another method for obtaining a target verification algorithm provided in an embodiment of the present application;

[0047] Fig.10 A logical schematic diagram of a method for obtaining standard data provided in an embodiment of the present application;

[0048] Fig.11 A schematic diagram of interaction between a first node and a second node provided in an embodiment of the present application;

[0049] Fig.12 A schematic diagram of the structure of a distributed system provided in an embodiment of the present application;

[0050] Fig.13 A schematic diagram of the structure of an application data verification device provided in an embodiment of the present application;

[0051] Fig.14 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0052] In order to make the purpose, technical scheme and advantages of the present application clearer, the technical scheme in the embodiment of the present application will be clearly and completely described below in conjunction with the drawings in the embodiment of the present application. Obviously, the described embodiment is only a part of the embodiment of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of the present application. In the absence of conflict, the embodiments in the present application and the features in the embodiments can be arbitrarily combined with each other. In addition, although the logical order is shown in the flow chart, in some cases, the steps shown or described can be performed in an order different from that here.

[0053] The terms "first" and "second" in the specification and claims of the present application and the above-mentioned drawings are used to distinguish different objects, rather than to describe a specific order. In addition, the term "comprising" and any of their variations are intended to cover non-exclusive protection. For example, a process, method, system, product or device comprising a series of steps or units is not limited to the listed steps or units, but optionally also includes steps or units that are not listed, or optionally also includes other steps or units inherent to these processes, methods, products or devices. "Multiple" in the present application can mean at least two, for example, two, three or more, and the embodiments of the present application are not limited.

[0054] The following is a description of exemplary embodiments of the present application in conjunction with the accompanying drawings, including various details of the embodiments of the present application to facilitate understanding, which should be considered as merely exemplary. Therefore, those of ordinary skill in the art should recognize that various changes and modifications can be made to the embodiments described herein without departing from the scope of the present application. Similarly, for the sake of clarity and conciseness, the description of well-known functions and structures is omitted in the following description. It should be noted that in the embodiments of the present application, certain software, components, models and other existing solutions in the industry may be mentioned, which should be considered as exemplary, and their purpose is only to illustrate the feasibility of the implementation of the technical solution of the present application, but it does not mean that the applicant has or will necessarily use the solution.

[0055] In the technical solution of this application, the acquisition, transmission, storage, and use of data are in compliance with the requirements of relevant national laws and regulations.

[0056] With the development of Internet technology over the years, distributed systems have been applied to all aspects of the field, and their scale has become larger. A large distributed system usually involves a large number of server nodes or contains a large number of components, and even a large distributed system spans multiple data centers. Therefore, in the same large distributed system, there will be multiple types and versions of applications or components. In a large distributed system, the operation of online tasks requires that the applications or components on each server node in the distributed system can be correctly deployed and run, which requires the distributed system to provide a monitoring service to check the ports or heartbeats of each application or component to ensure that it can run correctly.

[0057] However, a service or function in a distributed system is usually deployed in a multi-machine + multi-data center manner. Exceptions caused by inconsistent programs on a certain node are often difficult to analyze and evaluate. In addition, different programs are developed in different languages ​​and with different development specifications, resulting in large differences in the file size of each program. This makes it difficult to implement the monitoring function of a distributed system across multiple machines and data centers, which can easily affect the operation of online services.

[0058] In view of this, an embodiment of the present application provides a method for verifying application data, by sending a first verification instruction to a server loaded with a target application, so that the server performs a data verification operation on the target application stored therein in response to the first verification instruction.

[0059] Furthermore, the first verification instruction includes verification information for indicating the standard source file corresponding to the target application and the storage address of the target application in the server. Therefore, after receiving the first verification instruction, the server can perform a data verification operation on the target source file corresponding to the target application at the storage address based on the verification information in the first verification instruction, determine the difference information between the target source file and the standard source file, and thereby obtain the application data verification result corresponding to the target application.

[0060] This solution provides the server with verification information of the target application's standard source file, so that the server can directly compare the differences between the target application's target source file and the standard source file in the storage address. There is no need to detect the port or heartbeat in the target application, and only needs to compare the differences in text information. Therefore, the deployment information of a large number of different applications can be directly monitored without having to worry about the technology stack used by the application itself.

[0061] After completing the introduction of the main inventive ideas of the embodiments of the present application, the specific implementation of the verification method for application data proposed in the embodiments of the present application will be introduced below through some specific embodiments and drawings.

[0062] The following briefly introduces the application scenarios to which the technical solutions of the embodiments of the present application can be applied. It should be noted that the application scenarios introduced below are only used to illustrate the embodiments of the present application and are not limited. In the specific implementation process, the technical solutions provided by the embodiments of the present application can be flexibly applied according to actual needs.

[0063] See also Figure 1 , which is a schematic diagram of a possible application scenario provided in an embodiment of the present application. In this scenario, a terminal device 101 and a server 102 may be included.

[0064] The terminal device 101 may be a mobile phone, a tablet computer (PAD), a personal computer (PC), a wearable device, a vehicle-mounted terminal, etc. The server 102 may be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (CDN), and big data and artificial intelligence platforms.

[0065] The terminal device 101 and the server 102 may be directly or indirectly connected to each other through one or more communication networks 103. The communication network 103 may be a wired network or a wireless network, for example, a mobile cellular network or a wireless fidelity (Wireless-Fidelity, WIFI) network, or other possible networks, which are not limited in the embodiment of the present invention.

[0066] It should be noted that the verification method for application data in the embodiment of the present application can be executed by a computing device, which can be a terminal device 101 or a server 102. For example, the verification method for application data can be completed by the terminal device 101, and the terminal device 101 receives a first verification instruction and uses the verification information in the first verification instruction to complete the verification of the target source file of the target application at the storage address of the terminal device 101. Or the verification method for application data can be completed by the server 102 in the aforementioned manner, and the server can be a separate server or a server node in a distributed system.

[0067] It should be noted that Figure 1 What is shown is just an example. In fact, the number and communication mode of terminal devices and servers are not limited and are not specifically limited in the embodiments of the present application.

[0068] The following describes the application data verification method provided by the exemplary embodiment of the present application in combination with the application scenario described above and with reference to the accompanying drawings. It should be noted that the above application scenario is only shown to facilitate understanding of the spirit and principles of the present application, and the implementation of the present application is not limited in this respect.

[0069] See also Figure 2 , which is a flow chart of a verification method for applying the data provided in an embodiment of the present application. The method can be applied to a single terminal device or server to perform data verification on a target source file of a target application contained therein. It can also be applied to a distributed system to perform data verification on multiple server nodes containing a target application. The present application does not impose any restrictions on this.

[0070] The execution entity of this method can be Figure 1 The terminal device or server shown is not limited in this application. For the sake of convenience, the method of this application will be introduced below by taking the server as the execution entity.

[0071] like Figure 2 As shown, the specific implementation steps of this method are as follows:

[0072] Step S201: receiving a first verification instruction, the first verification instruction being used to instruct data verification for a target application, the first verification instruction comprising: verification information for indicating a standard source file corresponding to the target application, and a storage address corresponding to the target application.

[0073] It should be noted that the first verification instruction is received by Figure 1 The terminal device or server mentioned above, and the one that sends the first verification instruction can be a background server that monitors the target application, or a server in a distributed system that monitors the deployment or operation information of the target application in each node within the monitoring system. This application does not impose any restrictions on this.

[0074] Among them, the first verification instruction is an instruction used to instruct the computing device that receives the first verification instruction to perform a data verification operation on the target application stored or running by itself. The instruction includes verification information indicating the standard source file corresponding to the target application, and the storage address of the target application on the computing device.

[0075] The standard source file of the target application indicated by the verification information is the standard of the file that the target application should be stored on the server where it is stored. In this way, the device that receives the verification information can use it as a standard to verify whether the data file of the target application stored in itself meets the standard.

[0076] Therefore, when the server receives the first verification instruction, it can perform the following operations in response to the first verification instruction:

[0077] Step S202: Based on the verification information, a data verification operation is performed on the target source file corresponding to the target application at the storage address, the difference information between the target source file and the standard source file is determined, and a corresponding application data verification result is obtained.

[0078] After receiving the first verification instruction, the server will obtain the verification information and storage address from it. In this way, the server can directly obtain the target source file corresponding to the target application at the storage address, and then compare the target source file with the standard source file indicated by the verification information to obtain the difference information between the two, as well as the corresponding application data verification result for the target application.

[0079] Thus, in this scheme, the server only needs to receive the first verification instruction, then it can obtain the information of the standard source file corresponding to the target application stored therein according to the verification information contained in the first verification instruction, and based on this, perform data verification on the target source file corresponding to the target application at the storage address, without having to access the program or interface corresponding to the application, and can directly determine the application data verification result for the target application through the distinguishing information between the files.

[0080] Optionally, when performing data verification on the target source file at the storage address according to the verification information, the server may perform the verification in different ways according to the specific form of the verification information.

[0081] In a possible implementation, Figure 3 As shown, the verification information directly includes the standard source file corresponding to the target application. Therefore, in this case, the server receiving the first verification instruction can directly compare the target source file at the storage address with the standard source file in the verification information to obtain the difference information between the two files, and then determine the corresponding application data verification result.

[0082] For example, in the first verification instruction received by the server, the verification information directly includes all the standard program codes of the target application, as well as some application version number information, etc. The server can directly compare the target program codes of the target application stored in the server at the storage address one by one based on these code data and version number information, and determine whether the program data at the storage address is completely consistent with the data in the standard program code, and whether the version number information stored at the storage address is consistent with the received version number information. When it is confirmed to be completely consistent, the server can determine that the deployment and operation of the target application stored by itself are consistent with the requirements in the first verification instruction, and are normal operations that meet the user's needs.

[0083] In another possible implementation, Figure 4 As shown, the verification information is obtained through the following operations: based on the target verification algorithm, a verification operation is performed on the standard source file corresponding to the target application, and the obtained standard operation result is used as the verification information.

[0084] In this method, the verification information does not directly contain all the data of the standard source file corresponding to the target application, but first uses the target verification algorithm to perform a verification operation on the standard source file corresponding to the target application, and then uses the obtained operation result as the verification information. Among them, the obtained standard operation result can correspond to the standard source file one by one. In this way, the verification information can be sent to the corresponding server with less information, so that in a large distributed system, for a target application deployed on multiple nodes, more resources can be saved to issue instructions. It should be noted that the type of the target verification algorithm can be a hash algorithm, and the hash algorithm is used to perform a hash operation on the standard source file, and the obtained summary value is the standard operation result. Alternatively, the target verification algorithm can also be a compression algorithm, and the compressed standard source file is used as the standard operation result. This application does not limit this.

[0085] Correspondingly, when the verification information contains the standard operation result, the server performs a data verification operation on the target source file corresponding to the target application at the storage address based on the verification information to obtain the corresponding application data verification result. The specific operation thereof also has some changes from the above step S202. The specific changes are as follows:

[0086] See also Figure 5 , is a flow chart of a data verification method provided in an embodiment of the present application, such as Figure 5 As shown, the specific implementation steps of this method are as follows:

[0087] Step S501: Based on a target verification algorithm, a verification operation is performed on a target source file corresponding to a target application at a storage address to obtain a corresponding target operation result.

[0088] After receiving the first verification instruction with the standard operation result as the verification information, when the server verifies the target source file saved by itself, it needs to first perform the same verification operation on the target source file as the verification operation faced by the standard source file, so as to obtain the corresponding target operation result.

[0089] like Figure 6As shown, for the verification information containing all standard source files, when the server obtains the difference information, it can directly compare the standard source file with the target source file to obtain the difference information between the two. When the verification information contains the standard operation result, when the server obtains the difference information, it needs to first perform the same verification operation on the target source file as the standard source file to obtain the corresponding target operation result, and then obtain the corresponding difference information by comparing the difference between the standard operation result and the target operation result.

[0090] Step S502: Based on the standard operation result corresponding to the verification information, a data verification operation is performed on the target operation result.

[0091] As described above, when the verification information includes a standard operation result indicating a standard source file, the server needs to perform a corresponding data verification operation on the target operation result according to the standard operation result. Since the standard operation result can uniquely correspond to the standard source file, and the target operation result is obtained by the server using the same operation method as the standard source file, it also has the characteristic of uniquely corresponding to the target source file. Therefore, the server can determine the difference information between the standard source file and the target source file based on the comparison between the standard operation result and the target operation result.

[0092] The above introduces several possible implementation methods when the server performs verification operations on the target application based on the verification information. Before using the target verification algorithm to perform verification operations on the standard source files corresponding to the target application, the target verification algorithm can also be determined in the following possible ways.

[0093] In one possible implementation, the target verification algorithm may be determined by a pre-set correspondence between a target application and a verification algorithm, that is, when it is determined that data verification is required for a certain target application, the server may determine the verification algorithm corresponding to the target application as the target verification algorithm based on the preset correspondence.

[0094] In another possible implementation, the server may determine the target verification algorithm from a plurality of pre-set data verification algorithms according to the computing resources called by the verification algorithm when performing the verification operation.

[0095] Specifically, the server can perform the following operations:

[0096] See also Figure 7 , which is a flow chart of a method for determining a target verification algorithm provided in an embodiment of the present application, such as Figure 7 As shown, the specific implementation steps of this method are as follows:

[0097] Step S701: Based on at least two preset data verification algorithms, corresponding verification operations are performed on the standard source file respectively to obtain the resource calling conditions corresponding to the verification operations of each of these algorithms.

[0098] Step S702: The data verification algorithm whose resource calling condition meets the preset calling condition is used as the target verification algorithm.

[0099] In this method, multiple data verification algorithms can be set in advance, and these algorithms can be dynamically adjusted each time verification information is obtained so that the resources called by the determined target verification algorithm meet the preset calling conditions, so that when the server verifies the data of the target application, it can use as few resources as possible to complete the verification operation, thereby reducing the impact on other running programs on the server.

[0100] For example, Figure 8 As shown, before generating verification information, each of the preset data verification algorithms can be used to perform verification operations on the standard source files of the target application, and then after obtaining the resource call status of each verification algorithm, the data verification algorithm with the least resource call is selected as the target verification algorithm.

[0101] For example, Fig. 9 As shown, a default data verification algorithm can also be preset first, and the data verification algorithm can be used as the preferred verification algorithm. As long as the resources called by the data verification algorithm are less than a preset calling threshold, the data verification algorithm can be directly used as the target verification algorithm without calling other data verification algorithms for verification again. Only when the resource calling situation corresponding to the default data verification algorithm does not meet the calling conditions, it is necessary to call other data verification algorithms in sequence according to some preset calling orders again to determine the data verification algorithm that meets the calling conditions.

[0102] The above is a method for selecting a target verification algorithm. In a possible implementation, in order to reduce the computing resources required by the server when verifying data, the data verification operation can also be implemented in the following manner.

[0103] Specifically, firstly, based on the preset extraction rules, standard data corresponding to the extraction rules in the standard source file may be acquired, and then based on the target verification algorithm, verification operations may be performed on the standard data.

[0104] In actual applications, the data stored in the target source files of some target applications is relatively large. If verification operations are directly performed on all the target source files, more computing resources will be consumed.

[0105] Therefore, it can be Fig.10As shown, according to the preset extraction rules, the corresponding data is extracted from the corresponding position of the target source file as the standard data, and then the standard data is verified based on the target verification algorithm.

[0106] Correspondingly, the server receiving the first verification instruction may also obtain target data corresponding to the extraction rule in the target source file according to the preset extraction rule, and perform verification operation on the target data based on the target verification algorithm.

[0107] In this way, the amount of data that needs to be verified is reduced, and the computing resources required by the server to perform verification operations can be reduced.

[0108] The above describes multiple possible implementation methods for data verification of the target source file. For the server receiving the first verification instruction, since the target verification algorithm is the verification algorithm corresponding to the verification information in the first verification instruction, the server does not necessarily store the verification algorithm. Therefore, for the two situations of whether the server stores the target verification algorithm, the following operations can be performed respectively:

[0109] In one case, when the server stores the target verification algorithm locally, the server can perform a verification operation on the target source file corresponding to the target application at the storage address based on the locally stored target verification algorithm.

[0110] In another case, when the target verification algorithm is not stored locally on the server, it is necessary to obtain the target verification algorithm from the server that sends the first verification instruction, and apply the obtained target verification algorithm to perform verification operations on the target source file corresponding to the target application at the storage address.

[0111] In this way, the server receiving the first verification instruction does not need to pre-store a large number of data verification algorithms, and can normally complete the verification operation of the internal target application.

[0112] Optionally, the first verification instruction may also include a verification period, which is used to indicate the time interval for performing data verification on the target application. In this way, after receiving the first verification instruction, the server can periodically perform a timed verification on the internal target application according to the time interval included in the verification instruction, so as to ensure the normal deployment and operation of the target application on the server.

[0113] It should be noted that, since the version information of the target application may be iterated over time, when the server has not received the first verification instruction again, the server can always perform data verification according to the time interval indicated by the first verification instruction previously received. When the server receives the first verification instruction again, it needs to perform a new round of data verification operation on the internal target application according to the verification information and time interval in the newly received first verification instruction.

[0114] Furthermore, the verification information in the first verification instruction, in addition to information indicating the standard source file corresponding to the target application, also includes version number information indicating the target application and / or memory usage information of the target application.

[0115] The above describes various possible implementations of the application data verification method that can be executed when the server is an independent server or a server node in a distributed cluster. In a distributed system, since there are multiple server nodes, in order to facilitate the verification operation of application data for each server node, the following method can be implemented to facilitate the verification of application data of multiple nodes.

[0116] In a possible implementation, a distributed system includes a first node and at least one second node, wherein the first node is used to monitor the at least one second node in the distributed system and perform data verification for each target application. To achieve this function, a monitoring system can be deployed on the first node, and the monitoring system verifies the data of various applications and components deployed on each server node in the distributed system. The at least one second node is a server node in the distributed system that needs to perform target application verification.

[0117] It should be noted that the above-mentioned first node and second node can be deployed in different machines in the distributed system respectively to form physical machine isolation, but the first node can also be deployed in a machine in the distributed system at the same time as a second node, but they only perform different functions respectively. This application does not impose any restrictions on this.

[0118] Specifically, Fig.11 As shown, in the aforementioned application scenario, the first node can first receive the second verification instruction, which instructs the first node to monitor the data verification operation for the target application in the distributed system, and the second verification instruction includes the standard source file corresponding to the target application, and the information and storage information of the deployment node of the target application in the distributed system. In this way, the first node can generate the first verification instruction to be sent to each second node where the target application is deployed according to the various information in the second verification instruction.

[0119] In this way, the server node that receives the first verification instruction is the second node. Therefore, when step S201 is executed in this application scenario, it can be implemented in the following manner, namely: receiving the first verification instruction from the first node in the distributed system, the first verification instruction is used to instruct the second node that receives the first verification instruction to perform data verification on the application. In this way, after receiving the first verification instruction, the second node can perform a verification operation on the application data for the target application on the second node based on the various possible implementation methods proposed above.

[0120] After the second node completes the verification operation and obtains the corresponding application data verification result, the obtained application data verification result can be sent to the first node, so that the first node can determine the application data verification result after the second node performs data verification on the target application, and save the application data verification result.

[0121] The above method is applied in a distributed system, where the first node in the distributed system monitors the data verification operation of the target application of each second node in the entire distributed system. The operation and maintenance personnel only need to submit the relevant data of the target application that needs to be verified to the first node, so that the first node can respond to the operation and perform corresponding application data verification operations on various second nodes in the distributed system, thereby improving the controllability and convenience of application data verification for the distributed system.

[0122] The above describes various possible implementations of a method for verifying application data provided by an embodiment of the present application, and the above methods can be combined to form different execution schemes. For ease of understanding, the following will introduce the above proposed combination method through a possible example.

[0123] like Fig.12 As shown, in a distributed system, there is a monitoring system deployed in the first node, and the monitoring system can verify the data of various applications and components deployed on each server node in the distributed system, and the first node can receive the standard source files corresponding to each application or component, as well as the application data verification results obtained after each second node verifies the application. The multiple second nodes included in the distributed system are the server nodes on which the application components are deployed. It should be noted that the first node and the second node can be the same server node in the distributed system, or they can be different server nodes, and this application does not limit this.

[0124] In this way, when the user needs to perform data verification on an application in a distributed system, a second verification instruction can be sent to the first node. The second verification instruction is used to instruct the first node to start data verification for the target application in the distributed system, and the second verification instruction includes information such as the standard source file corresponding to the target application, the version number information of the target application, the storage address of the target application on each second node, and the node identifier where the target reference is deployed.

[0125] After receiving the second verification instruction, the first node can perform a verification operation based on the target verification instruction on the target source file according to the information included in the second verification instruction, obtain the corresponding standard operation result, and then obtain the corresponding verification information. Then, according to the version number information, storage address, node identification, etc. included in the second verification instruction, a first verification instruction is generated, and the first verification instruction is sent to each second node where the target application is deployed.

[0126] After receiving the first verification instruction, the second node can perform a verification operation based on the target verification algorithm on the target source file at the storage address based on the verification information contained in the first verification instruction, and then obtain the corresponding target operation result. Finally, the corresponding application data verification result is determined based on the difference information between the target operation result and the standard operation result, and the application data verification result is sent to the first node.

[0127] Based on the same inventive concept, an embodiment of the present application also provides a device for verifying application data.

[0128] See also Fig.13 , which is a structural diagram of a device for verifying application data provided in an embodiment of the present application. The device may be the above-mentioned server or a chip or integrated circuit in the device, etc. The device includes a module / unit / technical means for executing the method executed by the server in the above-mentioned method embodiment.

[0129] Exemplarily, the device 1300 includes:

[0130] The receiving module 1301 is used to receive a first verification instruction, where the first verification instruction is used to instruct data verification for a target application, and the first verification instruction includes: verification information for indicating a standard source file corresponding to the target application, and a storage address corresponding to the target application;

[0131] The processing module 1302 is used to perform a data verification operation on the target source file corresponding to the target application at the storage address based on the verification information, determine the difference information between the target source file and the standard source file, and obtain a corresponding application data verification result.

[0132] As an example, Fig.13 The apparatus described can be used to perform Figure 2 Therefore, for the functions that can be realized by each functional module of the device, reference can be made to Figure 2 The description of the illustrated embodiment will not be repeated here.

[0133] It should be noted that, although several modules or submodules of the device are mentioned in the above detailed description, this division is merely exemplary and not mandatory. In fact, according to an embodiment of the present invention, the features and functions of two or more units described above can be embodied in one module. Conversely, the features and functions of one module described above can be further divided into multiple modules to be embodied.

[0134] As a possible product form of the above device, see Fig.14 The embodiment of the present application further provides an electronic device 1400, including:

[0135] At least one processor 1401; and a communication interface 1403 communicatively connected to the at least one processor 1401; the at least one processor 1401 executes instructions stored in the memory 1402, so that the electronic device 1400 executes the method steps performed by any device in the above method embodiment through the communication interface 1403.

[0136] Optionally, the memory 1402 is located outside the electronic device 1400 .

[0137] Optionally, the electronic device 1400 includes the memory 1402, the memory 1402 is connected to the at least one processor 1401, and the memory 1402 stores instructions that can be executed by the at least one processor 1401. Fig.14 The dashed lines indicate that the memory 1402 is optional for the electronic device 1400 .

[0138] The processor 1401 and the memory 1402 may be coupled via an interface circuit or may be integrated together, which is not limited here.

[0139] The specific connection medium between the processor 1401, the memory 1402 and the communication interface 1403 is not limited in the embodiment of the present application. Fig.14 In the embodiment, the processor 1401, the memory 1402 and the communication interface 1403 are connected via a bus 1404. Fig.14 The connections between the other components are shown in bold lines, which are only for illustration and are not intended to be limiting. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Fig.14In the example, only one thick line is used to represent the bus, but it does not mean that there is only one bus or one type of bus. It should be understood that the processor mentioned in the embodiment of the present application can be implemented by hardware or by software. When implemented by hardware, the processor can be a logic circuit, an integrated circuit, etc. When implemented by software, the processor can be a general-purpose processor, which is implemented by reading the software code stored in the memory.

[0140] Exemplarily, the processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.

[0141] It should be understood that the memory mentioned in the embodiments of the present application may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of RAM are available, such as static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM) and direct memory bus random access memory (DirectRambus RAM, DR RAM).

[0142] It should be noted that when the processor is a general-purpose processor, DSP, ASIC, FPGA or other programmable logic device, discrete gate or transistor logic device, discrete hardware component, the memory (storage module) can be integrated into the processor.

[0143] It should be noted that the memory described herein is intended to include, but is not limited to, these and any other suitable types of memory.

[0144] As another possible product form, an embodiment of the present application also provides a computer-readable storage medium, which is used to store instructions. When the instructions are executed, the computer executes the method steps executed by any device in the above method example.

[0145] As another possible product form, an embodiment of the present application also provides a computer program product including instructions, wherein the computer program product stores instructions that, when executed on a computer, enable the computer to execute the method steps executed by any device in the above method embodiment.

[0146] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.

[0147] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to 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.

[0148] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0149] 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 in the computer or other programmable device. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0150] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.

Claims

1. A method for verifying application data, characterized in that: include: Receive a first verification instruction, where the first verification instruction is used to instruct to perform data verification on a target application, and the first verification instruction includes: verification information for indicating a standard source file corresponding to the target application, and a storage address corresponding to the target application; Based on the verification information, a data verification operation is performed on the target source file corresponding to the target application at the storage address to determine the difference information between the target source file and the standard source file, and obtain a corresponding application data verification result.

2. The method according to claim 1, characterized in that The verification information is obtained by the following operations: Based on the target verification algorithm, a verification operation is performed on the standard source file corresponding to the target application, and the obtained standard operation result is used as the verification information; Then, based on the verification information, performing a data verification operation on the target source file corresponding to the target application at the storage address includes: Based on the target verification algorithm, a verification operation is performed on the target source file corresponding to the target application at the storage address to obtain a corresponding target operation result; Based on the standard operation result corresponding to the verification information, a data verification operation is performed on the target operation result.

3. The method according to claim 2, characterized in that Before performing verification operation on the standard source file corresponding to the target application based on the target verification algorithm, the method further includes: Based on at least two preset data verification algorithms, respectively perform corresponding verification operations on the standard source file to obtain resource call conditions corresponding to the verification operations of the at least two data verification algorithms; The data verification algorithm whose resource calling condition meets the preset calling condition is used as the target verification algorithm.

4. The method according to claim 2, characterized in that The target-based verification algorithm is used to perform a verification operation on the standard source file corresponding to the target application, including: Based on the preset extraction rules, obtain the standard data corresponding to the extraction rules in the standard source file, and perform verification operation on the standard data based on the target verification algorithm; Then, based on the target verification algorithm, a verification operation is performed on the target source file corresponding to the target application at the storage address, including: Based on the extraction rule, the target data corresponding to the extraction rule in the target source file is obtained, and based on the target verification algorithm, a verification operation is performed on the target data.

5. The method according to claim 2, characterized in that The performing a verification operation on the target source file corresponding to the target application at the storage address based on the target verification algorithm includes: When the target verification algorithm is stored locally, a verification operation is performed on the target source file corresponding to the target application at the storage address based on the locally stored target verification algorithm; When the target verification algorithm is not stored, the target verification algorithm is obtained from the server that sends the first verification instruction, and the obtained target verification algorithm is applied to perform a verification operation on the target source file corresponding to the target application at the storage address.

6. The method according to claim 1, characterized in that The first verification instruction further includes: a verification period, where the verification period is used to indicate a time interval for performing data verification on the target application.

7. The method according to claim 1, characterized in that The verification information is also used to indicate: version number information of the target application and / or memory usage information of the target application.

8. The method according to any one of claims 1 to 7, characterized in that: The receiving of the first verification instruction comprises: Receiving a first verification instruction from a first node in a distributed system, wherein the first verification instruction is used to instruct a second node that has received the first verification instruction to perform data verification on the target application; wherein the distributed system includes the first node and at least one second node, and the first node is used to monitor the at least one second node in the distributed system and perform data verification on each target application; After obtaining the corresponding application data verification result, the method further includes: The obtained application data verification result is sent to the first node, so that the first node determines the application data verification result after the second node performs data verification on the target application, and saves the application data verification result.

9. A device for verifying application data, characterized in that: include: A receiving module, configured to receive a first verification instruction, wherein the first verification instruction is used to instruct data verification to be performed on a target application, and the first verification instruction includes: verification information indicating a standard source file corresponding to the target application, and a storage address corresponding to the target application; The processing module is used to perform a data verification operation on the target source file corresponding to the target application at the storage address based on the verification information, determine the difference information between the target source file and the standard source file, and obtain a corresponding application data verification result.

10. The device according to claim 9, characterized in that It also includes a verification module, which is used to: perform a verification operation on the standard source file corresponding to the target application based on a target verification algorithm, and use the obtained standard operation result as the verification information; The processing module is used to perform a data verification operation on the target source file corresponding to the target application at the storage address based on the verification information, specifically for: Based on the target verification algorithm, a verification operation is performed on the target source file corresponding to the target application at the storage address to obtain a corresponding target operation result; Based on the standard operation result corresponding to the verification information, a data verification operation is performed on the target operation result.

11. The device according to claim 10, characterized in that Before performing a verification operation on the standard source file corresponding to the target application based on the target verification algorithm, the verification module is further used to: Based on at least two preset data verification algorithms, respectively perform corresponding verification operations on the standard source file to obtain resource call conditions corresponding to the verification operations of the at least two data verification algorithms; The data verification algorithm whose resource calling condition meets the preset calling condition is used as the target verification algorithm.

12. The device according to claim 10, characterized in that The verification module is used to perform a verification operation on the standard source file corresponding to the target application based on the target verification algorithm, specifically for: Based on the preset extraction rules, obtain the standard data corresponding to the extraction rules in the standard source file, and perform verification operation on the standard data based on the target verification algorithm; Then, based on the target verification algorithm, a verification operation is performed on the target source file corresponding to the target application at the storage address, including: Based on the extraction rule, the target data corresponding to the extraction rule in the target source file is obtained, and based on the target verification algorithm, a verification operation is performed on the target data.

13. The device according to claim 10, characterized in that The processing module is used to perform a verification operation on the target source file corresponding to the target application at the storage address based on the target verification algorithm, specifically for: When the target verification algorithm is stored locally, a verification operation is performed on the target source file corresponding to the target application at the storage address based on the locally stored target verification algorithm; When the target verification algorithm is not stored, the target verification algorithm is obtained from the server that sends the first verification instruction, and the obtained target verification algorithm is applied to perform a verification operation on the target source file corresponding to the target application at the storage address.

14. The device according to claim 9, characterized in that The first verification instruction further includes: a verification period, where the verification period is used to indicate a time interval for performing data verification on the target application.

15. The device according to claim 9, characterized in that The verification information is also used to indicate: version number information of the target application and / or memory usage information of the target application.

16. The device according to any one of claims 9 to 15, characterized in that: When the receiving module is used to receive the first verification instruction, it is specifically used to: Receiving a first verification instruction from a first node in a distributed system, wherein the first verification instruction is used to instruct a second node that has received the first verification instruction to perform data verification on the target application; wherein the distributed system includes the first node and at least one second node, and the first node is used to monitor the at least one second node in the distributed system and perform data verification on each target application; After obtaining the corresponding application data verification result, the processing module is further used to: The obtained application data verification result is sent to the first node, so that the first node determines the application data verification result after the second node performs data verification on the target application, and saves the application data verification result.

17. An electronic device, characterized in that: include: at least one processor; and a memory communicatively coupled to the at least one processor; The memory stores instructions that can be executed by the at least one processor, and the at least one processor executes the method as described in any one of claims 1 to 8 by executing the instructions stored in the memory.

18. A computer-readable storage medium, characterized in that: The computer-readable storage medium is used to store instructions, and when the instructions are executed, the method according to any one of claims 1 to 8 is implemented.

19. A computer program product comprising instructions, characterized in that The computer program product stores instructions, and when the computer program product is run on a computer, the computer is caused to execute the method according to any one of claims 1 to 8.