Distributed platform detection method, device and electronic equipment based on blockchain

Through smart contracts, the distributed platform service abnormalities are automatically detected on the blockchain and alarm work orders are generated, which solves the problem of low operation and maintenance efficiency of distributed platform, realizes automated patrol and responsibility division, and improves operation and maintenance efficiency.

CN115460064BActive Publication Date: 2024-12-03INDUSTRIAL AND COMMERCIAL BANK OF CHINA
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202211158176.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-09-22
Publication Date
2024-12-03
Estimated Expiration
2042-09-22

AI Technical Summary

Technical Problem

The existing distributed platforms have low operation and maintenance efficiency and lack of automated and standardized processes, resulting in low abnormal service discovery and processing efficiency.

Method used

Smart contracts are used to obtain service operation data of the distributed platform regularly, detect service abnormalities according to preset conditions, and generate alarm work orders, which are automatically pushed to the corresponding responsible object, realize automated patrol and responsibility division, and improve operation and maintenance efficiency.

Benefits of technology

Through automated abnormal service detection and alarm processing, the operation and maintenance efficiency of the distributed platform is improved, manual intervention and responsibility shirking are reduced, and the efficiency and transparency of the operation and maintenance process are improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115460064B_ABST
    Figure CN115460064B_ABST
Patent Text Reader

Abstract

The present application discloses a distributed platform detection method, device and electronic device based on blockchain, and relates to the field of blockchain technology. The method includes: regularly obtaining the operation data of the service running on the distributed platform according to the smart contract; detecting whether the service is an abnormal service according to the operation data of the service and the preset conditions corresponding to the service; when the service is an abnormal service, generating an alarm work order according to the operation data of the service, and sending the alarm work order to the first terminal device of the first object, wherein the first object is the object for managing abnormal services; receiving the first reply information returned by the first terminal device according to the alarm work order, and closing the alarm work order according to the first reply information or sending the alarm work order to the second terminal device of the second object, wherein the second object is the superior object of the first object. The present application solves the technical problem of low operation and maintenance efficiency of the distributed platform in the prior art.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of blockchain technology, and more specifically, to a distributed platform detection method, device and electronic device based on blockchain. Background Art

[0002] With the rapid development of the Internet and the introduction of the concept of financial technology, the services in the financial field have long been transformed from simple counter services to remote services for mobile terminals. This change in service form has brought about a huge amount of services. Therefore, traditional mainframes are difficult to meet current needs in terms of both function and cost. On this basis, banks, securities companies and other financial institutions have begun to apply distributed platforms, using the advantages of distributed architecture such as low cost and strong expansion capabilities to run various services.

[0003] However, compared with the mainframe, the stability and business consistency of the distributed platform are still far behind those of the mainframe. At the same time, due to the characteristics of the financial field, the tolerance for service errors or failures is much lower than that of other industries. Therefore, inspection and timely operation and maintenance of the distributed platform are the key to ensuring the stable operation of the distributed platform.

[0004] However, the existing operation and maintenance methods of distributed platforms rely heavily on platform support managers to manually discover abnormal services and follow up with the person in charge of abnormal services to handle abnormal services. The entire operation and maintenance process lacks standardized and automated processes to promote the operation and maintenance of abnormal services, resulting in low operation and maintenance efficiency of distributed platforms.

[0005] To address the above-mentioned problems, no effective solution has been proposed yet. Summary of the invention

[0006] The embodiments of the present application provide a distributed platform detection method, device and electronic device based on blockchain to at least solve the technical problem of low distributed platform operation and maintenance efficiency in the prior art.

[0007] According to one aspect of an embodiment of the present application, a distributed platform detection method based on blockchain is provided, including: regularly obtaining operating data of services running on the distributed platform based on a smart contract, wherein the smart contract is a program deployed on the blockchain; detecting whether the service is an abnormal service based on the operating data of the service and preset conditions corresponding to the service; when the service is an abnormal service, generating an alarm work order based on the operating data of the service, and sending the alarm work order to a first terminal device of a first object, wherein the first object is an object that manages abnormal services; receiving a first reply message returned by the first terminal device based on the alarm work order, and closing the alarm work order or sending the alarm work order to a second terminal device of a second object based on the first reply message, wherein the first object and the second object respectively correspond to different consensus nodes on the blockchain, and the second object is the superior object of the first object.

[0008] Furthermore, the distributed platform detection method based on blockchain also includes: regularly accessing the database of the distributed platform according to the smart contract; obtaining operation data from the database, and storing the operation data in the target database, wherein the target database and the database are independent of each other.

[0009] Furthermore, the distributed platform detection method based on blockchain also includes: before detecting whether the service is an abnormal service based on the operating data of the service and the preset conditions corresponding to the service, obtaining business scenario information of the service; determining the preset conditions corresponding to the service based on the business scenario information, wherein the preset conditions include multiple preset sub-conditions, and each preset sub-condition is used to evaluate whether a class of sub-operation data in the operating data is abnormal.

[0010] Furthermore, the blockchain-based distributed platform detection method also includes: when the operation data of the service does not satisfy any one of multiple preset sub-conditions, determining that the service is an abnormal service; when the operation data of the service satisfies multiple preset sub-conditions at the same time, determining that the service is a normal service.

