Soft load balancing implementation scheme based on API

A technology of soft load and implementation method, applied in resource allocation, program control design, instruments, etc., can solve problems such as transaction failure, address list is not up-to-date, high client integration capability requirements, etc., to meet elastic expansion and contraction, reduce integration Difficulty, effect of ensuring consistency

Active Publication Date: 2019-08-30
BANK OF SHANGHAI
View PDF5 Cites 3 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The disadvantages of the ZOOKEEPER load balancing solution based on the registration center are: 1) The registration center is a centralized node, which is contrary to the concept of decentralization; 2) The cluster server registers on the registration center, and the registration center will register the cluster server The information is sent to the client. If the registration center is abnormal, the client may not be able to obtain the information of the cluster server in time; 3) The load and communication functions between the client and the cluster server need to be coded by the client, and the integration capability of the client is required higher
Disadvantages are: 1) You need to install an independent module on the client, and you need to start the relevant detection process; 2) If the detection process fails, the available address list is not up-to-date, which will lead to transaction failure; 3) Cannot dynamically perceive changes in cluster server nodes , need to maintain the cluster server address list on the client

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
  • Soft load balancing implementation scheme based on API
  • Soft load balancing implementation scheme based on API
  • Soft load balancing implementation scheme based on API

Examples

Experimental program
Comparison scheme
Effect test

Embodiment

[0049] Such as figure 1 As shown: API mainly includes two modules of communication and detection, which are embedded in the client as a whole. In general, the client initiates a request and receives a response by calling the synchronous or asynchronous interface of the API, and the communication mode of TCP synchronous or asynchronous short connection is adopted between the API and the cluster server. The API can regularly detect the survival status of each node in the cluster server and obtain the cluster IP configuration and its load balancing strategy.

[0050] Step ①: The client calls the synchronous or asynchronous interface in the API communication module to initiate a service request, and waits for a response synchronously or asynchronously.

[0051] Step ②: The API communication module applies to the detection module for the available IP address of the cluster server node.

[0052] Step ③: The API communication module obtains the IP address returned by the detection ...

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 soft load balancing implementation scheme based on an API (Application Program Interface), which mainly comprises a communication module and a detection module which are embedded into a client as a whole. In general, the client side initiates a request and receives a response by calling a synchronous or asynchronous interface of the API, and a communication mode of TCP synchronous or asynchronous short connection is adopted between the API and the cluster server side. And the API can regularly detect the survival state of each node in the cluster server and obtain cluster IP configuration and a load balancing strategy thereof. The implementation scheme has the advantages that hardware equipment support is not needed, and the cost is effectively reduced; a synchronous communication mode and an asynchronous communication mode are supported, and a communication module is integrated in an API and is transparent to a client; load balancing is supported, and load requirements of personalized load factors are met; non-perception of the expansion or contraction client is achieved, and the elastic expansion and contraction function is met.

Description

technical field [0001] The invention relates to the technical field of load balancing, in particular to an implementation scheme of API-based soft load balancing. Background technique [0002] Load balancing is a very important link in the cluster system. Requests are dispatched to several nodes in the network for processing through load balancing to ensure high availability of the cluster system. Although hardware devices such as F5 can solve load and expansion problems well, they are expensive, and F5 itself has a single point of danger. The soft load is favored by users for its low cost and convenient function development. [0003] At present, there are various modes for implementing soft load. There are not only open source framework products, such as registration center-based ZOOKEEPER, but also various self-designed and developed load balancing products or strategies. [0004] The disadvantages of the ZOOKEEPER load balancing solution based on the registration center...

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/50
CPCG06F9/5072G06F9/5083
Inventor 魏乾顺曹广智陈杰王辉李孔源
Owner BANK OF SHANGHAI
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