Specify a resize notification command manually

About this task

You can specify a resize notification command on job submission, other than one that is set up for the application profile


  1. On job submission, run bsub -rnc resize_notification_cmd.

    The job submission command overrides the application profile setting.

  2. Ensure the resize notification command checks any environment variables for resizing.

    For example, LSB_RESIZE_EVENT indicates why the notification command was called (grow or shrink) and LSB_RESIZE_HOSTS lists slots and hosts. Use LSB_JOBID to determine which job is affected.


The command that you specified runs on the first execution host of the resized job.

LSF monitors the exit code from the command and takes appropriate action when the command returns an exit code corresponding to resize failure.