JP2004536406A - Method and apparatus for session replication and failover - Google Patents
Method and apparatus for session replication and failover Download PDFInfo
- Publication number
- JP2004536406A JP2004536406A JP2003514431A JP2003514431A JP2004536406A JP 2004536406 A JP2004536406 A JP 2004536406A JP 2003514431 A JP2003514431 A JP 2003514431A JP 2003514431 A JP2003514431 A JP 2003514431A JP 2004536406 A JP2004536406 A JP 2004536406A
- Authority
- JP
- Japan
- Prior art keywords
- server
- session
- request
- client
- primary
- 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.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims description 93
- 230000010076 replication Effects 0.000 title description 6
- 235000014510 cooky Nutrition 0.000 claims description 49
- 230000008569 process Effects 0.000 claims description 29
- 235000010627 Phaseolus vulgaris Nutrition 0.000 claims description 15
- 244000046052 Phaseolus vulgaris Species 0.000 claims description 15
- 238000012545 processing Methods 0.000 claims description 9
- 230000004044 response Effects 0.000 claims description 9
- 230000008859 change Effects 0.000 claims description 5
- 230000002085 persistent effect Effects 0.000 claims description 4
- 238000004891 communication Methods 0.000 claims description 3
- 230000003362 replicative effect Effects 0.000 claims 7
- 244000277285 Cassia obtusifolia Species 0.000 claims 1
- 235000006719 Cassia obtusifolia Nutrition 0.000 claims 1
- 235000014552 Cassia tora Nutrition 0.000 claims 1
- 238000013459 approach Methods 0.000 description 9
- 230000004888 barrier function Effects 0.000 description 5
- 238000010586 diagram Methods 0.000 description 5
- 238000012544 monitoring process Methods 0.000 description 3
- 230000008901 benefit Effects 0.000 description 2
- 230000007246 mechanism Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000001052 transient effect Effects 0.000 description 2
- 239000002699 waste material Substances 0.000 description 2
- 230000009471 action Effects 0.000 description 1
- 238000010923 batch production Methods 0.000 description 1
- 238000004140 cleaning Methods 0.000 description 1
- 230000008878 coupling Effects 0.000 description 1
- 238000010168 coupling process Methods 0.000 description 1
- 238000005859 coupling reaction Methods 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 230000007812 deficiency Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 230000009977 dual effect Effects 0.000 description 1
- 230000008030 elimination Effects 0.000 description 1
- 238000003379 elimination reaction Methods 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 238000007726 management method Methods 0.000 description 1
- 239000000463 material Substances 0.000 description 1
- 238000011084 recovery Methods 0.000 description 1
- 238000000926 separation method Methods 0.000 description 1
- 238000004088 simulation Methods 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 230000001360 synchronised effect Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1001—Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
- H04L67/1027—Persistence of sessions during load balancing
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1001—Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1001—Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
- H04L67/1034—Reaction to server failures by a load balancer
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/14—Session management
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/14—Session management
- H04L67/142—Managing session states for stateless protocols; Signalling session states; State transitions; Keeping-state mechanisms
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L69/00—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
- H04L69/40—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass for recovering from a failure of a protocol instance or entity, e.g. service redundancy protocols, protocol state redundancy or protocol service redirection
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1001—Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
- H04L67/1004—Server selection for load balancing
- H04L67/1008—Server selection for load balancing based on parameters of servers, e.g. available memory or workload
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Security & Cryptography (AREA)
- Computer And Data Communications (AREA)
- Multi Processors (AREA)
- Information Transfer Between Computers (AREA)
Abstract
本発明によるシステムは、ウェブブラウザーのようなネットワーククライアントからの要求に応じるために、一次サーバーを利用することができる。この一次サーバーは、一団のサーバー又はサーバー群から選ばれることができる。一次サーバーが選択されると、その一次サーバー上でクライアント要求に応じることができる。次に二次セッションサーバーが、例えば一次サーバーによって、選択されることができる。一次サーバーが要求に応答すると、そのセッションに関する情報が、一次サーバーから二次セッションサーバーへ送られる。
また、システムは、ハードウェア又はソフトウェアの何れかを使って、負荷平衡化を利用することができる。一次サーバー上で要求に応じようとする試みがなされ、もし、一次サーバーが要求を受け取る、又は要求に応答することができない場合には、その要求は二次アプリケーションサーバー上で応じられることができる。もし、二次サーバーが要求を受け取るならば、その二次サーバーが新たな一次サーバーとなる。冗長性を維持するため、新たな二次サーバーが選択され、かつ、その新しい一次サーバーからセッション情報を送られることができる。The system according to the present invention can utilize a primary server to respond to requests from network clients, such as web browsers. The primary server can be selected from a group of servers or a group of servers. Once the primary server has been selected, client requests can be served on that primary server. A secondary session server can then be selected, for example, by the primary server. When the primary server responds to the request, information about the session is sent from the primary server to the secondary session server.
Also, the system can utilize load balancing using either hardware or software. Attempts are made to fulfill the request on the primary server, and if the primary server cannot receive or respond to the request, the request can be fulfilled on the secondary application server. If the secondary server receives the request, that secondary server becomes the new primary server. To maintain redundancy, a new secondary server can be selected and session information can be sent from the new primary server.
Description
【技術分野】
【0001】
本出願は、一般的に、データ複製、特にクライアントネットワークセッションへの冗長性の提供に関するものである。
【0002】
(優先権の主張)
本出願は、引用により本出願中に組み入れられる2001年7月16日に出願された「サーブレットセッション複製及びフェイルオーバーのための方法及び装置」という名称の米国仮特許出願60/305,992号、2001年10月31日に出願された「セッション複製及びフェイルオーバーのための方法及び装置」という名称の米国特許出願10/000,708号、2001年7月16日に出願された「サーブレットセッション複製のためのハードウェアの負荷を均衡化する装置」という名称の米国仮特許出願60/305,969号、2001年10月31日に出願された「セッション複製のためのハードウェアの負荷を均衡化する装置」という名称の米国特許出願10/000,709号、に基づく優先権を主張するものである。
【0003】
(著作権表示)
本特許文書の開示の一部には、著作権保護を条件とする題材が含まれている。本特許文書又は特許開示が、特許局及び商標局の特許書類又は記録に掲載される限りでは、何人によるその複製に対しても著作権者に異議はないが、しかしそうでないならば、一切の無断転載を禁ずる。
【背景技術】
【0004】
クライアントがネットワーク上でサーバーに接続し、かつセッションを開始する時、サーバー上に格納される、そのクライアントセッションに特有な情報が存在し得る。例えば、クライアントのユーザーが仮想買い物かごに品物を入れるとする。それら品物の選択物は、少なくとも一時的にサーバー上に格納されることができる。この例では、他のユーザー又はサーバーはこの情報にアクセスする必要はない。しかしながら、もしセッションデータを格納するサーバーが故障した場合に他のサーバー上のデータを回収することが可能となるように、このデータがネットワーク又はサーバー群全体に渡って大いに利用可能であることが望ましい。
【0005】
そのような状況におけるデータ復旧を遂行するための一つの方法は、セッションの間、データベース内に情報を格納することであるが、とはいえ、データファイルのような他の手段により格納することもできるかもしれない。データベースへのアクセス権を有するあらゆるサーバーがそのデータにアクセスできるように、セッションデータに変更がなされる度に、最新情報がデータベースに書き込まれる。データは永続的な場所に格納され、かつ他のサーバーにより容易に検索されることができる。
【0006】
しかしながら、各要求に対してデータベースからセッション情報を取り出すことは相当にコストがかかるという点で、この手法には問題がある。システムのスループットは、サーバーからのデータベースへの接続数に依存することができるため、データベースへの複数の該当は、障害を生み出し、かつ基本的に動作不能な点となるシステムダウンにはまり込ませ得る。また、これらのセッションは情報の形式を含むこともでき、ユーザーはこれにすぐアクセスしたい。いくつかのアプリケーションと共に、何千ものクライアントが同時に動作することが可能であり、それは何千もの並列実行セッションという結果となる。いくつかのサーバーは多くの異なるアプリケーションのホストとして動作することが望まれ、それは更に、それらサーバーをホストとする必要のあり得るセッション数を増やすこととなる。
【0007】
これら何万ものユーザーがシステムを効果的に使用できるように、そのようなシステムの速度及び効率を高めることが望まれる。そのような障害を避けるための一つの方法は、サーバーが99.9%の時間立ち上がって稼動中であり、かつ、単純に如何なる情報のバックアップもとらないことを想定するものである。これは、最速のユーザー体験を提供するという解決策となり得るが、しかし、データ損失という結果となる0.1%の動作不能時間でさえも、多くのユーザーには容認されないものである。
【0008】
(要約)
本発明によるシステムは、ウェブブラウザーのようなネットワーククライアントからの要求に応じるために、一次サーバーを利用することができる。この一次サーバーは、一団のサーバー又はサーバー群から選ばれることができる。一次サーバーが選択されると、その一次サーバー上でクライアント要求に応じることができる。次に二次セッションサーバーが、例えば一次サーバーによって、選択されることができる。一次サーバーが要求に応答すると、そのセッションに関する情報が、一次サーバーから二次セッションサーバーへ送られる。これは、セッション上の最初の要求における完全な一連の情報とすることができる、又はただ単に、後に続く要求に応じたセッション中の既存情報への更新とすることもできる。一次及び二次サーバーを特定する情報は、例えばクッキーとして格納される「トークン」のように、クライアント上に格納されることができ、又はトランザクション若しくはセキュリティ状況と同様な手法で標準RMIの最上位に渡されることができる。この識別情報又は「トークン」は、各要求に伴うことができる。
【0009】
システムは、ハードウェア又はソフトウェアの何れかを使って、負荷平衡化を利用することができる。ソフトウェア平衡化を伴って有用となる処理では、既に一次及び二次セッションサーバーが選択されたセッション上で、要求が受け取られることができる。一次サーバー上で要求に応じようとする試みがなされる。もし、一次サーバーが要求を受け取る、又は要求に応答することができない場合には、その要求は二次アプリケーションサーバー上で応じられることができる。もし、二次サーバーが要求を受け取るならば、その二次サーバーが新たな一次サーバーとなる。冗長性を維持するため、新たな二次サーバーが選択され、かつ、その新しい一次サーバーからセッション情報を送られることができる。
【0010】
ハードウェア負荷平衡器を伴って有用となる処理では、一次及び二次セッションサーバーが選択されたセッション上で、要求が受け取られる。次に、一次サーバー上で要求に応じようとする試みがなされる。もし、一次サーバーが要求を受け取る、又は要求に応答することができない場合には、二次セッションサーバーを使用するのではなく、ハードウェア負荷平衡器は新たな一次サーバーを選択し、かつ、その新たな一次サーバー上でその要求に応じようと試みることができる。セッション情報は、例えば新しい一次サーバーからの要求に応じて、二次セッションサーバーから新しい一次サーバーに送られることができる。次に、新しい一次サーバーは要求に応答し、かつ更新されたセッション情報を二次サーバーへ送ることができ、その結果、そのセッションについてサーバーが同期することとなる。
【0011】
(発明の詳細な説明)
本発明は、従来の複製システムの不備の多くを克服する。本発明のある実施形態による一つのシステムでは、クライアントがLAN、イーサーネット(登録商標)、又はインターネットのようなネットワーク上のサーバーに対して要求を作成する時に、セッションが作られる。要求を受け取るセッションサーバーは、例えばアプリケーションサーバー、ウェブサーバー、オブジェクトサーバー、又はサーブレットエンジンのような、セッションにおける情報を格納し、及び/又はセッション要求への応答を作り出すのに使用される如何なるサーバーからも構成されることができる。最終的に要求を受け取るサーバーが、「一次」サーバー、すなわちクライアントがこの後の要求を送るサーバーとなる。次にシステムは、そのセッションにおける「二次」サーバーを選択することができ、これは冗長性のソースとして動作することとなる。
【0012】
そのセッションの中で更新がなされる度に、その変更は一次サーバー上に格納されることができるだけでなく、例えばリモート呼び出しによって、二次サーバーに送られることもできる。変更がなされる度に、セッションデータの全てを二次サーバーに送る必要はないが、しかし変更のあったデータ又は情報のみを、例えば情報の差分又はパケットで送ることができる。最低限必要な情報を差分で送ることは、システム全体の効率を高めることができる。それがセッションデータ上で動作するという事実を除いて、その複製はミラーリングのように動作する。一例では、サーブレットエンジンを使ったウェブアプリケーションのために、このミラーリングが行われることができる。
【0013】
クライアントがサーバーに接続する時、クライアント又はユーザーに関連するセッションオブジェクトが作成される。セッションオブジェクトは、セッションの継続時間の間一次サーバー上で保持されることができる、又は指定された時間の後タイムアウトとなることができる。各セッションオブジェクトには、サーバーに対するクライアント及び/又はオブジェクトを特定するための一意の識別子、又は識別番号を与えることができる。要求に応じるために選択されたサーバーは、セッションの継続時間の間、一次サーバーとして動作することができる。一次サーバーは、セッションオブジェクトに対して二次サーバーを選択することができ、その結果オブジェクトが更新される度に、その更新がまた二次サーバー上にも格納されるようになる。システムの効率を高めるために、二次サーバーは、最低限の情報のみを受け取る、又は一括更新を行うように最適化されることができる。
【0014】
本発明のある実施形態による一つのウェブベースのシステム100が、図1に示されている。このシステムでは、ブラウザ102又はクライアントは、ウェブサーバー104によって受け取られる要求を作成する。ウェブサーバー104が要求を見て、かつ、どのオブジェクトサーバー110がその要求を受け取るべきかを判断するという点で、ウェブサーバー104はプロキシとして動作する。ウェブサーバーはプラグイン又はプラグインAPIを持つことができ、これは要求を認識するものである。プラグインは一般的に、如何なる外部アプリケーションも起動する必要なく追加機能を提供するために、アプリケーションに付加されるオブジェクトである。クライアント102におけるセッションを作成及び収容するのに利用できるオブジェクトサーバー110の間で選択するために、プラグインは、負荷平衡化の決定を行う。ウェブサーバー104は、今度は反対に、選択されたオブジェクトサーバー110に対してプロキシとして動作し、これはアプリケーションサーバー106に収容されることができる。アプリケーションサーバー106の中のサーブレットエンジン108は、要求に応答するために、オブジェクトサーバー110上のオブジェクトを呼び出すサーブレットを実行することができる。その要求に完全に応答するために、オブジェクトサーバー110はまた、データベース112又はデータ記憶装置から情報を引き出す必要もあり得る。オブジェクトサーバー110は、要求を受け取る時にセッションを作り出すことができる。当業者にはよく知られかつ使用されているように、セキュリティを提供するため、アプリケーションサーバー106及びデータベースはファイアウォール114の向こう側に置かれることができる。
【0015】
この例では、次にオブジェクトサーバーは、そのセッションにおける二次サーバーを選択する。代替の実施形態では、二次サーバーを選択するのにプラグインを使用することができる。プラグインはまた、その決定のために負荷平衡化を使用することもできる。
【0016】
オブジェクトサーバーは二次サーバーへデータを渡し、かつ、それがバックアップされることを二次サーバーに知らせる。次にオブジェクトサーバーは、クライアントに送られ、及び格納されるクッキーを作り出す。クッキーには、セッションにおいて使用される一次及び二次サーバーの識別表示が含まれている。
【0017】
クライアントがそれに続く要求を同じセッション上で送る時、どのウェブサーバーがその要求を受け取るかということは全く問題にはならない。ウェブサーバーは、そのセッションにおける一次サーバーを判断するためにクッキーを見て、次に、その一次サーバーに要求を配信する。
【0018】
図3に示されるような、各々が一次サーバーとして動作する能力のある三つのサーブレットエンジン306、308、及び312を有する例を想定する。もし、セッションが一次サーバー306上で現在稼動中で、しかし一次サーバー306が機能しない場合、ウェブサーバー304は、ブラウザ302からの要求と共に送られてくるクッキー情報を調べることにより、どのサーバーが二次サーバーとして選ばれたかを判断することができる。次にウェブサーバーはその要求を二次サーバー308へ送ろうとすることができ、それにはまたセッション状態情報310が含まれている。ウェブサーバーはブラウザ302へ応答を返すことができ、それはウェブサーバー304により二次サーバー308に送られることのできる他の要求を作成することになるであろう。二次サーバー308は、もし一次サーバー306が要求の受け入れに失敗する場合には、自己のみがウェブサーバーから直接要求を受け取るということを知っているので、もし二次サーバーがその要求を受け取る場合には、自動的に新たな一次サーバーとなることができる。この時点で、二次サーバー308は一次サーバー308となり、新しい二次サーバー312を選択することができる。あるいはそのかわりに、ウェブサーバー304に対するプラグインが新しい二次サーバー312を選択することもできる。通信途絶の可能性のある場所の一つは、第一仮想境界314によって示され、これはブラウザ/クライアント302とウェブサーバー304との間に存在する。第二仮想境界は、ウェブサーバー304とサーブレットエンジン306、308、及び312との間に存在する。
【0019】
いくつかの実施形態では、一次サーバーの状態を判断するために、二次サーバー又はウェブサーバーが自発的に一次サーバーを監視する。この監視は、例えば、ネットワークに繋がれているか否かを判断するために継続的又は定期的に一次サーバーに「pingをかける」というような適切な方法により行われることができる。もし一次サーバーが要求を受け入れることが出来ないと判断される場合には、二次サーバーが新たな一次サーバーとなることができる。次に新しい二次サーバーが選択されることができる。このような設計の利点は、二重サーバーの障害がセッション状態損失という結果となるかもしれない空白時間が短縮されるということである。いくつかの実施形態では、その空白期間をクライアント要求の率によって定めることが可能であるが、一方この手法では、その空白期間をサーバーにpingをかける率によって定めることが可能となる。
【0020】
新たな一次及び二次サーバーは同様に、セッションに関する情報を担っている。以前に一次サーバーであったサーバーは、たとえまだそのセッションが動作中に要求を受け入れ及び処理することができるようになったとしても、もはやそのセッションにおける如何なる責務又は情報も持つことはできない。二次サーバーは自動的にその状態を変更することができ、その結果、そのセッションにおける新たな一次サーバーとなるが、しかしその新しい一次サーバーが要求を受け取るまでは、新たな二次サーバーを指定しないようにすることができる。
【0021】
新たな一次サーバーが他の要求を受け取るか否かわからないので、自発的に新たな二次サーバーを作成する、又は二次サーバー上でセッション情報のバックアップをとることは望まれないであろう。使用されることのない、新たな二次サーバーの作成又は情報のバックアップは、不必要に資源を浪費することとなり得る。あるいはまた、そのセッションが短命で、かつ後に続く要求を受け取るほど長く「存続する」ものではないこともある。各セッションは典型的にタイムアウト値を持っており、その為もしそのセッションが指定された時間のあいだ動作しないような場合には、それは「タイムアウト」または「消滅」し、そのセッションは終了され、及びそのセッションにおいて格納された全てのデータはメモリ保全のため消去されることができる。このような場合には、二次サーバーの作成は資源を浪費するかもしれないというだけでなく、新たな二次サーバーからセッション情報を消去するという不必要な「清掃」作業を要求することにもなり得る。
【0022】
一次及び/又は二次サーバーはあるアルゴリズムによって選択されることができ、それは例えば、指定されたサーバークラスタ内の如何なるサーバーをも選択肢として持つことができる。各セッションについて一次及び二次サーバーを選択することは、アルゴリズムのために効率的なものとすることができるが、その一方で管理者の入力が望ましいとすることができる場合もある。例えば、複数のサーバーが一つのマシン上に置かれるという可能性もあるだろう。もし負荷に基づくようなアルゴリズムがサーバーを選択しているならば、そのアルゴリズムは同一マシン上で二つのサーバーを選択することができる。マシン故障の場合には、両サーバーとも利用不可能となり得、かつセッションデータは利用不可能及び/又は失われることとなり得る。しかしながら管理者は、異なるマシン上に存在する一次及び二次サーバーを指定することができる。これにより、サーバー間のみならずマシン間にまたがる冗長性についても備えることができる。
【0023】
あるいはまた、負荷平衡化解析を行っている時に、サーバーが置かれているマシンを考慮に入れるアルゴリズム自身の中で、パラメータを構築することもできるであろう。もし現在最も負荷の低いサーバーが一次サーバーと同じマシン上に存在するならば、アルゴリズムは、他のマシン上に存在する最も負荷の低いサーバーとなるようにすることができる。この手法は、例えば異なる部屋、異なる建物、又は異なる街のサーバーのような、如何なる階層の離隔にも拡張されることができる。
【0024】
クラスタ内のサーバーが独立して機能することを可能にするため、サーバーは緩く繋がれることができる。この緩い結合を遂行するために、クラスタ内の各サーバーは、あるサーバーがクラスタから離れる時、その動作を受け取ることができるように、自発的に又は非自発的に他のクラスタサーバーの状態を検知するように構成されることができる。ある実施形態では、サーバーは、クラスタサーバーの状態を監視することを、基盤であるOSに依存することができる。他の実施形態では、サーバーが監視を行うことを要求することができる。サーバーの資源はシステム全体のスループットを高めるために利用可能であるため、クラスタサーバーがクラスタ監視に関与する必要のない実施形態のほうが好ましいであろう。
【0025】
図2は本発明による多層クラスタアーキテクチャ200を示している。システム内の各オブジェクトは、いくつかのサーバーで利用可能なオブジェクトのインスタンスを作成することにより、クラスタ化されることができる。このアーキテクチャは仮想境界を含むことが示されている。「仮想境界」という語は、ネットワーク接続が切れ得る場所を意味している。
【0026】
図2では、第一の仮想境界212が、ブラウザ202とウェブサーバー204との間に示される。第二の障壁214は、ウェブサーバー204とサーブレットエンジン206との間に示される。第三の障壁216は、サーブレットエンジン206とオブジェクトサーバー208との間に示される。最後に、第四の障壁218が、オブジェクトサーバー208とデータベース210との間に示される。各障壁は通信断絶の可能性のある点を示しており、それはまた、負荷平衡化を利用することもできる。
【0027】
第一の仮想障壁において、ブラウザが特定のウェブサーバーには至ることができない可能性がある。しかしながら、一次及び二次サーバーに関する情報は既にブラウザのクッキーの中に格納されることができるので、本発明によるシステムにおいてこれは問題にはならないであろう。ブラウザは、どのサーバーが要求を受け取るべきであるかを、クッキーを通してそのウェブサーバーに示すことができるので、ネットワーク上の如何なるウェブサーバーとも連絡をとることができる。このシステムはLAN上で最も効率的であるとすることができるが、如何なる可能なネットワーク上においても、同様の手法を使用することができる。例えば、ブラウザは、第一のウェブサーバーとは離れた建物に置かれているかもしれない第二のウェブサーバー及び/又は終端サーバーと、インターネット越しに連絡をとることも可能であろう。
【0028】
アプリケーションによって、一次及び二次サーバーはウェブサーバー、サーブレットエンジン、又はEnterpriseJavaBean(「ejb」)エンジンのように、幾つかの異なるサーバー形式となることができる。例えば異なるサーバー形式であるというように、クラスタ内の各サーバーは、さらに独立しかつ特化されることも可能であろうが、しかしまだ一次及び/又は二次サーバーとして動作することもできるであろう。
【0029】
本発明によるシステム上でクラスタリングが可能であるならば、付加的な一次及び二次サーバーとして動作するように、新たなサーバーをシステムに透過的に付加することが可能であろう。クラスタリングは一般的に、一連のサーバー内に「管理用」サーバーを設けることにより、一連のサーバーの管理を可能にするサーバー管理の手法である。この手法により、クラスタ内のサーバー全体にわたる、潜在的に多様なコンポーネントの配置及び同期を簡単化することができる。クラスタリングは、実質的にシステムの信頼性及び拡張性を高めることができる。
【0030】
本発明によるシステムにおけるクラスタリングの時には、クラスタ内の各サーバーは、新しいサーバーがクラスタ内に入って来たことを検知し、かつその新しいサーバーを現存の一次サーバーのいずれかに対する二次サーバーとして指定するように構築されることができる。負荷平衡化に使用されるこの方法は、新しいサーバーを一次又は二次サーバーとして即座に指定することができる。
【0031】
あるいはその代わりに、本発明によるシステムは、入ってくる要求を送るためにハードウェア負荷平衡器を利用することもできる。例えばインターネットの環境下で、ハードウェア負荷平衡器は、IPアドレスを持ち、ネットワーク上に存在することができる。ブラウザ又はクライアントから入ってくる要求は、そのIPアドレスに送られることができる。次にハードウェア負荷平衡器は、他のIPアドレス、すなわち各々IPアドレスを割り当てられ、システム内ではあるがハードウェア負荷平衡器の「向こう側」に置かれている他のサーバーへ、それら要求を転送することができる。このように、ブラウザにはあたかも要求はいつも同じIPアドレスに向かうように見えるが、その時実際には、そのIPアドレスの向こう側にある複数のサーバーに向かうことができるのである。ソフトウェアクラスタリングのような他の方法を利用するのではなく、例えばハードウェア負荷平衡器にサーバーを直結させた結果とすることができるように、ハードウェア負荷平衡器は、ネットワーク内で自分の背後に置かれている全てのサーバーを意識することができる。
【0032】
ハードウェア負荷平衡器を使用する利点が存在し得る。ハードウェア負荷平衡器は、他の手法よりも、負荷平衡化のためのよりよいアルゴリズムを利用することができる。ハードウェア負荷平衡器はノード障害を検知することができ、その結果それらのノードはアルゴリズムで利用可能なサーバーのリストから抜き取られるであろう。たとえそれら個々のサーバーにまだ要求が送られていなかったかもしれないとしても、このノード除去により、アルゴリズムが、到達不可能なサーバーに向かおうとするのを防ぐことができる。
【0033】
本発明によるシステムはまた、ドメイン名をいくつかのIPアドレスにマッピングする、すなわちウェブサーバーに送られた要求をいくつかのオブジェクトサーバーに転送するハードウェア負荷平衡器を使用するのではなく、DNSRoundRobinのようなDNSプロトコルを使用することもできる。しかしながら、DNSは典型的に、それらのIPアドレスが実際に「生きている」か否かを判定又は検知しない。
【0034】
ハードウェア負荷平衡器は、その要求が動的なページ作成を要求するものであるのか、又はその要求が静的なページに対するものであるのかによって、特定のサーバー又はサーバークラスタへのある決まった形式の要求のプロキシに使用されることができる。図4では、負荷平衡器414が、ウェブブラウザ402とウェブサーバー404、408、412との間に示される。
【0035】
本発明での使用のためにハードウェア負荷平衡器414を最適化することが望ましいとすることができる一方で、負荷平衡器自身に物理的な変更を求めるのは望ましくないとすることができる。また、ハードウェア負荷平衡器がクッキーを読み取り、かつ、もし最初の一次サーバー404が機能しない場合には、ブラウザ402上に格納されたクッキーに示される二次サーバー408にその要求を転送する必要があることを理解しなければならない、ということも望ましくないであろう。しかしながら、負荷平衡器に希望のところに要求を送らせ、そして次にシステムが適切に回復していることを確認させることは望ましいであろう。
【0036】
そのような手法の一つでは、ハードウェア負荷平衡器414が、ウェブブラウザ上のクッキーに格納されたいくらかの任意の情報に基づいて、ブラウザ402又はクライアントから一つのサーバーへ要求を送る傾向がある。例えば、クッキーは情報の最初の文字列を持つことができ、その後には複製に使用されるセッション識別子だけでなく、一次及び二次サーバーに関連する情報の部分が続く。ハードウェア負荷平衡器414は、情報のこの部分のみを見るように構築されることができる。もし、情報のこの部分が連続したクッキー間で変わらない場合には、負荷平衡器は要求を一次サーバー404に転送し戻し続けることができる。また、このような「セッション粘着性」は、例えばクライアントのIPアドレスを利用できるような他の適切な方式に基づくこともできる。
【0037】
クッキー中の情報のその部分は、要求が一次サーバーに戻ることができる限りは、同じままでいることができる。もし一次サーバーが何らかの理由で機能しない場合、二次サーバーは自分自身を新たな一次サーバーに指定することができる。次にその新たな一次サーバーは、セグメント中に新しい二次サーバーについての新たな情報を挿入することができ、それは新たな一次サーバー又は負荷平衡化機構により選択されることができる。あるいはその代わりに、ハードウェア負荷平衡器が新たな一次サーバーを選択し、かつ要求をその新しい一次サーバーに転送することもできる。
【0038】
負荷平衡器で受け取られるセッションの第一の要求は、本来一つのサーバーに行くようにしっかりとコードされることはできない。ある一つのサーバーに「固執する」判断は、第一の要求が作成され、かつそれがオブジェクトサーバー又は他の終端サーバーから戻って来た後に、定められることができる。ハードウェア負荷平衡器は、この「単純な粘着性」を行う、すなわち本質的にその負荷平衡器が接続している指定された一次サーバーに戻るほどには、充分洗練されているとすることができる。
【0039】
もしクッキーが全く存在しないならば、ハードウェア負荷平衡器は、負荷又は応答時間に基づくような、多数の負荷平衡化方法のいずれかを使用するように構築されることができる。次に負荷平衡器は、例えば適当なクラスタの中で、サーバーを選択し、かつ要求をそのサーバーに送ることができる。一次サーバーは要求に応答する時、一次及び二次サーバーに関する情報の部分を含むクッキーをブラウザに送ることができる。ハードウェア負荷平衡器によって受け取られる、そのブラウザからの次に続く各要求は、それに関連するクッキーを有することができ、そのため負荷平衡器はその要求を一次サーバーと対応付けることができる。
【0040】
システムはまだ、要求が一次サーバーに行くことを保証することはできないであろう。図4に示されるように、もし一次サーバー404で障害が発生し、かつ他の要求が負荷平衡器414に入ってくる場合には、負荷平衡器はただ単に、異なった負荷平衡化決定を行い、かつ要求を他のサーバー412に送ることができる。その要求は、二次サーバー408に行くことはできない。この手法は、要求が自動的に二次サーバーに行くことができるプラグイン手法について上で述べたものとは異なる。このように、ハードウェア負荷平衡器は上述されたものと同様に、特別なプロキシプラグインに比べると「知的」ではない。
【0041】
負荷平衡器414によって選択されるサーバー412が二次サーバー408でないならば、選択されたサーバー412は、その要求が自己をホストとしていないセッション上の要求であるということを認識することができる。この場合、選択されたサーバー412は、二次サーバー408を判断するためにクッキーを見ることができる。
【0042】
選択されたサーバー412が二次サーバー408を突き止めると、その二次サーバー408からセッション状態情報410を要求することができる。次に、選択されたサーバー412は、自分自身をそのセッションにおける新たな一次サーバーに変えることができる。この場合、二次サーバー408は同じままでいることができる。クッキーは、負荷平衡器414が新たな一次サーバー412に要求を導きつづけるように更新される。
【0043】
負荷平衡器414が、偶然にも二次サーバー408である新しいサーバーに要求を導くことに決める場合には、二次サーバーは自分自身を新たな一次サーバーとして設定することができ、かつ新たな二次サーバーが選択されることができる。
【0044】
その背後にサーブレットクラスタを有するハードウェア負荷平衡器を持つシステムは、高速データパスを提供することができる。もしウェブサーバーが経路制御を行うならば、要求は、何らかのコードが実行されているソフトウェアの中までやってきて、かつその後ネットワーク上に送り返される必要があるであろう。負荷平衡器/サーブレットクラスタシステムは全てを低プロトコル層で行うため、それは非常に早いものとなることができる。
【0045】
負荷平衡化アルゴリズムを可能な限り配置させることは、有利となり得る。ハードウェア負荷平衡器の場合、Javaで書かれることのできるソフトウェアのような、サーバー上のソフトウェアが正しく動作していることを確認することだけが必要となり得る。ハードウェア負荷平衡器のないシステムでは、システム内の各ウェブサーバーの特別なプラグインの各々が同様にうまく動作していることを確認しなければならないであろう。
【0046】
また、異なるプラットフォームのためのプラグインをサポートすることも必要であろう。ハードウェア負荷平衡器は、例えば、NetscapeApplicationServer(NAS)、WebLogicServer(WLS)、MicrosoftInternetInformationServer(IIS)、又はApacheHTTPServerのような異なるプラットフォームに基づくシステムにおいても、同じようにうまく動作することができる。ハードウェア負荷平衡器を用いることで、堤防の一つを取り除くことができるように、システムは複雑さを一段階減らすことができる。これは図4に示されるが、ここではウェブサーバーとサーブレットエンジンは同じプロセス中に存在する。
【0047】
上述のシステムの幾つかは、ウェブアクセスのためにサーブレットを利用することができる。同様な機構を、状態有りセッションビーン、ある形式のEnterpriseJavaBean(「ejb」)へのアクセスに使用することも出来る。サーブレットはブラウザクライアントからの要求に応じるために使用されることができるが、一方ejbサーバーはJavaクライアントからの要求をサポートするために使用されることができる。
【0048】
Javaクライアントにおいては、セッションの存続時間の間ずっと、一つの持続的な接続が存在することができる。その時、クッキーの必要(又はサポート)はないであろう。また、持続的な接続が存在しているため、もはや負荷平衡器の必要もないであろう。Javaクライアントは、例えばDNS又は負荷平衡器を用いて、終端サーバーの一つに接続することができる。次に、Javaクライアントは、状態有りセッションへの「ハンドル」を捜すことができる。Javaにおけるハンドルとはポインタと似ており、適切なセッションの位置を捜し出すために使用されることができる。
【0049】
図5のシステム500に注目すると、Javaクライアント502がハンドルに接続されると、状態有りセッションビーン510が作成されることができる。状態有りセッションビーン510は、セッションにおける情報をキャッシュ又は格納することを扱うのに使用されることができる。状態有りセッションビーンが作成される時、ビーンを収容しているサーバーは一次サーバー508となることができ、それに対してJavaクライアント502は要求を作成することができる。次に一次サーバー506は、二次サーバー510を選択することができる。二次サーバー510はまた、セッション情報をキャッシュ又は格納するために、状態有りセッションビーン512を有することができる。
【0050】
状態有りセッションビーン508は、クッキーを送るのと同様に、RMIプロトコルを用いてこの情報をJavaクライアント502に返すことができる。トランザクションの状況伝搬が動作する方法と同様に、このクッキーのシミュレーションを動作させるために、付加情報を標準RMIの「最上位」に置くことができる。一次/二次サーバーの識別子のペアは、各応答と共にJavaクライアント502に返されることができる。Javaクライアント502が呼び出しを作成する度に、それは、インターフェース504を通して、セッションにおける一次サーバー506への呼び出しを作成し続けるのに適応した特別なRMIコードの中に呼び出しをかけることができる。もし一次サーバーが動作不能である場合には、Javaクライアント502は二次サーバー510の所在に関する情報を見ることができ、かつその代わりに二次サーバーに対して要求を作成することができる。もし、サーバー特定に関する必須情報のみがRMIの最上位に返されるのであれば、それは効率のために望ましいことであろう。
【0051】
Javaクライアント502は、どのサーバーが二次サーバー510であるかを常に知ることができる。例えば、もし一次サーバー506が利用不可能である場合には、二次サーバー510に行くことを常にわかっているように、Javaクライアントは、プロキシが所有するかもしれないロジックと同じロジックの多くを持つことができる。Javaクライアントは、要求を利用不可能なサーバーに送らないようにするため、サーバーの状態を監視することができる。二次サーバー510が新しい一次サーバーとなる場合には、さらに新たな二次サーバー504を選択することができる。新しい一次及び/又は二次サーバーを選択するためのロジックは、上述のもの同様なものであるとすることができる。Javaクライアントは即座に、新たな一次/二次サーバーに更新することができる。
【0052】
上の検討より、上述のものを含む様々な変形が利用され得るけれども、本発明によるシステムは一般的に、二つに分岐している方針の一方を辿ることができる。そのような方針の共通部分が図6に示される。図6の過程600では、一次サーバーが一団のサーバーから選択される602。一次サーバーが選択されると、クライアント要求はその一次サーバーで応じられる604。次に、もしかすると一次サーバーにより、二次サーバーが選択される606。次に、セッション情報が一次サーバーから二次サーバーへ送られる608。一次及び二次サーバーを特定する情報は、例えばクッキー内に格納され、又は標準(又はその他)RMIの最上位に渡されることができる、というようにクライアント上に格納されることができる610。
【0053】
この点から、処理はソフトウェア負荷平衡化に有用となり得る方針、及びハードウェア負荷平衡化に有用となり得る過程とに分かれる。図7は、ソフトウェア負荷平衡化に有用な過程700を示している。過程700では、一次及び二次サーバーが既に選択されているセッション上で要求が受け取られ、かつクライアント上に格納された情報から一次サーバーの識別情報が作成される702。次に、一次サーバー上で要求に応じようとする試みがなされる704。もし一次サーバーが要求を受け取ることができない場合には、要求は二次サーバー上で応じられる706。二次サーバーが要求を受け取ると、その二次サーバーが新たな一次サーバーとなる708。次に新たな二次サーバーが選択され、かつ新しい一次サーバーからセッション情報が送られる710。
【0054】
ハードウェア負荷平衡器を有するシステムに有用である、もう一方の方針が図8に示されている。図8の過程800では、既に一次及び二次サーバーが選択されているセッション上で要求が受け取られ、クライアント上に格納された情報から一次サーバーの識別情報が作成される802。次に、一次サーバー上で要求に応じようとする試みがなされる804。もし一次サーバーが要求に応じることができない場合には、ハードウェア負荷平衡器は新たな一次サーバーを選択し、かつその新しい一次サーバー上で要求に応じようと試みる806。次にセッション情報は、例えば新しい一次サーバーからの要求に応じて、二次サーバーからその新しいサーバーに送られる808。次に、新しい一次サーバーは要求に応答し、かつ更新されたセッション情報を二次サーバーに送ることができる810。
【0055】
本発明の如何なる実施形態においても整合性を保つために、セッションデータにおける変更はバージョン番号に対応付けられることができる。一次及び二次サーバーはそれぞれ、セッションのどのバージョンを自己が格納しているか、知ることができる。サーバーは、もし自己が現在格納しているものよりも後の、又は大きいバージョン番号を持つ要求を受け取った場合に限り、データを修正するように指示されることができる。一次及び二次サーバーは、双方が同じバージョン番号上にあることを確認するために、互いに定期的に調べることができる。バージョン番号は、順番を保証するために数を増やしていく、というのと同じくらい単純な方法を使用することができる。セッション情報における整合性を維持するために、一次及び二次サーバーが同期することが望まれるであろう。バージョン番号の同期がとれない時、一次サーバーは、セッションの同期を回復させるために、二次サーバーへ全セッション情報を送ることに決めることができる。この同期はまた、必要が生じれば、一次と二次の間の役割を切り替えるというサーバーの能力を促進する。
【0056】
もし一次サーバーが、例えば悪い接続というような理由で、二次サーバー上の情報を更新することが出来ない場合には、一次サーバーは更新し続け、かつ二次サーバーは如何なる更新も認識しないということがあり得るであろう。その時、一次サーバーが二次サーバーよりもいくつかバージョンが先になるということがあり得るであろう。一次サーバーが再び二次サーバーに情報を送ることができるようになると、二つの連続したバージョン間の差分は機能することができない。このような場合、両サーバー間のデータセッションの整合性を取るため、一次サーバーは、新しい一連のセッションデータ全体を二次サーバーに送ることができる。この場合、二次サーバーは、連続したバージョン間の差分を得るか、又はセッション全体における全てのデータを得るかのいずれかとなる。他の実施形態では、二次サーバーを現在のバージョンに達するようにするために、任意のバージョン間の差分を作成することもあり得るであろう。
【0057】
Javaの状態を辿るためのクッキーのシミュレーションでは、大きい乱数をサーバー識別のために使用することができる。その数は、二つの異なるペアの識別番号の合計が同じになることが極めてないほどに、充分大きいものとすることができる。これら二つの番号をJavaクライアントに送り返すのみということも可能であり、かつ新しい番号を得るためにその二つの番号を足すことによりそのサーバーのペアが特定されるころができる。これにより、たった一つの数を渡すことで二つのサーバーを特定することが可能となり、それは効率を高めることができる。Javaクライアントは特定のサーバーと持続的に接続することが可能であるため、クライアントは、二次サーバーの識別番号を得るために、渡されている合計数から一次サーバーの識別番号を引くことにより二次サーバーを特定することができる。
【0058】
しかしながら、セッションビーンのようなJavaオブジェクトは、上で考察された持続的な状態とは対照的に、状態なし又は一時的な状態を持つものとすることができる。もしJavaセッションビーンが状態なしの場合には、ビーンは、呼び出し間又は連続した要求間のセッション情報を保持することができないであろう。もし、セッション情報が他のどこかに格納されるならば、状態なしビーンは、要求に応じるために、一時的にセッション情報をロードすることができる。フェ−ルオーバー、すなわち複製されたセッション情報を有する新しい一次サーバーにセッション制御を任せることは、例えば一次サーバーが要求を決して受け取らず、その要求が手続き的でかつ異常終了した、すなわち一回限りの要求であった、というような明らかな呼び出し失敗があったところでのみ、生じることが可能である。これに対して、もしセッションビーンが一時的なものである場合は、インタスタンスは、状態なし負荷平衡化及びフェ−ルオーバーを用いて、状態なしの製造場によって作られることができる。一時的な状態の中のビーンは、メモリ内にバックアップされることができない、又は上で説明したような一次/二次複製を用いてバックアップされることができる、のいずれかである。
【0059】
一括変更は、失敗の空白期間の増大したシステムのスループットを高めるのに使用されることができる。一括処理又は「箱運搬」の際、効率及び拡張性を高めるため、いくつかの要求が、一つの大きな要求としてまとめて送られる。要求の一括処理は、時間間隔又は要求の数、というような多くの基準のうちのいずれかに基づくことができる。例えばシステムは、10秒毎に、又は100の個々のセッション更新メッセージ毎に対して、一バッチ分の要求を送ることができる。システムはまた、最後の一括処理から10秒経過した時、又は100の要求が受け取られた時に一バッチを送り、双方の基準に対応することもでき、どちらも第一になる。一括処理により、もはやシステムは、同期更新ほど信頼性の高いものではなくなるであろうが、しかしシステム全体の拡張性を高めることができる。
【0060】
その基準はまた、例えばユーザー又は管理者によって、設定可能なものとすることができる。設定可能な基準は、システムがある決まった時間には大量のトラフィックに直面するが、それ以外の時間には殆どトラフィックがないというような状況に適しているとすることができる。例えば、設定可能な基準により、ピーク時には100メッセージ毎に一括処理し、空いている時間には全く一括処理を行わないということが可能になり、その結果、各要求は適度な時間で送られることとなる。
【0061】
システム管理者はまた、一次及び二次サーバーとして、クラスタ内の2つのサーバーを組にすることもできる。システム全体の耐故障性を高めるため、管理者の入力が望まれるであろう。例えば、複数のサーバーは一つの物理的なマシン上に置かれることができ、かつ、アルゴリズムが一次及び二次サーバーの両方を同じマシン上に配置することに決めるかもしれない。すると、もしそのマシンが故障する場合には、セッション情報はすっかり失われてしまうこともあるかもしれない。マシン故障からのセッション情報の喪失を防ぐために、管理者は、一次及び二次サーバーそれぞれを、物理的に別個のマシン上に指定することに決めることができる。管理者はまた、様々な負荷平衡化方式に基づいて一次サーバーを選択することもできる。可能性のある方式の例としては、サーバー負荷、接続数、及び物理的な近さに基づくものがある。
【0062】
本発明のより好ましい実施形態についての上述の説明は、例証及び説明の目的のために提供されたものである。それは網羅的なもの、又は本発明を開示された厳密な形態に限定することを意図したものではない。明らかに、当業者には多くの修正及び変更が明白であろう。本実施形態は、本発明の原理及びその実際の応用を最もよく説明するために、選択され及び説明されたものであり、それゆえ他の当業者は、意図した特定の使用に適した様々実施形態における、かつ様々な修正を伴った本発明を理解することが可能となる。本発明の技術的範囲は、次に続く特許請求の範囲、及びその均等技術によって定められることを意図したものである。
【図面の簡単な説明】
【0063】
【図1】本発明の一実施形態によるアプリケーションサーバーシステムのダイヤグラムである。
【図2】本発明の一実施形態による複数階層アーキテクチャのダイヤグラムである。
【図3】本発明の一実施形態によるサーブレットエンジンシステムのダイヤグラムである。
【図4】本発明の一実施形態による負荷平衡器システムのダイヤグラムである。
【図5】本発明の一実施形態によるJavaシステムのダイヤグラムである。
【図6】本発明の一実施形態による処理におけるフローチャートである。
【図7】本発明の一実施形態によるソフトウェア負荷平衡器の処理におけるフローチャートである。
【図8】本発明の一実施形態によるハードウェア負荷平衡器の処理におけるフローチャートである。【Technical field】
[0001]
The present application relates generally to data replication, and in particular, to providing redundancy for client network sessions.
[0002]
(Priority claim)
This application is related to U.S. Provisional Patent Application No. 60 / 305,992, entitled "Method and Apparatus for Servlet Session Replication and Failover," filed July 16, 2001, which is incorporated herein by reference. U.S. Patent Application 10 / 000,708, filed October 31, 2001, entitled "Method and Apparatus for Session Duplication and Failover," filed on July 16, 2001, entitled "Hardware for Servlet Session Duplication. U.S. Provisional Patent Application No. 60 / 305,969 entitled "Apparatus for Balancing Hardware Load", filed on October 31, 2001, entitled "Apparatus for Balancing Hardware Load for Session Duplication". Claims priority based on US patent application Ser. No. 10 / 000,709.
[0003]
(Copyright notice)
Part of the disclosure of this patent document contains material subject to copyright protection. To the extent that this Patent Document or Patent Disclosure appears in the Patent and Trademark Office patent documents or records, the copyright holder will not object to its reproduction by any person, but All rights reserved.
[Background Art]
[0004]
When a client connects to a server over a network and initiates a session, there may be information specific to that client session stored on the server. For example, suppose a client user places an item in a virtual shopping basket. The selection of the items can be stored at least temporarily on the server. In this example, no other users or servers need to access this information. However, it is desirable that this data be highly available across a network or a group of servers so that if the server storing the session data fails, data on other servers can be retrieved. .
[0005]
One way to perform data recovery in such a situation is to store the information in a database during the session, but it may also be stored by other means, such as a data file. I may be able to do it. The latest information is written to the database whenever session data is changed so that any server that has access to the database can access the data. The data is stored in a permanent location and can be easily retrieved by other servers.
[0006]
However, there is a problem with this approach in that retrieving session information from the database for each request is quite costly. Since the throughput of the system can depend on the number of connections from the server to the database, multiple hits to the database can create failures and get stuck in a system down, which is essentially an inoperable point . These sessions can also include a form of information that users want to access immediately. With several applications, thousands of clients can run simultaneously, which results in thousands of parallel execution sessions. It is desirable for some servers to host many different applications, which further increases the number of sessions that may need to be hosted by those servers.
[0007]
It is desirable to increase the speed and efficiency of such a system so that these tens of thousands of users can use the system effectively. One way to avoid such failures is to assume that the server is up and running for 99.9% of the time and simply does not back up any information. This can be the solution to provide the fastest user experience, but even 0.1% downtime resulting in data loss is unacceptable to many users.
[0008]
(wrap up)
The system according to the present invention can utilize a primary server to respond to requests from network clients, such as web browsers. The primary server can be selected from a group of servers or a group of servers. Once the primary server has been selected, client requests can be served on that primary server. A secondary session server can then be selected, for example, by the primary server. When the primary server responds to the request, information about the session is sent from the primary server to the secondary session server. This may be the complete sequence of information in the first request on the session, or simply an update to existing information in the session in response to subsequent requests. Information identifying the primary and secondary servers can be stored on the client, for example, a "token" stored as a cookie, or at the top of a standard RMI in a manner similar to a transaction or security context. Can be passed. This identification or "token" can accompany each request.
[0009]
The system can utilize load balancing using either hardware or software. In a process that becomes useful with software balancing, a request can be received on a session where the primary and secondary session servers have already been selected. An attempt is made to fulfill the request on the primary server. If the primary server cannot receive or respond to the request, the request can be fulfilled on the secondary application server. If the secondary server receives the request, that secondary server becomes the new primary server. To maintain redundancy, a new secondary server can be selected and session information can be sent from the new primary server.
[0010]
In a process that is useful with a hardware load balancer, a primary and secondary session server receives a request on a selected session. Next, an attempt is made to respond to the request on the primary server. If the primary server cannot receive or respond to the request, instead of using a secondary session server, the hardware load balancer selects a new primary server and On the primary server. The session information can be sent from the secondary session server to the new primary server, for example, in response to a request from the new primary server. The new primary server can then respond to the request and send the updated session information to the secondary server, causing the server to synchronize for that session.
[0011]
(Detailed description of the invention)
The present invention overcomes many of the deficiencies of conventional replication systems. In one system according to an embodiment of the invention, a session is created when a client makes a request to a server on a network such as a LAN, Ethernet, or the Internet. The session server that receives the request may be from any server used to store information in the session and / or create a response to the session request, such as an application server, web server, object server, or servlet engine. Can be configured. The server that ultimately receives the request is the "primary" server, that is, the server to which the client sends subsequent requests. The system can then select a "secondary" server for the session, which will act as a source of redundancy.
[0012]
Each time an update is made during the session, the changes can be stored on the primary server as well as sent to the secondary server, for example, by a remote call. Not all of the session data need be sent to the secondary server each time a change is made, but only the changed data or information can be sent, for example, in information differences or packets. Sending the minimum required information as a difference can increase the efficiency of the entire system. The replica behaves like mirroring, except for the fact that it operates on session data. In one example, this mirroring can be performed for a web application using a servlet engine.
[0013]
When a client connects to a server, a session object associated with the client or user is created. The session object can be kept on the primary server for the duration of the session, or it can time out after a specified amount of time. Each session object can be given a unique identifier or identification number to identify the client and / or object to the server. The server selected to service the request can act as the primary server for the duration of the session. The primary server can select a secondary server for the session object, so that each time the object is updated, the updates are also stored on the secondary server. To increase the efficiency of the system, the secondary server can be optimized to receive only minimal information or perform bulk updates.
[0014]
One web-based
[0015]
In this example, the object server then selects a secondary server for the session. In an alternative embodiment, a plug-in can be used to select a secondary server. The plug-in can also use load balancing for that determination.
[0016]
The object server passes the data to the secondary server and informs the secondary server that it will be backed up. The object server then creates a cookie that is sent and stored to the client. The cookie contains an identification of the primary and secondary servers used in the session.
[0017]
When a client sends subsequent requests on the same session, it does not matter which web server receives the request at all. The web server looks at the cookie to determine the primary server in the session and then delivers the request to that primary server.
[0018]
Assume an example, as shown in FIG. 3, having three
[0019]
In some embodiments, a secondary or web server spontaneously monitors the primary server to determine the status of the primary server. This monitoring can be performed in any suitable manner, such as, for example, "pinging" the primary server continuously or periodically to determine if it is connected to the network. If it is determined that the primary server cannot accept the request, the secondary server can become the new primary server. Then a new secondary server can be selected. The advantage of such a design is that the downtime that dual server failure may result in loss of session state is reduced. In some embodiments, the gap can be defined by the rate of client requests, while this approach allows the gap to be defined by the rate of pinging the server.
[0020]
The new primary and secondary servers are also responsible for information about the session. The server that was previously the primary server can no longer have any responsibilities or information in the session, even though the server can still accept and process requests while the session is running. The secondary server can automatically change its state, resulting in a new primary server for the session, but does not specify a new secondary server until the new primary server receives the request You can do so.
[0021]
It would not be desirable to spontaneously create a new secondary server or back up session information on the secondary server because the new primary server does not know if it will receive other requests. Creating a new secondary server or backing up information that is not used can waste resources unnecessarily. Alternatively, the session may be short lived and not "live" long enough to receive a subsequent request. Each session typically has a timeout value, so if the session does not run for the specified time, it "times out" or "disappears", the session is terminated, and All data stored in the session can be erased for memory conservation. In such cases, the creation of a secondary server may not only waste resources, but also require unnecessary "cleaning" work to erase session information from the new secondary server. Can be.
[0022]
The primary and / or secondary server can be selected by an algorithm, for example, which can have any server in a specified server cluster as an option. Selecting primary and secondary servers for each session can be efficient for the algorithm, but in some cases administrator input may be desirable. For example, there could be multiple servers on one machine. If an algorithm, such as one based on load, selects a server, the algorithm can select two servers on the same machine. In the event of a machine failure, both servers may be unavailable and session data may be unavailable and / or lost. However, the administrator can specify primary and secondary servers that reside on different machines. This can provide for redundancy not only between servers but also between machines.
[0023]
Alternatively, the parameters could be constructed in the algorithm itself, which takes into account the machine where the server is located when performing the load balancing analysis. If the currently least loaded server is on the same machine as the primary server, the algorithm can be made to be the least loaded server on another machine. This approach can be extended to any level of separation, for example, servers in different rooms, different buildings, or different cities.
[0024]
Servers can be loosely coupled to allow servers in a cluster to function independently. To perform this loose coupling, each server in the cluster spontaneously or involuntarily senses the status of other cluster servers so that when one server leaves the cluster, it can receive its actions. It can be configured to: In some embodiments, the server can rely on the underlying OS to monitor the status of the cluster server. In other embodiments, the server may request that monitoring be performed. Since server resources are available to increase the overall system throughput, embodiments that do not require the cluster server to participate in cluster monitoring may be preferred.
[0025]
FIG. 2 shows a
[0026]
In FIG. 2, a first
[0027]
In the first virtual barrier, the browser may not be able to reach a particular web server. However, this will not be a problem in the system according to the invention, since the information about the primary and secondary servers can already be stored in the cookies of the browser. The browser can indicate to the web server, via a cookie, which server should receive the request, so that it can contact any web server on the network. This system can be the most efficient on a LAN, but a similar approach can be used on any possible network. For example, the browser could contact the second web server and / or end server, which may be located in a building separate from the first web server, over the Internet.
[0028]
Depending on the application, the primary and secondary servers can be of several different server types, such as a web server, a servlet engine, or an EnterpriseJavaBean ("ejb") engine. Each server in the cluster could be more independent and specialized, e.g., of different server types, but could still operate as primary and / or secondary servers. Would.
[0029]
If clustering is possible on the system according to the invention, it will be possible to add new servers transparently to the system to operate as additional primary and secondary servers. Clustering is a server management technique that generally allows a set of servers to be managed by providing an "administrative" server within the set of servers. This approach can simplify the placement and synchronization of potentially diverse components across servers in a cluster. Clustering can substantially increase the reliability and scalability of the system.
[0030]
At the time of clustering in the system according to the present invention, each server in the cluster detects that a new server has entered the cluster and designates the new server as a secondary server to any of the existing primary servers. Can be constructed as follows. This method used for load balancing can immediately designate a new server as a primary or secondary server.
[0031]
Alternatively, the system according to the invention may utilize a hardware load balancer to route incoming requests. For example, in an Internet environment, a hardware load balancer has an IP address and can be on a network. Incoming requests from a browser or client can be sent to that IP address. The hardware load balancer then assigns the other IP addresses, i.e., each IP address, and forwards those requests to other servers in the system but located "behind" the hardware load balancer. Can be transferred. Thus, although the browser always sees the request as going to the same IP address, it can in fact go to multiple servers behind that IP address. Instead of using other methods such as software clustering, the hardware load balancer can be behind itself in the network so that it can be the result of, for example, connecting the server directly to the hardware load balancer. You can be aware of all the servers that are located.
[0032]
There may be advantages to using a hardware load balancer. Hardware load balancers can utilize better algorithms for load balancing than other approaches. The hardware load balancer can detect node failures, so that those nodes will be pulled from the list of servers available in the algorithm. This node elimination prevents the algorithm from trying to reach an unreachable server, even though no requests may have been sent to those individual servers yet.
[0033]
Rather than using a hardware load balancer to map domain names to some IP addresses, i.e., forward requests sent to a web server to some object servers, the system according to the invention also uses DNSRoundRobin's Such a DNS protocol can be used. However, DNS typically does not determine or detect whether those IP addresses are actually "live".
[0034]
A hardware load balancer has a specific format for a particular server or server cluster depending on whether the request is for dynamic page creation or whether the request is for static pages. Can be used to proxy requests. In FIG. 4, a
[0035]
While it may be desirable to optimize the
[0036]
In one such approach, the
[0037]
That part of the information in the cookie can remain the same as long as the request can return to the primary server. If the primary server does not work for any reason, the secondary server can designate itself as the new primary server. The new primary server can then insert new information about the new secondary server into the segment, which can be selected by the new primary server or load balancing mechanism. Alternatively, the hardware load balancer may select a new primary server and forward the request to the new primary server.
[0038]
The first request for a session received at the load balancer cannot be tightly coded to go to essentially one server. The decision to "stick" to one server can be defined after the first request has been made and it has returned from the object server or another end server. A hardware load balancer may be sufficiently sophisticated to do this "simple stickiness", that is, essentially return to the designated primary server to which the load balancer is connected. it can.
[0039]
If no cookies are present, the hardware load balancer can be constructed to use any of a number of load balancing methods, such as based on load or response time. The load balancer can then select a server, for example, in an appropriate cluster, and send a request to that server. When the primary server responds to the request, it can send a cookie to the browser containing a piece of information about the primary and secondary servers. Each subsequent request from the browser received by the hardware load balancer may have a cookie associated with it, so that the load balancer can associate the request with the primary server.
[0040]
The system will not yet be able to guarantee that the request will go to the primary server. As shown in FIG. 4, if the
[0041]
If the
[0042]
Once the selected
[0043]
If the
[0044]
A system with a hardware load balancer with a servlet cluster behind it can provide a high-speed data path. If the web server does the routing, the request will need to come into the software where some code is running and then be sent back over the network. It can be very fast because the load balancer / servlet cluster system does everything at the low protocol layer.
[0045]
It may be advantageous to place the load balancing algorithm as far as possible. In the case of a hardware load balancer, it may only be necessary to verify that the software on the server is working properly, such as software that can be written in Java. In a system without a hardware load balancer, one would have to make sure that each of the special plug-ins for each web server in the system was working as well.
[0046]
It will also need to support plugins for different platforms. Hardware load balancers can work equally well in systems based on different platforms such as, for example, Netscape Application Server (NAS), WebLogic Server (WLS), Microsoft Internet Information Server (IIS), or Apache HTTP Server. By using a hardware load balancer, the system can reduce complexity by one step so that one of the dikes can be eliminated. This is shown in Figure 4, where the web server and the servlet engine are in the same process.
[0047]
Some of the systems described above can utilize servlets for web access. A similar mechanism can be used to access stateful session beans or some form of EnterpriseJavaBean ("ejb"). Servlets can be used to service requests from browser clients, while ejb servers can be used to support requests from Java clients.
[0048]
In a Java client, there can be one persistent connection for the duration of a session. At that time, there will be no need (or support) for cookies. Also, since there is a persistent connection, there will no longer be a need for a load balancer. A Java client can connect to one of the end servers using, for example, DNS or a load balancer. Next, the Java client can look for a "handle" to the stateful session. Handles in Java are similar to pointers and can be used to locate the appropriate session.
[0049]
Turning to the
[0050]
The
[0051]
The
[0052]
From the above discussion, systems in accordance with the present invention generally can follow one of two bifurcated strategies, although various variants, including those described above, may be utilized. The intersection of such a strategy is shown in FIG. In
[0053]
In this regard, processing is divided into policies that can be useful for software load balancing and processes that can be useful for hardware load balancing. FIG. 7 shows a
[0054]
Another strategy that is useful for systems with hardware load balancers is shown in FIG. In the
[0055]
To maintain consistency in any embodiment of the present invention, changes in session data can be associated with a version number. The primary and secondary servers can each know which version of the session it has stored. The server can be instructed to modify the data only if it receives a request with a later or higher version number than the one it is currently storing. The primary and secondary servers can periodically check with each other to make sure they are on the same version number. Version numbers can be used as simple as incrementing to guarantee order. To maintain consistency in session information, it may be desirable for the primary and secondary servers to synchronize. When the version numbers are out of sync, the primary server can decide to send all session information to the secondary server to restore session synchronization. This synchronization also facilitates the server's ability to switch roles between primary and secondary if needed.
[0056]
If the primary server cannot update the information on the secondary server, for example, due to a bad connection, the primary server will keep updating and the secondary server will not recognize any updates There could be. Then it is possible that the primary server will be several versions ahead of the secondary server. Once the primary server is able to send information to the secondary server again, the differences between two consecutive versions cannot work. In such a case, the primary server can send the entire new series of session data to the secondary server to ensure consistency of the data session between the two servers. In this case, the secondary server either gets the differences between successive versions or gets all the data for the entire session. In other embodiments, it would be possible to create a difference between any versions in order to have the secondary server reach the current version.
[0057]
In simulating cookies to track the state of Java, a large random number can be used for server identification. The number can be large enough that the sum of the identification numbers of the two different pairs is unlikely to be the same. It is possible to just send these two numbers back to the Java client, and the pair of servers can be identified by adding the two numbers to get a new number. This allows two servers to be specified by passing only one number, which can increase efficiency. Because Java clients can connect to a particular server persistently, the client obtains the secondary server's identification number by subtracting the primary server's identification number from the total number passed. The next server can be specified.
[0058]
However, Java objects, such as session beans, can have stateless or transient states, as opposed to the persistent states discussed above. If the Java session bean is stateless, the bean will not be able to maintain session information between calls or between successive requests. If the session information is stored elsewhere, the stateless bean can temporarily load the session information to satisfy the request. Failover, i.e., leaving the session control to a new primary server with duplicated session information, means that, for example, the primary server never receives a request, and the request is procedural and aborted, i.e., one-time only. It can only occur where there is an obvious call failure, such as a request. On the other hand, if the session bean is temporary, the instance can be created by a stateless factory using stateless load balancing and failover. Beans in the transient state either cannot be backed up in memory, or can be backed up using primary / secondary replication as described above.
[0059]
Bulk changes can be used to increase the throughput of a system with increased gaps in failure. During batch processing or "box transport", several requests are sent together as one large request to increase efficiency and scalability. The batching of requests can be based on any of a number of criteria, such as time intervals or number of requests. For example, the system may send a batch of requests every 10 seconds or for every 100 individual session update messages. The system can also send a batch 10 seconds after the last batch or when 100 requests have been received, meeting both criteria, both of which are first. With batch processing, the system will no longer be as reliable as synchronous updates, but it can increase the scalability of the overall system.
[0060]
The criteria may also be configurable, for example, by a user or an administrator. A configurable criterion may be suitable for situations where the system faces heavy traffic at certain times, but little traffic at other times. For example, a configurable criterion makes it possible to batch process every 100 messages during peak hours and not process batches at all during idle times, so that each request is sent in a reasonable time It becomes.
[0061]
A system administrator can also pair two servers in a cluster as primary and secondary servers. Administrator input may be desired to increase the fault tolerance of the entire system. For example, multiple servers can be located on one physical machine, and an algorithm may decide to place both primary and secondary servers on the same machine. Then, if the machine fails, the session information may be lost altogether. To prevent loss of session information from a machine failure, the administrator may decide to designate each of the primary and secondary servers on a physically separate machine. The administrator can also select the primary server based on various load balancing schemes. Examples of possible schemes are based on server load, number of connections, and physical proximity.
[0062]
The foregoing description of a more preferred embodiment of the present invention has been provided for purposes of illustration and description. It is not intended to be exhaustive or to limit the invention to the precise form disclosed. Obviously, many modifications and variations will be apparent to practitioners skilled in this art. The present embodiments have been selected and described in order to best explain the principles of the invention and its practical application, and thus those skilled in the art will recognize that various implementations may be appropriate for the particular use intended. It is possible to understand the invention in form and with various modifications. It is intended that the technical scope of the present invention be defined by the following claims and their equivalents.
[Brief description of the drawings]
[0063]
FIG. 1 is a diagram of an application server system according to an embodiment of the present invention.
FIG. 2 is a diagram of a multi-tier architecture according to one embodiment of the present invention.
FIG. 3 is a diagram of a servlet engine system according to one embodiment of the present invention.
FIG. 4 is a diagram of a load balancer system according to one embodiment of the present invention.
FIG. 5 is a diagram of a Java system according to one embodiment of the present invention.
FIG. 6 is a flowchart of a process according to an embodiment of the present invention.
FIG. 7 is a flowchart of processing of a software load balancer according to an embodiment of the present invention.
FIG. 8 is a flowchart of a process of a hardware load balancer according to an embodiment of the present invention.
Claims (74)
b.クライアントセッション中の要求を受け取り、当該要求に応答し、さらに前記クライアントセッションにおけるセッション情報を格納する一次サーバーと、
c.クライアントセッション中の要求を受け取り、当該要求に応答し、さらに前記クライアントセッションにおけるセッション情報を格納する二次サーバーと、
d.前記一次及び二次サーバーの識別情報を含むクライアントからの要求を受け取り、前記識別情報を処理し、前記一次サーバー上で前記プロセス要求に応じるウェブサーバーと、
を備え、前記ウェブサーバーは、さらに前記一次サーバーが要求を処理できない場合に、前記二次サーバー上で当該要求に応じる、
ことを特徴とするシステム。A system for replicating information during a client session,
b. A primary server for receiving a request during a client session, responding to the request, and further storing session information for the client session;
c. A secondary server for receiving a request during a client session, responding to the request, and further storing session information for the client session;
d. A web server that receives a request from a client including the identification information of the primary and secondary servers, processes the identification information, and responds to the process request on the primary server;
Wherein the web server further responds to the request on the secondary server if the primary server cannot process the request,
A system characterized in that:
請求項1記載のシステム。Further comprising a database in communication with the primary and secondary servers, the database storing information useful for processing requests;
The system according to claim 1.
請求項1記載のシステム。The primary server further updates the session information stored in the secondary session server each time a request is received in the client session.
The system according to claim 1.
請求項1記載のシステム。The web server further selects the primary server from a plurality of servers when an initial request is received in the client session and no identity is present on the client.
The system according to claim 1.
請求項1記載のシステム。Further comprising a cookie stored on the client, wherein the cookie includes identification of the primary and secondary servers;
The system according to claim 1.
請求項5記載のシステム。The primary server further creates the cookie on the client;
The system according to claim 5.
請求項1記載のシステム。The web server further comprising a plug-in including an algorithm used to select the primary server;
The system according to claim 1.
請求項1記載のシステム。The web server further comprising a plug-in that includes an algorithm used to send requests to the primary and secondary servers;
The system according to claim 1.
請求項7記載のシステム。The algorithm is a load balancing algorithm,
The system according to claim 7.
請求項1記載のシステム。The primary server is adapted to select the secondary server,
The system according to claim 1.
請求項1記載のシステム。Starting the client session when the primary server receives an initial request from a client;
The system according to claim 1.
請求項1記載のシステム。The secondary server further becomes a new primary server when receiving a request that the primary server could not process;
The system according to claim 1.
請求項12記載のシステム。The secondary server further selects a new secondary server and sends session information to the new secondary server;
13. The system according to claim 12.
請求項12記載のシステム。The web server selects a new secondary server,
13. The system according to claim 12.
請求項1記載のシステム。The secondary server further monitors the primary server to determine whether the primary server can receive the request;
The system according to claim 1.
請求項1記載のシステム。The secondary server further becomes a new primary server if the primary server cannot receive the request;
The system according to claim 1.
請求項1記載のシステム。One of the primary and secondary servers is selected from the group consisting of a web server, a servlet engine, and an enterprise Java bean engine;
The system according to claim 1.
a.クライアントセッション中でJavaクライアントからの要求を受け取り、当該要求に応答し、さらに、前記クライアントセッションにおけるセッション情報を格納する一次サーバーと、
b.クライアントセッション中で要求を受け取り、当該要求に応答し、さらに、前記クライアントセッションにおけるセッション情報を格納する二次サーバーと、
c.前記クライアントセッションにおける情報を保持し、かつ前記一次及び二次サーバーの識別情報をクライアントに送り返すのに使用される、前記一次サーバー上の状態有りセッションビーンと、
を備えることを特徴とするシステム。A system for replicating information during a Java client session,
a. A primary server that receives a request from a Java client during a client session, responds to the request, and further stores session information in the client session;
b. A secondary server that receives a request in a client session, responds to the request, and further stores session information in the client session;
c. A stateful session bean on the primary server, which retains information in the client session and is used to send identification of the primary and secondary servers back to a client;
A system comprising:
請求項18記載のシステム。Further comprising a load balancer for receiving a request from a client and selecting the primary server;
19. The system according to claim 18.
請求項18記載のシステム。The primary server further maintains a persistent connection with a Java client during the client session;
19. The system according to claim 18.
請求項1記載のシステム。The web server further sends a batch request to the primary server,
The system according to claim 1.
a.複数のセッションサーバーから一次サーバーを選択するために、クライアントセッション中のクライアントからの最初の要求に対して負荷平衡化の決定を行うステップと、
b.前記一次サーバー上で前記要求に応じるステップと、
c.二次サーバーを選択するステップと、
d.前記一次サーバーから前記二次サーバーへ、前記クライアントセッションにおけるセッション情報を送るステップと、
e.前記クライアントセッションで要求が受け取られる度に、前記一次及び二次サーバー上のセッション情報を更新するステップと、
を含むことを特徴とする方法。A method for providing redundancy during a client session, comprising:
a. Making a load balancing decision on an initial request from a client during a client session to select a primary server from a plurality of session servers;
b. Responding to the request on the primary server;
c. Selecting a secondary server;
d. Sending session information in the client session from the primary server to the secondary server;
e. Updating session information on the primary and secondary servers each time a request is received in the client session;
A method comprising:
請求項22記載の方法。Further comprising storing the information in a cookie on the client.
23. The method according to claim 22.
請求項22記載の方法。Further comprising, if the primary server cannot process the request, responding to the request on the secondary server;
23. The method according to claim 22.
請求項24記載の方法。Further comprising selecting a new secondary server,
25. The method according to claim 24.
請求項22記載の方法。The method further includes a step of collectively responding to a request to the primary server,
23. The method according to claim 22.
請求項22記載の方法。The method further includes a step of collectively sending session information in the client session from the primary server to the secondary server,
23. The method according to claim 22.
請求項22記載の方法。Further comprising maintaining session information in a stateful session bean;
23. The method according to claim 22.
請求項22記載の方法。Associating a version number with each update to the session information as requested.
23. The method according to claim 22.
請求項22記載の方法。Sending session information in the client session from the primary server to the secondary server includes sending a difference in information including a change in the session information.
23. The method according to claim 22.
請求項22記載の方法。Assigning an identification number to each of the primary and secondary servers,
23. The method according to claim 22.
請求項31記載の方法。Adding the identification numbers of the primary and secondary servers to obtain one number representing both the primary and secondary servers,
The method of claim 31.
a.複数のセッションサーバーと、
b.クライアントセッション中の要求を受け取り、当該要求に応答し、さらに、当該クライアントセッションにおけるセッション情報を格納し、かつ前記一次サーバーに関する情報を含むクッキーを作成し、当該クッキーをセッションクライアントに送る、前記複数のセッションサーバー内の一次サーバーと、
c.前記一次サーバーから前記セッション情報を受け取り、当該セッション情報を格納し、さらに、クライアントセッション中の要求を受け取り、当該要求に応答する、前記一次サーバーにより選択される、前記複数のセッションサーバー内の二次サーバーと、
d.前記一次及び二次サーバーの識別情報を含むクライアントからの要求を受け取り、前記識別情報を処理し、かつ前記一次サーバー上で前記プロセス要求に応じるウェブサーバーと、
を備え、前記ウェブサーバーはさらに、前記一次サーバーが要求を処理できない場合に、前記二次サーバー上で当該要求に応じる、
ことを特徴とするシステム。A system for replicating information during a client session,
a. Multiple session servers,
b. Receiving the request during a client session, responding to the request, and further creating a cookie containing session information for the client session and including information about the primary server, sending the cookie to a session client. A primary server in the session server,
c. Receiving the session information from the primary server, storing the session information, further receiving a request during a client session, and responding to the request, selected by the primary server, a secondary in the plurality of session servers. Server and
d. A web server that receives a request from a client that includes the identification information of the primary and secondary servers, processes the identification information, and responds to the process request on the primary server;
Wherein the web server further responds to the request on the secondary server if the primary server cannot process the request.
A system characterized in that:
a.複数のセッションサーバーから一次サーバーを選択するために、クライアントセッション中のクライアントからの最初の要求に対する負荷平衡化の決定を行うステップと、
b.前記一次サーバー上で前記要求に応じるステップと、
c.前記一次サーバーから当該一次サーバーにより選択される二次サーバーに、前記クライアントセッションにおけるセッション情報を送るステップと、
d.前記一次及び二次サーバーを特定する情報を含むクッキーをセッションクライアント上に格納するステップと、
e.前記クライアントセッションで要求が受け取られる度に、前記一次及び二次サーバー上のセッション情報を更新するステップと、
を含むことを特徴とする方法。A method for providing redundancy during a client session, comprising:
a. Making a load balancing decision for an initial request from a client during a client session to select a primary server from the plurality of session servers;
b. Responding to the request on the primary server;
c. Sending session information in the client session from the primary server to a secondary server selected by the primary server;
d. Storing a cookie on the session client containing information identifying the primary and secondary servers;
e. Updating session information on the primary and secondary servers each time a request is received in the client session;
A method comprising:
請求項34記載の方法。Reading the identification information in the request received in the client session and responding to the request on the primary server.
35. The method according to claim 34.
a.複数のセッションサーバーと、
b.クライアントセッション中の要求を受け取り、当該要求に応答するのに適応し、さらに前記クライアントセッションにおけるセッション情報を格納するし、かつ、前記一次サーバーに関する情報を含むクッキーを作成し、当該クッキーをセッションクライアントに送る、前記複数のセッションサーバー内の一次サーバーと、
c.前記一次サーバーから前記セッション情報を受け取り、当該セッション情報を格納し、さらに、クライアントセッション中の要求を受け取り、当該要求に応答する、前記一次サーバーにより選択される、前記複数のセッションサーバー内の二次サーバーと、
d.クライアントから最初の要求を受け取り、当該要求を前記一次サーバーに送り、さらに、前記一次及び二次サーバーの識別情報を含むクライアントからの次に続く要求を受け取り、かつ前記識別情報を処理し、前記一次サーバー上で前記プロセス要求に応じる、前記一次サーバーを選択するための負荷平衡化ロジックを含むウェブサーバーと、
を備え、前記ウェブサーバーはさらに、前記一次サーバーが要求を処理できない場合に、前記二次サーバー上で当該要求に応じる、
ことを特徴とするシステム。A system for replicating information during a client session,
a. Multiple session servers,
b. Receiving a request during a client session and adapting to respond to the request, further storing session information in the client session, and creating a cookie containing information about the primary server, and sending the cookie to the session client. Sending, a primary server in the plurality of session servers;
c. Receiving the session information from the primary server, storing the session information, further receiving a request during a client session, and responding to the request, selected by the primary server, a secondary in the plurality of session servers. Server and
d. Receiving an initial request from a client, sending the request to the primary server, further receiving a subsequent request from the client including identification information of the primary and secondary servers, and processing the identification information, A web server including load balancing logic for selecting the primary server responsive to the process request on a server;
Wherein the web server further responds to the request on the secondary server if the primary server cannot process the request.
A system characterized in that:
a.複数のセッションサーバーから一次サーバーを選択するために、クライアントセッション中のクライアントからの最初の要求に対する負荷平衡化の決定を行うステップと、
b.前記一次サーバー上で前記要求に応じるステップと、
c.前記一次サーバーから当該一次サーバーにより選択された二次サーバーへ、前記クライアントセッションにおけるセッション情報を送るステップと、
d.セッションクライアント上にクッキーを格納するステップであって、当該クッキーが前記一次及び二次サーバーを特定する情報を含む当該ステップと、
e.前記クライアントセッション中の、次に続くいずれかの要求と共に受け取られる前記識別情報を読み取り、かつ前記一次サーバー上で当該次に続く要求に応じるステップと、
f.前記クライアントセッションにおいて、次に続く要求が前記一次サーバー上で応じられる度に、前記一次及び二次サーバー上のセッション情報を更新するステップと、
を含むことを特徴とする方法。A method for providing redundancy during a client session, comprising:
a. Making a load balancing decision for an initial request from a client during a client session to select a primary server from the plurality of session servers;
b. Responding to the request on the primary server;
c. Sending session information in the client session from the primary server to a secondary server selected by the primary server;
d. Storing a cookie on the session client, the cookie including information identifying the primary and secondary servers;
e. Reading the identification information received with any subsequent request during the client session and responding to the subsequent request on the primary server;
f. Updating session information on the primary and secondary servers each time a subsequent request is served on the primary server in the client session;
A method comprising:
a.クライアントからの最初の要求に応じて、複数のセッションサーバーから一次サーバーを選択するステップと、
b.クライアントセッションを開始するために、前記一次サーバー上で前記要求に応じるステップと、
c.二次サーバーを選択するステップと、
d.前記一次サーバーから前記二次サーバーへ、前記クライアントセッションにおけるセッション情報を送るステップと、
e.前記クライアントセッションで要求が受け取られる度に、前記一次及び二次サーバー上のセッション情報を更新するステップと、
を含むことを特徴とする方法。A method for providing redundancy during a client session, comprising:
a. Selecting a primary server from a plurality of session servers in response to an initial request from a client;
b. Responding to the request on the primary server to initiate a client session;
c. Selecting a secondary server;
d. Sending session information in the client session from the primary server to the secondary server;
e. Updating session information on the primary and secondary servers each time a request is received in the client session;
A method comprising:
請求項38記載の方法。Further comprising storing the information in a cookie on the client.
39. The method of claim 38.
請求項38記載の方法。Further comprising, if the primary server cannot process the request, responding to the request on the secondary server;
39. The method of claim 38.
請求項40記載の方法。Further comprising selecting a new secondary server,
41. The method of claim 40.
請求項38記載の方法。The method further includes a step of collectively responding to a request to the primary server,
39. The method of claim 38.
請求項38記載の方法。The method further includes a step of collectively sending session information in the client session from the primary server to the secondary server,
39. The method of claim 38.
a.複数のサーバーと、
b.クライアントセッション中の要求を受け取り、当該要求に応答し、さらに、前記クライアントセッションにおけるセッション情報を格納する、前記複数のサーバー内の一次サーバーと、
c.クライアントセッション中の要求を受け取り、当該要求に応答し、さらに、前記クライアントセッションにおけるセッション情報を格納する、前記複数のサーバー内の二次サーバーと、
d.前記一次及び二次サーバーの識別情報を含むクライアントからの要求を受け取り、前記識別情報を含む要求の該当部分を調べるハードウェア負荷平衡器と、
を備え、前記ハードウェア負荷平衡器がさらに、当該部分が前の要求以来変更されていない場合には、前記一次サーバー上で前記プロセス要求に応じ、当該部分が変更されていた場合には、前記複数のサーバーから新たな一次サーバーを選択する、
ことを特徴とするシステム。A system for replicating information during a client session,
a. Multiple servers,
b. A primary server in the plurality of servers for receiving a request during a client session, responding to the request, and further storing session information for the client session;
c. A secondary server in the plurality of servers that receives a request during a client session, responds to the request, and further stores session information in the client session;
d. A hardware load balancer for receiving a request from a client including the identification information of the primary and secondary servers and examining a corresponding part of the request including the identification information;
The hardware load balancer further comprises: responding to the process request on the primary server if the portion has not been modified since a previous request; and Select a new primary server from multiple servers,
A system characterized in that:
請求項44記載のシステム。Further comprising a cookie stored on a client, wherein the cookie includes identification of the primary and secondary servers;
The system of claim 44.
請求項45記載のシステム。The cookie includes a number for the primary server, and a number for the secondary server,
46. The system of claim 45.
請求項45記載のシステム。The cookie includes a number that is the sum of a number for the primary server and a number for the secondary server;
46. The system of claim 45.
請求項44記載のシステム。The hardware load balancer further selects a new primary server from the plurality of servers if the primary server cannot process the request;
The system of claim 44.
請求項44記載のシステム。When the primary server receives a request on a client session that is not hosted by itself, it requests session information in the client session from the secondary server, and the information in the client session stored on the secondary server Request,
The system of claim 44.
請求項44記載のシステム。The primary server further reads a cookie associated with a request received in a client session, and determines whether the primary server is hosting the client session.
The system of claim 44.
請求項44記載のシステム。The hardware load balancer further sends a request to the primary server in a lump;
The system of claim 44.
a.複数のサーバーから一次サーバーを選択するために、クライアントセッション中のクライアントからの最初の要求に対する負荷平衡化の決定を、ハードウェア負荷平衡器内のアルゴリズムを使って行うステップと、
b.前記一次サーバー上で前記要求に応じるステップと、
c.前記一次サーバーを使って二次サーバーを選択するステップと、
d.前記一次サーバーから前記二次サーバーへ、前記クライアントセッションにおけるセッション情報を送るステップと、
e.前記クライアントセッションで要求が受け取られる度に、前記一次及び二次サーバー上のセッション情報を更新するステップと、
を含むことを特徴とする方法。A method for providing redundancy during a client session, comprising:
a. Making an algorithm in a hardware load balancer to make a load balancing decision for an initial request from a client during a client session to select a primary server from the plurality of servers;
b. Responding to the request on the primary server;
c. Selecting a secondary server using the primary server;
d. Sending session information in the client session from the primary server to the secondary server;
e. Updating session information on the primary and secondary servers each time a request is received in the client session;
A method comprising:
請求項52記載の方法。Further comprising storing the information in a cookie on the client.
53. The method of claim 52.
請求項52記載の方法。Further comprising selecting a new primary server using the hardware load balancer if the primary server cannot process the request;
53. The method of claim 52.
請求項54記載の方法。Further comprising the step of responding to a request on said new primary server.
55. The method of claim 54.
請求項54記載の方法。Further comprising selecting a new secondary server,
55. The method of claim 54.
請求項52記載の方法。The method further includes a step of collectively responding to a request to the primary server,
53. The method of claim 52.
請求項52記載の方法。The method further includes a step of collectively sending session information in the client session from the primary server to the secondary server,
53. The method of claim 52.
請求項52記載の方法。Associating a version number with each update to the session information as requested.
53. The method of claim 52.
請求項52記載の方法。Sending session information in the client session from the primary server to the secondary server includes sending a difference in information including a change in the session information.
53. The method of claim 52.
請求項52記載の方法。Assigning an identification number to each of the primary and secondary servers,
53. The method of claim 52.
請求項52記載の方法。Adding an identification number for the primary server and an identification number for the secondary server to obtain a single number representing both the primary and secondary servers;
53. The method of claim 52.
a.複数のサーバーと、
b.クライアントセッション中の要求を受け取り、当該要求に応答し、さらに、前記クライアントセッションにおけるセッション情報を格納し、かつ前記一次サーバーに関する情報を含むクッキーを作成し、当該クッキーをセッションクライアントに送る、前記複数のサーバー内の一次サーバーと、
c.前記一次サーバーから前記セッション情報を受け取り、当該セッション情報を格納し、さらに、クライアントセッション中の要求を受け取り、当該要求に応答する、前記一次サーバーによって選択される、前記複数のサーバー内の二次サーバーと、
d.前記一次及び二次サーバーの識別情報を含むクライアントからの要求を受け取り、ウェブサーバーが前記識別情報を処理しかつ前記一次サーバー上で前記プロセス要求に応じる、ハードウェア負荷平衡器と、
を備え、前記ハードウェア負荷平衡器は、前記一次サーバーが要求を処理できない場合に、新たな一次サーバー上で当該要求に応じる、
ことを特徴とするシステム。A system for replicating information during a client session,
a. Multiple servers,
b. Receiving the request during a client session, responding to the request, and further creating a cookie containing session information for the client session and including information about the primary server, and sending the cookie to a session client. A primary server in the server,
c. A secondary server in the plurality of servers, receiving the session information from the primary server, storing the session information, further receiving a request during a client session, and responding to the request, selected by the primary server. When,
d. A hardware load balancer receiving a request from a client including the identification information of the primary and secondary servers, and a web server processing the identification information and responding to the process request on the primary server;
Wherein the hardware load balancer responds to the request on a new primary server if the primary server cannot handle the request.
A system characterized in that:
a.複数のサーバーから一次サーバーを選択するために、クライアントセッション中のクライアントからの最初の要求に対する負荷平衡化の決定を、ハードウェア負荷平衡器内のアルゴリズムを使って行うステップと、
b.前記一次サーバー上で前記要求に応じるステップと、
c.前記一次サーバーから当該一次サーバーにより選択される二次サーバーへ、前記クライアントセッションにおけるセッション情報を送るステップと、
d.前記一次及び二次サーバーを特定する情報を含むクッキーをセッションクライアント上に格納するステップと、
e.前記クライアントセッションで要求が受け取られる度に、前記一次及び二次サーバー上のセッション情報を更新するステップと、
を含むことを特徴とする方法。A method for providing redundancy during a client session, comprising:
a. Making an algorithm in a hardware load balancer to make a load balancing decision for an initial request from a client during a client session to select a primary server from the plurality of servers;
b. Responding to the request on the primary server;
c. Sending session information in the client session from the primary server to a secondary server selected by the primary server;
d. Storing a cookie on the session client containing information identifying the primary and secondary servers;
e. Updating session information on the primary and secondary servers each time a request is received in the client session;
A method comprising:
請求項64記載の方法。Processing a portion of a cookie that includes identification information for a request received during the client session, and responding to the request on the primary server.
65. The method of claim 64.
a.複数のサーバーと、
b.クライアントセッション中の要求を受け取り、当該要求に応答し、さらに、前記クライアントセッションにおけるセッション情報を格納し、かつ前記一次サーバーに関する情報を含むクッキーを作成し、当該クッキーをセッションクライアントに送る、前記複数のサーバー内の一次サーバーと、
c.前記一次サーバーから前記セッション情報を受け取り、当該セッション情報を格納し、さらに、クライアントセッション中で要求を受け取り、当該要求に応答する、前記一次サーバーによって選択される、前記複数のサーバー内の二次サーバーと、
d.クライアントからの最初の要求を受け取り、当該要求を前記一次サーバーに送り、さらに、前記一次及び二次サーバーの識別情報を含むクライアントからの次に続く要求を受け取り、かつ、前記識別情報を処理し、前記一次サーバー上で前記プロセス要求に応じる、前記一次サーバーを選択するための負荷平衡化ロジックを含むハードウェア負荷平衡器と、
を備え、前記ハードウェア負荷平衡器はさらに、前記一次サーバーが要求を処理できない場合に、新たな一次サーバーを選択し、当該新たな一次サーバー上で当該要求に応じる、
ことを特徴とするシステム。A system for replicating information during a client session,
a. Multiple servers,
b. Receiving the request during a client session, responding to the request, and further creating a cookie containing session information for the client session and including information about the primary server, and sending the cookie to a session client. A primary server in the server,
c. A secondary server in the plurality of servers, receiving the session information from the primary server, storing the session information, further receiving a request during a client session and responding to the request, selected by the primary server. When,
d. Receiving an initial request from a client, sending the request to the primary server, further receiving a subsequent request from the client including the identification information of the primary and secondary servers, and processing the identification information; A hardware load balancer responsive to the process request on the primary server, the load balancer including load balancing logic for selecting the primary server;
The hardware load balancer further selects a new primary server if the primary server cannot process the request and responds to the request on the new primary server.
A system characterized in that:
a.複数のサーバーから一次サーバーを選択するために、クライアントセッション中のクライアントからの最初の要求に対する負荷平衡化の決定を、ハードウェア負荷平衡器内のアルゴリズムを使って行うステップと、
b.前記一次サーバー上で前記要求に応じるステップと、
c.前記一次サーバーから当該一次サーバーにより選択された二次サーバーへ、前記クライアントセッションにおける情報を送るステップと、
d.前記セッションクライアント上に、前記一次及び二次サーバーを特定するための情報を含むクッキーを格納するステップと、
e.前記クライアントセッション中の、次に続くいずれかの要求と共に受け取られる前記識別情報を読み取り、かつ前記一次サーバー上で当該次に続く要求に応じるステップと、
f.前記クライアントセッションにおいて、次に続く要求が前記一次サーバー上で応じられる度に、前記一次及び二次サーバー上のセッション情報を更新するステップと、
を含むことを特徴とする方法。A method for providing redundancy during a client session, comprising:
a. Making an algorithm in a hardware load balancer to make a load balancing decision for an initial request from a client during a client session to select a primary server from the plurality of servers;
b. Responding to the request on the primary server;
c. Sending information in the client session from the primary server to a secondary server selected by the primary server;
d. Storing a cookie on the session client containing information for identifying the primary and secondary servers;
e. Reading the identification information received with any subsequent request during the client session and responding to the subsequent request on the primary server;
f. Updating session information on the primary and secondary servers each time a subsequent request is served on the primary server in the client session;
A method comprising:
a.クライアントからの最初の要求に応じて、複数のサーバーから一次サーバーを、ハードウェア負荷平衡器内の負荷平衡化ロジックを使って選択するステップと、
b.クライアントセッションを開始するために、前記一次サーバー上で前記要求に応じるステップと、
c.二次サーバーを選択するステップと、
d.前記一次サーバーから前記二次サーバーへ、前記クライアントセッションにおけるセッション情報を送るステップと、
e.前記クライアントセッションで要求が受け取られる度に、前記一次及び二次サーバー上のセッション情報を更新するステップと、
を含むことを特徴とする方法。A method for providing redundancy during a client session, comprising:
a. Selecting a primary server from the plurality of servers in response to an initial request from a client using load balancing logic in a hardware load balancer;
b. Responding to the request on the primary server to initiate a client session;
c. Selecting a secondary server;
d. Sending session information in the client session from the primary server to the secondary server;
e. Updating session information on the primary and secondary servers each time a request is received in the client session;
A method comprising:
請求項68記載の方法。Further comprising storing the information in a cookie on the client.
70. The method of claim 68.
請求項68記載の方法。Further comprising responding to the request on the new primary server if the primary server cannot process the request;
70. The method of claim 68.
請求項68記載の方法。Selecting a new primary server using load balancing logic in the hardware load balancer.
70. The method of claim 68.
請求項68記載の方法。Further comprising selecting a new secondary server,
70. The method of claim 68.
請求項68記載の方法。The method further includes a step of collectively responding to a request to the primary server,
70. The method of claim 68.
請求項68記載の方法。The method further includes a step of collectively sending session information in the client session from the primary server to the secondary server,
70. The method of claim 68.
Applications Claiming Priority (5)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
US30599201P | 2001-07-16 | 2001-07-16 | |
US30596901P | 2001-07-16 | 2001-07-16 | |
US10/000,708 US7409420B2 (en) | 2001-07-16 | 2001-10-31 | Method and apparatus for session replication and failover |
US10/000,709 US7702791B2 (en) | 2001-07-16 | 2001-10-31 | Hardware load-balancing apparatus for session replication |
PCT/US2002/022429 WO2003009157A1 (en) | 2001-07-16 | 2002-07-15 | Method and apparatus for session replication and failover |
Publications (3)
Publication Number | Publication Date |
---|---|
JP2004536406A true JP2004536406A (en) | 2004-12-02 |
JP2004536406A5 JP2004536406A5 (en) | 2006-01-05 |
JP4295089B2 JP4295089B2 (en) | 2009-07-15 |
Family
ID=27485017
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2003514431A Expired - Lifetime JP4295089B2 (en) | 2001-07-16 | 2002-07-15 | Method and apparatus for session replication and failover |
Country Status (5)
Country | Link |
---|---|
EP (1) | EP1415236B1 (en) |
JP (1) | JP4295089B2 (en) |
CN (1) | CN100568214C (en) |
AU (1) | AU2002329602B2 (en) |
WO (1) | WO2003009157A1 (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2004178286A (en) * | 2002-11-27 | 2004-06-24 | Fujitsu Ltd | Relay device |
JP2007511807A (en) * | 2003-08-14 | 2007-05-10 | オラクル・インターナショナル・コーポレイション | Transparent session transport between servers |
JP2009521741A (en) * | 2005-12-22 | 2009-06-04 | インターナショナル・ビジネス・マシーンズ・コーポレーション | Method and apparatus for collecting data characterizing HTTP session load |
JPWO2014020742A1 (en) * | 2012-08-02 | 2016-07-11 | 株式会社Murakumo | Load balancing apparatus, information processing system, method and program |
WO2019167421A1 (en) * | 2018-03-01 | 2019-09-06 | 株式会社日立製作所 | Simulator, simulation device, and simulation method |
Families Citing this family (21)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7689685B2 (en) | 2003-09-26 | 2010-03-30 | International Business Machines Corporation | Autonomic monitoring for web high availability |
US7941556B2 (en) | 2005-02-23 | 2011-05-10 | At&T Intellectual Property I, Lp | Monitoring for replica placement and request distribution |
CN100391162C (en) * | 2005-04-13 | 2008-05-28 | 华为技术有限公司 | A control method for switching servers |
EP1770954A1 (en) * | 2005-10-03 | 2007-04-04 | Amadeus S.A.S. | System and method to maintain coherence of cache contents in a multi-tier software system aimed at interfacing large databases |
EP2036274B1 (en) * | 2006-06-07 | 2016-09-28 | Qualcomm Incorporated | Propagating session state changes to network functions in an active set |
US7725764B2 (en) * | 2006-08-04 | 2010-05-25 | Tsx Inc. | Failover system and method |
WO2011043892A2 (en) * | 2009-10-06 | 2011-04-14 | Motorola Mobility, Inc. | Method and system for restoring a server interface for a mobile device |
US8335765B2 (en) | 2009-10-26 | 2012-12-18 | Amazon Technologies, Inc. | Provisioning and managing replicated data instances |
CN103051647B (en) * | 2011-10-13 | 2016-03-30 | 阿里巴巴集团控股有限公司 | Method, equipment and system that a kind of session realizes |
US9148304B2 (en) * | 2011-11-16 | 2015-09-29 | International Business Machines Corporation | Generating production server load activity for a test server |
CN102521027B (en) * | 2011-12-02 | 2013-10-30 | 华中科技大学 | Window interface transmission method in virtual desktop system |
CN103795767B (en) * | 2012-11-02 | 2017-04-12 | 阿里巴巴集团控股有限公司 | Synchronization method and system for cross-application session information |
CN103024058A (en) * | 2012-12-19 | 2013-04-03 | 中国电子科技集团公司第十五研究所 | Method and system for invoking web services |
CN104283948B (en) * | 2014-09-26 | 2018-12-07 | 东软集团股份有限公司 | Server cluster system and its implementation of load balancing |
CN105306598A (en) * | 2015-11-19 | 2016-02-03 | 炫彩互动网络科技有限公司 | Remote data invocation method capable of realizing load balancing |
CN106933675A (en) * | 2015-12-31 | 2017-07-07 | 华为技术有限公司 | A kind of method of process task, manager, server and system |
EP3593516B1 (en) | 2017-03-06 | 2021-08-18 | Telefonaktiebolaget LM Ericsson (PUBL) | Method and control node for managing cloud resources in a communications network |
CN108769257B (en) * | 2018-06-28 | 2021-05-07 | 新华三信息安全技术有限公司 | Server switching method and device |
CN110191165B (en) * | 2019-05-20 | 2023-05-12 | 深圳前海微众银行股份有限公司 | Method and device for processing code execution request |
CN113014629A (en) * | 2021-02-10 | 2021-06-22 | 上海牙木通讯技术有限公司 | Proxy forwarding method of handle identifier, server and computer readable storage medium |
CN112769960B (en) * | 2021-03-09 | 2024-09-27 | 厦门市公安局 | Active flow control method and system based on Nginx server |
Family Cites Families (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5774668A (en) * | 1995-06-07 | 1998-06-30 | Microsoft Corporation | System for on-line service in which gateway computer uses service map which includes loading condition of servers broadcasted by application servers for load balancing |
US5828847A (en) * | 1996-04-19 | 1998-10-27 | Storage Technology Corporation | Dynamic server switching for maximum server availability and load balancing |
US5933606A (en) * | 1997-02-19 | 1999-08-03 | International Business Machines Corporation | Dynamic link page retargeting using page headers |
US6134673A (en) * | 1997-05-13 | 2000-10-17 | Micron Electronics, Inc. | Method for clustering software applications |
US6199110B1 (en) * | 1997-05-30 | 2001-03-06 | Oracle Corporation | Planned session termination for clients accessing a resource through a server |
JPH11167510A (en) * | 1997-12-04 | 1999-06-22 | Hitachi Ltd | Replication method, replication tool, and replication server |
US6195680B1 (en) * | 1998-07-23 | 2001-02-27 | International Business Machines Corporation | Client-based dynamic switching of streaming servers for fault-tolerance and load balancing |
AU2629300A (en) | 1999-01-28 | 2000-08-18 | Webspective Software, Inc. | Web server content replication |
AU4717901A (en) | 1999-12-06 | 2001-06-25 | Warp Solutions, Inc. | System and method for dynamic content routing |
-
2002
- 2002-07-15 CN CNB028168976A patent/CN100568214C/en not_active Expired - Lifetime
- 2002-07-15 EP EP02765841.8A patent/EP1415236B1/en not_active Expired - Lifetime
- 2002-07-15 AU AU2002329602A patent/AU2002329602B2/en not_active Expired
- 2002-07-15 JP JP2003514431A patent/JP4295089B2/en not_active Expired - Lifetime
- 2002-07-15 WO PCT/US2002/022429 patent/WO2003009157A1/en active Application Filing
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2004178286A (en) * | 2002-11-27 | 2004-06-24 | Fujitsu Ltd | Relay device |
JP2007511807A (en) * | 2003-08-14 | 2007-05-10 | オラクル・インターナショナル・コーポレイション | Transparent session transport between servers |
JP2009521741A (en) * | 2005-12-22 | 2009-06-04 | インターナショナル・ビジネス・マシーンズ・コーポレーション | Method and apparatus for collecting data characterizing HTTP session load |
JPWO2014020742A1 (en) * | 2012-08-02 | 2016-07-11 | 株式会社Murakumo | Load balancing apparatus, information processing system, method and program |
WO2019167421A1 (en) * | 2018-03-01 | 2019-09-06 | 株式会社日立製作所 | Simulator, simulation device, and simulation method |
JP2019153017A (en) * | 2018-03-01 | 2019-09-12 | 株式会社日立製作所 | Simulator, simulation device, and simulation method |
KR20200029574A (en) * | 2018-03-01 | 2020-03-18 | 가부시키가이샤 히타치세이사쿠쇼 | Simulator, simulation device, and simulation method |
KR102339747B1 (en) | 2018-03-01 | 2021-12-16 | 가부시키가이샤 히타치세이사쿠쇼 | Simulator, simulation device, and simulation method |
Also Published As
Publication number | Publication date |
---|---|
EP1415236A4 (en) | 2009-11-04 |
EP1415236A1 (en) | 2004-05-06 |
CN1549978A (en) | 2004-11-24 |
WO2003009157A1 (en) | 2003-01-30 |
CN100568214C (en) | 2009-12-09 |
AU2002329602A2 (en) | 2003-03-03 |
JP4295089B2 (en) | 2009-07-15 |
EP1415236B1 (en) | 2018-04-18 |
AU2002329602B2 (en) | 2008-05-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP4295089B2 (en) | Method and apparatus for session replication and failover | |
US7409420B2 (en) | Method and apparatus for session replication and failover | |
US7702791B2 (en) | Hardware load-balancing apparatus for session replication | |
US11349949B2 (en) | Method of using path signatures to facilitate the recovery from network link failures | |
AU2002329602A1 (en) | Method and apparatus for session replication and failover | |
US5774660A (en) | World-wide-web server with delayed resource-binding for resource-based load balancing on a distributed resource multi-node network | |
US6182139B1 (en) | Client-side resource-based load-balancing with delayed-resource-binding using TCP state migration to WWW server farm | |
EP1963985B1 (en) | System and method for enabling site failover in an application server environment | |
US6430622B1 (en) | Methods, systems and computer program products for automated movement of IP addresses within a cluster | |
US7424547B2 (en) | File sharing device and inter-file sharing device data migration method | |
EP1192545B1 (en) | Internet server session backup apparatus | |
US7254636B1 (en) | Method and apparatus for transparent distributed network-attached storage with web cache communication protocol/anycast and file handle redundancy | |
US20020169889A1 (en) | Zero-loss web service system and method | |
US6934875B2 (en) | Connection cache for highly available TCP systems with fail over connections | |
US6871296B2 (en) | Highly available TCP systems with fail over connections | |
US6996617B1 (en) | Methods, systems and computer program products for non-disruptively transferring a virtual internet protocol address between communication protocol stacks | |
US20050141506A1 (en) | Methods, systems and computer program products for cluster workload distribution | |
JP2002132568A (en) | System and method for client control | |
JP4123440B2 (en) | Object-oriented network distributed computing system, load balancing apparatus and server thereof | |
HK40066746A (en) | Cloud server live migration method, virtual switch and software defined network architecture |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20050713 |
|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20050713 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20080519 |
|
A601 | Written request for extension of time |
Free format text: JAPANESE INTERMEDIATE CODE: A601 Effective date: 20080819 |
|
A602 | Written permission of extension of time |
Free format text: JAPANESE INTERMEDIATE CODE: A602 Effective date: 20080826 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20080919 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20081125 |
|
TRDD | Decision of grant or rejection written | ||
A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20090323 |
|
A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20090409 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20120417 Year of fee payment: 3 |
|
R150 | Certificate of patent or registration of utility model |
Ref document number: 4295089 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
S111 | Request for change of ownership or part of ownership |
Free format text: JAPANESE INTERMEDIATE CODE: R313113 |
|
S531 | Written request for registration of change of domicile |
Free format text: JAPANESE INTERMEDIATE CODE: R313531 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20120417 Year of fee payment: 3 |
|
R350 | Written notification of registration of transfer |
Free format text: JAPANESE INTERMEDIATE CODE: R350 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20120417 Year of fee payment: 3 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20130417 Year of fee payment: 4 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20130417 Year of fee payment: 4 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20140417 Year of fee payment: 5 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
EXPY | Cancellation because of completion of term |