Using the DoNotRun Property to Isolate Server Functionality

Technote (FAQ)


Question

The Maximo and Tpae 6 and 7 applications are an all-inclusive set of services by default. How can the DoNotRun property be used to isolate specific types of services such as UI, MEA, and cron tasks into specific servers or clusters.

Cause

limited documentation

Answer

A Cron Task is a scheduled task that runs as configured by the system administrator. Some of the services controlled by cron tasks include but are not limited to:

Maximo Enterprise Adapter (MEA) or Integration Framework (IF)
Directory Server Synchronization with the Maximo Database (LDAPSYNC)
Custom Cron Tasks
Custom Escalations
Email Processing
Report Generation

By default all services that can be controlled by cron task processing are enabled and run in all Maximo JVM servers deployed as either stand alone or in a cluster. The DoNotRun property can be used to specify a specific cron or list of crons that should not run on a server.

NOTE: For release 7.1 and later, JVM Naming should be configured to more easily control cron functionality. See the document "Take Control of JVM Names for Instance, Cron and Log Names Using -Dmxe.name" for more information on JVM naming.

When a cron task instance is due to run (determined in the CRONTASKINSTANCE table), all running and enabled Maximo servers will attempt to run the cron task. Only one server will ultimately be chosen to run the task. The cron task service will update the TASKSCHEDULER table with the last run information. From that time the last server that a cron task has run on (as determined by the TASKSCHEDULER table entry) will be chosen. If the server that last ran the cron task is not running, another running and enabled server will pick up the cron task using the same logical process as the first run of the cron task. The TASKSCHEDULER table is always updated with the last run information so the new server becomes the preferred server for the cron task.

Assuming the default configuration of all servers being enabled for all services, consider the cluster configuration below with four Maximo JVM servers. Also assume there are four (or more) cron tasks.

LDAPSYNC01
LDAPSYNC02
SEQQOUT
SEQQIN



It is possible for each of the cron tasks to start on a different server but once it has run on that server, it will always run on that server unless the server stops running. In that case one of the other servers will begin running the cron task and that server will become the new preferred server for running that cron task.

If it is desirable to separate services such as MEA, Synchronization, or other cron tasks, the DoNotRun property can be used to determined servers where a cron task should not run. In the case above, assume that the JMS queue processes should run on some servers and the synchronization tasks should run on others.

In Tpae version 7 releases, cron tasks are managed through the user interface in conjunction with
"Take Control of JVM Names for Instance, Cron and Log Names Using -Dmxe.name" and "Using System Instance Properties to Control Cron Tasks".

To do this in Maximo 6 releases, the maximo.properties file must be modified and two separate EAR files must be built. It is a best practice to create two clusters so that there is a failover server for all of the cron tasks.



1) Build a maximo.ear file with the following property in the maximo.properties file
(NOTE: separate each cron with a comma and no spaces)

mxe.crontask.donotrun=LDAPSYNC.LDAPSYNC01,LDAPSYNC.LDAPSYNC02

2) Build a maximo.ear file with the following property in the maximo.properties file

mxe.crontask.donotrun=JMSQSEQCONSUMER.SEQQIN,JMSQSEQCONSUMER.SEQQOUT

3) Deploy the first maximo.ear file to cluster 1 and the second maximo.ear file to cluster 2.

This configuration will start the LDAPSYNC cron tasks in the first cluster and no matter which server either of the crons starts on, if the server it runs on fails, the other server will pick it up and run it. The MEA crons will run in cluster 2 and the same features apply as those in cluster 1. Since cluster 2 is configured with the DoNotRun property for LDAPSYNC cron tasks, these crons will never run there even if there is a server or cluster failure in cluster 1. Since cluster 1 is configured with the DoNotRun property for the MEA cron tasks, these crons will never run there even if there is a server or cluster failure in cluster 2.

Also refer to the Maximo 6 System Administrators Guide (SAG) in chapter 16.

http://publib.boulder.ibm.com/infocenter/tivihelp/v3r1/topic/com.ibm.itmaxam.doc/621_mx_sag.pdf


Related information

Clustering the MEA

Cross reference information
Segment Product Component Platform Version Edition
Systems and Asset Management IBM Maximo Asset Management Essentials
Systems and Asset Management Tivoli Asset Management
Systems and Asset Management Tivoli Asset Management for IT
Systems and Asset Management Tivoli Service Request Manager
Systems and Asset Management Tivoli Change and Configuration Management Database

Rate this page:

(0 users)Average rating

Add comments

Document information


More support for:

IBM Maximo Asset Management
Cron Task Setup

Software version:

6.0, 6.1, 6.2, 6.2.1, 6.2.2, 6.2.3, 6.2.4, 6.2.5, 6.2.6, 6.2.7, 6.2.8, 7.1, 7.1.1, 7.1.2, 7.2, 7.2.1, 7.5

Operating system(s):

AIX, HP-UX, Linux, Solaris, Windows

Reference #:

1399115

Modified date:

2012-09-04

Translate my page

Machine Translation

Content navigation