CN111786823A - Fault simulation method and device based on distributed service - Google Patents
Fault simulation method and device based on distributed service Download PDFInfo
- Publication number
- CN111786823A CN111786823A CN202010570870.8A CN202010570870A CN111786823A CN 111786823 A CN111786823 A CN 111786823A CN 202010570870 A CN202010570870 A CN 202010570870A CN 111786823 A CN111786823 A CN 111786823A
- Authority
- CN
- China
- Prior art keywords
- fault simulation
- fault
- distributed service
- instruction
- probe
- 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.)
- Pending
Links
- 238000004088 simulation Methods 0.000 title abstract description 109
- 238000000034 method Methods 0.000 title abstract description 87
- 239000000523 sample Substances 0.000 abstract description 51
- 230000000694 effects Effects 0.000 abstract description 11
- 230000009545 invasion Effects 0.000 abstract description 6
- 238000005553 drilling Methods 0.000 description 17
- 239000003795 chemical substances by application Substances 0.000 description 16
- 238000004590 computer program Methods 0.000 description 16
- 238000010586 diagram Methods 0.000 description 15
- 230000006870 function Effects 0.000 description 8
- 230000008569 process Effects 0.000 description 8
- 230000008859 change Effects 0.000 description 5
- 238000004891 communication Methods 0.000 description 5
- 230000006872 improvement Effects 0.000 description 5
- 230000003287 optical effect Effects 0.000 description 4
- 230000009286 beneficial effect Effects 0.000 description 3
- 230000004048 modification Effects 0.000 description 3
- 238000012986 modification Methods 0.000 description 3
- 230000003068 static effect Effects 0.000 description 3
- 238000003745 diagnosis Methods 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 230000005540 biological transmission Effects 0.000 description 1
- 230000001413 cellular effect Effects 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 230000005055 memory storage Effects 0.000 description 1
- 230000000750 progressive effect Effects 0.000 description 1
- 230000004044 response Effects 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/06—Management of faults, events, alarms or notifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/455—Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
- G06F9/45504—Abstract machines for programme code execution, e.g. Java virtual machine [JVM], interpreters, emulators
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/06—Management of faults, events, alarms or notifications
- H04L41/0677—Localisation of faults
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/50—Testing arrangements
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Debugging And Monitoring (AREA)
Abstract
The invention provides a fault simulation method and a fault simulation device based on distributed service, wherein the fault simulation method based on the distributed service comprises the following steps: receiving a fault simulation instruction through a probe in an application node server; and carrying out fault simulation according to the fault simulation instruction. The fault simulation method and device based on the distributed service have the advantages of no invasion, real-time effect and dynamic plugging. The method can simulate the single or whole cluster fault and can accurately simulate the method-level fault in the application node.
Description
Technical Field
The invention relates to the technical field of computer data processing, in particular to the technical field of distributed services, and specifically relates to a fault simulation method and device based on distributed services.
Background
With the popularity of distributed microservices, safe and reliable services become more and more important, traditional fault drilling needs manual operation to send error requests, or manual operation to change some configurations of application services to simulate relevant faults and drill the faults, and the method cannot accurately simulate some method-level faults in applications, needs a large amount of manpower, cannot normalize the fault drilling, and cannot well promote the stability improvement of a distributed complex system.
Disclosure of Invention
Aiming at the problems in the prior art, the fault simulation method and device based on the distributed service can accurately simulate the method level fault in application and overcome the defect that a large amount of manpower is consumed in the prior art. In order to solve the technical problems, the invention provides the following technical scheme:
in a first aspect, the present invention provides a fault simulation method based on distributed services, including:
receiving a fault simulation instruction through a probe in an application node server;
and carrying out fault simulation according to the fault simulation instruction.
In one embodiment, the distributed service based fault simulation method further includes: and setting a probe in the application node server.
In one embodiment, the fault simulation type is a method level.
In one embodiment, the receiving the fault simulation instruction through the probe in the application node server includes:
and receiving the fault simulation instruction in a single-receiving and/or multi-receiving mode.
In an embodiment, the performing fault simulation according to the fault simulation instruction includes:
and dynamically injecting faults into the application programs in the application node servers according to the fault simulation instruction so as to perform fault simulation.
In a second aspect, the present invention provides a distributed service based fault simulation apparatus, including:
the fault simulation instruction receiving unit is used for receiving a fault simulation instruction through a probe in the application node server;
and the fault simulation unit is used for carrying out fault simulation according to the fault simulation instruction.
In one embodiment, the distributed service based fault simulation apparatus further includes: the probe setting unit is used for setting a probe in the application node server;
the fault simulation type is a method level;
the fault simulation instruction receiving unit is specifically configured to receive the fault simulation instruction in a single-receiving and/or multiple-receiving manner.
In an embodiment, the fault simulation unit is specifically configured to dynamically inject a fault into an application program in the application node server according to the fault simulation instruction, so as to perform fault simulation.
In a third aspect, the present invention provides an electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the steps of the distributed service based fault simulation method when executing the program.
In a fourth aspect, the invention provides a computer-readable storage medium having stored thereon a computer program which, when being executed by a processor, carries out the steps of the distributed service based fault simulation method.
As can be seen from the above description, in the fault simulation method and apparatus based on distributed service provided in the embodiments of the present invention, a fault simulation instruction is received by a probe in an application node server; and then, carrying out fault simulation according to the fault simulation instruction. The invention takes the proxy of the running application program and the dynamic byte code enhancement of the relevant code by embedding the probe (AGENT) in the application node server, and particularly can be issued to each AGENT through a remote control console. The method has the advantages of no invasion, real-time effect, dynamic plugging and unplugging and the like. Related faults can be configured to be issued in real time or at fixed time through the console, and the like to related application programs, and a single fault or the whole cluster fault can be simulated. The method takes effect in real time, the application node does not need to be restarted and is not aware, and method-level faults in the application node can be simulated accurately.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
Fig. 1 is a first flowchart illustrating a distributed service-based fault simulation method according to an embodiment of the present invention;
FIG. 2 is a schematic flow chart of a distributed service-based fault simulation method according to an embodiment of the present invention;
FIG. 3 is a flow chart illustrating step 100 according to an embodiment of the present invention;
FIG. 4 is a flowchart of step 200 in an embodiment of the present invention;
FIG. 5 is a flow chart illustrating a distributed service based fault simulation method according to an embodiment of the present invention;
FIG. 6 is a schematic diagram of the overall structure of a probe (agent) in an embodiment of the present invention;
FIG. 7 is a schematic diagram of a fault simulation architecture according to an embodiment of the present invention;
FIG. 8 is a schematic diagram of the linkage between the application program and the probe module according to the embodiment of the present invention;
FIG. 9 is a block diagram of a distributed service based fault simulation apparatus according to an embodiment of the present invention;
FIG. 10 is a block diagram of a distributed service based fault simulation apparatus according to an embodiment of the present invention;
fig. 11 is a schematic structural diagram of an electronic device in an embodiment of the invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
It should be noted that the terms "comprises" and "comprising," and any variations thereof, in the description and claims of this application and the above-described drawings, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict. The present application will be described in detail below with reference to the embodiments with reference to the attached drawings.
The embodiment of the present invention provides a specific implementation manner of a fault simulation method based on distributed services, and referring to fig. 1, the method specifically includes the following contents:
step 100: and receiving the fault simulation instruction through a probe in the application node server.
Specifically, by embedding probes (agents) in the application node server, acting is performed on the running application program, and dynamic bytecode enhancement is performed on the related codes, and the specific acting method can be realized by issuing to each probe through a remote console.
Step 200: and carrying out fault simulation according to the fault simulation instruction.
Fault simulation refers to the simulation of the response of a computer to a fault in a computational circuit under a given input vector in order to examine whether the input vector can detect the given fault. It can be understood that the method provided in step 200 has the advantages of non-intrusion, real-time effectiveness, dynamic plugging and unplugging, and the like.
In addition, the fault simulation method based on distributed services provided by this embodiment further includes: and (5) fault diagnosis. In current network management, fault diagnosis plays an increasingly important role, specifically, probes are sent from a selected node to all other network devices, and then fault sources in a distributed service network are located by calculating entropy values of the probes and then by calculating through a bayesian network model.
As can be seen from the above description, in the fault simulation method based on distributed service provided in the embodiment of the present invention, a fault simulation instruction is received by a probe in an application node server; and then, carrying out fault simulation according to the fault simulation instruction. The invention takes the proxy of the running application program and the dynamic byte code enhancement of the relevant code by embedding the probe (AGENT) in the application node server, and particularly can be issued to each AGENT through a remote control console. The method has the advantages of no invasion, real-time effect, dynamic plugging and unplugging and the like. Related faults can be configured to be issued in real time or at fixed time through the console, and the like to related application programs, and a single fault or the whole cluster fault can be simulated. The method takes effect in real time, the application node does not need to be restarted and is not aware, and method-level faults in the application node can be simulated accurately.
In an embodiment, referring to fig. 2, the distributed service based fault simulation method further includes:
step 300: the probe is arranged in the application node server.
In particular, probes can be deployed on the convergence layer, the backbone layer, or some important or critical links of internetworking without affecting network performance. Or may be deployed at the edge of the access stratum to the convergence layer. Since the probes must be placed on the physical link, different types of ports require probes of different interfaces, from the beginning mainly FE, GE, OC-3 POS/ATM, 2.5G POS, etc.
In one embodiment, the fault simulation type is method level.
It is understood that the scope of a variable is divided into four levels: class level, object instance level, method level, block level. Class-level variables, also known as global-level variables or static variables, require modification using static keywords. The class-level variables already exist after class definition, occupy memory space, can be accessed through class names, and do not need to be instantiated. The object instance level variable is a member variable, and the memory space is allocated only after the instantiation of the member variable, so that the member variable can be accessed. Method-level variables are variables defined within a method, which are local variables.
In one embodiment, referring to fig. 3, step 100 specifically includes:
step 101: and receiving the fault simulation instruction in a single-receiving and/or multi-receiving mode.
Specifically, various fault instructions are issued to the probe in real time, and the fault instructions can be issued in multiple times, so that faults of a single unit or a cluster are correspondingly simulated, and accurate service faults of special services are transmitted.
In one embodiment, referring to fig. 4, step 200 specifically includes:
step 201: and dynamically injecting faults into the application programs in the application node servers according to the fault simulation instruction so as to perform fault simulation.
Specifically, the probe invades into the service application program JVM in operation, because the probe is internally provided with the mini-server, the probe can receive a program or an instruction sent by a remote console, and then dynamically replace or modify the bytecode file of the service application program in operation according to the program or the instruction, so as to achieve the purpose of dynamically customizing the proxy application program.
As can be seen from the above description, in the fault simulation method based on distributed service provided in the embodiment of the present invention, a fault simulation instruction is received by a probe in an application node server; and then, carrying out fault simulation according to the fault simulation instruction. The invention takes the proxy of the running application program and the dynamic byte code enhancement of the relevant code by embedding the probe (AGENT) in the application node server, and particularly can be issued to each AGENT through a remote control console. The method has the advantages of no invasion, real-time effect, dynamic plugging and unplugging and the like. Related faults can be configured to be issued in real time or at fixed time through the console, and the like to related application programs, and a single fault or the whole cluster fault can be simulated. The method takes effect in real time, the application node does not need to be restarted and is not aware, and method-level faults in the application node can be simulated accurately.
In conclusion, the invention solves the problem of fault drilling in distributed micro-service, and compared with the existing fault simulation method, the invention has the following beneficial effects: the current fault drilling needs manual operation to send error request, or manual operation to change some configurations of application service to simulate relevant fault and drill the fault, which can not accurately simulate some method-level faults in application, and needs a lot of manpower, and can not normalize the fault drilling. The stability improvement of the distributed complex system cannot be promoted well. The invention can carry out accurate method-level fault drilling on the nodes or the clusters in the distributed system, can carry out fault drilling in a normalized and automatic way by matching with the control platform, and can carry out hot plug.
To further illustrate the present solution, the present invention provides a specific application example of the distributed service-based fault simulation method, which specifically includes the following contents, see fig. 5.
S1: and a probe agent is built in the application node server.
The probe agent is built in the application node server as shown in fig. 6, and when the application program is started, the dynamic self-defined agent application program as shown in fig. 7 can dynamically modify the running program in real time and dynamically and individually inject services. It will be appreciated that the probe and the business application are deployed in the same container or server, such that the probe can intrude into the JVM at the runtime of the business application to perform the latter set of functions.
Referring to fig. 7, in the position of (r) in fig. 7, the probe is started with the application node, and after the probe is started, the probe establishes a connection with the console and can receive the instruction of the console. In the 7 th position in the figure, the probe dynamically modifies the running program state, injects faults, cancels the injected faults and the like according to the fault instruction.
S2: the probe and the remote control console establish a connection channel, and the remote control console can issue an instruction to the probe.
S3: the console issues various fault instructions to the probe in real time, the fault instructions can be sent singly or in multiple times, single or cluster faults are simulated, and the fault instructions comprise the accurate service fault instructions for the special service.
S4: after the probe receives the fault instruction, the running application program (method level) is dynamically modified, so that the proprietary service of the running application program is in fault.
S5: after the fault simulation operation is completed, the remote console can issue a command for canceling the fault operation, and after the probe receives the command, the dynamic agent is stopped, and the original operation state of the application program is recovered.
Specifically, the compiled Java program is a bytecode file, the bytecode file is also run in the Java virtual machine, the running bytecode file is dynamically modified by the probe intruding into the JVM during running, and the capability of dynamically changing the service program without restarting is achieved, as shown in fig. 8.
As can be seen from the above description, in the fault simulation method based on distributed service provided in the embodiment of the present invention, a fault simulation instruction is received by a probe in an application node server; and then, carrying out fault simulation according to the fault simulation instruction. The invention takes the proxy of the running application program and the dynamic byte code enhancement of the relevant code by embedding the probe (AGENT) in the application node server, and particularly can be issued to each AGENT through a remote control console. The method has the advantages of no invasion, real-time effect, dynamic plugging and unplugging and the like. Related faults can be configured to be issued in real time or at fixed time through the console, and the like to related application programs, and a single fault or the whole cluster fault can be simulated. The method takes effect in real time, the application node does not need to be restarted and is not aware, and method-level faults in the application node can be simulated accurately.
In conclusion, the invention solves the problem of fault drilling in distributed micro-service, and compared with the existing fault simulation method, the invention has the following beneficial effects: the current fault drilling needs manual operation to send error request, or manual operation to change some configurations of application service to simulate relevant fault and drill the fault, which can not accurately simulate some method-level faults in application, and needs a lot of manpower, and can not normalize the fault drilling. The stability improvement of the distributed complex system cannot be promoted well. The invention can carry out accurate method-level fault drilling on the nodes or the clusters in the distributed system, can carry out fault drilling in a normalized and automatic way by matching with the control platform, and can carry out hot plug.
Based on the same inventive concept, the embodiment of the present application further provides a fault simulation apparatus based on distributed services, which can be used to implement the method described in the foregoing embodiment, such as the following embodiments. Because the principle of the fault simulation device based on the distributed service for solving the problem is similar to that of the fault simulation method based on the distributed service, the implementation of the fault simulation device based on the distributed service can be implemented by referring to the implementation of the fault simulation method based on the distributed service, and repeated parts are not described again. As used hereinafter, the term "unit" or "module" may be a combination of software and/or hardware that implements a predetermined function. While the system described in the embodiments below is preferably implemented in software, implementations in hardware, or a combination of software and hardware are also possible and contemplated.
An embodiment of the present invention provides a specific implementation manner of a distributed service-based fault simulation apparatus capable of implementing a distributed service-based fault simulation method, and referring to fig. 9, the distributed service-based fault simulation apparatus specifically includes the following contents:
a fault simulation instruction receiving unit 10, configured to receive a fault simulation instruction through a probe in an application node server;
and the fault simulation unit 20 is used for performing fault simulation according to the fault simulation instruction.
In one embodiment, referring to fig. 10, the distributed service based fault simulation apparatus further includes: a probe setting unit 30, configured to set a probe in the application node server;
the fault simulation type is a method level;
the fault simulation instruction receiving unit 10 is specifically configured to receive the fault simulation instruction in a single-receiving and/or multiple-receiving manner.
In an embodiment, the fault simulation unit 20 is specifically configured to dynamically inject a fault into an application program in the application node server according to the fault simulation instruction, so as to perform fault simulation.
As can be seen from the above description, in the fault simulation apparatus based on distributed service provided in the embodiment of the present invention, a fault simulation instruction is received by a probe in an application node server; and then, carrying out fault simulation according to the fault simulation instruction. The invention takes the proxy of the running application program and the dynamic byte code enhancement of the relevant code by embedding the probe (AGENT) in the application node server, and particularly can be issued to each AGENT through a remote control console. The method has the advantages of no invasion, real-time effect, dynamic plugging and unplugging and the like. Related faults can be configured to be issued in real time or at fixed time through the console, and the like to related application programs, and a single fault or the whole cluster fault can be simulated. The method takes effect in real time, the application node does not need to be restarted and is not aware, and method-level faults in the application node can be simulated accurately.
In conclusion, the invention solves the problem of fault drilling in distributed micro-service, and compared with the existing fault simulation method, the invention has the following beneficial effects: the current fault drilling needs manual operation to send error request, or manual operation to change some configurations of application service to simulate relevant fault and drill the fault, which can not accurately simulate some method-level faults in application, and needs a lot of manpower, and can not normalize the fault drilling. The stability improvement of the distributed complex system cannot be promoted well. The invention can carry out accurate method-level fault drilling on the nodes or the clusters in the distributed system, can carry out fault drilling in a normalized and automatic way by matching with the control platform, and can carry out hot plug.
The apparatuses, modules or units illustrated in the above embodiments may be implemented by a computer chip or an entity, or implemented by a product with certain functions. A typical implementation device is an electronic device, which may be, for example, a personal computer, a laptop computer, a cellular telephone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.
In a typical example, the electronic device specifically includes a memory, a processor, and a computer program stored on the memory and executable on the processor, and when the processor executes the computer program, the processor implements the steps of the distributed service-based fault simulation method, where the steps include:
step 100: receiving a fault simulation instruction through a probe in an application node server;
step 200: and carrying out fault simulation according to the fault simulation instruction.
Referring now to FIG. 11, shown is a schematic diagram of an electronic device 600 suitable for use in implementing embodiments of the present application.
As shown in fig. 11, the electronic apparatus 600 includes a Central Processing Unit (CPU)601 that can perform various appropriate works and processes according to a program stored in a Read Only Memory (ROM)602 or a program loaded from a storage section 608 into a Random Access Memory (RAM)) 603. In the RAM603, various programs and data necessary for the operation of the system 600 are also stored. The CPU601, ROM602, and RAM603 are connected to each other via a bus 604. An input/output (I/O) interface 605 is also connected to bus 604.
The following components are connected to the I/O interface 605: an input portion 606 including a keyboard, a mouse, and the like; an output portion 607 including a display such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker; a storage section 608 including a hard disk and the like; and a communication section 609 including a network interface card such as a LAN card, a modem, or the like. The communication section 609 performs communication processing via a network such as the internet. The driver 610 is also connected to the I/O interface 605 as needed. A removable medium 611 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 610 as necessary, so that a computer program read out therefrom is mounted as necessary on the storage section 608.
In particular, according to an embodiment of the present invention, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, an embodiment of the present invention includes a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the distributed service-based fault simulation method described above, the steps including:
step 100: receiving a fault simulation instruction through a probe in an application node server;
step 200: and carrying out fault simulation according to the fault simulation instruction.
In such an embodiment, the computer program may be downloaded and installed from a network through the communication section 609, and/or installed from the removable medium 611.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
For convenience of description, the above devices are described as being divided into various units by function, and are described separately. Of course, the functionality of the units may be implemented in one or more software and/or hardware when implementing the present application.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The application may be described in the general context of computer-executable instructions, such as program modules, being executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform particular tasks or implement particular abstract data types. The application may also be practiced in distributed computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed computing environment, program modules may be located in both local and remote computer storage media including memory storage devices.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the system embodiment, since it is substantially similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
The above description is only an example of the present application and is not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.
Claims (10)
1. A fault simulation method based on distributed service is characterized by comprising the following steps:
receiving a fault simulation instruction through a probe in an application node server;
and carrying out fault simulation according to the fault simulation instruction.
2. The distributed service based fault simulation method of claim 1, further comprising: and setting a probe in the application node server.
3. The distributed service based fault simulation method of claim 1, wherein the fault simulation type is a method level.
4. The distributed service based fault simulation method of claim 1, wherein the receiving fault simulation instructions through a probe in an application node server comprises:
and receiving the fault simulation instruction in a single-receiving and/or multi-receiving mode.
5. The distributed service based fault simulation method of claim 1, wherein the performing fault simulation according to the fault simulation instruction comprises:
and dynamically injecting faults into the application programs in the application node servers according to the fault simulation instruction so as to perform fault simulation.
6. A distributed service based fault simulation apparatus, comprising:
the fault simulation instruction receiving unit is used for receiving a fault simulation instruction through a probe in the application node server;
and the fault simulation unit is used for carrying out fault simulation according to the fault simulation instruction.
7. The distributed service based fault simulation apparatus of claim 6, further comprising: the probe setting unit is used for setting a probe in the application node server;
the fault simulation type is a method level;
the fault simulation instruction receiving unit is specifically configured to receive the fault simulation instruction in a single-receiving and/or multiple-receiving manner.
8. The distributed service based fault simulation apparatus according to claim 6, wherein the fault simulation unit is specifically configured to dynamically inject a fault into an application program in the application node server according to the fault simulation instruction, so as to perform fault simulation.
9. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the steps of the distributed service based fault simulation method according to any one of claims 1 to 5 when executing the program.
10. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the steps of the distributed service based fault simulation method according to any one of claims 1 to 5 when executing the program.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010570870.8A CN111786823A (en) | 2020-06-19 | 2020-06-19 | Fault simulation method and device based on distributed service |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010570870.8A CN111786823A (en) | 2020-06-19 | 2020-06-19 | Fault simulation method and device based on distributed service |
Publications (1)
Publication Number | Publication Date |
---|---|
CN111786823A true CN111786823A (en) | 2020-10-16 |
Family
ID=72756362
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010570870.8A Pending CN111786823A (en) | 2020-06-19 | 2020-06-19 | Fault simulation method and device based on distributed service |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111786823A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112464497A (en) * | 2020-12-16 | 2021-03-09 | 江苏满运物流信息有限公司 | Fault drilling method, device, equipment and medium based on distributed system |
CN112596934A (en) * | 2020-12-26 | 2021-04-02 | 中国农业银行股份有限公司 | Fault testing method and device |
CN115438518A (en) * | 2022-11-08 | 2022-12-06 | 恒丰银行股份有限公司 | Fault simulation application system based on chaos concept |
CN117971546A (en) * | 2024-03-29 | 2024-05-03 | 中国科学院空天信息创新研究院 | A method and device for decelerating analysis and accelerating evolution of software local faults |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106909498A (en) * | 2015-12-22 | 2017-06-30 | 阿里巴巴集团控股有限公司 | A kind of java applet injects the method and system of failure |
CN109992454A (en) * | 2017-12-31 | 2019-07-09 | 中国移动通信集团江西有限公司 | Method, device and storage medium for fault location |
CN110765023A (en) * | 2019-10-29 | 2020-02-07 | 中国工商银行股份有限公司 | Distributed system testing method and system based on chaos experiment |
US10684940B1 (en) * | 2018-09-18 | 2020-06-16 | Amazon Technologies, Inc. | Microservice failure modeling and testing |
-
2020
- 2020-06-19 CN CN202010570870.8A patent/CN111786823A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106909498A (en) * | 2015-12-22 | 2017-06-30 | 阿里巴巴集团控股有限公司 | A kind of java applet injects the method and system of failure |
CN109992454A (en) * | 2017-12-31 | 2019-07-09 | 中国移动通信集团江西有限公司 | Method, device and storage medium for fault location |
US10684940B1 (en) * | 2018-09-18 | 2020-06-16 | Amazon Technologies, Inc. | Microservice failure modeling and testing |
CN110765023A (en) * | 2019-10-29 | 2020-02-07 | 中国工商银行股份有限公司 | Distributed system testing method and system based on chaos experiment |
Non-Patent Citations (3)
Title |
---|
AEBDM757009: ""JVM SandBox的技术原理与应用分析"", 《HTTPS://WWW.INFOQ.CN/ARTICLE/TSY4LGJVSFWEUXEBW*GP》 * |
WEIXIN_33845477: ""一线实践|借助混沌工程工具ChaosBlade构建高可用的分布式系统"", 《HTTPS://BLOG.CSDN.NET/WEIXIN_33845477/ARTICLE》 * |
何度: ""JavaAgent学习笔记"", 《HTTPS://DEVELOPER.ALIYUN.COM/ARTICLE/225036?SPM=A2C6H.12873639.ARTICLE-DETAIL.65.26B74437BLJQGM》 * |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112464497A (en) * | 2020-12-16 | 2021-03-09 | 江苏满运物流信息有限公司 | Fault drilling method, device, equipment and medium based on distributed system |
CN112464497B (en) * | 2020-12-16 | 2022-07-19 | 江苏满运物流信息有限公司 | Fault drilling method, device, equipment and medium based on distributed system |
CN112596934A (en) * | 2020-12-26 | 2021-04-02 | 中国农业银行股份有限公司 | Fault testing method and device |
CN115438518A (en) * | 2022-11-08 | 2022-12-06 | 恒丰银行股份有限公司 | Fault simulation application system based on chaos concept |
CN117971546A (en) * | 2024-03-29 | 2024-05-03 | 中国科学院空天信息创新研究院 | A method and device for decelerating analysis and accelerating evolution of software local faults |
CN117971546B (en) * | 2024-03-29 | 2024-11-26 | 中国科学院空天信息创新研究院 | A method and device for decelerating analysis and accelerating evolution of software local faults |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111786823A (en) | Fault simulation method and device based on distributed service | |
CN111639287A (en) | Page processing method and device, terminal equipment and readable storage medium | |
CN113010827B (en) | Page rendering method and device, electronic equipment and storage medium | |
CN106201566A (en) | The rich big special hot upgrade method of software of profit and equipment | |
CN106649084A (en) | Function call information obtaining method and apparatus, and test device | |
CN109683992A (en) | Method and apparatus for managing object | |
US20180203726A1 (en) | Virtual machine migration method and apparatus | |
CN113806229B (en) | Test script multiplexing method, device, equipment, medium and product for interface change | |
CN108427634A (en) | Electronic device, the method for test and computer readable storage medium | |
CN109343970B (en) | Application program-based operation method and device, electronic equipment and computer medium | |
CN112835639B (en) | Hook realization method, device, equipment, medium and product | |
CN112230944B (en) | Application installation method, device, electronic equipment and computer readable medium | |
CN109388770B (en) | Web page generation method and device | |
CN111966508A (en) | Message batch sending method and device, computer equipment and storage medium | |
CN113835748B (en) | Packaging method, system and readable medium for application program based on HTML5 | |
CN111506393A (en) | ARM-based virtualization device and use method thereof | |
CN116737316A (en) | Control method, device, equipment and storage medium for virtual machine VNC password | |
CN117149248A (en) | Micro front end construction method, device, equipment and storage medium | |
CN112232027B (en) | A symbol translation method, device, equipment and computer-readable storage medium | |
CN116051031A (en) | Project scheduling system, medium and electronic equipment | |
CN115509531A (en) | Micro front end implementation method, device, terminal and storage medium based on front end technology | |
CN114510334A (en) | Class instance calling method and device, electronic equipment and automatic driving vehicle | |
CN115134228A (en) | Environment link supply and detection method, device, equipment, medium and program product | |
CN112882921B (en) | Fault simulation method and device | |
CN117709255B (en) | Test method, device, equipment and medium for indirect access register |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20201016 |