[0011] Furthermore, the distributed platform detection method based on blockchain also includes: sending a first reply message to a third terminal device of a third object, wherein the third object is an object for managing the distributed platform, and the third object corresponds to a consensus node on the blockchain; receiving a second reply message returned by the third terminal device based on the first reply message; closing the alarm work order based on the second reply information or sending the alarm work order to the second terminal device of the second object, wherein the second object is the parent object of the first object and the second object.

[0012] Furthermore, the distributed platform detection method based on blockchain also includes: the second reply information includes at least the first sub-information and the second sub-information, and when the second reply information is the first sub-information, the alarm work order is closed, wherein the first sub-information represents that the third object recognizes the first reply information; when the second reply information is the second sub-information, the alarm work order, the first reply information and the second reply information are sent to the second terminal device of the second object, wherein the second sub-information represents that the third object does not recognize the first reply information.

[0013] Furthermore, the distributed platform detection method based on blockchain also includes: obtaining a target request sent by a first terminal device, wherein the target request is an update request or a preset condition modification request, the update request is used to request an update to a smart contract or service, and the preset condition modification request is used to request a modification to a preset condition of a service; sending the target request to multiple terminal devices, wherein the user object of each terminal device corresponds to a consensus node on the blockchain, and the multiple terminal devices include at least a second terminal device and a third terminal device; receiving processing information of the target request from each terminal device, wherein the processing information is first processing information or second processing information, the first processing information indicates that the user object of the terminal device agrees to the target request, and the second processing information indicates that the user object of the terminal device disagrees with the target request; determining whether to execute the target request based on the processing information.

[0014] Furthermore, the distributed platform detection method based on blockchain also includes: determining the quantity of first processed information as a first quantity; determining the quantity of second processed information as a second quantity; calculating the ratio of the first quantity to the second quantity; when the ratio is greater than a preset ratio, determining to execute the target request; when the ratio is less than the preset ratio, prohibiting the execution of the target request.

[0015] According to another aspect of an embodiment of the present application, a distributed platform detection device based on blockchain is also provided, including: an acquisition module, used to periodically acquire operating data of services running on a distributed platform based on a smart contract, wherein the smart contract is a program deployed on the blockchain; a detection module, used to detect whether a service is an abnormal service based on the operating data of the service and preset conditions corresponding to the service; a generation module, used to generate an alarm work order based on the operating data of the service when the service is an abnormal service, and send the alarm work order to a first terminal device of a first object, wherein the first object is an object for managing services; a work order processing module, used to receive a first reply message returned by the first terminal device based on the alarm work order, and close the alarm work order based on the first reply message or send the alarm work order to a second terminal device of a second object, wherein the first object and the second object respectively correspond to different consensus nodes on the blockchain, and the second object is the superior object of the first object.

[0016] According to another aspect of an embodiment of the present application, a computer-readable storage medium is also provided, in which a computer program is stored, wherein the computer program is configured to execute the above-mentioned blockchain-based distributed platform detection method when running.

[0017] According to another aspect of an embodiment of the present application, an electronic device is also provided, which includes one or more processors and a memory, wherein the memory is used to store one or more programs, wherein when the one or more programs are executed by one or more processors, the one or more processors implement the above-mentioned blockchain-based distributed platform detection method.

[0018] In this application, an alarm work order is automatically generated according to the operation data of the abnormal service, and the alarm work order is sent to the corresponding responsible object. First, the operation data of the service running on the distributed platform is regularly obtained according to the smart contract, and then the service is detected whether it is an abnormal service according to the operation data of the service and the preset conditions corresponding to the service. If the service is an abnormal service, an alarm work order is generated according to the operation data of the service, and the alarm work order is sent to the first terminal device of the first object. Finally, the first reply information returned by the first terminal device according to the alarm work order is received, and the alarm work order is closed according to the first reply information or sent to the second terminal device of the second object. Among them, the smart contract is a program deployed on the blockchain; the first object is an object for managing abnormal services; the first object and the second object correspond to different consensus nodes on the blockchain respectively, and the second object is the parent object of the first object.

[0019] From the above content, it can be seen that this application obtains the operating data of the service on the distributed platform through the smart contract, and determines whether the service is an abnormal service based on the operating data, thereby realizing the automated inspection of the distributed platform and improving the efficiency of discovering abnormal services. In addition, this application will also generate an alarm work order based on the operating data of the abnormal service, and push the alarm work order to the first object, and then determine whether to close the alarm work order based on the reply information of the first object, and whether to report the work order information to the second object, thereby achieving the purpose of automatic alarm and automatic division of responsibilities, avoiding the problem of the person in charge of the abnormal service shirking responsibility and wasting operation and maintenance time, and further improving the operation and maintenance efficiency.

[0020] It can be seen that through the technical solution of the present application, the purpose of automatically determining abnormal services and determining the recipient of the alarm work order based on the smart contract is achieved, thereby achieving the effect of improving the operation and maintenance efficiency of the distributed platform, and further solving the technical problem of low operation and maintenance efficiency of the distributed platform in the prior art. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0022] Figure 1 It is a flow chart of a distributed platform detection method based on blockchain according to an embodiment of the present application;

[0023] Figure 2 This is a schematic diagram of the flow process of an alarm work order according to an embodiment of the present application;

[0024] Figure 3 A schematic diagram of an optional smart contract according to an embodiment of the present application is shown;

[0025] Figure 4 is a flow chart of modifying a preset condition according to an embodiment of the present application;

