Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The bsub project is a simple system to allow jobs to be submitted to batch from Java. The current system is very simple minded, it allows a job to be created anywhere, and submitted via RMI to a server which submits the jobs to LSF. The interface returns the ID of the submitted job, but there is currently no way to access any information about the job after it is submitted, or to be informed when it finishes. Hopefully this system will be replaced by something better soon.. It is possible to query the status of a submitted job, but not to cancel it.

The org-glast-jobcontrol home page contains links to the

...

The server is permanently running on glast02 glast-jobcontrol01 under user glast. It is installed in ~glast/bsub. It is started by a cron job which runs ~glast/bsub/monitor every 5 minutes, which in turn runs ~glast/bsub/bsub. Note this script starts both the rmiregistry and the JobControlService. The log file is currently written to into the /u1/tmp/bsub directory.

Care and maintainance

The server has been running for many months with no problems, so no problems are anticipated.

Info
titleTip

lsf maintains a log of all submitted jobs in /var/spool/lsf. This is useful for checking exactly what command was executed by the server.

...

Installing a new version

If it is necessary to install a new version the procedure is as follows.

Change the version # in the project.xml file. Build a new bsub-<version>.jar file using maven.

  • Log in to glast02 glast-jobcontrol01 as user glast
  • Install the new bsub-<version>.jar (built using maven) in ~glast/bsub
  • Modify ~glast/bsub/bsub to use this new version of the jar file
  • Kill the current processes using pkill -f JobControl and pkill rmiregistry
  • Start the new server using bsub/monitor

...