CN100534070C - Method and system for implementing application server load balancing - Google Patents

Method and system for implementing application server load balancing Download PDF

Info

Publication number
CN100534070C
CN100534070C CNB2007101461490A CN200710146149A CN100534070C CN 100534070 C CN100534070 C CN 100534070C CN B2007101461490 A CNB2007101461490 A CN B2007101461490A CN 200710146149 A CN200710146149 A CN 200710146149A CN 100534070 C CN100534070 C CN 100534070C
Authority
CN
China
Prior art keywords
application server
user
server
domain name
cluster
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CNB2007101461490A
Other languages
Chinese (zh)
Other versions
CN101115016A (en
Inventor
祁小满
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Innovation Technology Co ltd
Original Assignee
UIT STORAGE TECHNOLOGY (SHENZHEN) Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by UIT STORAGE TECHNOLOGY (SHENZHEN) Co Ltd filed Critical UIT STORAGE TECHNOLOGY (SHENZHEN) Co Ltd
Priority to CNB2007101461490A priority Critical patent/CN100534070C/en
Publication of CN101115016A publication Critical patent/CN101115016A/en
Application granted granted Critical
Publication of CN100534070C publication Critical patent/CN100534070C/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention discloses a method to realize application server, comprising the following steps: a domain name analyzing server receives a request with application server cluster domain name sent by a user, and assigns an application server with an IP address mark to the user from the pre-stored application server IP address list corresponding to the domain name; the application server assigned to the user locates an application server for the user according to the current load information of each application server in the application server cluster stored in a meta-data base server, and feedbacks the application server information to the user. The located server stores the file data uploaded by the user in the storage device at the network side during the communication with the user. The invention can realize direct P2P data transmission, balance distribution operations, and make full use of every application server resource in the application server cluster.

Description

A kind of method and system that realize application server load balancing
Technical field
The present invention relates to the Network storage technology field, relate in particular to a kind of method and system that realize application server load balancing.
Background technology
Network disk (WebDisk) business is mainly used in file and uploads, downloads, and for better expandability, high availability are provided, the application server in the WebDisk system is disposed in the mode of trooping usually, to realize the load balancing of application server.But all there are some problems in more existing load technologies when handling the WebDisk business.
As Linux virtual server (LVS, Linux Virtual Server) IP virtual server (IPVS) software in, its three kinds of load-balancing techniques that adopt all can't solve fully uploads when downloading the loading problem of load balance scheduler (Load Balance Box).The LVS project provides a LVS framework of realizing Scalable Network Services, and as shown in Figure 1, in this LVS framework, load balance scheduler is responsible for job scheduling, makes the rear end real server load after the scheduling reach balanced; Real server is used under the scheduling of load balance scheduler, and request message that the reception user sends and feedback response message are finished the download of uploading of data to the user.In this LVS framework, the three kinds of method operation principles and the defective of IP load balancing are as follows:
1.Virtual?Server?via?Network?Address?Translation(VS/NAT)
By network address translation, the destination address of the request message that load balance scheduler rewriting user sends according to default dispatching algorithm, is tasked the request message branch real server of rear end; When the response message of real server passed through load balance scheduler, the source address of message was rewritten, and returns to the client again, finishes whole load dispatch process.
The shortcoming of this mode is no matter to upload or download, and data all must be through load balance scheduler, and it is a hotspot device in the system obviously, uploading in the download system of the such big data quantity of WebDisk, is easy to become performance bottleneck.
2.Virtual?Server?via?IP?Tunneling(VS/TUN)
When adopting the NAT technology, because the response message of request message that the user sends and real server feedback all must carry out address rewrite through load balance scheduler, when the user asks to get more and more, the disposal ability of load balance scheduler will become bottleneck like this.In order to address this problem, load balance scheduler is forwarded to real server to request message by IP tunnel (IP Tunneling), and real server directly returns to the user with response message, and load balance scheduler only needs processing request message like this.Because ordinary circumstance lower network service response is big more many than request message, so after adopting the VS/TUN technology, the maximum throughput of cluster system can improve 10 times.
The shortcoming of this mode is, though walked around load balance scheduler during data download, when uploading data, data still must be through load balance scheduler, and it still is a hotspot device in the system when uploading data, so still there is bottleneck problem.
3.Virtual?Server?via?Direct?Routing(VS/DR)
The VS/DR mode sends to real server by the MAC Address of the request message rewriting the user and send with request message, and real server directly returns to the user with the response message of feedback.The same with above-mentioned VS/TUN mode, the VS/DR technology can greatly improve the retractility of cluster system.This method does not have the expense of IP tunnel, and the real server in trooping do not have to support the requirement of IP tunneling protocol yet, but requires load balance scheduler and real server all to have a network interface card to be connected on the same physics network segment.
This mode is compared with IP Tunneling, though reduced the expense of IP tunnel, but still do not have to solve the bottleneck problem of hotspot device when uploading data.
Summary of the invention
The invention provides a kind of method and system that realize application server load balancing, in order to solve prior art in data upload or when downloading, load balance scheduler becomes the problem of transfer of data bottleneck easily.
The invention provides a kind of system that realizes application server load balancing, comprising:
The application server cluster that includes at least one application server;
The metadata database server stores the current load information of each application server in the described application server cluster;
Domain name resolution server, store the corresponding relation of described application server cluster domain name and this middle application server IP address of trooping, being used for when the user visits this application server cluster based on described application server cluster domain name, is the user distributes an IP address designation in application server cluster application server according to the described corresponding relation of storing;
Be assigned to user's application server in the application server cluster, according to the current load information of storing in the described metadata database server of each application server, for the user locatees an application server, and this Application Server information is fed back to the user;
Memory device is used for storing the user and the described application server that is positioned communicates the file data that process is uploaded.
The invention provides a kind of method that realizes application server load balancing, comprise step:
Domain name resolution server receives the request that carries application server cluster domain name that the user sends, and
Storage in advance with this domain name corresponding application server IP address list in distribute the application server of an IP address designation to give this user;
Be assigned to user's application server,,, and this Application Server information fed back to the user for this user locatees an application server according to the current load information of each application server in the application server cluster of storing in the metadata database server;
Described located server is communicating in the process with described user, and the document data saving that the user is uploaded is in the memory device of network side.
The present invention eliminates the bottleneck problem of this hotspot device of load balance scheduler, realizes direct, point-to-point transfer of data; Simultaneously can be according to the loading condition of each application server in the application server cluster, balanced distribution operation has made full use of the application server resource of each in the application server cluster.
Description of drawings
Fig. 1 is a Linux Virtual Server framework in the prior art;
Fig. 2 is WebDisk system global structure figure in the embodiment of the invention;
Fig. 3 is a WebDisk load balancing business process map in the embodiment of the invention.
Embodiment
Describe the present invention in detail below in conjunction with Figure of description.
As shown in Figure 2, the WebDisk system of the present invention's proposition comprises: application server cluster 201, domain name resolution server 202, metadata database server 203 and memory device 204.
Application server cluster 201 is promptly formed application server cluster 201 as the application server 1...... application server n among the figure, and all application servers all can be used as load balance scheduler, is responsible for job scheduling; Domain name resolution server (DNS) 202, store described application server cluster domain name and this troop in the corresponding relation of all or part of application server IP address, be used for when the user visits this application server cluster based on described application server cluster domain name, cry (Round Robin) mode in application server cluster 201 with wheel, for the user distributes the application server of an IP address designation as load balance scheduler; Metadata database server 203, be used for depositing the metadata of WebDisk system, comprise the current loading condition of each application server in the application server cluster 201 in the described metadata, wherein the current loading condition of each application server can regularly or according to other conditions be reported by corresponding application server, the data of storage can be shared for all application servers in the metadata database server 203, be assigned to user's application server as load balance scheduler, by the current loading condition of each application server of storage in the query metadata database server 203, obtain the lightest application server of present load is given the user as configuration actual communication server; Memory device 204, be used for depositing the business datum (mainly refer to upload file data) of WebDisk system, for all application servers are shared, can be various DAS, NAS, SAN memory device, when it is used to deposit the user and communicates by the actual communication server with configuration, the file data of uploading etc.
Described application server cluster is big, a virtual server, form by many application servers, the user visits this by same domain name and troops, like this concerning the user, the quantity of application server is transparent, be that the user only feels that a virtual big server exists, and do not know specifically to have how many platform application servers.
Each application server is reported own current load condition according to certain strategy (as time interval strategy, load variations strategy etc.) in the application server cluster 201, and load state information is recorded in the metadata database server 203 of system.For example the load as if application server changes, and has surpassed certain load variations threshold values, just can report and upgrade the load state information of oneself; No matter whether the load of application server change took place, application server all will be reported the once load condition of oneself in the official hour interval; If surpass official hour at interval, application server is not reported the load condition of oneself yet, and the state that this application server will be looked by system is unavailable, just can be again to its distribution operation as the server of load balance scheduler.
The WebDisk system load balancing operation flow that the present invention proposes comprises the steps: as shown in Figure 3
Step 1, user initiate a request, carry the domain name of the application server cluster of user capture in the described request;
The domain name that step 2, domain name resolution server (DNS) provide according to the user, the mode of (RoundRobin) of crying with wheel is distributed an application server IP for it;
In this step, in DNS, store application server cluster domain name, and this of this domain name correspondence troop in each application server IP tabulation (be at least an application server IP, mostly be most all application server IP), these application servers that are registered will serve as load balance scheduler, be responsible for job scheduling; DNS with wheel mode the user side request is navigated on the application server of an IP address designation in the IP tabulation.For example, application server cluster domain name is webdisk.com.cn, and the application server IP address list during this domain name correspondence is trooped is IP1, IP2 and IP3, and these three application servers will serve as load balance scheduler; DNS with wheel mode user request is navigated to IP1, on the application server of an IP address designation among IP2 and the IP3.Every station server in trooping is an application server, can be again load balance scheduler.
Step 3, set up communicating to connect of user side and the above-mentioned application server that navigates to;
Step 4.1-4.2, this application server that navigates to obtain the load condition table of each up-to-date application server from metadata database, find out the lightest application server of present load;
Step 5, this application server that navigates to feed back to user side with the lightest Application Server information of load that finds;
Step 6, user side are repositioned onto operation on the lightest application server of this load, carry out transfer of data, and the document data saving that the user is uploaded is in the memory device 204 of network side.
Dotted line is a control information flow among Fig. 3, and this part information data amount is very little comparatively speaking; Solid line is an actual traffic data stream, just is meant in the WebDisk business and uploads the downloaded files data that data volume is very big.
Owing to eliminated the bottleneck problem of this hotspot device of load balance scheduler, direct, point-to-point transfer of data that the present invention has realized; While is according to the loading condition of each application server in the application server cluster, balanced distribution operation has made full use of each the application server resource in trooping, and has therefore simplified the WebDisk system, improve the data upload download efficiency, helped the realization of load balancing.
Obviously, those skilled in the art can carry out various changes and modification to the present invention and not break away from the spirit and scope of the present invention.Like this, if of the present invention these are revised and modification belongs within the scope of claim of the present invention and equivalent technologies thereof, then the present invention also is intended to comprise these changes and modification interior.

Claims (8)

1, a kind of system that realizes application server load balancing is characterized in that, comprising:
The application server cluster that includes at least one application server;
The metadata database server stores the current load information of each application server in the described application server cluster;
Domain name resolution server, store the corresponding relation of described application server cluster domain name and this middle application server IP address of trooping, being used for when the user visits this application server cluster based on described application server cluster domain name, is the user distributes an IP address designation in application server cluster application server according to the described corresponding relation of storing;
Be assigned to user's application server in the application server cluster, according to the current load information of storing in the described metadata database server of each application server, for the user locatees an application server, and this Application Server information is fed back to the user;
Memory device is used for storing the user and the described application server that is positioned communicates the file data that process is uploaded.
2, the system as claimed in claim 1 is characterized in that, reports the metadata database server by the load information that self is current of each application server in the described application server cluster and stores.
3, system as claimed in claim 2 is characterized in that, described each application server regularly reports the metadata database server with the load information of self; Or
Each when the load information of self changes, self load information is reported the metadata database server.
4, the system as claimed in claim 1 is characterized in that, the domain name resolution server distributes an IP address designation in the wheel mode of crying in application server cluster application server is given the user.
5, the system as claimed in claim 1, it is characterized in that, the described application server that is assigned to the user is according to the current load information of storing in the metadata database server of each application server, for the user locatees the lightest application server of present load.
6, a kind of method that realizes application server load balancing is characterized in that, comprises step:
Domain name resolution server receives the request that carries application server cluster domain name that the user sends, and
Storage in advance with this domain name corresponding application server IP address list in distribute the application server of an IP address designation to give this user;
Be assigned to user's application server,,, and this Application Server information fed back to the user for this user locatees an application server according to the current load information of each application server in the application server cluster of storing in the metadata database server;
Described located server is communicating in the process with described user, and the document data saving that the user is uploaded is in the memory device of network side.
7, method as claimed in claim 6 is characterized in that, the described application server load information current according to each application server that is assigned to the user is for the user locatees the lightest application server of present load.
8, method as claimed in claim 6 is characterized in that, the domain name resolution server is mode with wheel, storage in advance with this domain name corresponding application server IP address list in distribute the application server of an IP address designation to this user.
CNB2007101461490A 2007-08-23 2007-08-23 Method and system for implementing application server load balancing Active CN100534070C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2007101461490A CN100534070C (en) 2007-08-23 2007-08-23 Method and system for implementing application server load balancing

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2007101461490A CN100534070C (en) 2007-08-23 2007-08-23 Method and system for implementing application server load balancing

Publications (2)

Publication Number Publication Date
CN101115016A CN101115016A (en) 2008-01-30
CN100534070C true CN100534070C (en) 2009-08-26

Family

ID=39023137

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2007101461490A Active CN100534070C (en) 2007-08-23 2007-08-23 Method and system for implementing application server load balancing

Country Status (1)

Country Link
CN (1) CN100534070C (en)

Families Citing this family (35)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101355512B (en) * 2008-09-09 2011-04-20 创新科存储技术(深圳)有限公司 Data transmission system, method and transmission control server
CN101848137B (en) * 2009-03-26 2012-11-21 北京快网科技有限公司 Load balancing method and system applied to three-layer network
CN101510880A (en) * 2009-03-27 2009-08-19 北京中星微电子有限公司 Streaming media system, device and method
CN101938504A (en) * 2009-06-30 2011-01-05 深圳市融创天下科技发展有限公司 Cluster server intelligent dispatching method and system
CN101963969B (en) * 2009-07-22 2013-02-20 阿里巴巴集团控股有限公司 Method and database server for realizing load balancing in Oracle RAC (Real Application Cluster) system
CN101631143B (en) * 2009-08-27 2012-07-04 中兴通讯股份有限公司 Multi-server system in load-balancing environment and file transmission method thereof
CN101719082B (en) * 2009-12-24 2013-01-02 中国科学院计算技术研究所 Method and system for dispatching application requests in virtual calculation platform
CN102158512B (en) * 2010-02-11 2016-03-30 联想(北京)有限公司 A kind of load equilibration scheduling method, Apparatus and system
CN101815104A (en) * 2010-03-19 2010-08-25 中兴通讯股份有限公司 Network protocol address feedback method and domain name resolution server
CN102724165A (en) * 2011-03-29 2012-10-10 海尔集团公司 Control method and device for terminal communication, and management server
CN103092527A (en) * 2011-10-31 2013-05-08 深圳市快播科技有限公司 Storage method and storage system for small files
CN103166979B (en) * 2011-12-08 2016-01-27 腾讯科技(深圳)有限公司 Adaptive load balancing implementation method and access server
CN103188205B (en) * 2011-12-27 2017-09-12 腾讯科技(北京)有限公司 A kind of information method for uploading and system based on LVS framework
CN103368841B (en) * 2012-03-29 2016-08-17 深圳市腾讯计算机系统有限公司 Message forwarding method and device
CN103793275B (en) * 2012-10-31 2018-09-04 北京华胜天成科技股份有限公司 Realize the system and processing method of load balancing
CN103795766B (en) * 2012-11-02 2018-11-23 腾讯科技(深圳)有限公司 A kind of P2SP multi-source download system
CN103095683A (en) * 2012-12-13 2013-05-08 北京奇虎科技有限公司 Linux virtual server scheduling system and method
CN102984079B (en) * 2012-12-18 2016-11-02 中国电子科技集团公司第十五研究所 Control method for equalizing load and system
CN103905531A (en) * 2014-03-14 2014-07-02 浪潮电子信息产业股份有限公司 Method for converting load balancing among nodes in cluster storage system
CN104486402B (en) * 2014-12-11 2017-09-12 江苏爱信诺航天信息科技有限公司 A kind of method based on large-scale website combined equalization
CN104506609B (en) * 2014-12-22 2018-03-27 合一网络技术(北京)有限公司 Automatic monitoring server state simultaneously adaptively adjusts the method and its device of service
CN104683339A (en) * 2015-02-16 2015-06-03 山东信通电子股份有限公司 Load coordination-supported element-intensive identity card verifying method
CN104993953B (en) * 2015-06-19 2019-02-26 北京奇虎科技有限公司 The method and apparatus for detecting network service state
CN105847462A (en) * 2016-03-31 2016-08-10 乐视控股(北京)有限公司 Domain name resolution method and device
CN106850759A (en) * 2016-12-31 2017-06-13 广州勤加缘科技实业有限公司 MySQL database clustering methods and its processing system
CN107317880B (en) * 2017-08-08 2020-05-26 苏州浪潮智能科技有限公司 Method and device for realizing load balance
CN107547643B (en) * 2017-08-29 2021-06-29 新华三技术有限公司 Load sharing method and device
CN108551477B (en) * 2018-03-28 2020-11-20 深圳市网心科技有限公司 Data transmission channel establishing system, network storage device, server and method
CN108737567B (en) * 2018-06-15 2021-10-26 广东美的制冷设备有限公司 Real-time clock providing method, server, home appliance, system, and medium
CN108769293B (en) * 2018-08-31 2022-02-25 郑州云海信息技术有限公司 IP address resolution method and related device
CN109803002A (en) * 2018-12-29 2019-05-24 广东劲天科技有限公司 Charging pile communication means, device, equipment and storage medium based on domain name
CN109819066A (en) * 2019-01-31 2019-05-28 平安科技(深圳)有限公司 A kind of intelligently parsing field name method and device based on geographical location
CN109819057B (en) * 2019-04-08 2020-09-11 科大讯飞股份有限公司 Load balancing method and system
CN112333273B (en) * 2020-11-06 2023-03-14 杭州迪普科技股份有限公司 Method and system for forwarding access request
CN114827674B (en) * 2022-03-30 2023-09-05 北京奇艺世纪科技有限公司 Network resource display method, device and system

Also Published As

Publication number Publication date
CN101115016A (en) 2008-01-30

Similar Documents

Publication Publication Date Title
CN100534070C (en) Method and system for implementing application server load balancing
US7765304B2 (en) Managing web tier session state objects in a content delivery network (CDN)
US7277896B2 (en) File sharing system and client apparatus
US7650416B2 (en) Content delivery for client-server protocols with user affinities using connection end-point proxies
CN103237046B (en) Support distributed file system and the implementation method of mixed cloud storage application
EP3242463B1 (en) Content distribution method and system for mobile terminal application
CN110138606B (en) Container network configuration method and system
US8250171B2 (en) Content delivery apparatus, content delivery method, and content delivery program
CN113965560A (en) Data transmission method, proxy server, storage medium, and electronic device
US7685312B1 (en) Resource location by address space allocation
KR20130088774A (en) System and method for delivering segmented content
US20130138780A1 (en) Data communications networks, systems, methods and apparatus
JP2008544690A (en) Multicast download using route information
US8086629B2 (en) Content delivery apparatus, content delivery method, and content delivery program
CN104601724A (en) Method and system for uploading and downloading file
JP2018537736A (en) Managing multiple clusters in a distributed file system
KR100834361B1 (en) Effiviently supporting multiple native network protocol implementations in a single system
CN103595743B (en) A kind of method, apparatus and system of downloading application software
CN110324406B (en) Method for acquiring business data and cloud service system
JP2002032282A (en) System and method for distributing contents on network and program product of the system and method
CN101074991A (en) Method and system for processing geographic position information and middleware in geographic information system
US7627650B2 (en) Short-cut response for distributed services
CN109120556B (en) A kind of method and system of cloud host access object storage server
KR20110057854A (en) Apparatus for relaying contents, system and method for servicing combined cdn using the same
CN109067573B (en) Traffic scheduling method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CP03 Change of name, title or address
CP03 Change of name, title or address

Address after: 518057 Shenzhen Software Park, No. 9, 501, 502, Science and Technology Middle Road, Nanshan District, Shenzhen City, Guangdong Province

Patentee after: Shenzhen Innovation Technology Co.,Ltd.

Address before: 518057 Fangda Building 1501, South 12 Road Science and Technology Park, Nanshan District, Shenzhen City, Guangdong Province

Patentee before: UITSTOR (USA) Inc.

PE01 Entry into force of the registration of the contract for pledge of patent right
PE01 Entry into force of the registration of the contract for pledge of patent right

Denomination of invention: Method and system for implementing application server load balancing

Effective date of registration: 20200707

Granted publication date: 20090826

Pledgee: Shenzhen hi tech investment small loan Co.,Ltd.

Pledgor: Shenzhen Innovation Technology Co.,Ltd.

Registration number: Y2020980003829

PC01 Cancellation of the registration of the contract for pledge of patent right
PC01 Cancellation of the registration of the contract for pledge of patent right

Date of cancellation: 20221121

Granted publication date: 20090826

Pledgee: Shenzhen hi tech investment small loan Co.,Ltd.

Pledgor: Shenzhen Innovation Technology Co.,Ltd.

Registration number: Y2020980003829