Creating and setting the APT_CONFIG_FILE environment variable in DataStage

You can set the environment variable APT_CONFIG_FILE to define the path to the configuration file.

About this task

The configuration file determines what processing resources (nodes) and storage resources (disks) are available to your system. Set the value of the environment variable APT_CONFIG_FILE to the filepath of the configuration file that you want your system to use. Create your config file on one of the PVCs mounted to the runtime pods. The following example creates a config file at /px-storage/config.

By default, dynamic workload management is turned on so you do not have to specify an APT_CONFIG_FILE or define a configuration file for the logical nodes and compute nodes to use.

Procedure

  1. Open the PX Runtime instance.
    
    # oc rsh ds-px-default-ibm-datastage-px-runtime-85f947548f-phntq 
    
  2. Write a configuration file. Define node resources, disk resources, and pools.
    sh-4.4$ vi /px-storage/config/1node.apt
    { 
     node "node1" 
     { 
      fastname "$conductor" 
      pools "" 
      resource disk "/opt/ibm/PXService/Server/Datasets" {pool ""} 
      resource disk "/opt/ibm/PXService/Server/pds_files/node1" {pool "" "export" "node1" "node1a"} 
      resource scratchdisk "/opt/ibm/PXService/Server/scratch" {pools ""} 
     } 
    }
  3. Save the file. Then, set APT_CONFIG_FILE=/px-storage/config/1node.apt in any job that you want to use that config file. If you create a config file with a different name or location, set APT_CONFIG_FILE to the config file's path.