[0026] Figure 5 is a schematic diagram of a distributed platform detection device based on blockchain according to an embodiment of the present application;

[0027] Figure 6 is a schematic diagram of an optional electronic device according to an embodiment of the present application. DETAILED DESCRIPTION

[0028] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present application.

[0029] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0030] In addition, it should be noted that the relevant information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data for display, data for analysis, etc.) involved in this disclosure are all information and data authorized by the user or fully authorized by all parties. For example, an interface is set between this system and the relevant user or organization. Before obtaining relevant information, it is necessary to send an acquisition request to the aforementioned user or organization through the interface, and obtain relevant information after receiving the consent information fed back by the aforementioned user or organization.

[0031] Example 1

[0032] According to an embodiment of the present application, an embodiment of a distributed platform detection method based on blockchain is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described may be executed in an order different from that shown here.

[0033] Figure 1 is a flow chart of a distributed platform detection method based on blockchain according to an embodiment of the present application, such as Figure 1 As shown, the method comprises the following steps:

[0034] Step S101, regularly obtain the operation data of the services running on the distributed platform according to the smart contract.

[0035] In step S101, the smart contract is a program deployed on the blockchain. Specifically, the smart contract is a program deployed on the blockchain that is automatically executed or triggered by some event. The above-mentioned distributed platform is a software platform that builds data storage, data analysis, and data calculation on a cluster composed of multiple hosts.

[0036] In addition, the above-mentioned operating data includes at least the concurrent traffic data of the service, the service call response time, the thread pool occupied resources, whether the call is successful, the number of call failures, the call success rate, the call failure time, the service provider information, the service name, the name of the group to which the service belongs, the name of the application corresponding to the service, and other data.

[0037] Step S102: detecting whether the service is an abnormal service according to the operation data of the service and the preset conditions corresponding to the service.

[0038] In step S102, the above-mentioned preset conditions are used to determine whether the service is an abnormal service based on the operation data of the service. Specifically, the above-mentioned preset conditions may include multiple preset sub-conditions, wherein each preset sub-condition is used to evaluate whether a class of sub-operation data in the operation data is abnormal. For example, the preset sub-conditions include but are not limited to the following evaluation indicators: concurrent traffic threshold, call duration threshold, call failure number threshold, thread pool resource occupancy threshold, and whether there is a service provider name. When the operation data exceeds any of the above thresholds, the smart contract will determine that the service is an abnormal service. When the service provider name does not exist in the operation data, the smart contract will also determine that the service is an abnormal service.

[0039] It should be noted that in the prior art, the platform support manager (i.e., the responsible party of the distributed platform) usually analyzes the service operation data manually every day, and then determines whether the service is abnormal based on the analysis results. This method of determining abnormal services consumes a lot of manpower costs and has low detection efficiency. Therefore, in order to solve this problem, this application sets preset conditions through smart contracts, and detects whether the service is an abnormal service based on the preset conditions and operation data, thereby improving the efficiency of determining abnormal services, which can not only reduce labor costs, but also detect abnormal services faster and more timely.

[0040] Step S103: when the service is an abnormal service, an alarm work order is generated according to the operation data of the service, and the alarm work order is sent to the first terminal device of the first object.

[0041] In step S103, the first object is an object for managing abnormal services. It should be noted that multiple services may be deployed on a distributed platform, and each service corresponds to a different management object. For example, the object for managing service A is object 1, the object for managing service B is object 2, and the object for managing service C is object 3. It should be noted that the first object in this application is the management object of the abnormal service. If the abnormal service is service A, object 1 is the first object, and if the abnormal service is service B, object 2 is the first object.

[0042] In addition, in an optional embodiment, as Figure 2 As shown, the smart contract periodically accesses the database of the distributed platform and obtains the operating data of the service from the database. After determining the abnormal service based on the operating data, the smart contract will generate an alarm ticket based on the preset sub-conditions that the operating data does not meet and the operating data itself. Then the first object can analyze the cause of the abnormality based on the operating data and the preset sub-conditions in the alarm ticket, and provide a solution strategy based on the cause of the abnormality.

[0043] Step S104, receiving the first reply information returned by the first terminal device according to the alarm work order, and closing the alarm work order or sending the alarm work order to the second terminal device of the second object according to the first reply information.

[0044] In step S104, the first object and the second object correspond to different consensus nodes on the blockchain respectively, and the second object is the parent object of the first object.

[0045] Specifically, the first reply information at least includes the analysis result of the first object on the alarm work order and the solution strategy for the abnormal service.

[0046] In an optional embodiment, if Figure 2 As shown, after receiving the first reply information, the smart contract will forward the first reply information to the terminal device of the platform support manager, and then the platform support manager will evaluate the content of the first reply information. If the platform support manager approves the first reply information, the platform support manager will send a reply message indicating approval of the first reply information to the smart contract through the terminal device. After receiving the reply message, the smart contract can close the alarm work order. If the platform support manager does not approve the first reply information, the platform support manager will send a reply message indicating disapproval of the first reply information to the smart contract through the terminal device. After receiving the reply message, the smart contract will send the reply message, the first reply message and the alarm work order to the second terminal device together so that the second object can make the final approval. Among them, the second object is the superior object (i.e., the superior leader) of the platform support manager and the first object.

