Customizing hardware configurations for DataStage service instances with the command line

You can use the command-line interface (CLI) to customize hardware configurations for DataStage instances.

About this task

When you create a services instance, part of the process is configuring the hardware profile. From the DataStage UI, you can select configurations of Small, Medium, or Large. These configurations have pre-defined quantities and sizes of computes and conductors. However, you can use the CLI to create customized hardware configurations beyond what is available in the UI.

Procedure

  1. Log in to Red Hat® OpenShift® Container Platform as a user with sufficient permissions to complete the task:
    oc login OpenShift_URL:port
  2. Open the project that contains the DataStage service instance that you want to customize. For example:
    oc project ds
  3. Find the DataStage service instance that you want to customize:
    oc get pxruntime
  4. Edit the instance. For example:
    oc edit pxruntime my-mpp
  5. Change the spec section to add a scale specification. The following example creates 1 instance with the following configurations:
    • 1 head node with 4 cores, each with 8 GB of memory
    • 3 compute nodes, each with 1 core and 2 GB of memory
    spec:
      description: ""
      image_digests:
        pxcompute: 'sha256:4030bd65c44463206330174159e33c571f5d9e46f321131c96d20476e3f40dd6 '
        pxruntime: 'sha256:221668fc521a5572c33beebf07ff719a4d40037d89d03831ff7ce691868cbc9a '
      license:
        accept: true
      parameters:
        scaleConfig: large
        storageClass: nfs-client
        storageSize: 512Gi
      scale:
        pxcompute:
          replicas: 3
          resources:
            limits:
              cpu: 8
              memory: 16Gi
            requests:
              cpu: 1
              memory: 2Gi
        pxruntime:
          replicas: 1
          resources:
            limits:
              cpu: 8
              memory: 16Gi
            requests:
              cpu: 4
              memory: 8Gi
      shutdown: false

    You can edit the instance in this way to change the number of cores, compute nodes, and the amount of memory.