Server connection method and server system

A server system and connection method technology, applied in the field of server connection method and server system, can solve the problems of increasing the response time of web server and database processing, long waiting for web server processing, not notifying the web server, etc. The effect of waiting and reducing network communication time

Active Publication Date: 2017-04-19
北京世界星辉科技有限责任公司
View PDF6 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] In the processing mode of the prior art, since there is one more LVS network connection in the process of processing the request, this will inevitably increase the response time for processing responses between the Web server and the database. If the database or other servers in the background require a long When processing time, LVS will disconnect the connection with the background database, but does not notify the front web server, which causes the web server to wait for a long time

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
  • Server connection method and server system
  • Server connection method and server system
  • Server connection method and server system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0025] Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited by the embodiments set forth herein. Rather, these embodiments are provided for more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.

[0026] Such as figure 2 As shown, when the web server needs to communicate with the back-end server, such as the second database in a database cluster, first check whether there is a list of back-end server clusters in the local cache, if no back-end server cluster in the local cache is found list, the configuration server obtains the list of back-end server clusters from the back-end server cluster, and caches the list locally; w...

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 discloses a server connection method which is used for connecting a WEB server to a backend server. The method comprises the following steps: the Web server checks whether a backend server cluster list is locally cached; the Web server acquires the backend server cluster list through a configuration server and locally caches the backend server cluster list if the backend server cluster list is not cached; the Web server acquires the cached backend server cluster list and selects a specified backend server from the cached backend server cluster list if the backend server cluster list is cached; and the Web server is directly connected with the backend server. The process of LVS connection processing is omitted based on the connection method of the configuration server, thereby reducing the time for network communication during processing request process and solving the problem that the Web server has to wait for a long time after a LVS is disconnected in the prior art.

Description

technical field [0001] The invention relates to a server connection method and server system, in particular to a zookeeper-based server connection method and server system. Background technique [0002] At present, in some internal systems of enterprises, the access from the Web server to the background storage server usually needs to go through LVS. LVS is an open source software, and its full name is: Linux Virtual Server, which can realize simple load balancing under the LINUX platform. For example, in a cloud storage system, the web server receives the files uploaded by the user, and then selects the storage node through LVS, and saves the data in the storage node. Such as figure 1 As shown, if the web server wants to access a database in the backend database server cluster for data access, it needs to deal with the database through LVS. The usual process is that the web server first connects to LVS, and then LVS takes a backend according to the algorithm. The database...

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/08
Inventor 冯所范刘中超王超
Owner 北京世界星辉科技有限责任公司
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