[0047] It should be noted that in the prior art, after discovering an abnormal service, it is usually necessary for the platform support manager to actively promote and urge the management object of the abnormal service to repair the abnormal service in a timely manner. Due to the lack of a relatively standardized process, the promotion efficiency is low, resulting in low operation and maintenance efficiency of the abnormal service. However, through the technical solution of the present application, the smart contract will automatically generate an alarm work order based on the operation data of the abnormal service, and push the alarm work order to the first object, thereby solving the problem that the platform support manager must actively track and promote the repair process of the abnormal service, thereby improving the operation and maintenance efficiency of the abnormal service. In addition, for controversial alarm work orders, the alarm work order can be sent to the terminal device of the superior leader, thereby avoiding the shelving of the alarm work order and further improving the operation and maintenance efficiency of the abnormal service.

[0048] Based on the contents of the above steps S101 to S104, it can be known that in this application, an alarm work order is automatically generated according to the operation data of the abnormal service, and the alarm work order is sent to the corresponding responsible object. First, the operation data of the service running on the distributed platform is regularly obtained according to the smart contract, and then the service is detected whether it is an abnormal service according to the operation data of the service and the preset conditions corresponding to the service. If the service is an abnormal service, an alarm work order is generated according to the operation data of the service, and the alarm work order is sent to the first terminal device of the first object. Finally, the first reply information returned by the first terminal device according to the alarm work order is received, and the alarm work order is closed according to the first reply information or the alarm work order is sent to the second terminal device of the second object. Among them, the smart contract is a program deployed on the blockchain; the first object is an object for managing abnormal services; the first object and the second object correspond to different consensus nodes on the blockchain respectively, and the second object is the superior object of the first object.

[0049] From the above content, it can be seen that this application obtains the operating data of the service on the distributed platform through the smart contract, and determines whether the service is an abnormal service based on the operating data, thereby realizing the automated inspection of the distributed platform and improving the efficiency of determining abnormal services. In addition, this application will also generate an alarm work order based on the operating data of the abnormal service, and push the alarm work order to the first object, and then determine whether to close the alarm work order based on the reply information of the first object, and whether to report the work order information to the second object, thereby achieving the purpose of automatic alarm and automatic division of responsibilities, avoiding the problem of the person in charge of the abnormal service shirking responsibility and wasting operation and maintenance time, and further improving the operation and maintenance efficiency.

[0050] It can be seen that through the technical solution of the present application, the purpose of automatically determining abnormal services and determining the recipient of the alarm work order based on the smart contract is achieved, thereby achieving the effect of improving the operation and maintenance efficiency of the distributed platform, and further solving the technical problem of low operation and maintenance efficiency of the distributed platform in the prior art.

[0051] In an optional embodiment, the smart system periodically accesses the database of the distributed platform based on the smart contract; obtains the operating data from the database, and stores the operating data in the target database, wherein the target database and the database are independent of each other.

[0052] Optionally, the operating data of the services of the distributed platform is usually stored in a production database. In order to avoid increasing the load pressure on the distributed platform when analyzing the operating data, the smart contract in this application will store the operating data in a separate target database after regularly accessing the database of the distributed platform (i.e., the production database), and then analyze the operating data on the target database. Since the target database is isolated from the database of the distributed platform, it will not add any unnecessary load to the distributed platform.

[0053] In an optional embodiment, before detecting whether a service is an abnormal service based on the service's operating data and the preset conditions corresponding to the service, the smart contract first obtains the business scenario information of the service, and then determines the preset conditions corresponding to the service based on the business scenario information, wherein the preset conditions include multiple preset sub-conditions, and each preset sub-condition is used to evaluate whether a class of sub-operation data in the operating data is abnormal.

[0054] Optionally, since there will be multiple services running on the distributed platform and different services have different business scenarios, the preset conditions corresponding to different services are also different. For example, the application corresponding to service A is an application with a small service call volume. Therefore, service A is more sensitive to the number of call failures. On this basis, the call failure number threshold in the preset condition corresponding to service A can be set to a smaller value; in addition, assuming that the application corresponding to service B is an application with a large service call volume, service B is less sensitive to the number of call failures. On this basis, the call failure number threshold in the preset condition corresponding to service B can be set to a larger value.

[0055] By setting the corresponding preset conditions for each service according to the business scenario of each service, you can more specifically determine whether a service is an abnormal service, so that it is more in line with the actual business scenario, while ensuring the stable operation of the distributed platform and reducing the workload of operation and maintenance personnel.

[0056] In an optional embodiment, when the operating data of the service does not satisfy any one of multiple preset sub-conditions, the smart contract determines that the service is an abnormal service; when the operating data of the service satisfies multiple preset sub-conditions at the same time, the smart contract determines that the service is a normal service.

[0057] In an optional embodiment, after receiving the first reply information, the smart contract sends the first reply information to the third terminal device of the third object, and receives the second reply information returned by the third terminal device according to the first reply information, and finally closes the alarm work order according to the second reply information or sends the alarm work order to the second terminal device of the second object. Among them, the third object is an object for managing the distributed platform, and the third object corresponds to a consensus node on the blockchain; the second object is the parent object of the first object and the second object.

[0058] Optionally, the third object mentioned above can be understood as the platform support manager mentioned above, who is responsible for managing the entire distributed platform. After receiving the first reply message from the first object, the smart contract will forward the first reply message to the third terminal device, and the third object will evaluate and reply to the first reply message. After receiving the second reply message from the third object, the smart contract will close the alarm ticket according to the second reply message or send the alarm ticket to the second terminal device of the second object.

