Skip to main content
Skip table of contents

Customizing the LSF Application Environment

Edit the LSF Environment JSON for Your Purposes:

  1. Copy default-lsf-env.json to something convenient like env0.json.

    1. CODE
      cp default-lsf-env.json env0.json
  2. "EnvName" is set to lsf by default, but you can specify something unique if needed.

    1. NOTE: Currently, - characters are not supported in values forEnvName.

  3. The default environment asset has only one pool defined. Notice in the previous example that two pools are defined. When duplicating, be sure to add a comma to separate pools.

  4. PoolName: This will be the apparent hostnames of the compute resources provided for slurm.

    1. It is recommended that all pools share a common trunk or base in each PoolName.

  5. PoolSize: This is the maximum number of these compute resources.

  6. ProfileName: This is the default profile name, az1: If this is changed, you will need to carry the change forward.

  7. CPUs: This is the targeted CPU-core limit for this "hardware" configuration or pool.

  8. ImageName: This is the image added to the libarary in an earlier step.

  9. MaxMemory: This is the targeted memory limit for this "hardware" configuration or pool.

    image-20251029-135201.png

  10. MinMemory: reserved for future use; can be ignored currently.

  11. UserData: This string is a base64 encoded version of user_data.

    1. To generate it:

      1. cat user_data.sh | base64 -w 0

    2. To decode it:

      1. echo "<LongBase64EncodedString>" | base64 -d

    3. It’s not required to be perfectly fine-tuned at this stage; it will be refined and corrected later.

      1. Exampleuser_data.sh:

        1. CODE
          #!/bin/bash
          set -x
          IP=$( hostname -I |awk '{print $1}' )
          NEW_HOSTNAME=ip-$( echo ${IP} |sed 's/\./-/g' )
          hostname ${NEW_HOSTNAME}
          echo >> /etc/hosts
          echo -e "${IP}\t\t${NEW_HOSTNAME}" >> /etc/hosts
          . /opt/lsf/conf/profile.lsf
          lsadmin limstartup
          lsadmin resstartup
          badmin hstartup
  12. All other fields/lines in this asset can be ignored currently.

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.