求Mallena Morgan和Ellen Alexangra的所有资源。扣扣 五九一三事件一七六三六

Flexible failover policies in high availability computing systems
United States Patent 9405640
A system for implementing a failover policy includes a cluster infrastructure for managing a plurality of nodes, a high availability infrastructure for providing group and cluster membership services, and a high availability script execution component operative to receive a failover script and at least one failover attribute and operative to produce a failover domain. In addition, a method for determining a target node for a failover comprises executing a failover script that produces a failover domain, the failover domain having an ordered list of nodes, receiving a failover attribute and based on the failover attribute and failover domain, selecting a node upon which to locate a resource.
Inventors:
Sreenivasan, Padmanabhan (Burnaby, CA, US)
Dandapani, Ajit (Los Altos, CA, US)
Nishimoto, Michael (San Jose, CA, US)
Pramanick, Ira (San Jose, CA, US)
Verma, Manish (Sunnyvale, CA, US)
Bradshaw, Robert David (San Jose, CA, US)
Castellano, Luca (Los Gatos, CA, US)
Mallena, Raghu (San Jose, CA, US)
Application Number:
Publication Date:
08/02/2016
Filing Date:
05/27/2014
Export Citation:
SONY INTERACTIVE ENTERTAINMENT AMERICA LLC (San Mateo, CA, US)
Primary Class:
International Classes:
G06F11/20; H04L29/14
Field of Search:
709/229, 709/218, 709/223-228, 709/239, 709/245, 714/3, 714/4, 714/6, 714/7, 714/10, 714/11, 714/13, 714/17, 713/1, 713/100
View Patent Images:
&&&&&&PDF help
US Patent References:
Harris8769132Sreenivasan8732162HarrisHarrisSreenivasan7979460Harris7962509Harris7831620Barsness et al.7716238Harris7627694Sreenivasan et al.7310683Shobatake6952766Dervin et al.6901530Cerami et al.6892317Sampath et al.6859882Fung6857082Josan6785678Price6745241French et al.6665706Kenner et al.6647430Minyard et al.6636982Rowlands6625152Monsen et al.6594786Connelly et al.6564336Majkowski6553413Lewin et al.6539494Abramson et al.6532494Frank6502125Kenner et al.Sreenivasan6496941Segal et al.6487622Coskrey6473396Kumar6449641Moiin et al.6442685French et al.6438705Chao et al.6438704Harris et al.6421726Kenner et al.6292905Wallach et al.6279032Short et al.6266781Chung et al.6263433Robinson et al.Vert et al.714/16243825Gamache et al.6212521Minami et al.6199110Rizvi et al.6189111Alexander et al.6185695Murphy et al.6178529Short et al.6173420Sunkara et al.6157955Narad et al.6145089Le et al.6108703Leighton et al.6073126Endo et al.706/456047323Krause6003030Kenner et al.5987621Duso et al.5941999Matena et al.5867494Krishnaswamy et al.5864854Boyle5862348Pedersen5852724Glenn, II et al.5805785Dias et al.5778187Monteiro et al.5590285Krause et al.5526492Ishida5513314Kandasamy et al.5504894Ferguson et al.5339392Risberg et al.5187787Skeen et al.4769772Dwyer
Foreign References:
JP4271454September, 1992嵩高い炭化水素基の結合した第3級ホスフィンの製造方法JPAPARALLEL PROCESSING SYSTEM, SERVER, PARALLEL PROCESSING METHOD, PROGRAM AND RECORDING MEDIUMJPAFebruary, 2005WOA1REDUNDANT SERVER FAILOVER IN NETWORKED ENVIRONMENTWOA2SYSTEMS AND METHODS FOR SERVER MANAGEMENTJPHA
Other References:
“How Network Load Balancing Technology Works,” Microsoft TechNet, Mar. 28,
Microsoft Corporation, /windowsserver/en/library/1611cae3- -a 186-7 . . . .
Microsoft Computer Dictionary, Fifth E Copyright 2002; selected pages.
PCT/US International Search Report and Written Opinion mailed Oct. 16, 2007.
Japanese Application No. Reasons for Refusal, dated Jul. 27, 2011.
U.S. Appl. No. 11/355,327 Final Office Action mailed Aug. 5, 2009.
U.S. Appl. No. 11/355,327 Office Action mailed Jan. 7, 2009.
U.S. Appl. No. 11/355,327 Final Office Action mailed Aug. 20, 2008.
U.S. Appl. No. 11/355,327 Office Action mailed Feb. 13, 2008.
U.S. Appl. No. 11/367,174 Final Office Action mailed Aug. 6, 2009.
U.S. Appl. No. 11/367,174 Office Action mailed Jan. 6, 2009.
U.S. Appl. No. 11/367,174 Final Office Action mailed Sep. 2, 2008.
U.S. Appl. No. 11/367,174 Office Action mailed Feb. 6, 2008.
U.S. Appl. No. 13/180,541 Final Office Action mailed Aug. 2, 2013.
U.S. Appl. No. 13/180,541 Office Action mailed Sep. 27, 2012.
U.S. Appl. No. 09/811,357 Office Action mailed May 3, 2006.
U.S. Appl. No. 09/997,404 Final Office Action mailed May 3, 2007.
U.S. Appl. No. 09/997,404 Office Action mailed Nov. 28, 2006.
U.S. Appl. No. 09/997,404 Final Office Action mailed May 3, 2006.
U.S. Appl. No. 09/997,404 Office Action mailed Nov. 1, 2005.
U.S. Appl. No. 09/997,404 Office Action mailed Jan. 4, 2005.
U.S. Appl. No. 12/891,390 Final Office Action mailed Jan. 11, 2013.
U.S. Appl. No. 12/891,390 Office Action mailed Jun. 22, 2012.
U.S. Appl. No. 14/283,114, Adam P. Harris, System and Methods for Server Management, filed May 20, 2014.
Primary Examiner:
Zong, Ruolei
Attorney, Agent or Firm:
Polsinelli LLP
Parent Case Data:
CROSS-REFERENCE TO RELATED APPLICATIONSThe present application is a continuation and claims the priority benefit of U.S. patent application Ser. No. 12/891,390 filed Sep. 27, 2010, which is a continuation and claims the priority benefit of U.S. patent application Ser. No. 09/997,404 filed Nov. 29, 2001, which is a continuation and claims the priority benefit of U.S. patent application Ser. No. 09/811,357 filed Mar. 16, 2001, which claims the priority benefit of U.S. provisional application 60/189,864 filed Mar. 16, 2000, the disclosures of which are incorporated herein by reference.
What is claimed is:
A system for preventing unscheduled downtown in a multi-client network environment, the system comprising: and memory storing: a failover policy, wherein the failover policy includes an executable failover script, a failover attribute, and a predetermined ini a cluster application that, when executed by the processor, manages a plurality of servers communicatively coupled within the multi-client network environment, a high availability application that, when executed by the processor, manages a list of operational servers from among the plurality of servers and manages an allocation of a plurality of resources that provide services a plurality of client computing devices in the multi-client and a high availability base application that, when executed by the processor, monitors the plurality of services and the client computing devices and prevents unscheduled downtime of the servers in the multi-client network environment by initiating a failover in accordance with the failover policy when a failover event is detected, wherein initiating the failover includes: generating a run-time failover domain from the initial failover domain by executing the failover script, modifying the generated run-time failover domain based on the failover attribute, selecting at least one of the operational servers identified in the run-time failover domain to activate a resource stopped by the failover event, and storing the generated run-time failover domain in memory in place of the predetermined initial failover domain in the failover policy.
The system of claim 1, wherein the predetermined initial failover domain and the dynamic run-time failover domain are each an ordered list of servers to which one of the resources can be allocated.
The system of claim 1, wherein generating the dynamic run-time failover domain from the predetermined initial failover domain is based on at least a plurality of run-time conditions existing at the time of the failover event.
The system of claim 1, wherein the high availability base application further determines that resource load balancing is required.
The system of claim 1, wherein managing the plurality of servers communicatively coupled within the multi-client network environment includes logging server activity.
The system of claim 1, wherein the high availability application further provides a list of resources available to the client computing devices.
The system of claim 1, wherein the high availability application further provides communication services in the event of a failover event.
The system of claim 1, further including an application plug-in that converts a process into a high availability service.
A method for preventing unscheduled downtown in a multi-client network environment, the method comprising: detecting the failure of a server to make a resource available to a plurality of clients in a multi-client accessing a failover policy stored in memory, the failover policy corresponding to the resource and including an execut executing the failover script, wherein execution of the failure script: provides access to a predetermined initial failover domain, the predetermined initial failover domain including a list of additional servers in the multi-client network environment to which the resource can be allocated, transforms the initial failover domain into a run-time failover domain based on a failover attribute and at least one run-time condition existing at the time of the detected failover, compares the run-time failover domain to a node membership list identifying operational servers in the multi-client network environment, and allocates the resource to a target server from among the servers listed in the run-time failover domain that are also identified in the
and storing the run-time failover domain in memory in place of the predetermined initial failover domain in the failover policy.
The method of claim 9, further comprising sending a signal to the target server to start the allocated resource.
The method of claim 10, further comprising monitoring the resource started on the target server for a failure event.
A system for preventing unscheduled downtown in a multi-client network environment, the system comprising: and memory storing: a failover policy, the failover policy including an executable failover script, a failover attribute, and a predetermined initial failover domain, and executable instructions that, when executed by the processor: manage a plurality of servers communicatively coupled within the multi-client network environment and an allocation of a plurality of resources that provide services to a plurality of client computing devices in the multi-client network environment, maintain a list of operational servers from among the plurality of servers, and monitor the plurality of services and the client computing devices and prevent unscheduled downtime of the servers in the multi-client network environment by: initiating a first failover in accordance with the failover policy when a first failover event is detected, wherein initiating the first failover includes: generating a first run-time failover domain from the initial failover domain by executing the failover script, modifying the first generated run-time failover domain based on the failover attribute, selecting the first server identified in the first generated run-time failover domain that is also identified in the list of the operational servers to activate a resource stopped by the first failover event, and updating the failover policy stored in memory by storing the first generated run-time failover domain in place of the predetermined initial failover domain, and initiating a second failover in accordance with the updated failover policy when a second failover event is detected, wherein initiating the second failover includes generating a second run-time failover domain from the first generated run-time failover domain stored in memory by executing the failover script.
The system of claim 12, wherein the predetermined initial failover domain and the first run-time failover domain are each an ordered list of servers in the multi-client network environment to which one of the resources can be allocated.
The system of claim 12, wherein generating the first run-time failover domain from the predetermined initial failover domain is based on a plurality of run-time conditions existing at the time of the first failover event.
The system of claim 12, wherein execution of the instructions further determines that resource load balancing is required among the servers in the multi-client network environment.
The system of claim 12, wherein execution of the instructions further logs server activities of the servers in the multi-client network environment.
The system of claim 12, wherein execution of the instructions further sends sending a signal to the selected server to activate the resource stopped by the first failover event.
The system of claim 12, wherein execution of the instructions further monitors the resource activated on the selected server for the second failure event.
The system of claim 12, wherein the first failover event is a process failure.
The system of claim 19, wherein the second failover event is a processor load of the selected server exceeding a defined level of processor load.
Description:
COPYRIGHT NOTICE/PERMISSIONA portion of the disclosure of this patent document contains material which is subject to copyright protection. The copyright owner has no objection to the facsimile reproduction by anyone of the patent document or the patent disclosure as it appears in the Patent and Trademark Office patent file or records, but otherwise reserves all copyright rights whatsoever. The following notice applies to the software and data as described below and in the drawings hereto: Copyright(C)
Silicon Graphics Incorporated, All Rights Reserved.BACKGROUND OF THE INVENTION1. Field of the InventionThe present invention is related to computer processing, and more particularly to providing flexible failover policies on high availability computer processing systems.2. Description of the Related ArtCompanies today rely on computers to drive all aspects of their business. Certain business functions can survive intermittent inte others cannot.To date, attempts to ensure high availability to mission critical applications have relied on two approaches. Applications have been made more available either through the use of specialized fault tolerant hardware or through cumbersome changes to the applications or to the environment in which the applications run. These approaches increase the costs to the organization of running the applications. In addition, certain approaches to making applications more available increase the risk of introducing errors in the underlying data.What is needed is a system and method of increasing the availability of mission critical applications by providing greater failover flexibility in determining the targets for moving resources from a machine that has failed.SUMMARY OF THE PRESENTLY CLAIMED INVENTIONTo address the problems stated above, and to solve other problems that will become apparent in reading the specification and claims, a high availability computing system and method are described. The high availability computing system includes a plurality of servers connected by a first and a second network, wherein the servers communicate with each other to detect server failure and transfer applications to other servers on detecting server failure through a process referred to as “failover”.According to another aspect of the present invention, a system for implementing a failover policy includes a cluster infrastructure for managing a plurality of nodes, a high availability infrastructure for providing group and cluster membership services, and a high availability script execution component operative to receive a failover script and at least one failover attribute and operative to produce a failover domain.According to another aspect of the invention, a method for determining a target node for a failover comprises executing a failover script that produces a failover domain, the failover domain having an ordered list of nodes, receiving a failover attribute and based on the failover attribute and failover domain, selecting a node upon which to locate a resource.BRIEF DESCRIPTION OF THE DRAWINGSFIG. 1A shows a diagram of the hardware and operating environment in conjunction with which embodiments of the inventFIG. 1B is a diagram illustrating an exemplary node configuration according to embodime andFIG. 2 is a flowchart illustrating a method for providing failover policies according to an embodiment of the invention.DETAILED DESCRIPTIONIn the following detailed description, reference is made to the accompanying drawings which form a part hereof, and in which is shown by way of illustration specific embodiments in which the invention may be practiced. It is to be understood that other embodiments may be utilized and structural changes may be made without departing from the scope of the present invention.Some portions of the detailed descriptions which follow are presented in terms of algorithms and symbolic representations of operations on data bits within a computer memory. These algorithmic descriptions and representations are the ways used by those skilled in the data processing arts to most effectively convey the substance of their work to others skilled in the art. An algorithm is here, and generally, conceived to be a self-consistent sequence of steps leading to a desired result. The steps are those requiring physical manipulations of physical quantities. Usually, though not necessarily, these quantities take the form of electrical or magnetic signals capable of being stored, transferred, combined, compared, and otherwise manipulated. It has proven convenient at times, principally for reasons of common usage, to refer to these signals as bits, values, elements, symbols, characters, terms, numbers, or the like. It should be borne in mind, however, that all of these and similar terms are to be associated with the appropriate physical quantities and are merely convenient labels applied to these quantities. Unless specifically stated otherwise as apparent from the following discussions, it is appreciated that throughout the present invention, discussions utilizing terms such as “processing” or “computing” or “calculating” or “determining” or “displaying” or the like, refer to the action and processes of a computer system, or similar computing device, that manipulates and transforms data represented as physical (e.g., electronic) quantities within the computer system's registers and memories into other data similarly represented as physical quantities within the computer system memories or registers or other such information storage, transmission or display devices.DEFINITIONSA number of computing terms will be used throughout this specification. In this specification, a cluster node is a single computer system. Usually, a cluster node is an individual computer. The term node is also used for brevity. When one node fails, other nodes are left intact and able to operate.A pool is the entire set of nodes involved with a group of clusters. The group of clusters are usually close together and should always serve a common purpose. A replicated database is stored on each node in the pool.A cluster is a collection of one or more nodes coupled to each other by networks or other similar interconnections. A cluster is identif this name must be unique within the pool. A particular node may be a member of only one cluster. All nodes in a cluster are also in the pool: however, all nodes in the pool are not necessarily in the cluster.A node membership is the list of nodes in a cluster on which High Availability base software can allocate resource groups.A process membership is the list of process instances in a cluster that form a process group. There can be multiple process groups per node.A client-server environment is one in which a set of users operate on a set of client systems connected through a network to a set of server systems. Often, applications within a client-server system are divided into two components: a client component and a server component. Each component can run on the same of different nodes. A process running the client component of the applicatio a process running the server component is called a server.Clients send requests to servers and collect responses from them. Not all servers can satisfy all requests. For instance, a class of Oracle database servers might be able to satisfy requests regarding the employees of a company, while another class might be able to satisfy requests regarding the company's products.Servers that are able to satisfy the same type of requests are said to be providing the same service. The time interval between the event of posting a request and the event of receiving a response is called latency.Service availability can be defined by the following example. Consider a web service implemented by a set of web servers running on a single system. Assume that the system suffers an operating system failure. After the system is rebooted, the web servers are restarted and clients can connect again. A failure of the servers therefore appears to clients like a long latency.A service is said to be unavailable to a client when latencies become greater than a certain threshold, called critical latency. Otherwise, it is available. A service is down when it is unavai otherwise, it is up. An outage occurs when a service goes down. The outage lasts until the service comes up again. If downtime is the sum of the durations of outages over a certain time interval D=[t, t′], for a certain service S, service availability can be defined as:
avail(S)=1-downtime/(t′-t)
where t′-t is a large time interval, generally a year. For instance, a service which is available 99.99% should have an yearly downtime of about an hour. A service that is available 99.99% or higher is generally called highly available. Service outages occur for two reasons: maintenance (e.g. hardware and software upgrades) and failures (e.g. hardware failures, OS crashes).Outages due to maintenance are generally considered less severe. They can be scheduled when clients are less active, for instance, during a weekend. Users can get early notification. Downtime due to maintenance is often called scheduled downtime. On the other hand, failures tend to occur when the servers are working under heavy load, i.e. when most clients are connected. Downtime due to failures is often called unscheduled downtime. Some time service availability is measured considering only unscheduled downtime.Vendors often provide figures for system availability. System availability is computed similarly to service availability. The downtime is obtained by multiplying the average number of system failures (OS crashes, HW failures, . . . ) by the average repair time.Consider a service whose servers are distributed on a set of N (where N&1) nodes in a cluster. For the service to be unavailable, all of the N nodes must fail at the same time. Since most of system failures are statistically independent, the probability of such an event is pN, where p is the probability of a failure of a single system. For example, given a cluster of 2 nodes with availability of 99.7% for each node, at any given time, there is a 0.3% or 0.003 probability that a node is unavailable. The probability of both nodes being unavailable at the same time is 0.003 2=0.000009 or 0.0009%. The cluster as a whole therefore has a system availability of 99.9991% or (1-0.000009). System availability of a cluster is high enough to allow the deployment of highly available services.A resource is a single physical or logical entity that provides a service to clients or other resources. For example, a resource can be a single disk volume, a particular network address, or an application such as a web server. A resource is generally available for use over time on two or more nodes in a cluster, although it can be allocated to only one node at any given time.Resources are identified by a resource name and a resource type. One resource can be dependent on one or more other resources: If so, it will not be able to start (that is, be made available for use) unless the dependent resources are also started. Dependent resources must be part of the same resource group and are identified in a resource dependency list.A resource name identifies a specific instance of a resource type. A resource name must be unique for a given resource type.A resource type is a particular class of resource. All of the resources in a particular resource type can be handled in the same way for the purposes of failover. Every resource is an instance of exactly one resource type.A resource type is identified by a simple name: this name must be unique within the cluster. A resource type can be defined for a specific node, or It. can be defined for an entire cluster. A resource type that is defined for a specific node overrides a cluster-wide resource type definition with the same name: this allows an-individual node to override global settings from a cluster-wide resource type definition.Like resources, a resource type can be dependent on one or more other resource types. If such a. dependency exists, at least one instance of each of the dependent resource types must be defined. For example, a resource type named Netscape_web might have resource type dependencies on resource types named IP_address and volume. If a resource named web is defined with the Netscape_web resource type, then the resource group containing web must also contain at least one resource of the type IP_address and one resource of the type volume.In one embodiment, predefined resource types are provided. However, a user can create additional resource types.A resource group is a collection of interdependent resources. A resource group is identified by a simple name: this name must be unique within a duster. Table 1 shows an example of the resources for a resource group named WebGroup.TABLE 1ResourceResource TypeVol1volumelfs1filesystem199.10.48.22IP_addressOracle_DBApplication In some embodiments, if any individual resource in a resource group becomes unavailable for its intended use, then the entire resource group is considered unavailable. In these embodiments, a resource group is the unit of failover for the High Availability base software.In some embodiments of the invention, resource groups cannot overlap: that is two resource groups cannot contain the same resource.A resource dependency list is a list of resources upon which a resource depends. Each resource instance must have resource dependencies that satisfy its resource type dependencies before it can be added to a resource group.A resource type dependency list is a list of resource types upon which a resource type depends. For example, the filesystem resource type depends upon the volume resource type, and the Netscape_web resource type depends upon the filesystem and IP_address resource types.For example, suppose a file system instance /fs1 is mounted on volume /vol1. Before /fs1 can be added to a resource group. /fs1 must be defined to depend on /vol1 the High Availability base software only knows that a file system instance must have one volume instance in its dependency list. This requirement is inferred from the resource type dependency list.A failover is the process of allocating a resource group (or application) to another node, according to a failover policy A failover may be triggered by the failure of a resource, a change in the node membership (such as when a node fails or starts), or a manual request by the administrator.A failover policy is the method used by High Availability base software to determine the destination node of a failover. A failover policy consists of the following:
Failover domainFailover attributesFailover script
The administrator can configure a failover policy for each resource group. A failover policy name must be unique within the pool.A failover domain is the ordered list of nodes on which a given resource group can be allocated. The nodes listed in the failover domain must be within the same cluster. However, the failover domain does not have to include every node in the cluster.The administrator defines the initial failover domain when creating a failover policy. This list is transformed into a run-time failover domain by the failover script. High Availability base software uses the run-time failover domain along with failover attributes and the node membership to determine the node on which a resource group should reside. High Availability base software stores the run-time failover domain and uses it as input to the next failover script invocation. Depending on the run-time conditions and contents of the failover script, the initial and run-time failover domains may be identical.In general, High Availability base software allocates a given resource group to the first node listed in the run-time failover domain that is also in the node membership: the point at which this allocation takes place is affected by the failover attributes.A failover attribute is a string that affects the allocation of a resource group in a cluster. The administrator must specify system attributes (such as Auto_Failback or Controlled_Failback) and can optionally supply site-specific attributes.A failover script is a shell script that generates a run-time failover domain and returns it to the High Availability base software process. The High Availability base software process applies the failover attributes and then selects the first node in the returned failover domain that is also in the current node membership.The action scripts are the set of scripts that determine how a resource is started, monitored, and stopped. Typically, there will be a set of action scripts specified for each resource type.The following is the complete set of action scripts that can be specified for each resource:
probe, which verifies that the resource is configured on a serverexclusive, which verifies that the resource is not already runningstart, which starts the resourcestop, which stops the resourcemonitor, which monitors the resourcerestart, which restarts the resource on the same server after a monitoring failure occurs
Highly Available Services Overview
Highly Available (HA) services can be provided in two ways. First, a multi-server application using built-in or highly available services, can directly provide HA services. In the alternative, a single-server application layered on top of multi-server highly available system services can provide equivalent HA services. In other words, a single-server application may depend on a special application which uses the multi-server application discussed above.FIG. 1A illustrates an exemplary environment for providing HA services. As shown, the environment 10 includes nodes 20, clients 24, and database 26, all communicably coupled by a network 22. Each of nodes 20.1-20.5 are computer systems comprising hardware and software and can provide services to clients 24. Thus nodes 20 can also be referred to as servers. Specifically, processes 26 comprise software that provides services to client 24. Moreover, each of nodes 20.1 can be suitably configured to provide high availability services according to the various embodiments of the invention.FIG. 1B provides further detail of software layers according to an embodiment of the invention that can be run on nodes 20 to support HA services. As illustrated, software running on a node 20 includes cluster infrastructure 12, HA infrastructure 14, HA base software 16, application plug-ins 28, and processes 26.Cluster infrastructure 12 includes software components for performing the following:
Node loggingCluster administrationNode definition
In one embodiment, the cluster software infrastructure includes clusteruster_admin and cluster_control subsystems. HA infrastructure 14 provides software components to define clusters, resources, and resource types. In one embodiment, the HA infrastructure includes the following:
Cluster membership daemon. Provides the list of nodes, called node membership, available to the cluster.Group membership daemon. Provides group membership and reliable communication services In the presence of failures to HA base software 12 processes.Start daemon. Starts HA base software daemons and restarts them on failures.System resource manager daemon. Manages resources, resource groups and resource types. Executes action scripts for resources.Interface agent daemon. Monitors the local node's network Interfaces.
Further details on the cluster infrastructure 12 and HA infrastructure 14 can be found in the cofiled, copending, U.S. patent application Ser. No. 09/811,158 entitled “MAINTAINING MEMBERSHIP IN HIGH AVAILABILITY COMPUTING SYSTEMS”, previously incorporated by reference.HA base software 16 provides end-to-end monitoring of services and client in order to determine whether resource load balancing or failover are required. In one embodiment, HA base software 16 is the IRIS FailSafe product available from Silicon Graphics, Inc. In this embodiment, HAbase software includes the software required to make the following high-availability services:
IP addresses (the IP_address resource type)XLV logical volumes (the volume resource type)XFS file systems (the filesystem resource type)MAC addresses (the MAC_address resource type)
In one embodiment of the invention, application plug-ins 28 comprise software components that provide an interface to convert applications such as processes 26 into high-availability services. For example, application plug-ins 26 can include database agents. Each database agent monitors all instances of one type of database. In one embodiment, database agents comprise the following:
IRIS FailSafe OracleIRIS FailSafe INFORMIXIRIS FailSafe Netscape WebIRIS FailSafe Mediabase
Processes 26 include software applications that can be configured to provide services. It is not a requirement that any of processes 26 be intrinsically HA services. Application plug-ins 18, along with HA base software 16 can be used to turn processes 26 into HA services. In order for a plug-in to be used to turn a process 26 into an HA application, it is desirable that the process 26 have the following characteristics: [0088] The application can be easily restarted and monitored. [0089] It should be able to recover from failures as do most client/server software. The failure could be a hardware failure, an operating system failure, or an application failure. If a node crashed and reboots, client/server software should be able to attach again automatically.
The application must have a start and stop procedure.When the resource group fails over, the resources that constitute the resource group are stopped on one node and started on another node, according to the failover script and action scripts.The application can be moved from one node to another after failures.If the resource has failed, it must still be possible to run the resource stop procedure. In addition, the resource must recover from the failed state when the resource start procedure is executed in another node.The application does not depend on knowing the host name. That is, those resources that can be configured to work with an IP address.
It should be noted that an application process 26 itself is not modified to make it into a high-availability service.In addition, node 20 can include a database (not shown). The database can be used to store information including:
ResourcesResource typesResource groupsFailover policiesNodesClusters
In one embodiment, a cluster administration daemon (cad) maintains identical databases on each node in the cluster.MethodThe previous section described an overview of a system for providing high availability services and failover policies for such services. This section will provide a description of a method 200 for providing failover policies for high availability services. The methods to be performed by the operating environment constitute computer programs made up of computer-executable instructions. Describing the methods by reference to a flowchart enables one skilled in the art to develop such programs including such instructions to carry out the methods on suitable computers (the processor of the computer executing the instructions from computer-readable media). The method illustrated in FIG. 2 is inclusive of the acts required to be taken by an operating environment executing an exemplary embodiment of the invention.The method 200 begins when a software component, such as HA base software 16 (FIG. 1A) executes a failover script for a resource in response to either a failover event such as a node or process failure, or a load balancing event such as a resource bottleneck or processor load (block 202). The failover script can be programmed in any of a number of languages, include Java, perl, shell (Bourne, C-Shell, Korn shell etc.) or the C programming language. The invention is not limited to a particular programming language. In one embodiment of the invention, the following scripts can be executed:
[0106] probe, which verifies that the resource is configured on a nodeexclusive, which verifies that the resource is not already runningstart, which starts the resourcestop, which stops the resourcemonitor, which monitors the resourcerestart, which restarts the resource on the same node when a monitoring failure occurs
It should be noted that in some embodiments, the start, stop, and exclusive scripts are required for every resource type. A monitor script may also be required, but if need be only a return-success function. A restart script may be required if the restart mode is set to 1; however, this script may contain only a return-success function. The probe script is optional.In some embodiments, there are two types of monitoring that may be accomplished in a monitor script:
Is the resource present?Is the resource responding?
For a client-node resource that follows a protocol, the monitoring script can make a simple request and verify that the proper response is received. For a web node, the monitoring script can request a home page, verify that the connection was made, and ignore the resulting home page. For a database, a simple request such as querying a table can be made.Next, a system executing the method receives a failover domain as output from the failover script (block 204). The failover script can receive an input domain, apply script logic, and provide an output domain. The output domain is an ordered list of nodes on which a given resource can be allocated.Next, the system receives failover attributes (block 206). The failover attributes are used by the scripts and by the HA base software to modifying the run-time failover domain used for a specific resource group. Based on the failover domain and attributes, the method determines a target node for the resource (block 208). Once a target node has been determined, the system can cause the resource to start on the target node.In the above discussion and in the attached appendices, the term “computer” is defined to include any digital or analog data processing unit. Examples include any personal computer, workstation, set top box, mainframe, server, supercomputer, laptop or personal digital assistant capable of embodying the inventions described herein.Examples of articles comprising computer readable media are floppy disks, hard drives, CD-ROM or DVD media or any other read-write or read-only memory device.Although specific embodiments have been illustrated and described herein, it will be appreciated by those of ordinary skill in the art that any arrangement which is calculated to achieve the same purpose may be substituted for the specific embodiment shown. This application is intended to cover any adaptations or variations of the present invention. Therefore, it is intended that this invention be limited only by the claims and the equivalents thereof.
& 2004-. All rights reserved.

我要回帖

更多关于 angra 的文章

 

随机推荐