[0059] Specifically, the second reply information includes at least the first sub-information and the second sub-information. When the second reply information is the first sub-information, the smart contract closes the alarm work order, wherein the first sub-information indicates that the third object recognizes the first reply information; when the second reply information is the second sub-information, the smart contract sends the alarm work order, the first reply information, and the second reply information to the second terminal device of the second object, wherein the second sub-information indicates that the third object does not recognize the first reply information.

[0060] It should be noted that, since the first sub-information and the second sub-information respectively represent that the third object approves the second reply information and the third object does not approve the second reply information, the smart contract can determine that the first object and the third object have reached an agreement based on the first sub-information, so that the alarm work order can be closed, and the smart contract can also determine that there is a dispute between the first object and the third object based on the second sub-information, so the smart contract will send the alarm work order, the first reply information and the second reply information to the second object. Among them, the second object is the superior object of the first object and the third object, so the second object can make the final approval for the disputed alarm work order. After the second object makes the final approval for the alarm work order, the smart contract will close the alarm work order.

[0061] In an optional embodiment, the smart contract also obtains the target request sent by the first terminal device, and sends the target request to multiple terminal devices, and then the smart contract receives the processing information of each terminal device on the target request, and determines whether to execute the target request based on the processing information. Among them, the target request is an update request or a preset condition modification request, the update request is used to request to update the intelligence, and the preset condition modification request is used to request to modify the preset conditions of the service; the user object of each terminal device corresponds to a consensus node on the blockchain, and the multiple terminal devices include at least a second terminal device and a third terminal device; the processing information is the first processing information or the second processing information, the first processing information indicates that the user object of the terminal device agrees to the target request, and the second processing information indicates that the user object of the terminal device does not agree to the target request.

[0062] Optionally, the smart contract determines the quantity of the first processed information as the first quantity, and determines the quantity of the second processed information as the second quantity, and then the smart contract calculates the ratio of the first quantity to the second quantity, and when the ratio is greater than a preset ratio, determines to execute the target request; when the ratio is less than the preset ratio, prohibits the execution of the target request.

[0063] Specifically, there are usually multiple services running on a distributed platform, and there may be associations between different services. For example, service A can call service B, and service B can call service C. On this basis, when a service is updated or the preset conditions of a service are modified, it will inevitably affect other services associated with the service, which may cause unpredictable effects on other services. In addition, the smart contract contains specific rules for patrolling the distributed platform. Therefore, the update of the smart contract will also affect the abnormal detection of each service. On this basis, in order to ensure the stable operation of the distributed platform, this application uses the consensus mechanism of the blockchain and requires consensus processing of the target request. The target request will only be executed after determining that most of the consensus nodes in the blockchain pass the target request. It should be noted that the object corresponding to each consensus node can be the responsible object of each service or the responsible object of the distributed platform.

[0064] In addition, in an optional embodiment, assuming that the responsible object of service A is object 1, and the responsible object of service B is object 2, when an exception occurs in service A, the smart contract will generate an alarm work order for service A and send the alarm work order to the terminal device of object 1. If object 1 analyzes the alarm work order and believes that the exception occurs in service A only after calling service B due to an exception in service B, object 1 can forward the alarm work order to the terminal device of object 2. Among them, the smart contract will record the flow process of the alarm work order, and because the smart contract is deployed in the blockchain, the smart contract can publish the flow process and processing process of the alarm work order (including the first reply information and the second reply information) in the blockchain, thereby achieving real-time transparency, maximizing information sharing, and improving the processing efficiency of abnormal services.

[0065] In an optional embodiment, Figure 3 A schematic diagram of an optional smart contract according to an embodiment of the present application is shown, such as Figure 3 As shown, the smart contract includes an inspection query module, a work order generation and processing module, a personalized inspection setting module, and a voting consensus module.

[0066] Among them, the inspection query module is used to regularly obtain the operation data of the service from the database of the distributed platform, and determine the abnormal service based on the operation data.

[0067] The work order generation processing module is used to generate an alarm work order for the abnormal service queried by the inspection module. The alarm work order contains at least the application name, service group, service name and service call status of the abnormal service in the past day. After the alarm work order is generated, it will be transferred to the terminal device of the corresponding application support manager (i.e., the first object), and the first object will analyze and troubleshoot the problem and reply the reason. The application support manager can also transfer the alarm work order to other support managers for further troubleshooting of the abnormal problem. After the troubleshooting is completed, the alarm work order will be returned to the terminal device of the platform support manager (i.e., the third object) of the distributed platform, and the third object will approve the reply information of the first object. For controversial alarm work orders, they can be transferred to the department leader (i.e., the second object) for approval and closure. Among them, the entire alarm work order is transferred through smart contract processing, and since the entire process runs on the blockchain, the transfer process is transparent to all consensus nodes on the blockchain. The objects corresponding to the consensus nodes can view the processing progress of the alarm work order at any time. Due to the characteristics of the blockchain, the relevant function design for tracking and querying the alarm work order processing link is avoided, which simplifies the design of the program.

[0068] The personalized inspection setting module is used to personalize the preset conditions of the service. Since the sensitivity of services in different business scenarios to evaluation indicators is different, different preset conditions can be set for different services. Figure 4 As shown, when modifying the preset conditions of a service, it is necessary to submit a preset condition modification request to the blockchain, attach the reason for the modification, and submit it to each consensus node in the blockchain for review. After the majority of consensus nodes approve the request, the smart contract executes the preset condition modification request.

