The present application claims benefit of priority under 35 USC §120 and §365 to the previously filed Great Britain Patent Application No. 1214159.4 titled, “Second Failure Data Capture un Co-Operating Multi-Image Systems” with a priority date of Aug. 8, 2012. The content of that application is incorporated by reference herein.
1. Technical Field
The present disclosure relates to the automated capture of diagnostic data in computer systems, and more particularly to the automated capture of diagnostic data in co-operating multi-image computer systems.
2. Description of the Related Art
Automatic capture of diagnostic data is well known in computer systems. It is often used in complex and/or long running applications to allow rapid resolution of problems without the need to reproduce failures in live or backup systems. A standard practice is to provide First Failure Data Capture (FFDC) in the form of dumps, logs and trace files, the data capture being triggered when a problem is detected.
A problem with this practice is that there is a compromise between the need to obtain sufficient diagnostic information for the problem to be resolved and the cost of producing that diagnostic information. The cost of producing the diagnostic information can include (a) the performance overhead to the application of continuously logging and tracing, (b) the time taken to produce dumps on a failure (which may delay restart of the application), and (c) the amount of disk space required to store the diagnostic information output.
Okano (PCT Pub. No. WO2012/026035) discloses a fault processing system that can reproduce a fault that occurs in the information processing device. There is a need in the art for a method and/or system that improves the quality and quantity of diagnostics information produced for failures in multi-image systems.
Embodiments of the present disclosure provide a computer-readable storage device encoded with a computer-readable program for capturing diagnostic trace information, the computer-readable program for use in a computer system to enable the computer system to: capture diagnostic trace information. The computer-readable program is used in a computer system having a plurality of software images. The computer-readable program comprises program code for: receiving information associated with a first failure in a first one of said plurality of software images; distributing said information to others of said plurality of software images; capturing information associated with a second failure in another of said plurality of software images. This computer-readable program has the advantage that the cost of capturing trace diagnostic information is minimized until a first failure occurs, after which, the value of captured trace diagnostic information is maximized and the cost of capturing trace diagnostic information is minimized by only capturing detailed trace diagnostic information that relates to the first failure.
In an embodiment, the step of distributing the information can be carried out by either a load balancer, a hypervisor, an operating system, monitoring software or a peer-to-peer communication mechanism.
In one embodiment, the step of distributing the information to the plurality of software images comprises distributing the first portion of the information to first ones of the plurality of software images and a second portion of the information to second ones of the plurality of software images. This has the advantage of distributing the load of collecting diagnostic trace information across the software images, but still enabling collection of comprehensive trace diagnostic information. The step of capturing information expires after a predetermined time period. In an alternative embodiment, the step of capturing information expires after a second failure. These embodiments limit the additional costs of capturing the diagnostic trace information by limiting the time period during which additional diagnostic trace information is captured.
In another embodiment, each of the software images further comprises processes or threads; and the information received is associated with a first failure in a first one of the processes or threads; the information distributed is distributed to others of the processes or threads; the information captured is associated with a second failure in another of the processes or threads. The diagnostic trace information received identifies a factor that is external to the software images as a cause of said first failure. This has the advantage that a failure caused by an external factor, such as a network failure, can cause additional trace diagnostic information related to the external factor to be collected in each of the software images.
In another embodiment, the computer-readable program further comprises program code for checking, after said receiving, whether one or more of other ones of the plurality of software images is executing the same software as the first one of the plurality of software images. The computer-readable program further comprises program code for: combining said information associated with a first failure in a first one of the plurality of software images and the information associated with a second failure in another of the plurality of software images; and analyzing the combined information in order to determine a cause of the first failure. This combining and analyzing of the trace diagnostic information allows determination of the cause of a failure without the need for reproducing the failure in live or in backup systems. The step of capturing information continues until the step of analyzing the combined information in order to determine a cause of the first failure is completed. This capturing allows information from any further failures to be captured whilst trace diagnostic information from previous failures is combined and analyzed, but allows the capture to stop when the analysis is complete.
Embodiments of the present disclosure also provide a computer system and a computer program product comprising: a computer readable storage device readable by a processing circuit and storing instructions for execution by the processing circuit for performing the above processes of the disclosure. The computer program is stored on a computer readable storage device and loadable into the internal memory of a digital computer, comprising software code portions, when said program is run on a computer, for performing the above processes.
The novel features believed characteristic of the disclosure are set forth in the claims. The disclosure itself, however, as well as a preferred mode of use, further purposes and advantages thereof, will best be understood by reference to the following detailed description of an illustrative embodiment when read in conjunction with the accompanying drawings, where:
With reference now to
Referring now to
Referring now to
Referring now to
Referring now to
If there are other images running the same software, or optionally, having components in common, then at step 508, the failure event also results in information associated with the failure being passed from image 1102 to other images 2 to 6104-112 through the communication mechanism 120. These images 2 to 6104-112 are running at least some software components that are the same as those running in image 1102 which failed at time 408. Images 2 to 6104-112 are then able to adjust their diagnostic configuration in anticipation of the same failure occurring in these images as in image 1102. For example, if a particular software component in image 1102 has been identified as causing the failure, then more detailed logging of the operation of that particular software component may be undertaken in images 2 to 6104-112. This may include additional tracing being turned on in the software component. As another example, if the cause of the failure in image 1102 was a shortage of memory, images 2 to 6104-112 can start to log more detailed information about memory usage in their images. The failure event results in trace diagnostic information being logged to a log file 404, at step 510 in
In another embodiment, in what might be called a “speculative” or “terraced” embodiment, the increased level of capture of trace diagnostic information is load-balanced across the images 102-112. Each of the images is configured to capture more comprehensive trace diagnostic information for a specific part or for specific parts of the software stack. Between the images 102-112, trace diagnostic information is captured for all the required parts of the software stack. The images may also be configured to capture any subset of trace diagnostic information which may be desirable and for which coverage may be divided among some or all of the images.
In another embodiment, the method described above may be applied not across images 102-112, but across processes 302 or across threads 304. A first process to fail captures trace diagnostic information which is used to reconfigure what trace diagnostic information is captured by other processes if and when they fail. Similarly, a first thread to fail may capture trace diagnostic information, which information is then used to reconfigure what trace diagnostic information that is captured by other threads if and when they fail. This method across processes and across threads may be combined with the method used across images or may be used separately.
In another embodiment, the reconfigured capture of trace diagnostic information may be applied across other images, processes or threads for a predetermined time period after the first failure event before the level of capture of trace diagnostic information returns to the level it was before the first failure or is set to another predetermined level.
In another embodiment, the level of capture of trace diagnostic information on all the images is returned to the level it was before the first failure event after a second or subsequent failure event has occurred and/or sufficient trace diagnostic information has been captured.
In another embodiment, the method described in
Referring now to
In another embodiment, images 102-112 that start or restart after the failure can also be configured to capture an increased level of trace diagnostic information.
As will be appreciated by one skilled in the art, aspects of the present disclosure may be embodied as a system, method, computer program product or computer program. Accordingly, aspects of the present disclosure may take the form of an entirely hardware embodiment, an entirely software embodiment (including firmware, resident software, micro-code, etc.) or an embodiment combining software and hardware aspects that may all generally be referred to herein as a “circuit,” “module” or “system.” Furthermore, aspects of the present disclosure may take the form of a computer program product embodied in one or more computer readable medium(s) having computer readable program code embodied thereon.
Any combination of one or more computer readable medium(s) may be utilized. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or Flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for aspects of the present disclosure may be written in any combination of one or more programming languages, including an object oriented programming language such as Java®, Smalltalk, C++ or the like and conventional procedural programming languages, such as the “C” programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the latter scenario, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet Service Provider). Java and all Java-based trademarks and logos are trademarks or registered trademarks of Oracle and/or its affiliates.
Aspects of the present disclosure are described below with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the disclosure. It will be understood that each block of the flowchart illustrations and/or block diagrams, and combinations of blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions/acts specified in the flowchart and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer readable medium that can direct a computer, other programmable data processing apparatus, or other devices to function in a particular manner, such that the instructions stored in the computer readable medium produce an article of manufacture including instructions which implement the function/act specified in the flowchart and/or block diagram block or blocks.
The computer program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other devices to cause a series of operational steps to be performed on the computer, other programmable apparatus or other devices to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide processes for implementing the functions/acts specified in the flowchart and/or block diagram block or blocks.
The flowchart and block diagrams in the Figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems that perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
For the avoidance of doubt, the term “comprising”, as used herein throughout the description and claims is not to be construed as meaning “consisting only of”.
Note while the present invention has been particularly shown and described with reference to specific embodiments, it will be understood by those skilled in the art that various changes in form and detail may be made therein without departing from the spirit and scope of the invention. For example, while the present description has been directed to a preferred embodiment in which custom software applications are developed, the invention disclosed herein is equally applicable to the development and modification of application software. Furthermore, as used in the specification and the appended claims, the term “computer” or “system” or “computer system” or “computing device” includes any data processing system including, but not limited to, personal computers, servers, workstations, network computers, main frame computers, routers, switches, Personal Digital Assistants (PDA's), telephones, and any other system capable of processing, transmitting, receiving, capturing and/or storing data.
Number | Date | Country | Kind |
---|---|---|---|
1214159.4 | Aug 2012 | GB | national |
Number | Name | Date | Kind |
---|---|---|---|
5664155 | Elko et al. | Sep 1997 | A |
6651183 | Gensler et al. | Nov 2003 | B1 |
7080287 | Salem | Jul 2006 | B2 |
7120685 | Ullmann | Oct 2006 | B2 |
7454665 | Menadue | Nov 2008 | B2 |
7840856 | Apte et al. | Nov 2010 | B2 |
8381014 | Abdul et al. | Feb 2013 | B2 |
20020073063 | Faraj | Jun 2002 | A1 |
20030120968 | Andress | Jun 2003 | A1 |
20040268314 | Kollman et al. | Dec 2004 | A1 |
20060143534 | Dall | Jun 2006 | A1 |
20060195731 | Patterson et al. | Aug 2006 | A1 |
20070016831 | Gehman et al. | Jan 2007 | A1 |
20080222456 | Jones | Sep 2008 | A1 |
20080276222 | Yamagami | Nov 2008 | A1 |
20090193298 | Mukherjee | Jul 2009 | A1 |
20120246517 | Bender et al. | Sep 2012 | A1 |
Number | Date | Country |
---|---|---|
1077037 | Oct 1993 | CN |
101226495 | Jul 2008 | CN |
2012026035 | Mar 2012 | WO |
Entry |
---|
International Business Machines Corporation, GB Application No. 1214159.4, Intellectual Property Office Search Report Under 17(5), Dec. 3, 2012. |
Chinese Application No. 201310343980.0, Office Action, Dec. 21, 2015, 7 pages. |
Number | Date | Country | |
---|---|---|---|
20140047280 A1 | Feb 2014 | US |