Method and device for simulating network anomaly and testing automatic switching of database faults

A network anomaly and database technology, which is applied in the field of network anomaly simulation and database fault automatic switching, and can solve problems such as difficult database fault automatic switching test and difficult simulation

Inactive Publication Date: 2016-04-20
BEIJING JINGDONG SHANGKE INFORMATION TECH CO LTD +1
View PDF10 Cites 14 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] However, for network anomalies such as network delays, existing technologies are difficult to simulate, which makes it difficult to test automatic database failover triggered by network anomalies such as network delays

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method and device for simulating network anomaly and testing automatic switching of database faults
  • Method and device for simulating network anomaly and testing automatic switching of database faults
  • Method and device for simulating network anomaly and testing automatic switching of database faults

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0032] The application will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain related inventions, rather than to limit the invention. It should also be noted that, for the convenience of description, only the parts related to the related invention are shown in the drawings.

[0033] It should be noted that, in the case of no conflict, the embodiments in the present application and the features in the embodiments can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and embodiments.

[0034] figure 1 An exemplary system architecture 100 of an embodiment of the test method or device for network anomaly simulation and database fault automatic switching can be applied is shown.

[0035] Such as figure 1As shown, the system architecture 100 may include a da...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The application discloses a method and a device for simulating network anomaly and testing automatic switching of database faults. One specific embodiment of the network anomaly simulation method comprises the following steps: receiving a to-be-sent data package; determining the current simulation task including any one of the following preset tasks: packet loss status simulation and network delay status simulation; and if the simulation task is the network delay status simulation, sending to-be-sent data to a receiving end corresponding to a sending end according to the correspondence rule of the network address of the to-be-sent data sending end and the network address between the preset sending end and the receiving end after receiving the to-be-sent data packet for a preset time period. According to the embodiment, the network anomaly of the network delay type between the sending end and the receiving end is simulated, so that the automatic switching of database faults triggered by the network anomaly of the network delay type can be tested.

Description

technical field [0001] The present application relates to the field of computer technology, in particular to the field of software technology, in particular to a test method and device for network anomaly simulation and database fault automatic switching. Background technique [0002] In the database storage service, for data security, a master database and multiple slave databases are usually deployed. When the master database fails (such as a network exception), the slave database needs to be automatically promoted to the master database to continue working. A system using this database storage service architecture can be called a system based on a master-slave database architecture. In order to test the automatic database failover, it is necessary to simulate various database failure scenarios to trigger the execution of the automatic database failover. For the scene of database failure caused by network abnormality, the simulation method in the prior art is to trigger t...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): G06F17/30G06F11/14
CPCG06F11/1448G06F11/1464G06F16/90
Inventor 侯磊
Owner BEIJING JINGDONG SHANGKE INFORMATION TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products