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.

Before you decide to define ncpus for the purpose of computing the number of slots per individual host, you may prefer to take advantage of an alternative, more flexible way to configure the number of host slots at the group level. Refer to Defining the number of slots per host

Defining computation of ncpus on dynamic hosts

  1. Open ego.conf.
    • Linux/UNIX: $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: 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/UNIX: $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 Host
    HOSTNAME  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.