Multi-server master and slave machine work method based on TCP event

A technology with multiple servers and working methods, applied in electrical components, digital transmission systems, error prevention, etc., can solve problems such as increased cost, data of the backup server is not synchronized with the original server, and the system cannot operate normally, and achieves a simple transition process, The effect of saving manpower and material resources

Inactive Publication Date: 2016-12-21
CHENGDU GUANGDA NEW NETWORK TECH
View PDF4 Cites 6 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Once the server fails, the system cannot operate normally because there is no backup server, or because the data of the backup server is not synchronized with the ori

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

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0026] The design idea of ​​the present invention is: in a system with high performance efficiency and stability requirements, two or more servers are arranged, each server has the same configuration, incremental data synchronization, and can replace each other to carry out the work in the system. At the same time, there is only one server as the master (that is, the master described later), and the rest of the servers are used as the slave (that is, the slave described later). The incremental data between the slave and the master is synchronized. When the master fails to work normally, the system selects the priority level The highest slave acts as the new master.

[0027] The technical solution is described in detail below.

[0028] In the system of the present invention, there are two or more servers, and the configuration of each server has no difference, and contains the same function (the deployment of key system modules has no difference). Using the I / O multiplexing mo...

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 provides a multi-server master and slave machine work method based on a TCP event. By using the method, in a system which has a high requirement to performance efficiency and stability, two or more than two servers are arranged, configuration of each server is the same, incremental data is synchronized and the servers can replace each other to carry out work in the system. At one moment, only one server is served as a master machine (which is the aftermentioned master), other servers are served as slave machines (which are the aftermentioned slave), and incremental data of the slave machines and the master machine is synchronized. When the master machine can not work normally, the system selects the slave machine with the highest priority level as the new master machine. In the invention, an I/O multiplexing model epoll is used to manage the TCP event, efficiency is high and the method is easy to realize, and an incremental data synchronization event can carry out incremental data synchronization between the master machine and the slave machines so that a requirement of mutual replacement among the servers is satisfied.

Description

technical field [0001] The invention belongs to the working field of master-slave devices, and in particular relates to a TCP event-based multi-server master-slave working method. Background technique [0002] Nowadays, many projects have high requirements on system stability and performance efficiency. In system settings, usually only one server is set. Once the server fails, the system cannot operate normally because there is no backup server, or because the data of the backup server is not synchronized with the original server. Even if you want to realize the function of incremental data synchronization, you need the cooperation of various other tools, resulting in increased costs. Contents of the invention [0003] In order to solve the above problems, the invention provides a multi-server master-slave working method based on TCP events, comprising the steps: [0004] Step 1: Establish a system in advance, which includes several servers with the same function and sev...

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
IPC IPC(8): H04L12/703H04L29/06H04L1/22H04L45/28
CPCH04L1/22H04L45/28H04L69/163
Inventor 颜明强
Owner CHENGDU GUANGDA NEW NETWORK TECH
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