Primary and standby services switching method and device

A technology of main service and server resources, applied in the field of main and standby service switching methods and devices, can solve the problems of lack of performance evaluation, poor performance of main service, and small number of supported concurrency, and achieve the effect of improving performance experience

Active Publication Date: 2018-03-27
BEIJING JINGDONG SHANGKE INFORMATION TECH CO LTD +1
View PDF6 Cites 5 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
  • Primary and standby services switching method and device
  • Primary and standby services switching method and device
  • Primary and standby services switching method and device

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 primary and standby services switching method and device. The method comprises the following steps: performing concurrent pressure performance test on each standby service, monitoring the service condition of a server resource where the standby service is located, and counting the Transaction Per Second tps in the concurrent pressure performance test process; when determining that primary and standby services switching needs to be performed, selecting a standby service, of which the service condition of the server resource is within a reasonable range, as a new primary service; when the service conditions of server resources where various standby services are located are within a reasonable range or within a same abnormal range, selecting a standby service with the highest tps as the new primary service; and when the service conditions of the server resources where various standby services are located exceed the reasonable range, taking a high-priority standbyservice with the service condition of the server resource exceeding the reasonable range as the new primary service according to the preset priority of the server resources. The primary and standby services switching method provided by the invention can automatically select a standby service with better performance as the primary 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 Applications(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 Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products