[0069] The voting consensus module is used to process consensus on update requests or preset condition modification requests. Among them, smart contracts need to be modified and upgraded as the service is adjusted and upgraded. The developers and users of smart contracts can upload the code, and then publicly submit it to the users of the smart contract (corresponding to each consensus node) for voting. When more than 50% of the users agree, that is, after the majority of users agree, the code can be released in grayscale and deployed to the smart contract. After a three-month trial run, the stability and effectiveness of the newly deployed functional points are verified, and then the vote is initiated again. After the majority of users agree again, it is officially deployed to the smart contract. The voting consensus module is also applicable to modifying the preset conditions of the service.

[0070] It should be noted that in this application, the inspection process of the distributed platform relies on smart contracts. Smart contracts are actually a piece of code deployed on the blockchain. Relying on the characteristics of smart contracts, it effectively makes up for the defects of ordinary programs in terms of standardization, irreversibility, and non-default, thereby effectively reducing the workload of operation and maintenance. For special programs such as smart contracts, since they are deployed on the blockchain, a certain degree of consensus needs to be obtained, thus ensuring that the inspection method of the distributed platform requires the approval of the majority of participating members, which improves the operating efficiency of the inspection governance system to a certain extent. At the same time, since each responsible object of the service participates in the formulation of the inspection method, each responsible object can propose its own inspection logic for other responsible objects to vote, and release a new inspection method after obtaining approval, thereby accelerating the rapid iteration of the inspection method.

[0071] Example 2

[0072] According to an embodiment of the present application, a distributed platform detection device based on blockchain is also provided, wherein: Figure 5 is a schematic diagram of an optional distributed platform detection device based on blockchain according to an embodiment of the present application, such as Figure 5 As shown, the device includes: an acquisition module 501, which is used to periodically acquire the operating data of the service running on the distributed platform according to the smart contract, wherein the smart contract is a program deployed on the blockchain; a detection module 502, which is used to detect whether the service is an abnormal service according to the operating data of the service and the preset conditions corresponding to the service; a generation module 503, which is used to generate an alarm work order according to the operating data of the service when the service is an abnormal service, and send the alarm work order to a first terminal device of a first object, wherein the first object is an object for managing services; a work order processing module 504, which is used to receive a first reply information returned by the first terminal device according to the alarm work order, and close the alarm work order according to the first reply information or send the alarm work order to a second terminal device of a second object, wherein the first object and the second object respectively correspond to different consensus nodes on the blockchain, and the second object is the superior object of the first object.

[0073] It should be noted that the above-mentioned acquisition module 501, detection module 502, generation module 503 and work order processing module 504 correspond to steps S101 to S104 in the above-mentioned embodiment 1, and the examples and application scenarios implemented by the four modules and the corresponding steps are the same, but are not limited to the contents disclosed in the above-mentioned embodiment 1.

[0074] Optionally, the acquisition module includes: an access unit and a first acquisition unit. The access unit is used to periodically access the database of the distributed platform according to the smart contract; the first acquisition unit is used to obtain operation data from the database and store the operation data in a target database, wherein the target database and the database are independent of each other.

[0075] Optionally, the distributed platform detection device based on blockchain further includes: a first acquisition module and a first determination module. The first acquisition module is used to acquire the business scenario information of the service; the first determination module is used to determine the preset conditions corresponding to the service according to the business scenario information, wherein the preset conditions include multiple preset sub-conditions, and each preset sub-condition is used to evaluate whether a class of sub-operation data in the operation data is abnormal.

[0076] Optionally, the detection module further includes: a first determination unit and a second determination unit. The first determination unit is used to determine that the service is an abnormal service when the operation data of the service does not meet any one of the multiple preset sub-conditions; the second determination unit is used to determine that the service is a normal service when the operation data of the service meets multiple preset sub-conditions at the same time.

[0077] Optionally, the work order processing module further includes: a first sending unit, a first receiving unit and a first processing unit. The first sending unit is used to send the first reply information to the third terminal device of the third object, wherein the third object is an object for managing the distributed platform, and the third object corresponds to a consensus node on the blockchain; the first receiving unit is used to receive the second reply information returned by the third terminal device according to the first reply information; the first processing unit is used to close the alarm work order according to the second reply information or send the alarm work order to the second terminal device of the second object, wherein the second object is the superior object of the first object and the second object.

[0078] Optionally, the first processing unit further includes: a closing subunit and a sending subunit. The closing subunit is used to close the alarm work order when the second reply information is the first sub-information, wherein the first sub-information indicates that the third object recognizes the first reply information; the sending subunit is used to send the alarm work order, the first reply information and the second reply information to the second terminal device of the second object when the second reply information is the second sub-information, wherein the second sub-information indicates that the third object does not recognize the first reply information.

[0079] Optionally, the distributed platform detection device based on blockchain also includes: a second acquisition module, a first sending module, a first receiving module and a second determination module. The second acquisition module is used to acquire the target request sent by the first terminal device, wherein the target request is an update request or a preset condition modification request, the update request is used to request to update the smart contract or service, and the preset condition modification request is used to request to modify the preset conditions of the service; the first sending module is used to send the target request to multiple terminal devices, wherein the user of each terminal device corresponds to a consensus node on the blockchain, and the multiple terminal devices include at least a second terminal device and a third terminal device; the first receiving module is used to receive the processing information of each terminal device on the target request, wherein the processing information is the first processing information or the second processing information, the first processing information indicates that the user of the terminal device agrees to the target request, and the second processing information indicates that the user of the terminal device does not agree to the target request; the second determination module is used to determine whether to execute the target request according to the processing information.

