To set server properties

When executing the sjmServer.py script, use the keyword set, to define the pool of servers available to receive jobs.

You can also use set to set the maximum number of jobs that can be executed in parallel. After execution, the set command displays the server properties.

  1. Set the Simulation Job Manager (SJM) properties by passing one or more key options on the command line. The options include:
    Option Function
    -a <name>

    This is a compulsory option, required when you use the keyword set, that points to the application you are using. For example, mfg-msim-moldflow2018

    If you don't know the exact name, use the query operation to obtain the precise spelling.

    -d <file>

    Use this option to define the pool of servers. This is particularly relevant for Design-of-Experiment, Runner Balance and Optimization studies where child studies may be formed and launched during their execution.

    <file> is the name of a text file you create, that contains the list of hostnames, or IP addresses, to be used for the distribution pool. Use one line per server, and specify the local machine as "LOCALHOST".

    -n # Use this option to set the maximum number of jobs that can be executed in parallel. Replace # with an integer.
    -s <host> Use this option to specify the machine to query. You can use either the machine's hostname or its IP address. If you don't specify a server, then localhost is queried.
  2. Examples:

  3. To set the distribution pool, type
    $ sjmServer.py set -d pool.txt –a mfg-msim-moldflow2018
    where pool.txt is a <file> that specifies a distribution pool with one child node, such as:
    LOCALHOST
    192.168.1.3
    
  4. To set the batch queue size to run up to 5 jobs in parallel, type
    $ sjmServer.py set –a mfg-msim-moldflow2018 –n 5
  5. To set the batch queue size on a remote machine to run up to 8 jobs in parallel, type
    $ sjmServer.py set –a mfg-msim-moldflow2018 –n 8 –s 192.168.1.3