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

Master-slave relation switching method, slave server, master server and system

A main server, server technology, applied in the server field, can solve the problem of low request response efficiency, and achieve the effect of shortening request response time, improving reliability, and improving request response efficiency

Pending Publication Date: 2020-05-15
XIAMEN KUAISHANGTONG TECH CORP LTD
View PDF5 Cites 3 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] The purpose of the embodiments of the present invention is to provide a master-slave relationship switching method, a slave server, a master server and a system, aiming to solve the technical problem of low request response efficiency in the existing server management and control scheme

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 relation switching method, slave server, master server and system
  • Master-slave relation switching method, slave server, master server and system
  • Master-slave relation switching method, slave server, master server and system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0054] see Figure 4 , is a schematic flowchart of the master-slave relationship switching method provided in Embodiment 1 of the present invention, which is applied to a slave server, and the slave server and the master server are in the same local area network, and the slave server can be implemented by software and / or hardware, The method specifically includes steps S01 to S04:

[0055] Step S01, calculate the load score of the slave server according to a preset calculation formula.

[0056] Wherein, the preset calculation formula can be as follows:

[0057] score=A*ip offet +B*cpu%+C*mem%;

[0058] Among them, score is the load score, cpu% is the CPU usage rate, mem% is the memory usage rate, and ip offet is the offset between the ip address of the slave server and the ip address of the master server, and A, B, and C are weight coefficients. The lower the score, the lower the resource usage, the higher the priority, and the server with the highest priority will be swi...

Embodiment 2

[0072] see Figure 5 , is a schematic flowchart of a master-slave relationship switching method provided in Embodiment 2 of the present invention, which is applied to a slave server. The slave server and the master server are in the same local area network, and the slave server can be controlled by software and / or hardware. To achieve, the method includes step S11 to step S16.

[0073] Step S11, calculating the load score of the slave server according to a preset calculation formula.

[0074] Wherein, the preset calculation formula is as follows:

[0075] score=0.2*ip offet +0.5*cpu%+0.3*mem%;

[0076] Among them, score is the load score, cpu% is the CPU usage rate, mem% is the memory usage rate, and ip offet is the offset between the ip address of the slave server and the ip address of the master server.

[0077] Step S12, acquiring the load score of the main server.

[0078] Step S13, judging whether the load score of the master server is higher than the load score of ...

Embodiment 3

[0088] see Figure 7 , is a schematic flowchart of a master-slave relationship switching method provided in Embodiment 3 of the present invention, which is applied to a master server, where the master server and at least one slave server are in the same local area network, and the master server can be controlled by software and / or implemented by hardware, the method includes step S21 to step S22.

[0089] Step S21, judging whether the switching signal sent by the server is received.

[0090] Step S22, switching the primary server to a backup primary server.

[0091] Specifically, the step of switching the primary server to a backup primary server may specifically include:

[0092] Switching the state of the main server to a backup state, and at the same time changing the current address of the main server to the original address of the main server.

[0093] Wherein, the original address is an originally assigned IP address. Specifically, when the main server detects a swit...

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 master-slave relationship switching method, which comprises the following steps of: calculating a load score of a slave server according to a preset calculation formula; obtaining a load score of the master server; judging whether the load score of the master server is higher than the load score of the slave server or not; and if the judgment result is yes, sending a switching signal to the master server, so that the master server is switched to a backup master server, and the slave server is switched to the master server. According to the invention, a master-slave competition mechanism of the server is introduced. The server does not need to be independently configured as a resource configuration server; server resources are fully utilized, in addition, a client can directly send request information to a current master server, the request response time of the server is shortened, the request response efficiency is improved, meanwhile, a candidate master serveris introduced to serve as a backup server of the main server, data storage and recovery work is well done, and the reliability of the system is improved.

Description

technical field [0001] The invention belongs to the technical field of servers, and in particular relates to a master-slave relationship switching method, a slave server, a master server and a system. Background technique [0002] The Media Resource Control Protocol (Media Resource Control Protocol, MRCP) provides a mechanism for those clients that need to perform voice processing to access and control media processing resources (such as ASR, TTS engine, etc.) through the network. The MRCP protocol supports functions such as voiceprint identification and identification (Speaker Identification / Speaker Verification). [0003] Specifically, the MRCP protocol mainly establishes a session connection between the client and the resource server. see figure 1 , in the prior art, the current MRCP distributed server mainly includes an MRCP resource management server and multiple MRCP servers connected to the MRCP resource management server. The entire control process is: the client s...

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): G06F9/50G06F11/20
CPCG06F9/505G06F9/5072G06F11/2041
Inventor 叶林勇肖龙源李稀敏蔡振华刘晓葳
Owner XIAMEN KUAISHANGTONG TECH CORP LTD