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

Master-slave switching method, device, system and server for load balancing service

A load balancing and server technology, applied in the network field, can solve the problem that the master-slave switching process of load balancing services takes a long time, and achieve the effect of fast master-slave switching

Active Publication Date: 2021-08-31
GUANGZHOU SHIYUAN ELECTRONICS CO LTD +1
View PDF6 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

This makes the master-slave switching process of the load balancing service time-consuming

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
  • Master-slave switching method, device, system and server for load balancing service
  • Master-slave switching method, device, system and server for load balancing service
  • Master-slave switching method, device, system and server for load balancing service

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0038] In order to make the object, technical solution and advantages of the present invention clearer, the present invention 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 the present invention, not to limit the present invention.

[0039] The master-slave switching method of the load balancing service provided by this application can be applied to such as figure 1 shown in the application environment. The application environment includes a client 101 , a load balancing service 102 , a first server 103 , a second server 104 and a control server 105 . These devices in the application environment can perform network communication. After receiving the master-slave switching command to switch the first server 103 to the second server 104 , the control server 105 acquires the first socket information of the first server 103 and t...

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 relates to a master-slave switching method, device, system and server for load balancing services, and belongs to the field of network technology. The method includes: when a master-slave switching instruction is received, acquiring first socket information of the first server and second socket information of the second server; the master-slave switching instruction is switching from the first server to the second server Instruction; determine the corresponding load balancing service according to the first socket information; obtain the configuration information of the load balancing service; modify the configuration information according to the first socket information and the second socket information; wherein, after modification The configuration information is used to trigger the load balancing service to forward the information from the client to the second server. The above technical solution solves the problem that the master-slave switching process of the load balancing service takes a long time. After the sentinel cluster performs automatic master-slave switchover on the Redis cluster, it can quickly realize the master-slave switchover of the load balancing service.

Description

technical field [0001] The invention relates to the field of network technology, in particular to a master-slave switching method, device, system, server and storage medium for load balancing services. Background technique [0002] The Redis master-slave cluster mode adopts a dual-machine master-slave architecture, which can automatically perform master-slave switching when the master server fails, and promote the slave server to a server to continue to provide services. The process of promoting a slave server to master is relatively complex and requires manual participation. To solve this problem, the Redis community has launched a high-availability solution of Redis master-slave cluster plus sentinel cluster. [0003] In the process of implementing the present invention, the inventors found at least the following problems in the prior art: when a failure occurs, the sentinel cluster will perform automatic master-slave switchover to the Redis cluster. However, the configu...

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): H04L29/08H04L12/24
CPCH04L41/0663H04L67/1034
Inventor 裴振飞
Owner GUANGZHOU SHIYUAN ELECTRONICS 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