LSB_QUERY_PORT

Specifies the port number that the mbatchd daemon uses for LSF query requests.

Syntax

LSB_QUERY_PORT=port_number

Description

This parameter must be defined on all clusters if you are using the LSF multicluster capability.

Use this parameter for busy clusters with many jobs and frequent query requests to increase mbatchd daemon performance when you use the bjobs command.

The port_number is the TCP/IP port number to be used by mbatchd to only service query requests from the LSF system. The mbatchd daemon checks the query port during initialization.

If the LSB_QUERY_PORT parameter is not defined:
  • The mbatchd daemon uses the port that is specified by the LSB_MBD_PORT parameter in the lsf.conf file. If LSB_MBD_PORT is not defined, the mbatchd daemon looks into the system services database for port numbers to communicate with other hosts in the cluster.
  • For each query request that the mbatchd daemon receives, it forks one child mbatchd daemon to service the request. Each child mbatchd daemon processes one request and then exits.
If the LSB_QUERY_PORT parameter is defined:
  • The mbatchd daemon prepares this port for connection. The default behavior of mbatchd changes, a child mbatchd is forked, and the child mbatchd creates threads to process requests.

    The interval that is used by the mbatchd daemon for forking new child mbatchd daemons is specified by the MBD_REFRESH_TIME parameter in the lsb.params file.

  • The child mbatchd daemon takes over and listens on the port to process more query requests. For each request, the child mbatchd daemon creates a thread to process it.

After you define the LSB_QUERY_PORT parameter you can also define the following parameters:

  • The MBD_REFRESH_TIME parameter in the lsb.params file specifies the time interval when the mbatchd daemon will fork a new child mbatchd daemon to service query requests.
  • The NEWJOB_REFRESH parameter in the lsb.params enables a child mbatchd daemon to get up-to-date information about new jobs from the parent mbatchd daemon. If you enable this parameter, you must set the MBD_REFRESH_TIME parameter to a value greater than 10 seconds.

Restrictions

Applies only to UNIX operating systems that support thread programming.

Default

Set to 6891 at time of installation. Otherwise, not defined.

See also

MBD_REFRESH_TIME and NEWJOB_REFRESH in lsb.params