Load balancing equipment-based session keeping method and system and load balancing equipment

A load balancing device and load balancing technology, applied in the computer field, can solve problems such as difficult identification and inapplicable forms, and achieve the effect of improving processing performance

Active Publication Date: 2015-07-29
SANGFOR TECH INC
View PDF7 Cites 36 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

This method can only record the session id in the URL. The session id requested by the client is not in the URL, but is not applicable when it ...

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
  • Load balancing equipment-based session keeping method and system and load balancing equipment
  • Load balancing equipment-based session keeping method and system and load balancing equipment
  • Load balancing equipment-based session keeping method and system and load balancing equipment

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0057] figure 2 The method for maintaining a session based on a load balancing device in this embodiment is shown, and the method for maintaining a session includes the following steps:

[0058] S11: Receive the HTTP request from the client.

[0059] S12: Determine whether a session identifier for identifying a session is embedded in the URL of the HTTP request and / or the header of the HTTP request. Understandably, the session ID can be embedded in the URL of the HTTP request or in the HTTP request header, or can be embedded in both the URL of the HTTP request and the HTTP request header. Understandably, by judging whether the URL and / or the HTTP request header is embedded with the session identifier, it can be identified whether most HTTP requests carry the session identifier, so as to achieve the purpose of session retention in this solution.

[0060] S13: If a session identifier is embedded in the URL of the HTTP request and / or the HTTP request header, then the keyword m...

Embodiment 2

[0081] Figure 6 Shown is the load balancing device in this embodiment. The load balancing equipment includes:

[0082]The information transceiving unit 10 is configured to receive an HTTP request from the client, and transfer the received HTTP response fed back by the server to the client.

[0083] Judging unit 20, for judging whether the URL of the HTTP request and / or the HTTP request header are embedded with a session identifier for identifying the session; and judging whether the HTTP request is a POST request or a GET request, and judging that the POST Whether the requested form has a session ID embedded in it to identify the session. That is, if the HTTP request is a POST request, it is judged whether a session identifier for identifying the session is embedded in the URL of the HTTP request, the HTTP request header and / or the form of the POST request; if the HTTP request is a GET request, only the HTTP request is judged Whether the URL and / or HTTP request header is e...

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 load balancing equipment-based session keeping method and system and load balancing equipment. The method comprises the following steps of receiving an HTTP (hyper text transport protocol) request from a client; determining whether the URL (uniform resource locator) and/or the head of the HTTP request are embedded with a session identity for identifying a session; if so, extracting the session identity through a keyword matching method or a regular expression method; determining whether a server corresponding to the session identity exists; if so, sending the HTTP request to the server corresponding to the session identity; if no session identity is embedded and no server corresponding to the session identity exists, sending the HTTP request to the server according to a load balancing scheduling algorithm; receiving an HTTP response fed back by the server and forwarding the HTTP response to the client. The load balancing equipment-based session keeping method can effectively improve the processing performance of the load balancing equipment, and without requiring the client to adopt a cookie-supported browser, can achieve session keeping.

Description

technical field [0001] The invention relates to the field of computers, in particular to a load balancing device-based session maintenance method and system, and the load balancing device. Background technique [0002] Load balancing (Load balance) is a server cluster technology that distributes a large number of client requests to multiple servers for processing according to a certain strategy, so that the processing capacity of the entire system reaches or approaches the sum of the processing capabilities of all servers. Session persistence (Session Persistence) refers to the identification of client requests through certain technical methods in the process of load balancing, so that requests originally belonging to the same session are always distributed (or scheduled) to the same server technology as much as possible . [0003] In the case of load balancing for multiple servers, each session creation only occurs on the current server, and other servers do not. The load...

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
IPC IPC(8): H04L29/08
CPCH04L67/1014H04L67/142
Inventor 曾定国
Owner SANGFOR TECH INC
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