Movatterモバイル変換


[0]ホーム

URL:


CN112732476B - Fault positioning analysis method and system based on micro-service - Google Patents

Fault positioning analysis method and system based on micro-service
Download PDF

Info

Publication number
CN112732476B
CN112732476BCN202110105877.7ACN202110105877ACN112732476BCN 112732476 BCN112732476 BCN 112732476BCN 202110105877 ACN202110105877 ACN 202110105877ACN 112732476 BCN112732476 BCN 112732476B
Authority
CN
China
Prior art keywords
fault
data
link
production line
micro
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110105877.7A
Other languages
Chinese (zh)
Other versions
CN112732476A (en
Inventor
黄河
黄炳裕
林文国
戴文艳
王伟宗
王孝文
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Evecom Information Technology Development Co ltd
Original Assignee
Evecom Information Technology Development Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Evecom Information Technology Development Co ltdfiledCriticalEvecom Information Technology Development Co ltd
Priority to CN202110105877.7ApriorityCriticalpatent/CN112732476B/en
Publication of CN112732476ApublicationCriticalpatent/CN112732476A/en
Application grantedgrantedCritical
Publication of CN112732476BpublicationCriticalpatent/CN112732476B/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Images

Classifications

Landscapes

Abstract

A fault positioning analysis method based on micro service comprises the following steps; s1, acquiring initial fault data of a production line through a terminal product or a final fault code of the production line; s2, acquiring initial input data of the production line by inquiring a production line working log; s3, simulating the working state of the production line through an external virtual machine so as to obtain the numerical change calculation of the input data in each link, uploading the calculation result to a data server, and acquiring the simulation data of each link from the data server by the micro-service fault positioning system and loading the simulation data into the micro-service of each link in the production line; meanwhile, the fault elimination method can be recorded into the data server through the multi-link micro-service recording step and is associated with the fault code, the autonomous learning fault elimination capability is formed, and the debugging and troubleshooting time of engineering personnel is greatly shortened.

Description

Fault positioning analysis method and system based on micro-service
Technical Field
The invention relates to the technical field of fault location analysis, in particular to a fault location analysis method and system based on micro-service.
Background
Micro service Architecture (micro service Architecture) has attracted increasing attention in recent years as a new software Architecture. Under the Microservice architecture, a complex software system consists of a set of single-duty microservices (microservices). Each micro service runs in an independent process and can realize automatic independent deployment through an automatic deployment mechanism; communication between the micro services is realized through RPC, HTTP and other lightweight interaction mechanisms. Compared with a single-body architecture, the micro-service architecture has the advantages of single function, flexible technology type selection, independent component deployment, continuous delivery, strong fault tolerance capability, capability of expanding as required and the like. Meanwhile, the development of a distributed storage technology, a Web container virtualization technology, a big data cloud computing technology and a server clustering technology provides technical support for the implementation of a micro-service architecture. The micro-service architecture is widely applied to the construction of various distributed software systems, and the sharing and integration of various resources in an open network environment are realized.
In the current production of a factory flow production line, the condition of line stop and maintenance caused by production line faults often exists, error faults are often transmitted in multiple links due to the fact that the flow production line is generally processed in a multi-bit linear mode, error codes are inaccurate, the difficulty of fault location and troubleshooting of engineering personnel is increased, each link cannot be specifically and independently troubleshooted, error feedback only comprises code data, corresponding error comparison graphs are generated by legal affairs, the difficulty of error troubleshooting information is increased, an existing fault location analysis method and an existing fault location analysis system cannot automatically perform trial repair, and only error feedback can be performed on known errors.
Disclosure of Invention
Object of the invention
In order to solve the technical problems in the background art, the invention provides a fault location analysis method and a fault location analysis system based on micro-services, the invention has clear logic operation efficiency, can enable multiple links of a flow production line to simultaneously operate through a micro-service system, avoids the waiting time of upstream and downstream, improves the fault location troubleshooting efficiency, and can avoid error transmission through mutually independent micro-service systems, so that the fault reason is clearer, thereby effectively reducing the fault troubleshooting difficulty of engineering personnel, improving the fault location efficiency, and can quickly locate a fault link through the operation of the first micro-service system, so that a normal link is in standby, the continuous operation along with the fault link is not needed, the energy consumption is effectively reduced, and the fault troubleshooting cost is reduced.
(II) technical scheme
The invention provides a fault positioning analysis method and a system based on micro-service, which comprises the following steps,
s1, acquiring initial fault data of a production line through a terminal product or a final fault code of the production line;
s2, acquiring initial input data of the production line by inquiring a production line working log;
s3, simulating the working state of the production line through an external virtual machine so as to obtain the numerical change calculation of the input data in each link, uploading the calculation result to a data server, and acquiring the simulation data of each link from the data server by the micro-service fault positioning system and loading the simulation data into the micro-service of each link in the production line;
s4, after acquiring input data of each link, the micro-service of each link of the production line is started simultaneously, and output results independently generated by each link can be acquired under the monitoring of a micro-service system, and are compared with a data server, so that the fault of a certain link is judged;
s5, comparing input and output data of a fault link with analog input and output data in a data server, collecting data to form a fault data curve by operating the fault link for multiple times, and combining analog input and output data to form a comparison fault curve graph;
s6, the fault data curve graph is combined with error codes, the specific error reasons of the fault link are checked and solved, and therefore fault positioning analysis based on the micro-service is achieved;
preferably, the fault code includes: single link fault codes, multi-link fault codes, and unknown error codes.
Preferably, the following operations are also included in S2:
and determining the current fault type by comparing the error code library, acquiring data feedback of upstream and downstream links from the data server when the feedback is a single link fault code, analyzing, comparing and judging whether the data feedback is caused by the transmission deviation of the conveyor belt, and trying to recover the fault link by adjusting the rotation speed of the conveyor belt.
Preferably, the following operations are also included in S2:
the current fault type is determined by comparing error code libraries, when multi-link fault codes are fed back, signals are sent to the control unit to stop feeding continuously with the link, whether single normal links exist in the multi-link faults or not is checked one by one through multiple times of inversion, if the single normal links exist, the normal links stop working, and if the single normal links do not exist, total error codes are generated and uploaded to the data server.
Preferably, the following operations are also included in S2:
the current fault type is determined by comparing error code libraries, when unknown error code codes are fed back, all links of the production line are stopped to work, the unknown error codes are uploaded to a data server and are singly marked, a manual debugging mode of the production line is started, all links of the production line are restored one by one through one-by-one examination, the working state is confirmed, the fault range is narrowed, the unknown codes and the last fault link which is successfully debugged are associated at the final debugging stage, and a new fault code index is established.
Preferably, in S5, the confirmed failure link executes a limited number of loop steps to obtain data outputs corresponding to multiple sets of the same input data, the failure link can be prevented from self-locking by an external counter, and the output data is combined into a failure data fluctuation curve graph.
Preferably, in S6, through the probability manual adjustment step, the parameter change and the fault code can be correlated, and the final debugging completed step is stored in a package, when the same fault code occurs, the parameter change setting can be executed tentatively and trial data is collected and uploaded to the data server.
The invention also provides a system for fault location analysis based on microservice, which comprises a data acquisition module, a data preprocessing module, a data server, a data comparison module, an execution module, a data feedback module, a circulation module and a storage module;
the data acquisition module is used for acquiring original fault data, converting the original fault data into fault codes through the data preprocessing module, comparing the fault codes with existing fault code libraries of the data server through the data comparison module so as to judge the current fault type, if the data server has a method for solving the fault codes, trying to repair the fault codes through the execution module, the circulation module can check the results after the execution of the execution module and record a plurality of groups of data after the execution, and the data feedback module can upload the execution results to the data server and deliver the execution results to the storage module for recording.
The technical scheme of the invention has the following beneficial technical effects:
the method is characterized in that firstly, a micro-service system framework is dispersed and convenient to install, the method is compatible with various types of production devices, and is suitable for multi-link flow production equipment, the troubleshooting efficiency can be effectively improved by matching a detection end installed on the production device with a background data server, meanwhile, a troubleshooting method can be recorded into the data server through multi-link micro-service recording steps and is associated with fault codes, so that the autonomous learning troubleshooting capability is formed, the debugging and troubleshooting time of engineering personnel is greatly reduced, the stability and the efficiency of the production device are improved, and the troubleshooting difficulty of the engineering personnel can be reduced by generating a fault data comparison graph, so that faults are more obvious, and the solution is convenient.
Drawings
Fig. 1 is a flowchart of a method and a system for analyzing fault location based on microservice according to the present invention.
Fig. 2 is a flow chart of data comparison in a method for analyzing fault location based on microservice according to the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention will be described in further detail with reference to the accompanying drawings in conjunction with the following detailed description. It should be understood that the description is intended to be exemplary only, and is not intended to limit the scope of the present invention. Moreover, in the following description, descriptions of well-known structures and techniques are omitted so as to not unnecessarily obscure the concepts of the present invention.
As shown in fig. 1-2, the method for analyzing fault location based on microservice of the present invention comprises the following steps,
s1, acquiring initial fault data of a production line through a terminal product or a final fault code of the production line;
s2, acquiring initial input data of the production line by inquiring a production line working log;
s3, simulating the working state of the production line through an external virtual machine so as to obtain the numerical change calculation of the input data in each link, uploading the calculation result to a data server, and acquiring the simulation data of each link from the data server by the micro-service fault positioning system and loading the simulation data into the micro-services of each link in the production line;
s4, after acquiring input data of each link, the micro-service of each link of the production line is started simultaneously, and output results independently generated by each link can be acquired under the monitoring of a micro-service system, and are compared with a data server, so that the fault of a certain link is judged;
s5, comparing input and output data of a fault link with analog input and output data in a data server, collecting data to form a fault data curve by operating the fault link for multiple times, and combining the analog input and output data to form a comparison fault curve graph;
and S6, the fault data curve graph is combined with the error codes, the specific error reasons of the fault link are checked and solved, and therefore fault positioning analysis based on the micro-service is achieved.
In the invention, initial error information is obtained through a data acquisition module, an error code corresponding to the type of error can be obtained after the initial information is preprocessed, whether the type of errors occur before can be effectively confirmed by comparing the existing error codes in the data server, if the error codes are the same, the last troubleshooting method is called for trial repair, data comparison is carried out after trial repair results are collected, if the trial repair results are consistent with normal data, troubleshooting is carried out, if the trial repair results are inconsistent with the normal data, the existing solution and error code records are deleted, if the error codes are not the same, analog input data are independently operated through all links so as to detect whether the current link fails, after the failed link is locked, the same instruction is repeatedly executed to enable the failed link to obtain a plurality of groups of output data, the plurality of groups of output data of the failed link and the simulated normal data are combined into a failure data comparison graph to be displayed to engineering personnel, during the process of switching the manual debugging mode by engineering personnel, the parameter change of the debugging mode can be stored as a trial solution, all steps in the debugging mode are packaged and uploaded to a data server to be bound with corresponding fault codes, thereby effectively reducing the pressure of repeated faults on the investigation of engineering personnel, realizing the capabilities of automatically acquiring error information, automatically writing error codes, automatically trying to repair and the like, the troubleshooting difficulty can be effectively reduced by generating the fault data comparison graph, the operation step in the recording and debugging mode can be automatically and tentatively solved when the same error code appears next time, the troubleshooting pressure of engineering personnel is greatly reduced, the using effect is excellent, and the method is suitable for popularization and use.
In an alternative embodiment, the fault code comprises: single link fault codes, multi-link fault codes, and unknown error codes.
In an optional embodiment, the following operations are further included in S2:
and determining the current fault type by comparing the error code library, acquiring data feedback of upstream and downstream links from the data server when the feedback is a single link fault code, analyzing, comparing and judging whether the data feedback is caused by the transmission deviation of the conveyor belt, and trying to recover the fault link by adjusting the rotation speed of the conveyor belt.
In an alternative embodiment, the following operations are also included in S2:
the current fault type is determined by comparing error code libraries, when multi-link fault codes are fed back, signals are sent to the control unit to stop feeding continuously with the link, whether single normal links exist in the multi-link faults or not is checked one by one through multiple times of inversion, if the single normal links exist, the normal links stop working, and if the single normal links do not exist, total error codes are generated and uploaded to the data server.
In an alternative embodiment, the following operations are also included in S2:
the current fault type is determined by comparing error code libraries, when unknown error code codes are fed back, all links of the production line are stopped to work, the unknown error codes are uploaded to a data server and are marked independently, a manual debugging mode of the production line is started, all links of the production line are restored one by one through one-by-one troubleshooting, the working state is confirmed, the fault range is narrowed, the unknown codes are associated with the last fault link which is debugged successfully at the final debugging stage, and a new fault code index is established.
In an alternative embodiment, in S5, the confirmed fault links are subjected to a limited number of loop steps to obtain data outputs corresponding to multiple sets of the same input data, the fault links can be prevented from being self-locked by an external counter, and the output data is combined into a fault data fluctuation curve graph.
In an alternative embodiment, in S6, through the probability manual adjustment step, the parameter change and the fault code can be correlated, and the step of final debugging completion is stored in a package, when the same fault code occurs, the parameter change setting can be executed tentatively and trial data is collected and uploaded to the data server.
In an optional embodiment, the invention further provides a system for fault location analysis based on microservice, which comprises a data acquisition module, a data preprocessing module, a data server, a data comparison module, an execution module, a data feedback module, a circulation module and a storage module;
the data acquisition module is used for acquiring original fault data, converting the original fault data into fault codes through the data preprocessing module, comparing the fault codes with existing fault code libraries of the data server through the data comparison module so as to judge the current fault type, if the data server has a method for solving the fault codes, trying to repair the fault codes through the execution module, the circulation module can check the results after the execution of the execution module and record a plurality of groups of data after the execution, and the data feedback module can upload the execution results to the data server and deliver the execution results to the storage module for recording.
It is to be understood that the above-described embodiments of the present invention are merely illustrative of or explaining the principles of the invention and are not to be construed as limiting the invention. Therefore, any modifications, equivalents, improvements and the like which are made without departing from the spirit and scope of the present invention shall be included in the protection scope of the present invention. Further, it is intended that the appended claims cover all such variations and modifications as fall within the scope and boundaries of the appended claims or the equivalents of such scope and boundaries.

Claims (8)

CN202110105877.7A2021-01-262021-01-26Fault positioning analysis method and system based on micro-serviceActiveCN112732476B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN202110105877.7ACN112732476B (en)2021-01-262021-01-26Fault positioning analysis method and system based on micro-service

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN202110105877.7ACN112732476B (en)2021-01-262021-01-26Fault positioning analysis method and system based on micro-service

Publications (2)

Publication NumberPublication Date
CN112732476A CN112732476A (en)2021-04-30
CN112732476Btrue CN112732476B (en)2022-10-21

Family

ID=75594064

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN202110105877.7AActiveCN112732476B (en)2021-01-262021-01-26Fault positioning analysis method and system based on micro-service

Country Status (1)

CountryLink
CN (1)CN112732476B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN113689178A (en)*2021-07-232021-11-23青岛海尔科技有限公司Troubleshooting method and system based on equipment data
CN114610316A (en)*2022-03-152022-06-10中国银行股份有限公司Method and device for analyzing and controlling production line logs

Citations (8)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN103518192A (en)*2011-05-132014-01-15微软公司 Real-time diagnostic pipeline for large-scale services
CN106656630A (en)*2017-01-132017-05-10北京中电普华信息技术有限公司Electric marketing service application system, and construction method and platform thereof
CN110888657A (en)*2019-11-282020-03-17浪潮金融信息技术有限公司Method for deploying microservice based on Groovy template engine
CN110995468A (en)*2019-11-132020-04-10上海钧正网络科技有限公司System fault processing method, device, equipment and storage medium of system to be analyzed
CN111181785A (en)*2019-12-302020-05-19上海汇付数据服务有限公司Monitoring method and device based on feedback link
CN111240876A (en)*2020-01-062020-06-05远光软件股份有限公司Fault positioning method and device for microservice, storage medium and terminal
CN111240910A (en)*2020-01-022020-06-05北京航天测控技术有限公司Equipment health management micro-service generation method, device, equipment and readable medium
CN111581036A (en)*2020-03-312020-08-25西安电子科技大学 Internet of things fault detection method, detection system and storage medium

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN105171748A (en)*2015-10-212015-12-23鞍山松意机器人制造有限公司Remote state monitoring method and system for robots and robot production line equipment
US10824981B2 (en)*2017-04-242020-11-03Sap SeTransaction orchestration for microservice
CN107450398A (en)*2017-08-212017-12-08泓辉电子(重庆)有限公司A kind of mobile phone production management method

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN103518192A (en)*2011-05-132014-01-15微软公司 Real-time diagnostic pipeline for large-scale services
CN106656630A (en)*2017-01-132017-05-10北京中电普华信息技术有限公司Electric marketing service application system, and construction method and platform thereof
CN110995468A (en)*2019-11-132020-04-10上海钧正网络科技有限公司System fault processing method, device, equipment and storage medium of system to be analyzed
CN110888657A (en)*2019-11-282020-03-17浪潮金融信息技术有限公司Method for deploying microservice based on Groovy template engine
CN111181785A (en)*2019-12-302020-05-19上海汇付数据服务有限公司Monitoring method and device based on feedback link
CN111240910A (en)*2020-01-022020-06-05北京航天测控技术有限公司Equipment health management micro-service generation method, device, equipment and readable medium
CN111240876A (en)*2020-01-062020-06-05远光软件股份有限公司Fault positioning method and device for microservice, storage medium and terminal
CN111581036A (en)*2020-03-312020-08-25西安电子科技大学 Internet of things fault detection method, detection system and storage medium

Also Published As

Publication numberPublication date
CN112732476A (en)2021-04-30

Similar Documents

PublicationPublication DateTitle
CN112732476B (en)Fault positioning analysis method and system based on micro-service
CN111881014B (en)System test method, device, storage medium and electronic equipment
CN114968272B (en)Algorithm operation method, device, equipment and storage medium
CN110704312B (en)Method, device, computer equipment and storage medium for pressure test
CN111679950B (en)Interface-level dynamic data sampling method and device
WO2016045353A1 (en)Troubleshooting analysis method, device, system and storage medium
CN109783260A (en)Intelligent IT whole process O&M method, apparatus, equipment and readable storage medium storing program for executing
CN110928796A (en)Automatic change test platform
US10999128B2 (en)System and method for automatically repairing a faultily connected network element
CN115056234B (en)RPA controller scheduling method and system based on event-driven and infinite state machine
CN109100116B (en)Optical module fault diagnosis system and method
CN116400987B (en)Continuous integration method, device, electronic equipment and storage medium
CN111044826B (en)Detection method and detection system
CN109634681B (en)Method and device for uploading data to manufacturing execution system
CN118227506A (en)UI (user interface) automatic test system and method based on RPA (remote procedure alliance) robot
CN114237956B (en) Message middleware fault location method, device, equipment and medium
CN112286797B (en) A service monitoring method, device, electronic device and storage medium
CN115391221A (en)Multiprocessor module fault injection test method
CN112732569A (en)Program resource occupation measurement and control and corresponding device, equipment and medium
EP3816642A1 (en)Multi-station concurrent transmission testing method, control station, and multi-station concurrent transmission testing device
CN107577546B (en)Information processing method and device and electronic equipment
CN101877874B (en)The transmission of performance data and output intent, system and equipment
KR102122704B1 (en)Apparatus and method of check for reaction capability to abnormal data
RU2818078C1 (en)System and method for remote control of operation and maintenance for system for collecting information on power consumption
CN118838850B (en)Method and system for scene automation continuous test of micro-service continuous integration

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
GR01Patent grant
GR01Patent grant

[8]ページ先頭

©2009-2025 Movatter.jp