Override the global configuration of ncpus computation

An EGO cluster administrator globally defines how ncpus is computed. The ncpus global definition can, however, be overridden on specified dynamic and static hosts in the cluster.

Defining computation of ncpus on dynamic hosts

  1. Open ego.conf.
    • Linux: $EGO_CONFDIR/kernel/conf/ego.conf

    • Windows: %EGO_CONFDIR%\kernel\conf\ego.conf

  2. Define the parameter EGO_LOCAL_RESOURCES="[resource resource_name]".
    Set resource_name to one of the following:
    • define_ncpus_procs

    • define_ncpus_cores

    • define_ncpus_threads

    Note:

    Resource definitions are mutually exclusive. Choose only one resource definition per host.

    For example:
    • Windows: EGO_LOCAL_RESOURCES="[type NTX86] [resource define_ncpus_procs]"

    • Linux: EGO_LOCAL_RESOURCES="[resource define_ncpus_cores]"

  3. Save and close ego.conf.
Note:

In multi-cluster environments, if ncpus is defined on a per-host basis (thereby overriding the global setting) the definition is applied to all clusters that the host is a part of. In contrast, globally defined ncpus settings only take effect within the cluster for which EGO_DEFINE_NCPUS is defined.

Defining computation of ncpus on static hosts

  1. Open ego.cluster.cluster_name.
    • Linux: $EGO_CONFDIR/kernel/conf/ego.cluster.cluster_name

    • Windows: %EGO_CONFDIR%\kernel\conf\ego.cluster.cluster_name

  2. Find the host for which you want to define ncpus computation. In the RESOURCES column, add one of the following definitions:
    • define_ncpus_procs

    • define_ncpus_cores

    • define_ncpus_threads

    Note:

    Resource definitions are mutually exclusive. Choose only one resource definition per host.

    For example:

    Begin HostHOSTNAME  model    type        r1m  mem  swp  RESOURCES    #Keywords#lemon    PC200    LINUX86     3.5  1    2   (linux)#plum     !        NTX86       3.5  1    2   (nt)Host_name !        NTX86        -   -    -   (define_ncpus.procs)End     Host
  3. Save and close ego.cluster.cluster_name.
  4. Restart the master host.
Note:

In multi-cluster environments, if ncpus is defined on a per-host basis (thereby overriding the global setting) the definition is applied to all clusters that the host is a part of. In contrast, globally defined ncpus settings only take effect within the cluster for which EGO_DEFINE_NCPUS is defined.