CN104954182A - Method and device for configuring virtual server cluster - Google Patents

Method and device for configuring virtual server cluster Download PDF

Info

Publication number
CN104954182A
CN104954182A CN201510314351.4A CN201510314351A CN104954182A CN 104954182 A CN104954182 A CN 104954182A CN 201510314351 A CN201510314351 A CN 201510314351A CN 104954182 A CN104954182 A CN 104954182A
Authority
CN
China
Prior art keywords
virtual
virtual server
address
routing device
server
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
Application number
CN201510314351.4A
Other languages
Chinese (zh)
Other versions
CN104954182B (en
Inventor
陈建
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Qihoo Technology Co Ltd
Original Assignee
Beijing Qihoo Technology Co Ltd
Qizhi Software Beijing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Qihoo Technology Co Ltd, Qizhi Software Beijing Co Ltd filed Critical Beijing Qihoo Technology Co Ltd
Priority to CN201510314351.4A priority Critical patent/CN104954182B/en
Publication of CN104954182A publication Critical patent/CN104954182A/en
Application granted granted Critical
Publication of CN104954182B publication Critical patent/CN104954182B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0823Configuration setting characterised by the purposes of a change of settings, e.g. optimising configuration for enhancing reliability
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0823Configuration setting characterised by the purposes of a change of settings, e.g. optimising configuration for enhancing reliability
    • H04L41/0826Configuration setting characterised by the purposes of a change of settings, e.g. optimising configuration for enhancing reliability for reduction of network costs
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/70Admission control; Resource allocation
    • H04L47/78Architectures of resource allocation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/70Admission control; Resource allocation
    • H04L47/80Actions related to the user profile or the type of traffic
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network

Abstract

An embodiment of the invention provides a method and a device for configuring a virtual server cluster. The method includes the steps: running dynamic routing protocol examples on a plurality of virtual servers in the virtual server cluster and on a routing device connected with the virtual servers; transmitting corresponding virtual IP (internet protocol) link information to the routing device respectively from the virtual servers; generating corresponding multi-path routing for the virtual servers on the routing device according to the corresponding virtual IP link information; distributing service flow corresponding to a virtual IP to the corresponding virtual servers from the routing device through the multi-path routing. The problem of performance bottleneck of a single virtual server is solved, the virtual server cluster is simply and conveniently extended, and operation and maintenance cost is greatly reduced.

Description

A kind of method and apparatus for configuration virtual server cluster
The application is the divisional application of following patent application:
Application number: 201210265130.9
The applying date: on July 27th, 2012
Denomination of invention: a kind of method and apparatus of configuration server cluster
Technical field
The present invention relates to virtual server, particularly one is used for the method and apparatus of configuration virtual server cluster (cluster).
Background technology
Virtual server, as network access equipment, is responsible for the load balancing of flow, must be had high availability and high-performance.Current high availability is realized by VRRP (Virtual Router Redundancy Protocol, Virtual Router Redundancy Protocol) heart-beat protocol.The object of VRRP heart-beat protocol design is the Single Point of Faliure problem caused to solve static routing.The core of VRRP is a selection protocol, the responsibility of a virtual router can be dynamically assigning in the VRRP router on local area network (LAN).The VRRP router controlling virtual router ip address is called active router, and it is responsible for forwarding data bag to these virtual ip address.Once active router is unavailable, this selection course just provides dynamic failover mechanisms, and this IP address with regard to permission virtual router can as acquiescence first hop router of end host.The benefit using VRRP is the availability having higher default path, and without the need to configuring dynamic routing or route discovery protocols on each end host.
In order to use VRRP heart-beat protocol, virtual server, when configuring, employs User space program Keepalived.Keepalived achieves VRRP heart-beat protocol, and when VRRP heartbeat changes, is responsible for the management of VIP.
One general configuration of Virtual Server Cluster in prior art is shown: adopt two virtual servers in Fig. 1, VRRP heart-beat protocol is adopted between virtual server, the main virtual server (priority=110) choosing out binds virtual IP address, and externally provides service.And main virtual server regularly sends VRRP heartbeat, so that standby virtual server (priority=90) knows that main virtual server is still effective.Wherein, main virtual server is decided by priority (Priority) field in VRRP heart-beat protocol, and what priority was maximum becomes main virtual server.
When the service routine of main virtual server breaks down, the state of two virtual servers can become state as shown in Figure 2: standby virtual server monitors VRRP heartbeat, when not receiving the heartbeat message of main virtual server, just automatically become main virtual server, adapter virtual IP address, externally provides service.Then, standby virtual server regularly sends VRRP heartbeat message.Follow-up, after the service recovery of main virtual server, initiatively can seize the virtual IP address on standby virtual server, again become main virtual server, flow also will come back on main virtual server.By said process, when the service of a virtual server is broken down time, an other virtual server can adapter service soon, achieves high availability.
VRRP agreement is a kind of routing protocol, when carrying out Route Selection, an active router can only be had to carry out routing forwarding.Correspond to the scene that virtual server uses, a virtual IP address can only be bundled on a virtual server within a period of time, like this, will cause following problem:
(1) single virtual server becomes performance bottleneck: because the flow of particular virtual IP can only be forwarded on a virtual server within a certain period of time, if flow corresponding to this virtual IP address is very large, this virtual server will become performance bottleneck;
(2) expansion of Virtual Server Cluster is comparatively complicated: generally, two virtual servers can be used to form a cluster to provide service, but along with the increase of business number and flow, cluster performance can run into bottleneck, now need to expand Virtual Server Cluster, have the following two kinds means to expand: the cluster of (a) newly-built two virtual server, its problem needs division business between multiple cluster artificially, to carry out flow equalization, if certain Business Stream quantitative change is large, also need to adjust at any time, b () increases virtual server to original cluster, its problem needs to be the priority of each delineation of activities each virtual server artificially, to realize the flow equalization of each virtual server and the high availability of each business, (suppose to be respectively virtual server A with three virtual servers, virtual server B, virtual server C) cluster be example, suppose that this cluster bears three business (business 1, business 2, business 3).Under desired configuration, the priority that business 1 is arranged is: virtual server A->110, virtual server B->90, virtual server C->70; The priority that business 2 is arranged is virtual server B->110, virtual server A->90, virtual server C->70; The priority that business 3 is arranged is virtual server C->110, virtual server B->90, virtual server A->70.Like this, when normal work, the flow of three business is fallen on three virtual servers respectively.If but increase a virtual server D again, so on this virtual server D, the priority of each business arranges just very complicated and loaded down with trivial details.
Summary of the invention
In order at least solve the problems of the technologies described above, the invention provides a kind of method and apparatus for configuration virtual server cluster.
According to a first aspect of the present invention, provide a kind of method for configuration virtual server cluster, comprising:
Operation state Routing Protocol example on multiple virtual servers in Virtual Server Cluster and on the routing device be connected with described multiple virtual server;
Send the link information of corresponding virtual IP address respectively to described routing device from described multiple virtual server;
According to the link information of corresponding virtual IP address, described routing device generates the corresponding multichannel route being used for described multiple virtual server; And
By multichannel route, from described routing device, the service traffics corresponding to virtual IP address are assigned to corresponding virtual server.
Preferably, when described multichannel route is multichannel equal-cost route, from described routing device, the step that the service traffics corresponding to virtual IP address are assigned to corresponding virtual server is comprised by multichannel route: by described multichannel equal-cost route, from described routing device, the service traffics corresponding to virtual IP address are evenly distributed to corresponding virtual server.
Preferably, describedly the step that the service traffics corresponding to virtual IP address are assigned to corresponding virtual server to be comprised from described routing device by multichannel route: by described multichannel route, from described routing device by the corresponding service traffics of virtual IP address according to the priority assign of virtual server to corresponding virtual server.
Preferably, described method also comprises: described send the step of the link information of corresponding virtual IP address respectively to described routing device from described multiple virtual server before, described virtual IP address is tied to corresponding virtual server.
Preferably, described method also comprises: described send the step of the link information of corresponding virtual IP address respectively to described routing device from described multiple virtual server before, virtual server is forbidden respond for described virtual IP address request message and forbid that source address is the request message of described virtual IP address.
Preferably, described method also comprises: generate the step of the corresponding multichannel route being used for described multiple virtual server on described routing device at the described link information according to corresponding virtual IP address after, and described from described routing device the service traffics corresponding to virtual IP address are assigned to the step of corresponding virtual server by multichannel route before
Health examination is carried out to the multiple real server be connected with described multiple virtual server.
Preferably, to be connected to certain virtual server and in each real server corresponding with corresponding virtual IP address, if the ratio of the real server of health examination failure is higher than predefined threshold value, then the service traffics corresponding with described virtual IP address are not assigned to described virtual server.
Preferably, to be connected to certain virtual server and in each real server corresponding with corresponding virtual IP address, if there is the real server of health examination failure, and the ratio of the real server of health examination failure is lower than predefined threshold value, then reduce the priority of described virtual server.
According to a second aspect of the present invention, provide a kind of device for configuration virtual server cluster, comprising:
Run module, operation state Routing Protocol example on the multiple virtual servers in Virtual Server Cluster and on the routing device be connected with described multiple virtual server;
Sending module, for sending the link information of corresponding virtual IP address respectively to described routing device from described multiple virtual server;
Generation module, for the link information according to corresponding virtual IP address, described routing device generates the corresponding multichannel route being used for described multiple virtual server; And
The service traffics corresponding to virtual IP address, for by multichannel route, are assigned to corresponding virtual server from described routing device by distribution module.
Preferably, when described multichannel route is multichannel equal-cost route, the service traffics corresponding to virtual IP address, by described multichannel equal-cost route, are evenly distributed to corresponding virtual server from described routing device by described distribution module.
Preferably, described distribution module by described multichannel route, from described routing device by the corresponding service traffics of virtual IP address according to the priority assign of virtual server to corresponding virtual server.
Preferably, described device also comprises: binding module, for send corresponding virtual IP address respectively to described routing device from described multiple virtual server at described sending module link information before, described virtual IP address is tied to corresponding virtual server.
Preferably, described device also comprises: disabled module, for to send corresponding virtual IP address respectively to described routing device from described multiple virtual server at described sending module link information before, virtual server is forbidden the request message responded for described virtual IP address and forbids that source address is the request message of described virtual IP address.
Preferably, described device also comprises: health examination module, after to generate the corresponding multichannel route being used for described multiple virtual server on described routing device according to the link information of corresponding virtual IP address at described generation module, and before the service traffics corresponding to virtual IP address are assigned to corresponding virtual server by multichannel route from described routing device by described distribution module, health examination is carried out to the multiple real server be connected with described multiple virtual server.
Preferably, to be connected to certain virtual server and in each real server corresponding with corresponding virtual IP address, if the ratio of the real server of health examination failure is higher than predefined threshold value, then the service traffics corresponding with described virtual IP address are not assigned to described virtual server by described distribution module.
Preferably, to be connected to certain virtual server and in each real server corresponding with corresponding virtual IP address, if there is the real server of health examination failure, and the ratio of the real server of health examination failure is lower than predefined threshold value, then described distribution module reduces the priority of described virtual server.
The invention provides a kind of method and apparatus for configuration virtual server cluster.The present invention by the flow on business virtual IP address is average or according to the priority assign of virtual server on multiple virtual server, solve the performance bottleneck problem of single virtual server; Simultaneously, according to embodiments of the invention, the expansion of Virtual Server Cluster also becomes simple and convenient: when needs are expanded Virtual Server Cluster, only need the virtual server increasing respective numbers, and operation state Routing Protocol example, service traffics in Virtual Server Cluster will be redistributed automatically, average or according to the priority assign of virtual server on all virtual servers (comprising newly-increased virtual server), significantly reduce O&M cost.
Accompanying drawing explanation
According to the detailed description below in conjunction with accompanying drawing, above and other object of the present invention and feature will become clearly, wherein:
Fig. 1 is the schematic block diagram of a general configuration of Virtual Server Cluster in prior art;
Fig. 2 is the schematic block diagram of the general configuration of Virtual Server Cluster when living virtual server and breaking down in prior art;
Fig. 3 is according to an embodiment of the invention for the flow chart of the method for configuration virtual server cluster;
Fig. 4 is the block diagram of example system configuration according to an embodiment of the invention; And
Fig. 5 is according to an embodiment of the invention for the block diagram of the device of configuration virtual server cluster.
Embodiment
In the following detailed description, in order to the object with example is described, several details are described, to provide the complete understanding for each embodiment.But, for those of ordinary skills, these embodiments can be realized when there is no these details.The component names used in the following description is only used to easy explanation, instead of in order to carry out any restriction.
Fig. 3 is according to an embodiment of the invention for the flow chart of the method for configuration virtual server cluster.According to the present invention, virtual server can comprise the virtual server based on various operating system, such as, based on the virtual server of Linux, the virtual server based on Unix, the virtual server based on Windows, virtual server etc. based on Mac OS.Hereinafter, by for the virtual server based on Linux, exemplary description is carried out to principle of the present invention, but this description is only exemplary, scope of the present invention is not limited to this, and principle of the present invention also goes for the various virtual servers based on other operating system.
According to embodiments of the invention, for in the method 100 of configuration virtual server cluster, at the beginning, step S101 is performed: operation state Routing Protocol example on the multiple virtual servers in Virtual Server Cluster and on the routing device be connected with described multiple virtual server.
According to embodiments of the invention, described dynamic routing protocol can comprise routing information protocol (Routing Information Protocol, RIP), Border Gateway Protocol (Border Gateway Protocol, BGP), open type shortest path priority protocol (Open Shortest Path First, OSPF) etc.Hereinafter, for ospf protocol, will carry out exemplary statement to principle of the present invention, but this description is only exemplary, principle of the present invention is equally applicable to other dynamic routing protocol.
First, ospf protocol example to run based on the multiple virtual servers in the Virtual Server Cluster of Linux.According to embodiments of the invention, the support that zebra and the ospfd assembly in Open-Source Tools quagga realizes ospf protocol can be used, wherein zebra is responsible for the renewal of local routing table, and ospfd is responsible for the realization of ospf agreement, and communicates with other equipment running ospfd.When configuring ospfd, in needing the region that the network segment of VIP is put into ospfd to arrange.
In addition, on the routing device be connected with described multiple virtual server operation state Routing Protocol example.In addition, also equal-cost route to be configured on described routing device.According to embodiments of the invention, described routing device can be router or switch.According to embodiments of the invention, should by the network card configuration of described multiple virtual server at the different network segments, also should ensure that router/switch and the OSPF example that each virtual server runs are not in the identical region that ospf protocol defines.In addition, normally learn neighborhood to enable each virtual server and router/switch and to go forward side by side Serial Communication, they need to arrange identical region and Authentication-Type.
After step slol, step S103 is performed: the link information sending corresponding virtual IP address from described multiple virtual server respectively to described routing device.
According to embodiments of the invention, before execution step S103, first step S1001 can be performed: described virtual IP address is tied to corresponding virtual server.In order to enable ospf protocol normally work, need virtual IP address to be tied on the input/output interface of local corresponding virtual server.
In addition, execution step S103 before, first can also perform step S1001 ': forbid on virtual server respond for described virtual IP address request message and forbid that source address is the request message of described virtual IP address.For example, the arp_ignore of all network interface cards of virtual server can be set to 1, that is, forbid responding the arp request message for virtual IP address, to prevent arp information to the interference of OSPF; And the arp_annouce that can arrange all network interface cards of virtual server is 2, that is, forbid that source address is the request message of virtual IP address, this is to prevent arp information to the interference of OSPF equally.
After step s 103, perform step S105: according to the link information of corresponding virtual IP address, described routing device generates the corresponding multichannel route being used for described multiple virtual server.According to embodiments of the invention, described multichannel route can be multichannel equal-cost route or non-equivalent multichannel route.
Afterwards, step S107 is performed: by multichannel route, from described routing device, the service traffics corresponding to virtual IP address are assigned to corresponding virtual server.Wherein, when described multichannel route is multichannel equal-cost route, in step s 107, by described multichannel equal-cost route, from described routing device, the service traffics corresponding to virtual IP address are evenly distributed to corresponding virtual server.And when described multichannel route is non-equal-cost route, then by described multichannel route, from described routing device by the corresponding service traffics of virtual IP address according to the priority assign of virtual server to corresponding virtual server.
For example, see Fig. 4, illustrated therein is the block diagram of example system configuration according to an embodiment of the invention.As shown in Figure 4, Virtual Server Cluster provides service by the routing device be connected with them to client.Suppose total n virtual IP address-virtual IP address _ 1 to virtual IP address _ n, virtual server 1,2,3 and virtual IP address _ 1 are bound, and the service traffics on virtual IP address _ 1 will be assigned on these 3 virtual servers of virtual server 1,2,3.Suppose that routing device is not equal-cost route for the multichannel route of virtual server 1,2,3, and suppose that virtual server 1,2,3 has the priority of 90,100,110 respectively.In the case, by described multichannel route, from described routing device by the service traffics corresponding with virtual IP address _ 1 according to above-mentioned priority assign to virtual server 1,2,3.Now, the virtual server 3 with limit priority (110) will be assigned to maximum service traffics.It should be noted that said system configures and the setting of each virtual server priority is only example, those skilled in the art can understand: principle of the present invention is equally applicable to other system configuration and priority is arranged.
According to embodiments of the invention, after above-mentioned steps S105, before step S107, step S106 can also be performed: health examination is carried out to the multiple real server be connected with described multiple virtual server.
Wherein, to be connected to certain virtual server and in each real server corresponding with corresponding virtual IP address, if the ratio of the real server of health examination failure is higher than predefined threshold value, then the service traffics corresponding with described virtual IP address are not assigned to described virtual server.
Alternatively, based in the virtual server of Linux, health examination for real server is realized by program keepalived, in order to realize above-mentioned functions, need to revise keepalived program: when the ratio of real server health examination failure corresponding to certain virtual IP address is higher than predefined threshold value, calls ip order and delete the virtual IP address bound.
Still for the system configuration in Fig. 4, suppose that virtual server 1 rear end comprises three real server: real server a, b, c.Suppose in health examination, real server a and b health examination failure, and real server c health examination success, assuming that above-mentioned predefined threshold value is 60%, so the ratio of the real server of health examination failure is higher than predefined threshold value, and the service traffics corresponding with virtual IP address _ 1 are just no longer assigned to virtual server 1 by routing device.
According to embodiments of the invention, to be connected to certain virtual server and in each real server corresponding with corresponding virtual IP address, if there is the real server of health examination failure, and the ratio of the real server of health examination failure is lower than predefined threshold value, then reduce the priority of described virtual server.
Still for the system configuration in Fig. 4, if in health examination, real server a health examination failure, and real server b and c health examination success, still suppose that above-mentioned predefined threshold value is 60%, the ratio of the real server of now health examination failure, lower than predefined threshold value, now can reduce the priority of virtual server 1, thus reduces the service traffics distributing to virtual IP address _ 1 of virtual server 1.
The invention provides a kind of method for configuration virtual server cluster.The present invention by the flow on business virtual IP address is average or according to the priority assign of virtual server on multiple virtual server, solve the performance bottleneck problem of single virtual server; Simultaneously, according to embodiments of the invention, the expansion of Virtual Server Cluster also becomes simple and convenient: when needs are expanded Virtual Server Cluster, only need the virtual server increasing respective numbers, and operation state Routing Protocol example, service traffics in Virtual Server Cluster will be redistributed automatically, average or according to the priority assign of virtual server on all virtual servers (comprising newly-increased virtual server), significantly reduce O&M cost.
Corresponding with above-mentioned method 100, present invention also offers a kind of device 200 for configuration virtual server cluster, see Fig. 5, this device 200 comprises:
Run module 201, operation state Routing Protocol example on the multiple virtual servers in Virtual Server Cluster and on the routing device be connected with described multiple virtual server, this operation module 201 may be used for performing the step S101 in said method 100;
Sending module 203, for sending the link information of corresponding virtual IP address respectively to described routing device from described multiple virtual server, this sending module 203 may be used for performing the step S103 in said method 100;
Generation module 205, for the link information according to corresponding virtual IP address, described routing device generates the corresponding multichannel route being used for described multiple virtual server, and this generation module 205 may be used for performing the step S105 in said method 100; And
The service traffics corresponding to virtual IP address, for by multichannel route, are assigned to corresponding virtual server from described routing device by distribution module 207, and this distribution module 207 may be used for performing the step S107 in said method 100.
In a preferred embodiment of the invention, when described multichannel route is multichannel equal-cost route, the service traffics corresponding to virtual IP address, by described multichannel equal-cost route, are evenly distributed to corresponding virtual server from described routing device by described distribution module 207.
In a preferred embodiment of the invention, described distribution module 207 by described multichannel route, from described routing device by the corresponding service traffics of virtual IP address according to the priority assign of virtual server to corresponding virtual server.
In a preferred embodiment of the invention, described device 200 also comprises binding module 2001, for to send corresponding virtual IP address respectively to described routing device from described multiple virtual server at described sending module 203 link information before, described virtual IP address is tied to corresponding virtual server, and this binding module 2001 may be used for performing the step S1001 in said method 100.
In a preferred embodiment of the invention, described device 200 also comprises: disabled module 2001 ', for to send corresponding virtual IP address respectively to described routing device from described multiple virtual server at described sending module 203 link information before, virtual server is forbidden the request message responded for described virtual IP address and forbids that source address is the request message of described virtual IP address, this disabled module 2001 ' may be used for performing the step S1001 ' in said method 100.
In a preferred embodiment of the invention, described device 200 also comprises health examination module 206, after to generate the corresponding multichannel route being used for described multiple virtual server on described routing device according to the link information of corresponding virtual IP address at described generation module 205, and before the service traffics corresponding to virtual IP address are assigned to corresponding virtual server by multichannel route from described routing device by described distribution module 207, health examination is carried out to the multiple real server be connected with described multiple virtual server, this health examination module 206 may be used for performing the step S106 in said method 100.
In a preferred embodiment of the invention, to be connected to certain virtual server and in each real server corresponding with corresponding virtual IP address, if the ratio of the real server of health examination failure is higher than predefined threshold value, then the service traffics corresponding with described virtual IP address are not assigned to described virtual server by described distribution module 207.
In a preferred embodiment of the invention, to be connected to certain virtual server and in each real server corresponding with corresponding virtual IP address, if there is the real server of health examination failure, and the ratio of the real server of health examination failure is lower than predefined threshold value, then described distribution module 207 reduces the priority of described virtual server.
Because above-mentioned each device embodiment is corresponding with aforementioned approaches method embodiment, therefore no longer each device embodiment is described in detail.
The present invention can realize in any suitable form, comprises hardware, software, firmware or their combination in any.Alternatively, the present invention can be embodied as the computer software operated on one or more processor and/or digital signal processor at least in part.The device of embodiments of the invention and module can realize physically, functionally and in logic in any suitable manner.Can the part in individual unit, in multiple unit or as other functional units realize according to each function of the present invention.Similarly, the present invention can realize in individual unit, or can be distributed between different units and processor physically and functionally.
Although describe the present invention in conjunction with some embodiments, the present invention is not intended to be limited to the particular form set forth herein.On the contrary, scope of the present invention is only defined by the appended claims.In addition, be described in conjunction with specific embodiment although feature may look like, those of ordinary skill in the art will be appreciated that, can combine the various features of described embodiment according to the present invention.In detail in the claims, word " comprises " existence not getting rid of other modules or step.
In addition, although be listed separately, multiple module or method step can be realized by such as individual unit or processor.In addition, although independent feature may comprise in different claims, these features can advantageously be combined possibly, and comprise in different claims and do not mean that the combination of feature is infeasible.In addition, feature to be contained in a kind of claim categories (such as claim to a method) and not to mean that and is limited to this classification, but represents that this feature suitably can be applied to other claim categories (such as device claim) equally.In addition, in claim feature order and do not mean that necessary any particular order.Further, in claim to a method each step order and do not mean that these steps must perform according to this order.On the contrary, these steps can perform with any order suitably.In addition, the statement of singulative does not get rid of plural number.Therefore, plural number is not got rid of for quoting of " ", " ", " first ", " second " etc.Reference numeral in claim is only label, and should not be regarded as the restriction of the scope to claim.
The invention also discloses:
A1. the method for configuration virtual server cluster (100), comprising:
Operation state Routing Protocol example (S101) on multiple virtual servers in Virtual Server Cluster and on the routing device be connected with described multiple virtual server;
Send the link information (S103) of corresponding virtual IP address respectively to described routing device from described multiple virtual server;
According to the link information of corresponding virtual IP address, described routing device generates the corresponding multichannel route (S105) being used for described multiple virtual server; And
By multichannel route, from described routing device, the service traffics corresponding to virtual IP address are assigned to corresponding virtual server (S107).
A2. the method as described in A1, wherein when described multichannel route is multichannel equal-cost route, the step service traffics corresponding to virtual IP address being assigned to corresponding virtual server (S107) from described routing device by multichannel route comprises: by described multichannel equal-cost route, from described routing device, the service traffics corresponding to virtual IP address are evenly distributed to corresponding virtual server.
A3. the method as described in A1, the described step service traffics corresponding to virtual IP address being assigned to corresponding virtual server (S107) from described routing device by multichannel route comprises: by described multichannel route, from described routing device by the corresponding service traffics of virtual IP address according to the priority assign of virtual server to corresponding virtual server.
A4. the method according to any one of A1-3, also comprise: described send the step of the link information (S103) of corresponding virtual IP address respectively to described routing device from described multiple virtual server before, described virtual IP address is tied to corresponding virtual server (S1001).
A5. the method according to any one of A1-3, also comprise: described send the step of the link information (S103) of corresponding virtual IP address respectively to described routing device from described multiple virtual server before, virtual server is forbidden the request message responded for described virtual IP address and forbids that source address is the request message (S1001 ') of described virtual IP address.
A6. the method according to any one of A1-3, also comprises:
Generate the step of the corresponding multichannel route (S105) being used for described multiple virtual server on described routing device at the described link information according to corresponding virtual IP address after, and described from described routing device the service traffics corresponding to virtual IP address to be assigned to the step of corresponding virtual server (S107) by multichannel route before
Health examination (S106) is carried out to the multiple real server be connected with described multiple virtual server.
A7. the method as described in A6, wherein to be connected to certain virtual server and in each real server corresponding with corresponding virtual IP address, if the ratio of the real server of health examination failure is higher than predefined threshold value, then the service traffics corresponding with described virtual IP address are not assigned to described virtual server.
A8. the method as described in A6, wherein to be connected to certain virtual server and in each real server corresponding with corresponding virtual IP address, if there is the real server of health examination failure, and the ratio of the real server of health examination failure is lower than predefined threshold value, then reduce the priority of described virtual server.
A9. the device for configuration virtual server cluster (200), comprising:
Run module (201), operation state Routing Protocol example on the multiple virtual servers in Virtual Server Cluster and on the routing device be connected with described multiple virtual server;
Sending module (203), for sending the link information of corresponding virtual IP address respectively to described routing device from described multiple virtual server;
Generation module (205), for the link information according to corresponding virtual IP address, described routing device generates the corresponding multichannel route being used for described multiple virtual server; And
The service traffics corresponding to virtual IP address, for by multichannel route, are assigned to corresponding virtual server from described routing device by distribution module (207).
A10. the device as described in A9, wherein when described multichannel route is multichannel equal-cost route, the service traffics corresponding to virtual IP address, by described multichannel equal-cost route, are evenly distributed to corresponding virtual server from described routing device by described distribution module (207).
A11. the device as described in A9, described distribution module (207) by described multichannel route, from described routing device by the corresponding service traffics of virtual IP address according to the priority assign of virtual server to corresponding virtual server.
A12. the device according to any one of A9-11, also comprise: binding module (2001), for to send corresponding virtual IP address respectively to described routing device from described multiple virtual server at described sending module (203) link information before, described virtual IP address is tied to corresponding virtual server.
A13. the device according to any one of A9-11, also comprise: disabled module (2001 '), for to send corresponding virtual IP address respectively to described routing device from described multiple virtual server at described sending module (203) link information before, virtual server is forbidden the request message responded for described virtual IP address and forbids that source address is the request message of described virtual IP address.
A14. the device according to any one of A9-11, also comprises:
Health examination module (206), after to generate the corresponding multichannel route being used for described multiple virtual server on described routing device according to the link information of corresponding virtual IP address at described generation module (205), and before the service traffics corresponding to virtual IP address are assigned to corresponding virtual server by multichannel route from described routing device by described distribution module (207), health examination is carried out to the multiple real server be connected with described multiple virtual server.
A15. the device as described in A14, wherein to be connected to certain virtual server and in each real server corresponding with corresponding virtual IP address, if the ratio of the real server of health examination failure is higher than predefined threshold value, then the service traffics corresponding with described virtual IP address are not assigned to described virtual server by described distribution module (207).
A16. the device as described in A14, wherein to be connected to certain virtual server and in each real server corresponding with corresponding virtual IP address, if there is the real server of health examination failure, and the ratio of the real server of health examination failure is lower than predefined threshold value, then described distribution module (207) reduces the priority of described virtual server.

Claims (10)

1. the method for configuration virtual server cluster (100), comprising:
Operation state Routing Protocol example (S101) on multiple virtual servers in Virtual Server Cluster and on the routing device be connected with described multiple virtual server;
Send the link information (S103) of corresponding virtual IP address respectively to described routing device from described multiple virtual server;
According to the link information of corresponding virtual IP address, described routing device generates the corresponding multichannel route (S105) being used for described multiple virtual server; And
By multichannel route, from described routing device, the service traffics corresponding to virtual IP address are assigned to corresponding virtual server (S107).
2. the method for claim 1, wherein when described multichannel route is multichannel equal-cost route, the step service traffics corresponding to virtual IP address being assigned to corresponding virtual server (S107) from described routing device by multichannel route comprises: by described multichannel equal-cost route, from described routing device, the service traffics corresponding to virtual IP address are evenly distributed to corresponding virtual server.
3. the method for claim 1, the described step service traffics corresponding to virtual IP address being assigned to corresponding virtual server (S107) from described routing device by multichannel route comprises: by described multichannel route, from described routing device by the corresponding service traffics of virtual IP address according to the priority assign of virtual server to corresponding virtual server.
4. the method according to any one of claim 1-3, also comprise: described send the step of the link information (S103) of corresponding virtual IP address respectively to described routing device from described multiple virtual server before, described virtual IP address is tied to corresponding virtual server (S1001).
5. the method according to any one of claim 1-3, also comprise: described send the step of the link information (S103) of corresponding virtual IP address respectively to described routing device from described multiple virtual server before, virtual server is forbidden the request message responded for described virtual IP address and forbids that source address is the request message (S1001 ') of described virtual IP address.
6. the device for configuration virtual server cluster (200), comprising:
Run module (201), operation state Routing Protocol example on the multiple virtual servers in Virtual Server Cluster and on the routing device be connected with described multiple virtual server;
Sending module (203), for sending the link information of corresponding virtual IP address respectively to described routing device from described multiple virtual server;
Generation module (205), for the link information according to corresponding virtual IP address, described routing device generates the corresponding multichannel route being used for described multiple virtual server; And
The service traffics corresponding to virtual IP address, for by multichannel route, are assigned to corresponding virtual server from described routing device by distribution module (207).
7. device as claimed in claim 6, wherein when described multichannel route is multichannel equal-cost route, the service traffics corresponding to virtual IP address, by described multichannel equal-cost route, are evenly distributed to corresponding virtual server from described routing device by described distribution module (207).
8. device as claimed in claim 6, described distribution module (207) by described multichannel route, from described routing device by the corresponding service traffics of virtual IP address according to the priority assign of virtual server to corresponding virtual server.
9. the device according to any one of claim 6-8, also comprise: binding module (2001), for to send corresponding virtual IP address respectively to described routing device from described multiple virtual server at described sending module (203) link information before, described virtual IP address is tied to corresponding virtual server.
10. the device according to any one of claim 6-8, also comprise: disabled module (2001 '), for to send corresponding virtual IP address respectively to described routing device from described multiple virtual server at described sending module (203) link information before, virtual server is forbidden the request message responded for described virtual IP address and forbids that source address is the request message of described virtual IP address.
CN201510314351.4A 2012-07-27 2012-07-27 A kind of method and apparatus for configuring Virtual Server Cluster Active CN104954182B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510314351.4A CN104954182B (en) 2012-07-27 2012-07-27 A kind of method and apparatus for configuring Virtual Server Cluster

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510314351.4A CN104954182B (en) 2012-07-27 2012-07-27 A kind of method and apparatus for configuring Virtual Server Cluster
CN201210265130.9A CN102821044B (en) 2012-07-27 2012-07-27 Method and device for configuring server cluster

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
CN201210265130.9A Division CN102821044B (en) 2012-07-27 2012-07-27 Method and device for configuring server cluster

Publications (2)

Publication Number Publication Date
CN104954182A true CN104954182A (en) 2015-09-30
CN104954182B CN104954182B (en) 2018-05-11

Family

ID=47304905

Family Applications (2)

Application Number Title Priority Date Filing Date
CN201210265130.9A Active CN102821044B (en) 2012-07-27 2012-07-27 Method and device for configuring server cluster
CN201510314351.4A Active CN104954182B (en) 2012-07-27 2012-07-27 A kind of method and apparatus for configuring Virtual Server Cluster

Family Applications Before (1)

Application Number Title Priority Date Filing Date
CN201210265130.9A Active CN102821044B (en) 2012-07-27 2012-07-27 Method and device for configuring server cluster

Country Status (1)

Country Link
CN (2) CN102821044B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105515979A (en) * 2015-12-29 2016-04-20 新浪网技术(中国)有限公司 Open shortest path first (OSPF) over-network balanced forwarding method and OSPF over-network balanced forwarding system
CN112995054A (en) * 2021-03-03 2021-06-18 北京奇艺世纪科技有限公司 Flow distribution method and device, electronic equipment and computer readable medium
CN115604275A (en) * 2022-11-08 2023-01-13 合肥臻谱防务科技有限公司(Cn) Virtual special server distribution method in information interaction network

Families Citing this family (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102821044B (en) * 2012-07-27 2015-07-01 北京奇虎科技有限公司 Method and device for configuring server cluster
CN104168193B (en) * 2014-08-12 2017-12-15 华为技术有限公司 A kind of method and routing device of Virtual Router Redundancy Protocol fault detect
CN104410531B (en) * 2014-12-11 2018-07-20 上海百事通信息技术股份有限公司 The system architecture method of redundancy
CN105939239B (en) * 2015-07-31 2020-05-12 杭州迪普科技股份有限公司 Data transmission method and device of virtual network card
CN106559246B (en) 2015-09-30 2020-01-10 新华三技术有限公司 Cluster implementation method and server
CN105827464B (en) * 2016-05-16 2019-03-19 江南大学 Can automatically dispose virtual router construction method
CN108156008B (en) * 2016-12-05 2021-03-26 北京国双科技有限公司 Server configuration method and device
CN107465562B (en) * 2017-09-25 2020-03-06 郑州云海信息技术有限公司 Method, device and equipment for CTDB custom distribution of virtual IP
CN108881435B (en) * 2018-06-15 2021-12-03 广东美的制冷设备有限公司 Real-time clock providing method, server, home appliance, system, and medium
CN111314098A (en) * 2018-12-11 2020-06-19 杭州海康威视系统技术有限公司 Method and device for realizing VIP address drift in HA system
CN112583721B (en) * 2020-11-30 2023-04-18 五八到家有限公司 Service request routing method, device and medium
CN112866107B (en) * 2021-01-25 2023-07-18 网宿科技股份有限公司 IP address notification method, traffic guidance method and network equipment
CN116886777B (en) * 2023-09-06 2024-01-26 苏州浪潮智能科技有限公司 Service flow distribution method and device for container arrangement platform

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1829167A (en) * 2006-04-19 2006-09-06 曾锃 Load balancing method for large-scale distributed system based on virtual route
CN101009662A (en) * 2007-01-31 2007-08-01 杭州华为三康技术有限公司 Message processing method, system and device based on the load balance technology
CN101207561A (en) * 2006-12-22 2008-06-25 华为技术有限公司 Cluster manager, cluster system as well as cluster managing method
CN101217448A (en) * 2008-01-18 2008-07-09 福建星网锐捷网络有限公司 A method and system to realize gateway dynamic load sharing
US20110153827A1 (en) * 2009-12-23 2011-06-23 Sreedhar Yengalasetti Systems and methods for mixed mode handling of ipv6 and ipv4 traffic by a virtual server
CN102821044B (en) * 2012-07-27 2015-07-01 北京奇虎科技有限公司 Method and device for configuring server cluster

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101018159A (en) * 2007-03-12 2007-08-15 杭州华为三康技术有限公司 Load balance method under the multi-gateway environment and DHCP server
US8547844B2 (en) * 2007-07-10 2013-10-01 Telefonaktiebolaget L M Ericsson (Publ) System and method for balancing IP gateway services

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1829167A (en) * 2006-04-19 2006-09-06 曾锃 Load balancing method for large-scale distributed system based on virtual route
CN101207561A (en) * 2006-12-22 2008-06-25 华为技术有限公司 Cluster manager, cluster system as well as cluster managing method
CN101009662A (en) * 2007-01-31 2007-08-01 杭州华为三康技术有限公司 Message processing method, system and device based on the load balance technology
CN101217448A (en) * 2008-01-18 2008-07-09 福建星网锐捷网络有限公司 A method and system to realize gateway dynamic load sharing
US20110153827A1 (en) * 2009-12-23 2011-06-23 Sreedhar Yengalasetti Systems and methods for mixed mode handling of ipv6 and ipv4 traffic by a virtual server
CN102821044B (en) * 2012-07-27 2015-07-01 北京奇虎科技有限公司 Method and device for configuring server cluster

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105515979A (en) * 2015-12-29 2016-04-20 新浪网技术(中国)有限公司 Open shortest path first (OSPF) over-network balanced forwarding method and OSPF over-network balanced forwarding system
CN105515979B (en) * 2015-12-29 2019-05-21 新浪网技术(中国)有限公司 Ospf OSPF inter-network equilibrium retransmission method and system
CN112995054A (en) * 2021-03-03 2021-06-18 北京奇艺世纪科技有限公司 Flow distribution method and device, electronic equipment and computer readable medium
CN112995054B (en) * 2021-03-03 2023-01-20 北京奇艺世纪科技有限公司 Flow distribution method and device, electronic equipment and computer readable medium
CN115604275A (en) * 2022-11-08 2023-01-13 合肥臻谱防务科技有限公司(Cn) Virtual special server distribution method in information interaction network

Also Published As

Publication number Publication date
CN102821044A (en) 2012-12-12
CN104954182B (en) 2018-05-11
CN102821044B (en) 2015-07-01

Similar Documents

Publication Publication Date Title
CN102821044B (en) Method and device for configuring server cluster
US11563669B2 (en) Method for implementing network virtualization and related apparatus and communications system
CN107231221B (en) Method, device and system for controlling service flow among data centers
CN102771094B (en) Distributed routing framework
US10798005B2 (en) Optimizing application throughput
CN102845035A (en) Method of identifying destination in virtual environment
US20160078116A1 (en) Providing high availability in an active/active appliance cluster
US10200286B2 (en) Systems and methods for load balancing in a data center
Yang et al. Algorithms for fault-tolerant placement of stateful virtualized network functions
EP3588856A1 (en) Technologies for hot-swapping a legacy appliance with a network functions virtualization appliance
USRE46770E1 (en) Computer managing method
CN102970389B (en) Extranet access method and system
CN107294845A (en) VRRP load-balancing methods and device
CN112929206B (en) Method and device for configuring cloud physical machine in cloud network environment
CN109981437B (en) Multi-data center intercommunication method based on VPC and related equipment
CN106209634B (en) Learning method and device of address mapping relation
CN104618148A (en) Firewall device and backup method thereof
CN102970388A (en) Method and system for managing outer net access
CN113709220B (en) High-availability implementation method and system of virtual load equalizer and electronic equipment
CN102045259B (en) Packet switching equipment and method for managing customer service
US11349752B2 (en) Path selection systems and methods for data traffic for link aggregation group topologies
CN111131530B (en) Carrier-class network address conversion method and device
CN113992683B (en) Method, system, equipment and medium for realizing effective isolation of double networks in same cluster
EP4020943B1 (en) Security redundancy
CN116418724A (en) Service access method, device and load balancing system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20220725

Address after: Room 801, 8th floor, No. 104, floors 1-19, building 2, yard 6, Jiuxianqiao Road, Chaoyang District, Beijing 100015

Patentee after: BEIJING QIHOO TECHNOLOGY Co.,Ltd.

Address before: 100088 room 112, block D, 28 new street, new street, Xicheng District, Beijing (Desheng Park)

Patentee before: BEIJING QIHOO TECHNOLOGY Co.,Ltd.

Patentee before: Qizhi software (Beijing) Co.,Ltd.