Black-box fault injection method, systems, medium and equipment
A fault injection, black box technology, applied in instruments, electrical digital data processing, computing, etc., can solve the problems of relying on manpower, wasting test costs, and inability to scale, and achieve the effect of wide application scenarios and high fault coverage.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0051] The black box fault injection method of the embodiment of the present invention, such as figure 1 shown, including the following steps:
[0052] Step S100, tracking the service calling path of the platform under test.
[0053] Track the business call path of the platform to be tested, and then pass the call chain traced by the platform to be tested to the business architecture diagram in JSON format. The business system obtains the JSON call chain, performs preprocessing, and extracts the call chain information.
[0054] Step S200, according to the service call path, that is, the preprocessed call chain, generate or improve the corresponding service architecture diagram.
[0055] As a better implementation, in order to better utilize the information provided by the call chain to test the platform to be tested more efficiently, an instance node mechanism is also added in the embodiment of the present invention, that is, considering that the platform to be tested (such a...
Embodiment 2
[0064] The internal business architecture of the platform to be tested is shown in Figure 2. The English names in the first line are different service names, and the numbers below represent the host IP. Among them, the services rmslave, cannal and nstack respectively have three instance nodes (hosts) that can replace each other.
[0065] It is assumed that the platform to be tested has the following rules when selecting services: for each service, if the next service is available on this host and other hosts, then this host has priority, otherwise the host with a smaller IP is preferred.
[0066] The embodiment of the present invention currently supports the most typical fault types in two distributed platforms: node crash fault (Crash) and information loss fault (Omit).
[0067] Node crash failure refers to a business node crash, which is a short-term permanent failure (considering that the business node may be restarted or repaired after a period of time after the crash); a...
Embodiment 3
[0132] In this embodiment, on the basis of Embodiment 2, a more complex platform to be tested is considered, and each service node has redundant instance nodes. The service architecture of the platform to be tested is shown in Figure 3. There are 5 services in the service path of the platform under test, cad, rm_master, rmslave, cannal and nstack. Each service has 5 hosts that can replace each other. For example, the cad service has 5 instances of hosts 1, 4, 7, 10, and 13. If the cad service on host 1 fails and cannot work normally, the cad service on host 4 The service can continue working instead of it. Among them, hosts 3, 6, 9, 12, and 15 each have three services rmslave, cannal, and nstack. It is also assumed that the platform to be tested has the following rules when selecting services: For each service, if the next service is available on this host and other hosts, this host is preferred, otherwise the host with a smaller IP is preferred.
[0133] At the beginning, t...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com