[0080] Optionally, the second determination module further includes: a third determination unit, a fourth determination unit, a calculation unit, a fifth determination unit and a prohibition unit. The third determination unit is used to determine that the quantity of the first processing information is the first quantity; the fourth determination unit is used to determine that the quantity of the second processing information is the second quantity; the calculation unit is used to calculate the ratio of the first quantity to the second quantity; the fifth determination unit is used to determine the execution of the target request when the ratio is greater than a preset ratio; and the prohibition unit is used to prohibit the execution of the target request when the ratio is less than the preset ratio.

[0081] Example 3

[0082] According to an embodiment of the present application, a computer-readable storage medium is also provided, in which a computer program is stored, wherein the computer program is configured to execute the blockchain-based distributed platform detection method in the above-mentioned embodiment 1 when running.

[0083] Example 4

[0084] According to an embodiment of the present application, an electronic device embodiment is also provided, wherein: Figure 6 is a schematic diagram of an optional electronic device according to an embodiment of the present application, such as Figure 6 As shown, the electronic device includes a processor, a memory, and a program stored in the memory and executable on the processor. When the processor executes the program, the following steps are implemented:

[0085] Regularly obtain the operating data of the service running on the distributed platform according to the smart contract, wherein the smart contract is a program deployed on the blockchain; detect whether the service is an abnormal service according to the operating data of the service and the preset conditions corresponding to the service; when the service is an abnormal service, generate an alarm work order according to the operating data of the service, and send the alarm work order to the first terminal device of the first object, wherein the first object is the object that manages the abnormal service; receive the first reply information returned by the first terminal device according to the alarm work order, and close the alarm work order according to the first reply information or send the alarm work order to the second terminal device of the second object, wherein the first object and the second object respectively correspond to different consensus nodes on the blockchain, and the second object is the parent object of the first object.

[0086] Optionally, when the processor executes the program, the following steps are also implemented: regularly accessing the database of the distributed platform according to the smart contract; obtaining operation data from the database, and storing the operation data in the target database, wherein the target database and the database are independent of each other.

[0087] Optionally, the processor also implements the following steps when executing the program: before detecting whether the service is an abnormal service based on the operating data of the service and the preset conditions corresponding to the service, obtaining the business scenario information of the service; determining the preset conditions corresponding to the service based on the business scenario information, wherein the preset conditions include multiple preset sub-conditions, and each preset sub-condition is used to evaluate whether a class of sub-operation data in the operating data contains an abnormality.

[0088] Optionally, when the processor executes the program, the following steps are also implemented: when the operating data of the service does not satisfy any one of multiple preset sub-conditions, determining that the service is an abnormal service; when the operating data of the service satisfies multiple preset sub-conditions at the same time, determining that the service is a normal service.

[0089] Optionally, the processor also implements the following steps when executing the program: sending a first reply message to a third terminal device of a third object, wherein the third object is an object for managing a distributed platform and the third object corresponds to a consensus node on the blockchain; receiving a second reply message returned by the third terminal device based on the first reply message; closing the alarm work order based on the second reply message or sending the alarm work order to the second terminal device of the second object, wherein the second object is the parent object of the first object and the second object.

[0090] Optionally, the processor also implements the following steps when executing the program: the second reply information includes at least the first sub-information and the second sub-information, and when the second reply information is the first sub-information, the alarm work order is closed, wherein the first sub-information indicates that the third object recognizes the first reply information; when the second reply information is the second sub-information, the alarm work order, the first reply information and the second reply information are sent to the second terminal device of the second object, wherein the second sub-information indicates that the third object does not recognize the first reply information.

[0091] Optionally, when executing the program, the processor also implements the following steps: obtaining a target request sent by the first terminal device, wherein the target request is an update request or a preset condition modification request, the update request is used to request an update to a smart contract or service, and the preset condition modification request is used to request a modification to a preset condition of a service; sending the target request to multiple terminal devices, wherein the user object of each terminal device corresponds to a consensus node on the blockchain, and the multiple terminal devices include at least a second terminal device and a third terminal device; receiving processing information of the target request from each terminal device, wherein the processing information is first processing information or second processing information, the first processing information indicates that the user object of the terminal device agrees to the target request, and the second processing information indicates that the user object of the terminal device disagrees with the target request; determining whether to execute the target request based on the processing information.

[0092] Optionally, when executing the program, the processor also implements the following steps: determining the quantity of the first processing information as the first quantity; determining the quantity of the second processing information as the second quantity; calculating the ratio of the first quantity to the second quantity; when the ratio is greater than a preset ratio, determining to execute the target request; when the ratio is less than the preset ratio, prohibiting the execution of the target request.

[0093] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.

[0094] In the above embodiments of the present application, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, please refer to the relevant description of other embodiments.

[0095] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of units can be a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.

[0096] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed over multiple units. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.

[0097] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0098] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art or all or part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, server or network device, etc.) to perform all or part of the steps of each embodiment method of the present application. The aforementioned storage medium includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, disk or optical disk, etc. Various media that can store program codes.

