Configuring the task to slot threshold for a cluster

By default, the SMC_TASKS_TO_SLOTS_THRESHOLD setting within the smcm.xml file globally defines the maximum ratio of active tasks to deserved slots for all applications running multicluster workload placement, before the resource starvation state is set. This setting is a single threshold for all clusters within the global federation cluster. To configure the task to slot threshold for each cluster independently, instead of using the global setting, set the cluster-level threshold using the smcadmin cluster modify -T command.

Before you begin

This task outlines using the smcadmin cluster modify and smcadmin cluster view commands. To change properties for a cluster, you require the SMC_CLUSTER_CONTROL permission; to view a cluster's properties, you require SMC_CLUSTER_VIEW permissions.

Procedure

  1. Run the smcadmin cluster modify command with the -T option to set the task to slot threshold for a specific cluster:
    smcadmin cluster modify -c cluster_name [-T task_to_slot_threshold]
    For example, to set the task to slot threshold to 5 for a cluster called myCluster, run:
    smcadmin cluster view -c myCluster -T 5
    Refer to smcadmin for details on the smcadmin command.
  2. Run the smcadmin cluster view command to verify your task to slot threshold setting for the cluster:
    smcadmin cluster view -c cluster_name
    For example, to verify that the myCluster cluster uses a task to slot threshold of 5, instead of the global setting for all clusters within the federation cluster, run:
    smcadmin cluster view -c myCluster
    Look for the Task to Slot Threshold (Migration) line in the command output (for an example output, see Viewing cluster properties in the federation cluster using the CLI).