Master-slave server system application method and system thereof

A technology of a server system and an application method, which is applied to the application method of a master-slave server system and the field of the system, can solve the problems that the master server cannot provide services, and achieve the effect of ensuring non-interruption and continuity

Inactive Publication Date: 2016-06-29
BEIJING LOCOJOY TECH
View PDF2 Cites 27 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] In view of this, the technical problem to be solved in this application is to provide an application method and system of a master-slave server system to solve the problem that the master server cannot To provide services, when the system detects that the master server is abnormal, it will automatically promote the slave server to the master server to ensure that the cluster can continuously provide read and write services to the outside world, so as to ensure that other system services will not be unavailable due to faults

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 server system application method and system thereof
  • Master-slave server system application method and system thereof

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0042] see figure 1 Shown is a specific embodiment of the application method of a master-slave server system described in this application, including:

[0043] Step 101, the database sentinel server (DBSentinel) monitors the working conditions of the master database server and multiple slave database servers, and generates an available database server cluster list; if it is found that the master database server is unavailable, then select an available from the database server cluster From the database server, be promoted as the new primary database server; if one or more are found to be unavailable from the database server, then one or more unavailable slave database servers will be deleted from the list of database server clusters;

[0044] Step 102, database monitoring server (DBMonitor) obtains available main database server and from database server cluster list from DBSentinel, and described list is saved in Zookeeper;

[0045] Step 103, the cluster server obtains the list ...

Embodiment 2

[0054] On the basis of Embodiment 1, the present invention also provides a master-slave server system capable of implementing the method of Embodiment 1, see figure 2 , the system includes master database server 10, multiple slave database servers 20, database sentinel server (DBSentinel) 30, database monitoring server (DBMonitor) 40, Zookeeper50, cluster server 60,

[0055] The above-mentioned master database server 10 and the slave data server 20 are used to provide service data to the cluster server 60;

[0056] The above-mentioned DBSentinel30 is used to monitor the working conditions of the master database server 10 and a plurality of slave database servers 20, and generate an available database server cluster list; if it is found that the master database server 10 is unavailable, then select an available slave from the database server cluster The database server is promoted as a new master database server; if one or more are found to be unavailable from the database ser...

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 present application discloses an application method and system of a master-slave server system. The method includes: a database sentinel server monitors the working conditions of a master database server and a plurality of slave database servers, and generates a list of available database server clusters; if the master database server is found to be unavailable, Then select an available slave database server from the cluster of slave database servers and promote it to the new master database server; if one or more slave database servers are found to be unavailable, one or more unavailable slave database servers will be removed from the Delete from the database server cluster list; the database monitoring server obtains the available master database server and slave database server cluster list from the database sentinel server, and saves the list to Zookeeper; the cluster server obtains the available master and slave database server list from Zookeeper , which automatically selects the available master and slave database servers to connect to.

Description

technical field [0001] The present application relates to the technical field of communication, and in particular, relates to an application method of a master-slave server system and the system. Background technique [0002] In recent years, with the development of the mobile Internet, both the scope and the frequency of use of the mobile Internet are increasing day by day. [0003] Whether it is a website server or an application server, the traffic will increase with the development. These will directly cause the load of the server to become heavier and heavier, requiring the processor to have higher processing capabilities. In addition to upgrading the server configuration to improve processing capabilities, you can also improve processing capabilities by changing the server architecture. When changing the server architecture, the network configuration of the server or the business content deployed on the server will change along with it. After the network configurati...

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/24H04L12/26H04L29/08
CPCH04L41/0668H04L43/0817H04L67/10
Inventor 陈治国
Owner BEIJING LOCOJOY 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