Icon

    This is the documentation for for an older version of Qube.

    Documentation for the latest release is available here.

    You are viewing an old version of this page. View the current version.

    Compare with Current View Page History

    « Previous Version 2 Current »

    Smart Share

    SmartShare is a feature where the system automatically expands job instances to fill up idle, or "surplus", worker job slots.

    The expansion is automatically balanced among jobs, so that each job gets an equal number of surplus job slots.

     Click here to expand...

    Icon

    New in Qube 6.6-0

    Overview

    SmartShare is a feature in which the system automatically expands job instances to fill up idle, or "surplus", worker job slots. The expansion is automatically balanced among jobs, so that each job gets an equal number of surplus job slots.

    Jobs have a 'max_cpus' value which puts an upper limit on how wide a single job can expand.  This value can be supplied via a site-wide default or specified on a job-by-job basis.

    SmartShare from a user's perspective

    When SmartShare is enabled, jobs will automatically start using it.  Note that SmartShare is only only applicable to agenda-based jobs.

    It is possible to control how much a job automatically expands, on a job-by-job basis, by setting a new job attribute called "max_cpus" at submission. This value sets an upper limit to the number of instances to which the job will expand. The max_cpus parameter is only visible in the submission UI when in Expert Mode. If an end-user does nothing, their job will expand as widely as the system administrator has defined (see Configuring SmartShare, below). The administrator can specify a default and a maximum value for max_cpus.

    Jobs will expand to their max_cpus value if there are enough empty slots on the farm.  As other users begin to submit jobs as well, a user's job will shrink to allow for a more "balanced" usage of the farm between jobs.  No job will shrink below its "instance count" (or "CPUs") value. For example, a job submitted from the command line "qbsub" utility as

    $ qbsub -priority 5 -cpus 10 -max_cpus 50 -range 1-100 sleep 60

    ends up with 10 primary instances as specified by the "cpus" option at priority 5, and may expand up to 50 instances if surplus job slots are available.  In other words, as many as 40 secondary instances will be dispatched, at a lower priority. 

    Settings

    •  Setting max_cpus to "*" (asterisk) or a negative number, such as "-1", means "no limit", which will allow the job to expand to the supervisor_max_cpus_limit setting. This is configured by the site administrator.
    • Setting max_cpus to 0 disables SmartShare for the job.
    • If max_cpus is unspecified at submission, the system will apply the default value, which is supervisor_default_max_cpus. This is configured by the site administrator.
    • The max_cpus value may also be modified after submission, in the GUI, with the qbmodify command, or via the API.

    Priorities

    • The instances that were automatically expanded by SmartShare ("secondary instances") run at low priority, and are the first subject to pre-emption in order to run primary instances from other jobs. Secondary instances may also be pre-empted in order to run secondary instances from other jobs, to balance the number of secondary instances among all jobs.  
    • The method of pre-emption can either be "aggressive", meaning the instance is immediately terminated, or "passive", meaning the instance is allowed to finish processing the current agenda item before terminating, and is configured by the site administrator (see supervisor_smart_share_preempt_policy below).
    • The default smart share pre-emption mode is "aggressive"; secondary instances will be stopped immediately in order to accomplish the balancing of jobs as quickly as possible

    Configuring SmartShare

    Icon

    SmartShare is automatically enabled for new 6.6+ installs and upgrades alike.

    To opt out, the site administrator can set the supervisor_smart_share_mode and supervisor_smart_share_preempt_policy in qb.conf on the Supervisor machine:

    supervisor_smart_share_mode = none

    supervisor_smart_share_preempt_policy = disabled

    • supervisor_smart_share_mode
      • Can be either “jobs” or “none”.  
      • default: "jobs"
      • Setting it to “jobs” will make the system try to balance the number of the automatically-expanded “secondary" instances on a job-to-job basis
      • Setting it to “none” disables SmartShare. 
    • supervisor_smart_share_preempt_policy
      • method of preemption for secondary instances 
      • aggressive, passive, disabled
      • default: aggressive
    • supervisor_default_max_cpus
      • used to set the site-wide default value of “max_cpus” if not given at submission
      • default: -1
      • Note: “*” can be used in the qb.conf file too, instead of -1
    • supervisor_max_cpus_limit
      • largest value of “max_cpus” that can be used on any job
      • default 100
      • Note: if any job specifies a value greater than this, the system will silently cap it to this value

    Flight-Checks (Preflights and Postflights)

    Flight checks, AKA preflights and postflights, are programs and/or scripts that are run on the worker just before and after the actual job or agenda starts.

    The exit codes of flight checks determine the processing and exit status of their respective job instances or agendas.  

     Click here to expand...

    Unable to render {include} The included page could not be found.

    Universal Callbacks

    Universal callbacks are operations which are automatically attached to every single job.

    These are installed by a site administrator and are run by the supervisor host.

     Click here to expand...

    Unable to render {include} The included page could not be found.

    Windows MySQL upgraded from 5.1 to 5.5.37

    MySQL 5.5 running on Windows offers a significant performance increase over previous MySQL versions; prior to 5.5, MySQL used a port of the linux threading model on Windows.  In MySQL 5.5, Oracle switched MySQL over to the native Windows threading, resulting in greatly improved performance.

    The version of MySQL automatically installed on a Windows supervisor has been upgraded from 5.1 to 5.5.  

    If you are upgrading an supervisor from a version prior to 6.6-0, your supervisor's MySQL and all the tables will be automatically upgraded from 5.1 to 5.5.

    Icon
    Since the database tables are upgraded during a supervisor upgrade, it is not recommended to downgrade a supervisor back to Qube! 6.5 or earlier once that supervisor has been upgraded to Qube! 6.6.

    Ubuntu support added

    Qube! is now supported on Ubuntu 12.0.4-LTS

    Python-based "Load Once" jobs now supported on Windows

    Python-based "LoadOnce" jobs are currently limited to Nuke and Houdini, but this will allow for easier integration of applications which provide a Python API or prompt mode.

    Auto-Wrangling enabled by default

    Auto-Wrangling has been enabled by default in Qube! 6.6.  If you're upgrading and do not have the supervisor_language_flags value explictly set and do not wish to enable auto-wrangling, ensure that you specify an explicit value for this parameter.

     

    • No labels