Unlock instant, AI-driven research and patent intelligence for your innovation.

A master-slave server system application method, system, server and storage medium

The technology of a server system and application method is applied in the field of systems, master-slave server system application methods, servers and storage media, and can solve problems affecting the compatibility of master-slave server system application methods and increase subsequent system maintenance costs.

Active Publication Date: 2019-11-08
苏州沁游网络科技有限公司
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, the disadvantage of this method is that this method needs to add a Zookeeper component, which affects the compatibility of the master-slave server system application method in the operating environment, and at the same time increases the maintenance cost of the subsequent system

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 master-slave server system application method, system, server and storage medium
  • A master-slave server system application method, system, server and storage medium
  • A master-slave server system application method, system, server and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0041] On the one hand, if figure 1 The present invention provides a master-slave server system application method, which includes,

[0042] Step S110, when the business service is in the working state, control the current master cache server and the current slave cache server to perform synchronous cache data operations; the master cache server and the slave cache server are synchronized before the business service is in the working state After the definition is completed, after the primary cache server and the secondary cache server are defined, a relationship is established between the business service and the primary cache server; after the relationship between the business service and the primary cache server is established, The business service starts to provide corresponding services, and at the same time, synchronous cache data processing is performed between the slave cache server and the master cache server, so that the data on the slave cache server is consistent wi...

Embodiment 2

[0051] As a further preferred embodiment, such as figure 2 As shown, the above-mentioned a kind of master-slave server system application method specifically includes:

[0052] Step S209, after the sentinel service node obtains the address information of the current primary cache server, the business service connects to the current primary cache server according to the address information so that the business service is in a working state. Specifically, after the current primary cache server and the current secondary cache server are determined, start the business service, and after the business service is successfully started, first connect to the sentinel service node, and the sentry service node obtains the current primary cache server's Address information, then, the business service connects to the current primary cache server according to the address information, and the current primary cache server can be in a working state when the business service is connected.

[0...

Embodiment 3

[0063] The present invention further provides a master-slave server system application system, which includes:

[0064] The synchronization unit controls the operation of synchronizing cached data between the current master cache server and the current slave cache server when the business service is in a working state;

[0065] A detection unit, the sentinel service detects the heartbeat of the current primary cache server and the current secondary cache server;

[0066] The update unit is configured to control the current secondary cache server to be updated as the next primary cache server when the heartbeat of the current primary cache server is in an abnormal state.

[0067] As a further preferred embodiment, the above-mentioned master-slave server system application system further includes:

[0068] The connection unit is configured to connect the business service to the current primary cache server according to the address information after the sentinel service obtains ...

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 embodiment of the present invention relates to the field of communication technology, and in particular to a master-slave server system application method, system, server, and storage medium, wherein a master-slave server system application method includes, when the business service is in the working state, controlling The current master cache server and the current slave cache server perform synchronous cache data operations; the sentinel service detects the heartbeat of the current master cache server and the current slave cache server; the heartbeat of the current master cache server is in an abnormal state Next, control the update of the current secondary cache server to the next primary cache server.

Description

technical field [0001] The embodiments of the present invention relate to the technical field of communication, and in particular to a master-slave server system application method, system, server and storage medium. 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. 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...

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/06H04L29/08
CPCH04L67/1001H04L67/01
Inventor 宋大伟张丹
Owner 苏州沁游网络科技有限公司