Method, apparatus and program storage device for scheduling the performance of maintenance tasks to maintain a system environment
A method, apparatus and program storage device for scheduling the performance of maintenance tasks to maintain a system environment is disclosed. A parameter for a computer system is monitored to detect a need to perform at least one maintenance task. At least one maintenance task is performed when the monitoring detects the need to perform at least one maintenance task or at least once within a predetermined period.
Latest Patents:
1. Field of the Invention
This invention relates in general to maintaining a computer system, and more particularly to a method, apparatus and program storage device for scheduling the performance of maintenance tasks to maintain a system environment.
2. Description of Related Art
The defining environment for application development is changing. E-business applications are being used to leverage the Internet as a platform for building and integrating applications over a network environment. Further, application servers are moving from a processor-based operating system to an Internet-based operating system or network computing. However, this term may be somewhat ambiguous. Nevertheless, this term is increasingly being used to refer to virtual applications that are assembled from many different components that run on many machines across a network as if they were a single system. Components can range from entire centralized applications to single modules of a larger distributed application. Most important, it is becoming clear that only virtual applications can deliver the flexibility to meet many of the lead-edge needs of today's corporate information systems. Accordingly, these application servers are being used to integrate applications, business processes, and data. To leverage investments, businesses are turning to open standard based infrastructures to allow solutions to be crafted based on the best products for an application, process, etc. rather being locked into a single-vendor solution.
However, such an open standard integrated solution throughout the enterprise requires tools and systems to accomplish the integration, connectivity, modeling, monitoring and management functions. People, processes, information, and systems must be integrated throughout the enterprise. Connectivity refers to connecting applications and systems across a company and to partners and customers. Modeling includes the ability to model and simulate business processes to graphically represent the flow of work across people and application systems. Monitoring is provided by tracking business processes as they execute in applications and systems across the enterprise. Management of the enterprise demands visualization of immediate operational results of business processes. This critical knowledge enables review of business and system processes over a period of time so that bottlenecks and problem areas can be identified and corrected.
In order to connect processes and to transform data, a diverse collection of functions must be provided. This diverse collection of functions is referred to as middleware. The term middleware is an inclusive term that encompasses many disparate functions that do not easily fit within other architectural components. Thus, middleware may be considered an aggregation of distinct subcomponents. Middleware provides application services that were once written into applications. However, these services today are provided in an independent infrastructure layer. Middleware enhances application integration by providing uniform mechanisms to bridge ole and new technologies, or by enabling dissimilar elements to work together.
One type of middleware is message-oriented middleware. Message-oriented middleware allows application programs that may be distributed across similar or dissimilar platforms and/or network protocols to exchange data with each other using messages and queues. In order to maintain a clean and efficient environment, certain maintenance procedures must be run regularly. Such maintenance tasks, however, are not easily performed by built-in utilities. In fact some important tasks cannot be performed at all by built-in utilities. Thus, the system administrator is left with the task of determining how to best carry out these tasks. Still, not all administrators are skilled in programming such tasks. Moreover, administrators may not know the optimum time to run maintenance tasks. For example, maintenance tasks may be scheduled to run too often. Because such maintenance tasks may be resource intensive, the performance of the server may suffer. Alternatively, maintenance tasks may not be scheduled often enough and therefore the system may not be operating efficiently.
It can be seen then that there is a need for a method, apparatus and program storage device for scheduling the performance of maintenance tasks to maintain a system environment.
SUMMARY OF THE INVENTIONTo overcome the limitations in the prior art described above, and to overcome other limitations that will become apparent upon reading and understanding the present specification, the present invention discloses a method, apparatus and program storage device for scheduling the performance of maintenance tasks to maintain a system environment.
The present invention solves the above-described problems by providing a way for administrators can skillfully maintain servers. The present invention determines when to run maintenance operations based on predetermined system criteria.
A method in accordance with an embodiment of the present invention includes monitoring a parameter for a computer system to detect a need to perform at least one maintenance task and performing at least one maintenance task when the monitoring detects the need to perform at least one maintenance task or at least once within a predetermined period.
In another embodiment of the present invention, a system for scheduling the performance of maintenance tasks to maintain a system environment is provided. The system includes a maintenance tool for providing resources for performing at least one maintenance task and a maintenance scheduling device for monitoring a parameter for a computer system to detect a need to perform at least one maintenance task and causing the maintenance tool to perform at least one maintenance task when the maintenance scheduling device detects the need to perform at least one maintenance task or at least once within a predetermined period.
In another embodiment of the present invention, another system for scheduling the performance of maintenance tasks to maintain a system environment is provided. This system includes means for providing resources for performing at least one maintenance task and means for monitoring a parameter for a computer system to detect a need to perform at least one maintenance task and causing the means for providing resources to perform at least one maintenance task when the means for monitoring detects the need to perform at least one maintenance task or at least once within a predetermined period.
In another embodiment of the present invention, a program storage medium tangibly embodying one or more programs of instructions executable by the computer to perform a method for scheduling the performance of maintenance tasks to maintain a system environment is provided. The method includes monitoring a parameter for a computer system to detect a need to perform at least one maintenance task and performing at least one maintenance task when the monitoring detects the need to perform at least one maintenance task or at least once within a predetermined period.
These and various other advantages and features of novelty which characterize the invention are pointed out with particularity in the claims annexed hereto and form a part hereof. However, for a better understanding of the invention, its advantages, and the objects obtained by its use, reference should be made to the drawings which form a further part hereof, and to accompanying descriptive matter, in which there are illustrated and described specific examples of an apparatus in accordance with the invention.
BRIEF DESCRIPTION OF THE DRAWINGSReferring now to the drawings in which like reference numbers represent corresponding parts throughout:
In the following description of the embodiments, reference is made to the accompanying drawings that form a part hereof, and in which is shown by way of illustration the specific embodiments in which the invention may be practiced. It is to be understood that other embodiments may be utilized because structural changes may be made without departing from the scope of the present invention.
The present invention provides a method, apparatus and program storage device for scheduling the performance of maintenance tasks to maintain a system environment. Administrators use the present invention to skillfully maintain servers. When to run maintenance operations is determined based on predetermined system criteria.
One type of middleware services that is used to ensure that the applications and other functions are running smoothly is maintenance utilities. For example, in a distributed computing environment, certain maintenance procedures must be run regularly to ensure the system is operating properly. For example, servers in a computing environment must be monitored to prevent crashes and/or to facilitate peak performance. Such maintenance tasks, however, are not easily performed by built-in utilities. In fact some important tasks cannot be performed at all by built-in utilities. Thus, the system administrator is left with the task of determining how to best carry out these tasks. Still, not all administrators are skilled in programming such tasks. Moreover, administrators may not know the optimum time to run maintenance tasks. Thus, the present invention provides a maintenance tool to provide an administrator the ability to determine when settings changed as well as the option of restoring old settings through saved files.
The present invention includes a maintenance scheduling tool 350 to schedule maintenance tasks. Maintenance tasks are providing via the maintenance tools 352. The maintenance tools 352 maintain a maintenance log file 354. The maintenance tools 352 are part of a larger suite of tools created to provide daily maintenance routines, as well as routines that copy settings to an archive location for later point-in-time recovery, if necessary. A script is provided via the maintenance scheduling tool 350 to determine how often the maintenance tools 352 are to be performed. For example, administration setup maintenance may need to be performed nightly on all servers. However, some servers that are heavily used may need maintenance run more often than just once a day. To statically schedule run times, however, may be too little or too much.
In one embodiment of the present invention, the script provided in the maintenance scheduling tool 350 to control the maintenance tools 352 is a korn-shell script. A korn-shell script is a program that reads textual commands from the user or from a file, converts them into operating system commands, and executes them. A wrapper 356 sits on top of the script in the maintenance scheduling tool 350 to dynamically determine whether the maintenance tools 352 should be run. For example, the wrapper 356 may look at regular intervals such as every 30 minutes. The wrapper 356 will cause the maintenance tools to be run at least every 24 hours or other preset period, but also self-regulates in case log filesystems are in danger of filling up. Thus, the wrapper 356 in the maintenance scheduling tool 350 monitors server conditions and runs the maintenance tools 352 whenever prudent. However, the present invention is not meant to be limited to a particular period or pattern. In this manner, the utilities 352 function as a “maintenance on demand” package of tools. If the maintenance tools 352 are run too often thereby indicating some sort of problem on the server, an alert is generated and the administrator is paged, for example, via email 360.
Some commands may be executed directly within the interpreter itself, e.g., setting variables or control constructs, while others may cause it to load and execute other files. Unix's command interpreters are known as shells. The maintenance tools 352 employ several other external programs to complete its operation.
The cron scheduling utility 370 is an operating system scheduler that monitors for a set time and then executes a predetermined command. For example, the maintenance tools 352 may be scheduled to complete once each night and then log all operations to an output log. The maintenance tools 352 then may email 360 the administrator whenever it doesn't complete successfully. This provides administrators with the ability to manage problems before they grow and take down the server. For example, the maintenance tools may be used to clear unneeded log space.
Log files 358, such as the channel exit log file, are pruned to keep from growing too large. Log files 358 may have a preset size, and once full, existing files are copied to a backup file. Any “error” output may be emailed to the administrator for review. Also, all program activity may be logged to a file 358 for review; and to track whether maintenance was started manually or via a cron scheduling utility.
A management console 380 provides an administrator access to and control of the maintenance tools 352 and scheduler 350. The management console 380 may include a display 382 for displaying status or other data provided by the maintenance tools 352.
A clean log command 430 may be provided for all running queue managers using linear logging. The clean log script 430 looks in the error logs for the latest transaction logs that are needed for full recovery 432. The clean log script 430 will then take older logs and zip them up to conserve space. A prune command 440 may be provided to prune old compressed logs from clean logs that are no longer needed. The prune command 440 keeps linear logging queue managers from taking over the filesystem and filling it up 442. If linear logging queue managers are provided and do not run this, the filesystem will eventually fill up and take the queue manager down, causing an outage. The prune utility 440 provides administrators with the ability to roll back to an earlier point in time, but also keeps file systems free of obsolete files.
The save authorizations script 450 is a command that should be run periodically for all running queue managers. The save authorization script 450 provides recovery of application-based authorizations in case a queue manager needs to be rebuilt, or if moved to another box 452. Such scripts may be kept in a specified log file. For example, ten of the authorization scripts may be kept to provide 2.5 months' ability to recover should problems be encountered. An archive-old-configuration-files script 460 provides logs beyond the standard two configuration files for each queue manager. The archive-old-configuration-files command 460 takes old configuration files periodically, and copies them to an archive directory 462. For example, if taken twice weekly, 50 of these archive files may be kept to provide six full months recovery ability. The archive-old-configuration-files feature is especially helpful for queue managers whose definitions (configuration) change regularly, or where non-standard administrators may have access to alter objects, and a record of it needs to be kept.
Those skilled in the art will recognize that the present invention is not meant to be limited to the maintenance tasks illustrated above with reference to
If the instance is running 624 and the system is circular 642, the current configuration is exported to an archive 650. The current authorizations are also exported to an archive 660. Then, the archived configuration and authorization files are cleaned-up 680 and the system returns to check for execution errors 690.
If the instance is running 624 and the system is linear 644, the transaction checkpoint is recorded 670, e.g., the transaction log files are updated for pruning. The old transaction logs are zipped and removed 672. Because the instance is running, the current configuration is exported to an archive 650. The current authorizations are also exported to an archive 660. Then, the archived configuration and authorization files are cleaned-up 680 and the system returns to check for execution errors 690.
If the instance is not running 622 and the system is linear 634, the old transaction logs are zipped and removed 674. Because the instance is not running 622, the archived configuration and authorization files are merely cleaned-up 680 and the system returns to check for execution errors 690. Those skilled in the art will recognize that the blocks deciding whether the log type is linear or circular 630, 640 may be the same process, and in a like manner so may the blocks where old transaction logs are zipped and removed 672, 674.
Furthermore, those skilled in the art will recognize that the present invention is not meant to be limited to the maintenance tasks illustrated above with reference to
The process illustrated with reference to
Accordingly, embodiments of the present invention ensure that the servers are operating according to specifications. Referring again to
The foregoing description of the exemplary embodiment of the invention has been presented for the purposes of illustration and description. It is not intended to be exhaustive or to limit the invention to the precise form disclosed. Many modifications and variations are possible in light of the above teaching. It is intended that the scope of the invention be limited not with this detailed description, but rather by the claims appended hereto.
Claims
1. A method for scheduling the performance of maintenance tasks to maintain a system environment, comprising:
- monitoring a parameter for a computer system to detect a need to perform at least one maintenance task; and
- performing at least one maintenance task when the monitoring detects the need to perform at least one maintenance task or at least once within a predetermined period.
2. The method of claim 1, wherein the monitoring a computer system parameter further comprises monitoring conditions on a server.
3. The method of claim 2, wherein the performing at least one maintenance task when the monitoring detects the need to perform at least one maintenance task further comprises performing at least one maintenance task when the server meets a predetermined criteria.
4. The method of claim 3, wherein the predetermined criteria comprises disk space for the server becoming too low.
5. The method of claim 1, wherein the performing at least one maintenance task further comprises running a maintenance routine for improving computer system operation.
6. The method of claim 1, wherein the performing at least one maintenance task further comprises backing up settings to an archive.
7. The method of claim 6, wherein the backing up settings to an archive further comprises saving configurations and authorizations for applications running on a server.
8. The method of claim 1, wherein the performing at least one maintenance task further comprises writing log files.
9. The method of claim 1, wherein the performing at least one maintenance task further comprises reducing a size for files stored on the computer system.
10. The method of claim 1 further comprising alerting an administrator upon an occurrence of an event.
11. The method of claim 10, wherein the alerting an administrator upon an occurrence of an event further comprises alerting an administrator when a maintenance task fails.
12. The method of claim 10, wherein the alerting an administrator upon an occurrence of an event further comprises alerting an administrator when a maintenance task is ran too often.
13. The method of claim 1, wherein the performing at least one maintenance task at least once within a predetermined period further comprising performing at least one maintenance task once a day.
14. A system for scheduling the performance of maintenance tasks to maintain a system environment, comprising:
- a maintenance tool for providing resources for performing at least one maintenance task; and
- a maintenance scheduling device for monitoring a parameter for a computer system to detect a need to perform at least one maintenance task and causing the maintenance tool to perform at least one maintenance task when the maintenance scheduling device detects the need to perform at least one maintenance task or at least once within a predetermined period.
15. The system of claim 14, wherein the computer system further comprises a server.
16. The system of claim 15, wherein the maintenance scheduling device causes the maintenance tool to performs at least one maintenance task when the server meets a predetermined criteria.
17. The system of claim 16, wherein the predetermined criteria comprises disk space for the server becoming too low.
18. The system of claim 14, wherein the at least one maintenance task further comprises a maintenance routine for improving computer system operation.
19. The system of claim 14, wherein the at least one maintenance task further comprises a backup of system settings to an archive.
20. The system of claim 19, wherein the system settings further comprise configurations and authorizations for applications running on a server.
21. The system of claim 14, wherein the at least one maintenance task further comprises writing log files.
22. The system of claim 14, wherein the at least one maintenance task further comprises reducing a size for files stored on the computer system.
23. The system of claim 14, wherein the maintenance tool alerts an administrator upon an occurrence of an event.
24. The system of claim 23, wherein the event further comprises a failure of a maintenance task.
25. The system of claim 23, wherein the event further comprises a maintenance task running too often.
26. The system of claim 14, wherein the predetermined period further comprises once a day.
27. A system for scheduling the performance of maintenance tasks to maintain a system environment, comprising:
- means for providing resources for performing at least one maintenance task; and
- means for monitoring a parameter for a computer system to detect a need to perform at least one maintenance task and causing the means for providing resources to perform at least one maintenance task when the means for monitoring detects the need to perform at least one maintenance task or at least once within a predetermined period.
28. A program storage medium readable by a computer, the medium tangibly embodying one or more programs of instructions executable by the computer to perform a method for scheduling the performance of maintenance tasks to maintain a system environment, the method comprising:
- monitoring a parameter for a computer system to detect a need to perform at least one maintenance task; and
- performing at least one maintenance task when the monitoring detects the need to perform at least one maintenance task or at least once within a predetermined period.
Type: Application
Filed: Aug 6, 2003
Publication Date: Feb 10, 2005
Applicant:
Inventor: Christopher Kline (Firestone, CO)
Application Number: 10/635,397