[0099] The above are only preferred implementations of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.

Claims

1. A distributed platform detection method based on blockchain, characterized in that: include: Regularly obtain the operation data of the services running on the distributed platform according to the smart contract, wherein the smart contract is a program deployed on the blockchain; Detecting whether the service is an abnormal service according to the operation data of the service and the preset conditions corresponding to the service; When the service is an abnormal service, generating an alarm work order according to the operation data of the service, and sending the alarm work order to a first terminal device of a first object, wherein the first object is an object that manages the abnormal service; receiving a first reply message returned by the first terminal device according to the alarm work order, and closing the alarm work order or sending the alarm work order to a second terminal device of a second object according to the first reply message, wherein the first object and the second object correspond to different consensus nodes on the blockchain respectively; Wherein, closing the alarm work order or sending the alarm work order to the second terminal device of the second object according to the first reply information includes: Sending the first reply information to a third terminal device of a third object, wherein the third object is an object for managing the distributed platform, and the third object corresponds to a consensus node on the blockchain; Receiving second reply information returned by the third terminal device according to the first reply information; The alarm work order is closed or sent to a second terminal device of the second object according to the second reply information, wherein the second object is a parent object of the first object and the third object.

2. The method according to claim 1, characterized in that Regularly obtain the operating data of services running on the distributed platform based on smart contracts, including: Regularly access the database of the distributed platform according to the smart contract; The operation data is acquired from the database, and stored in a target database, wherein the target database is independent of the database.

3. The method according to claim 1, characterized in that Before detecting whether the service is an abnormal service according to the operation data of the service and the preset condition corresponding to the service, the method further includes: Obtaining business scenario information of the service; The preset condition corresponding to the service is determined according to the business scenario information, wherein the preset condition includes a plurality of preset sub-conditions, and each preset sub-condition is used to evaluate whether a type of sub-operation data in the operation data is abnormal.

4. The method according to claim 3, characterized in that Detecting whether the service is an abnormal service according to the operation data of the service and the preset condition corresponding to the service includes: When the operation data of the service does not satisfy any one of the plurality of preset sub-conditions, determining that the service is an abnormal service; When the operation data of the service satisfies the multiple preset sub-conditions at the same time, the service is determined to be a normal service.

5. The method according to claim 1, characterized in that The second reply information includes at least the first sub-information and the second sub-information, and closing the alarm work order or sending the alarm work order to the second terminal device of the second object according to the second reply information includes: When the second reply information is the first sub-information, closing the alarm work order, wherein the first sub-information indicates that the third object recognizes the first reply information; When the second reply information is the second sub-information, the alarm work order, the first reply information and the second reply information are sent to the second terminal device of the second object, wherein the second sub-information indicates that the third object does not recognize the first reply information.

6. The method according to claim 1, characterized in that The method further comprises: Obtaining a target request sent by the first terminal device, wherein the target request is an update request or a preset condition modification request, the update request is used to request to update the smart contract or the service, and the preset condition modification request is used to request to modify the preset condition of the service; Sending the target request to multiple terminal devices, wherein the usage object of each terminal device corresponds to a consensus node on the blockchain, and the multiple terminal devices at least include the second terminal device and the third terminal device; Receiving processing information of each terminal device on the target request, wherein the processing information is first processing information or second processing information, the first processing information indicates that the user of the terminal device agrees to the target request, and the second processing information indicates that the user of the terminal device does not agree to the target request; Determine whether to execute the target request according to the processing information.

7. The method according to claim 6, characterized in that Determining whether to execute the target request according to the processing information includes: Determining the amount of the first processing information as a first amount; Determining the amount of the second processing information as a second amount; calculating a ratio of the first quantity to the second quantity; When the ratio is greater than a preset ratio, determining to execute the target request; When the ratio is less than the preset ratio, executing the target request is prohibited.

8. A distributed platform detection device based on blockchain, characterized in that: include: An acquisition module, used to periodically acquire the operation data of the services running on the distributed platform according to the smart contract, wherein the smart contract is a program deployed on the blockchain; A detection module, used to detect whether the service is an abnormal service according to the operation data of the service and the preset conditions corresponding to the service; a generating module, configured to generate an alarm work order according to the operation data of the service when the service is an abnormal service, and send the alarm work order to a first terminal device of a first object, wherein the first object is an object that manages the service; A work order processing module, configured to receive a first reply message returned by the first terminal device according to the alarm work order, and close the alarm work order or send the alarm work order to a second terminal device of a second object according to the first reply message, wherein the first object and the second object correspond to different consensus nodes on the blockchain respectively; Among them, the work order processing module also includes: a first sending unit, used to send the first reply information to a third terminal device of a third object, wherein the third object is an object for managing the distributed platform, and the third object corresponds to a consensus node on the blockchain; a first receiving unit, used to receive a second reply information returned by the third terminal device based on the first reply information; a first processing unit, used to close the alarm work order according to the second reply information or send the alarm work order to the second terminal device of the second object, wherein the second object is the parent object of the first object and the third object.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, wherein when the computer program is running, the device where the computer-readable storage medium is located is controlled to execute the blockchain-based distributed platform detection method described in any one of claims 1 to 7.

10. An electronic device, characterized in that: It includes one or more processors and a memory, wherein the memory is used to store one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors implement the blockchain-based distributed platform detection method as described in any one of claims 1 to 7.