Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

A method and device for switching between active and standby services

A main service and server technology, applied in the communication field, can solve problems such as lack of performance evaluation, support for small number of concurrency, poor main service performance, etc., to achieve the effect of improving performance experience

Active Publication Date: 2021-01-26
BEIJING JINGDONG SHANGKE INFORMATION TECH CO LTD +1
View PDF6 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, when there are more than two standby services, there is a switching election problem of which one to become the primary service
The switching process can be performed manually or automatically, but the reason for election is usually judged based on experience. Even if some automated processes can make some basic function judgments, they lack performance evaluation, so the new main service may have poor performance (including response time length, support for small number of concurrency, etc.), which cannot meet the needs of the current growing network users for performance experience

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
  • A method and device for switching between active and standby services
  • A method and device for switching between active and standby services
  • A method and device for switching between active and standby services

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0022] Embodiment 1 of the present invention discloses a method for switching between active and standby services, the schematic flow chart of which is as follows figure 1 As shown, the method includes:

[0023] Step 11, carry out concurrency stress performance test for each standby service, monitor the server resource usage status where the standby service is located, and count the number of transactions per second (tps) during the concurrency stress performance test;

[0024] The standby service in this embodiment is a hot standby service or a warm standby service, and the concurrency stress performance test is performed periodically. Concurrency stress performance testing refers to the use of multi-threading to increase the amount of concurrency in a short period of time. The detection method usually uses the network protocol above the transport layer to establish a connection with the backup service.

[0025] The server resources include system resources such as disk IO,...

Embodiment 2

[0047] Embodiment 2 of the present invention discloses a method for switching between active and standby services, the schematic flow chart of which is as follows image 3 As shown, the method includes:

[0048] Step 31. When it is determined that the master-standby service switching needs to be performed, a functional detection test is performed on each standby service to determine that the standby service is working normally;

[0049] Among them, the method for determining the need to switch between the active and standby services includes: performing a periodic functional detection test on the main service, periodically sending a detection request to the main service, and determining the need after the response returned by the main service cannot be received within a predetermined period of time. Execute active / standby service switchover. The detection request may be a TCP request or an HTTP request according to a specific application.

[0050] The standby service in this...

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 invention discloses a method and device for switching between active and standby services. The method includes: performing a concurrency pressure performance test on each standby service, monitoring the use status of server resources where the standby service is located, and counting each service during the concurrency pressure performance test. The number of transactions transmitted per second tps; when it is determined that the main-standby service switchover is required, select the standby service whose server resource usage is within a reasonable range as the new primary service; the server resource usage of each standby service is within a reasonable range or at When the exception range is the same, select the standby service with the highest tps as the new primary service; when the server resource usage of each standby service is beyond the reasonable range, according to the priority of the server resource set in advance, the high priority server resource The standby service whose usage condition exceeds the reasonable range is used as the new primary service. By adopting the invention, the backup service with better performance state can be automatically selected and upgraded to the main service.

Description

technical field [0001] The invention relates to the field of communication technologies, in particular to a method and device for switching between active and standby services. Background technique [0002] In the Internet system, in order to meet high availability, system services are deployed on multiple servers, forming an architecture with one master and multiple backups. Under normal circumstances, the standby service is in the ready state (cold standby, hot standby, and warm standby). When the main service fails, the standby service will immediately replace it as the main service and start working. However, when there are more than two standby services, there is a switching election problem of which one to become the primary service. The switching process can be performed manually or automatically, but the reason for election is usually judged based on experience. Even if some automated processes can make some basic function judgments, they lack performance evaluation...

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 Patents(China)
IPC IPC(8): H04L12/24
CPCH04L41/0663
Inventor 侯磊马鑫
Owner BEIJING JINGDONG SHANGKE INFORMATION TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products